Coder Social home page Coder Social logo

gutalavijaykumar / deep-learning-model-deploy-with-django Goto Github PK

View Code? Open in Web Editor NEW

This project forked from marcogdepinto/deep-learning-model-deploy-with-django

0.0 0.0 0.0 30.63 MB

Serving a keras model (neural networks) in a website with the python Django-REST framework.

License: GNU General Public License v3.0

Python 85.32% HTML 14.68% JavaScript 0.01%

deep-learning-model-deploy-with-django's Introduction

Deep learning model deploy with Django

made-with-python

This repository includes a Django-based API to serve a deep learning model previously trained. A simple front end is provided to give non-power users the possibility to interact via UI.

The model used is an Emotion Classifier trained with audio files of the RAVDESS dataset. More info here: https://github.com/marcogdepinto/Emotion-Classification-Ravdess

Why I am doing this?

The vision of this project is to show that artificial intelligence applications can be shipped to production, consumed by users and have a real impact. This is just a research project, but hope it can inspire someone to build something big :)

How does this work?

User Journey

The user journey start on the index page at /index/ where it is possible to choose if

  1. Upload a new file on the server;
  2. Delete a file from the server (WIP);
  3. Make a prediction on a file already on the server;

Picture1

Choosing Upload your audio file the user will be redirected to a modified home page. The user will be asked to pick a file from his computer. The UI will confirm if the operation has been successful.

Picture2

Choosing Make your prediction the user will be redirected to a modified home page. In this page, it will be possible to see a list of the files already on the server. Following the path media/{filename} it will be also possible to listen to the audio file.

Picture3

After clicking on Submit, the user will be redirected to a modified home page that will include the prediction made by the Keras model for the file selected.

Picture4

See the App in action!

There is a short demo of the first version on YouTube: https://youtu.be/86HhxTRL3_c . The UI has been updated since then, as now manages all the actions extending the index templates with the action templates. The above pictures are updated with the new workflow.

Developers stuff

How to start the server and try it

  1. git clone https://github.com/marcogdepinto/Django-Emotion-Classification-Ravdess-API.git
  2. $ pip install -r requirements.txt
  3. Open a terminal window, cd into the project folder and run python manage.py runserver.

How to run the tests

python manage.py test

Other important topics

The Keras model is stored in the models folder.

gitmedia folder includes the pictures used for this README.

media folder includes the audio files loaded using the server.

If you do not know how Django works, you can skip to the App/views.py file to review the high level logic of the API.

User Stories

What is the plan for the future and what it is currently ongoing: https://github.com/marcogdepinto/Django-Emotion-Classification-Ravdess-API/projects/2

deep-learning-model-deploy-with-django's People

Contributors

dependabot[bot] avatar marcogdepinto avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.