Skip to content

Flask application to colorize black and white pictures using ChromaGAN

Notifications You must be signed in to change notification settings

4turkuaz/chromaGAN-colorizer-using-flask

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

chromaGAN-colorizer-using-flask

A basic Flask application to colorize pictures using ChromaGAN.

Casablanca

Casablanca, 1942

Requirements

Prerequisite: Python 3.5.2 & Linux

First, clone the repository.

git clone https://github.com/4turkuaz/chromaGAN-colorizer-using-flask
cd chromaGAN-colorizer-using-flask/

Then, download the pretrained model from link below then replace it with dummyFile under MODEL directory.

Besides, in the first use, it is required to download the VGG16 to colorize the pictures. It will be downloaded automatically once you run it.

Requirements could be found in requirements.txt, to install them:

pip install -r requirements.txt

In case you don't want to install them all, there are key libraries to be installed:

keras==2.2.4, tensorflow==1.11.0, Flask==1.1.2

PS: You need to download the pretrained model in order to use application, thus it could be found here. You need to download "my_model_colorization.h5".

Usage

Within the chromaGAN-colorizer-using-flask directory, run:

EXPORT FLASK_APP=run.py
flask run

Then open link 127.0.0.1:5000 in the browser.

More examples

Marilyn Monroe

Marilyn Monroe

Migrant Mother

Migrant Mother, 1936

Wilt Chamberlain

Wilt Chamberlain, 1962

This project is based on:

License

MIT

About

Flask application to colorize black and white pictures using ChromaGAN

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published