Skip to content

Latest commit

 

History

History
49 lines (31 loc) · 1.45 KB

README.md

File metadata and controls

49 lines (31 loc) · 1.45 KB

color-images

This is a python script that fill colors in Black & White images. It uses Caffe (A Deep Learning framework) model and OpenCV.

Grey Apple Colored Apple

Grey Rose Colored Rose

Installation

To prevent the dependencies of this project from messing with your core python installation, you can create a virtualenv.

Now, use pip to install the dependencies using:

pip install -r requirements.txt

Now, we need to download the models, which can be done by the following:

for linux:

chmod +x get_models.sh
./get_models.sh

for windows: run get_models.bat file

Usage

python fill_color.py --input /path/to/input/image 

output will be saved in same folder

Model used:

http://eecs.berkeley.edu/~rich.zhang/projects/2016_colorization/files/demo_v2/colorization_release_v2.caffemodel

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.