irisliucy / colorization-pytorch-simple-PSE

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

colorization-pytorch-simple-PSE

This is a pytorch implementation of interactive colorization. These weights are in Photoshop Elements 2020 and in Photoshop Neural Filters.

Download caffemodel into the weights directory. It is from our SIGGRAPH 2017 paper. It was trained in caffe, with weights converted to pytorch. These are the weights in PSE 2020 and Neural Filters.

"Migrant Mother" examples

# Automatic colorization
python run_model.py

# Pre-saved user interactions
python run_model.py --hint_ab_path imgs/migrant_mother/im_ab.npy --hint_mask_path imgs/migrant_mother/im_mask.npy

Automatic results

User interactive results

Some more examples

![](imgs/cup_with_dist_190417_013831/input_mask.png =200x) ![](imgs/cup_with_dist_190417_013831/input_ab.png =200x) ![](imgs/cup_with_dist_190417_013831/input_fullres.png =200x) ![](imgs/cup_with_dist_190417_013831/ours_fullres.png =200x)

![](imgs/cup_with_dist_190417_013901/input_mask.png =200x) ![](imgs/cup_with_dist_190417_013901/input_ab.png =200x) ![](imgs/cup_with_dist_190417_013901/input_fullres.png =200x) ![](imgs/cup_with_dist_190417_013901/ours_fullres.png =200x)

![](imgs/image013_with_dist_190417_015719/input_mask.png =200x) ![](imgs/image013_with_dist_190417_015719/input_ab.png =200x) ![](imgs/image013_with_dist_190417_015719/input_fullres.png =200x) ![](imgs/image013_with_dist_190417_015719/ours_fullres.png =200x)

![](imgs/image013_with_dist_190417_020208/input_mask.png =200x) ![](imgs/image013_with_dist_190417_020208/input_ab.png =200x) ![](imgs/image013_with_dist_190417_020208/input_fullres.png =200x) ![](imgs/image013_with_dist_190417_020208/ours_fullres.png =200x)

![](imgs/image015_with_dist_190417_020225/input_mask.png =200x) ![](imgs/image015_with_dist_190417_020225/input_ab.png =200x) ![](imgs/image015_with_dist_190417_020225/input_fullres.png =200x) ![](imgs/image015_with_dist_190417_020225/ours_fullres.png =200x)

![](imgs/image015_with_dist_190417_020612/input_mask.png =200x) ![](imgs/image015_with_dist_190417_020612/input_ab.png =200x) ![](imgs/image015_with_dist_190417_020612/input_fullres.png =200x) ![](imgs/image015_with_dist_190417_020612/ours_fullres.png =200x)

![](imgs/image017_with_dist_190417_020632/input_mask.png =200x) ![](imgs/image017_with_dist_190417_020632/input_ab.png =200x) ![](imgs/image017_with_dist_190417_020632/input_fullres.png =200x) ![](imgs/image017_with_dist_190417_020632/ours_fullres.png =200x)

![](imgs/image023_with_dist_190417_020723/input_mask.png =200x) ![](imgs/image023_with_dist_190417_020723/input_ab.png =200x) ![](imgs/image023_with_dist_190417_020723/input_fullres.png =200x) ![](imgs/image023_with_dist_190417_020723/ours_fullres.png =200x)

![](imgs/image023_with_dist_190417_020853/input_mask.png =200x) ![](imgs/image023_with_dist_190417_020853/input_ab.png =200x) ![](imgs/image023_with_dist_190417_020853/input_fullres.png =200x) ![](imgs/image023_with_dist_190417_020853/ours_fullres.png =200x)

DRN_D_22 model

drn_d_22 was an attempted retraining with a smaller model, but does not look as good. To activate it download the drn_d_22, model and add it into the weights directory.

Then add the --arch and --model_path flags:

python run_model.py --arch drn_d_22 --model_path weights/drn_d_22_norebal_ep150.pth

About


Languages

Language:Jupyter Notebook 70.1%Language:Python 29.9%