Skip to content

eunki7/flask-deeplearning-service-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Deploy Deeplearning Model with Flask-Restplus, Swagger as Demo app

Apache license

A BeautyGAN and MobileNet model using web demo based flask, flask-restplus, swagger

Introduction


BeautyGAN: Instance-level Facial Makeup Transfer with Deep Generative Adversarial Network

MobileNetV2: Computer Vision and PatternRecognition

Usage

  • Python 3.6+
  • Tensorflow 1.x

Download pretrained models

Save pretrained model, index, checkpoint to models/model_p2

.
+--docs
+--mlib
+--models
|   +-- model_dlib
|   +-- model_p2 -> make folder, here save models
+--static
...

Screenshots


Swagger main

intro1

BeautyGAN main

intro2

Getting Started


1.Download or clone source code from github.

$ cd flask-deeplearning-service-demo

2.Install Python packages

$ pip install -r requirements.txt

3. Run(flask nomarl mode or flask-restapi mode)

$ python app.py
or
$ python app_rest.py

It will deploy :

  • Flask app running in http://localhost:8080
  • Flask normal mode(optional)
  • Flask rest-plus mode with swagger(optional)

Features


  • Responsible UI
  • Support image drag-and-drop
  • Use vanilla JavaScript, HTML and CSS
  • RestAPI exception handling
  • Dlib facing shape predictor landmark

Demos


Image classification demo

demo1

Image beautyGAN demo

demo2

Dependencies:


License


GPL License

About

Deep Learning model(Image classfication, BeautyGAN) using Flask Swagger Based flask-restplus

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors