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.
-
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_testor others, create a corresponding folder to place skeleton maps, likekeras_train_skeletonand others. -
Replace
loader/dataloader.pyof Tag2Pix withcode/loader/dataloader.pyto load skeleton maps.We also remove the
random_jitterfor visible test results while training. -
For dual-branch, replace
network.pyandtag2pix.pyof Tag2Pix with files incode/dual_branch. -
For direct concatenation, replace
network.pyandtag2pix.pyof Tag2Pix with files incode/direct. -
Train the model as Tag2Pix.