jjerry-k / style_transfer_web

Style transfer application using flask and TF Hub

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Style Transfer Web

Style transfer application using flask and TF Hub example

Running locally

  1. Clone this repository
git clone https://github.com/jjerry-k/stylet_transfer_web.git
  1. Create and Activate virtual environment
python3 -m venv env 
source env/bin/activate
  1. Install dependencies
pip install --upgrade pip
pip install -r requirements
  1. Install Tensorflow dependencies
  • On Windows & Linux & MacOS
pip install tensorflow tflite_runtime
  • On Raspberry PI
    • Install tflite_runtime using whl [link]
    • Install tensorflow using whl [link]
# Download each .whl 
pip install {tensorflow wheel file}
pip install {tflite_runtime wheel file}
  1. Run flask
# Production
gunicorn -b 0.0.0.0:{Port Number} app:app

# Deploy
gunicorn -b 0.0.0.0:{Port Number} app:app -D

Reference

About

Style transfer application using flask and TF Hub


Languages

Language:JavaScript 37.4%Language:Python 30.1%Language:CSS 20.5%Language:HTML 12.0%