All Projects → imadelh → Ml Web App

imadelh / Ml Web App

Train and Deploy Simple Machine Learning Model With Web Interface - Docker, PyTorch & Flask

Projects that are alternatives of or similar to Ml Web App

Urban Informatics And Visualization
Urban Informatics and Visualization (UC Berkeley CP255)
Stars: ✭ 200 (-1.96%)
Mutual labels:  jupyter-notebook
Face toolbox keras
A collection of deep learning frameworks ported to Keras for face analysis.
Stars: ✭ 202 (-0.98%)
Mutual labels:  jupyter-notebook
Docker Course Xgboost
Materials for an online-course - "Practical XGBoost in Python"
Stars: ✭ 201 (-1.47%)
Mutual labels:  jupyter-notebook
Echomods
Open source ultrasound processing modules and building blocks
Stars: ✭ 200 (-1.96%)
Mutual labels:  jupyter-notebook
Zaoqi Python
公众号:早起Python
Stars: ✭ 202 (-0.98%)
Mutual labels:  jupyter-notebook
Release
Deep Reinforcement Learning for de-novo Drug Design
Stars: ✭ 201 (-1.47%)
Mutual labels:  jupyter-notebook
Pycon2017 Optimizing Pandas
Materials for PyCon 2017 presentation on optimizing Pandas code
Stars: ✭ 201 (-1.47%)
Mutual labels:  jupyter-notebook
Tensorflow Deep Learning
All course materials for the Zero to Mastery Deep Learning with TensorFlow course.
Stars: ✭ 170 (-16.67%)
Mutual labels:  jupyter-notebook
Csa Inpainting
Coherent Semantic Attention for image inpainting(ICCV 2019)
Stars: ✭ 202 (-0.98%)
Mutual labels:  jupyter-notebook
Road lane line detection
Find lane lines on the road using Python and OpenCV, applying Canny edge detectors and Hough line transforms
Stars: ✭ 202 (-0.98%)
Mutual labels:  jupyter-notebook
Fastpages
An easy to use blogging platform, with enhanced support for Jupyter Notebooks.
Stars: ✭ 2,888 (+1315.69%)
Mutual labels:  jupyter-notebook
Data Science Online
Stars: ✭ 202 (-0.98%)
Mutual labels:  jupyter-notebook
Automl service
Deploy AutoML as a service using Flask
Stars: ✭ 202 (-0.98%)
Mutual labels:  jupyter-notebook
Cs231n
my assignment solutions for CS231n Convolutional Neural Networks for Visual Recognition
Stars: ✭ 201 (-1.47%)
Mutual labels:  jupyter-notebook
Data Kit
Devenez Data-Scientist sur Le Wagon On Demand
Stars: ✭ 202 (-0.98%)
Mutual labels:  jupyter-notebook
Lsstc Dsfp Sessions
Lecture slides, Jupyter notebooks, and other material from the LSSTC Data Science Fellowship Program
Stars: ✭ 201 (-1.47%)
Mutual labels:  jupyter-notebook
Geostatspy
GeostatsPy Python package for spatial data analytics and geostatistics. Mostly a reimplementation of GSLIB, Geostatistical Library (Deutsch and Journel, 1992) in Python. Geostatistics in a Python package. I hope this resources is helpful, Prof. Michael Pyrcz
Stars: ✭ 200 (-1.96%)
Mutual labels:  jupyter-notebook
Swapnet
Virtual Clothing Try-on with Deep Learning. PyTorch reproduction of SwapNet by Raj et al. 2018. Now with Docker support!
Stars: ✭ 202 (-0.98%)
Mutual labels:  jupyter-notebook
Scikit Allel
A Python package for exploring and analysing genetic variation data
Stars: ✭ 201 (-1.47%)
Mutual labels:  jupyter-notebook
Neurotech Course
CS198-96: Intro to Neurotechnology @ UC Berkeley
Stars: ✭ 202 (-0.98%)
Mutual labels:  jupyter-notebook

Train and Deploy Machine Learning Model With Web Interface - Docker, PyTorch & Flask

Live access (deployed on GCP): https://ml-app.imadelhanafi.com

alt text


Blog post: https://imadelhanafi.com/posts/train_deploy_ml_model/

This repo contains code associated with the above blog post.

Running on Local/cloud machine

Clone the repo and build the docker image

sudo docker build -t flaskml .

NB: if you have MemoryError while installing PyTorch in the container, please consider adding 2G swap to your virtual machine (https://linuxize.com/post/how-to-add-swap-space-on-ubuntu-18-04/)

Then after that you can run the container while specefying the absolute path to the app

sudo docker run -i -t --rm -p 8888:8888 -v **absolute path to app directory**:/app flaskml

This will run the application on localhost:8888

You can use serveo.net or Ngrok to port the application to the web.

Running on Jetson-Nano

On Jetson-nano, to avoid long running time to build the image, you can download it from Docker Hub. We will also use a costumized Docker command https://gist.github.com/imadelh/cf7b12c9cc81c3cb95ad2c6bc747ccd0 to be able to access the GPU of the device on the container.

docker pull imadelh/jetson_pytorch_flask:arm_v1

Then on your device you can access the bash (this the default command on that image)

sudo ./mydocker.sh run -i -t --rm -v /home/imad:/home/root/ imadelh/jetson_pytorch_flask:arm_v1

and then simply get to the application directory and run it

cd app
python3 app.py

Useful files

Info

This a generic web app for ML models. You can update your the network and weights by changing the following files.

app/ml_model/network.py
app/ml_model/trained_weights.pth

Imad El Hanafi

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].