User-interactive colorization of anime sketch image
pytorch
torchvision
numpy
openCV2
PyQT5
opencv_transforms (For training) (You can simply install this by pip install opencv_transforms)
matplotlib (For training)
-
Taebum Kim, "Anime Sketch Colorization Pair", https://www.kaggle.com/ktaebum/anime-sketch-colorization-pair
-
68K illustrations crawled from web
-
Download model weight from here and unzip on
src/model/checkpoint -
python main.py -
Load an image. The image will be automatically converted to sketch-style image.
-
Draw scribbles and press 'colorize' button.
-
Save the colorized image.
| Parameter | Value |
|---|---|
| Learning rate | 2e-4 |
| Batch size | 2 |
| Iteration | 150K |
| Optimizer | Adam |
| (beta1, beta2) | (0.5, 0.999) |
| Data Augmentation | RandomResizedCrop(512) RandomHorizontalFlip() |
| HW | CPU : Intel i5-8400 RAM : 16G GPU : NVIDIA GTX1060 6G |
| Training Time | About 1.37s per iteration (About 50 hours for 150K iterations) |








