Awesome
ColorizationWithRegion
The code for pg2021 paper "Line Art Colorization Based on Explicit Region Segmentation"
This is a simple implementation for comparison with Tag2Pix (code / paper).
Overall project refactoring and further optimization may be later.
Usage
-
Build the environment and dataset according to Tag2Pix.
-
Use
python code/skeleton/line_art2skeleton.py <line art folder>
to create skeleton maps.See DanbooRegion for environment.
Some code and pretrained model are from DanbooRegion.
For each line art folders, e.g.,
keras_train
,xdog_train
,keras_test
or others, create a corresponding folder to place skeleton maps, likekeras_train_skeleton
and others. -
Replace
loader/dataloader.py
of Tag2Pix withcode/loader/dataloader.py
to load skeleton maps.We also remove the
random_jitter
for visible test results while training. -
For dual-branch, replace
network.py
andtag2pix.py
of Tag2Pix with files incode/dual_branch
. -
For direct concatenation, replace
network.py
andtag2pix.py
of Tag2Pix with files incode/direct
. -
Train the model as Tag2Pix.