This repository hosts the datasets and the code for the SketchyScene Colorization system (SIGGRAPH Asia 2019). Please refer to our paper for more information: Language-based Colorization of Scene Sketches.
Paper | Supplementary Material | Project Page
- Python 3
- Tensorflow (>= 1.3.0)
- scipy
- PIL
- skimage
- Please follow the instructions in the next three sections to download the pre-trained models and place them in the right directories.
For the details of MATCHING dataset and the code, please refer to the Instance_Matching directory.
For the details of FOREGROUND dataset and the code, please refer to the Foreground_Instance_Colorization directory.
For the details of BACKGROUND dataset and the code, please refer to the Background_Colorization directory.
Our system allows users to colorize the sketches through language instructions. If the result is not satisfactory, users can also withdraw the last instruction.
๐ฅ We have provided some test examples in examples
directory.
-
To colorize a sketch, run the command like:
python3 sketchyscene_colorization_main.py --image_id 9996 \ --instruction 'the bus is orange with gray windows'
- Set
image_id
to the sketch you want. - Try other instructions by changing the
instruction
.
You will see the results in
outputs
directory. - Set
-
To withdraw the last instruction, run the command like:
python3 sketchyscene_colorization_main.py --command 'withdraw' --image_id 9996
See what happens in
outputs
directory :)
Please cite the corresponding paper if you found the datasets or code useful:
@article{zouSA2019sketchcolorization,
title = {Language-based Colorization of Scene Sketches},
author = {Zou, Changqing and Mo, Haoran and Gao, Chengying and Du, Ruofei and Fu, Hongbo},
journal = {ACM Transactions on Graphics (Proceedings of ACM SIGGRAPH Asia 2019)},
year = {2019},
volume = 38,
number = 6,
pages = {233:1--233:16}
}