/neural-style-transfer

Dash and Flask-based web app that allows users to upload or click a photo and applies one from a choice of many different well-known styles.

Primary LanguagePythonMIT LicenseMIT

Neural Style Transfer



License Flask Dash

Under active development

Inspired from this PyTorch tutorial.

Installation (WIP)

The demo application is currently hosted here.

Step 1. Clone this repository by running

git clone https://github.com/dkedar7/neural-style-transfer

Step 2. Create a virtual environement by running

python -m venv StyleTransfer

Step 3. Activate this environment, on Windows:

StyleTransfer\scripts\activate

MacOS or Linux:

source StyleTransfer/bin/activate

Step 4. Open the directory and install dependencies

cd style-transfer/
pip install -r requirements.txt

Step 5. Launch the web application

python run.py

Use localhost:8080 to interact with the application.

About the demo deployment

The demo deployment uses Google Build to containerize the application, Google Container Registry for storing and managing a container and Google Cloud Run to deploy it as a web endpoint.

Cloud Run Architecture

More about Google Cloud Run

Limitations (WIP)

License

Neural Style Transfer uses the MIT license.

Dependencies

You need Python 3 to run this application. Other dependencies can be found in the requirements.txt file.