animegan2-pytorch/README.md
2021-02-21 18:08:15 +09:00

1.3 KiB

PyTorch Implementation of AnimeGANv2

Face Model: Distilled from this model with L2 + VGG + GAN Loss and CelebA-HQ images. See test_faces.ipynb for the inference. Model file can be downloaded from here (8MB). Enjoy!

 

Weight Conversion from the Original Repo (Requires TensorFlow 1.x)

git clone https://github.com/TachibanaYoshino/AnimeGANv2
python convert_weights.py

Inference

python test.py --input_dir [image_folder_path]

Results from converted [Paprika] style model

(input image, original tensorflow result, pytorch result from left to right)

     

Note: Tested on RTX3090 + PyTorch1.7.1 / Results from converted weights slightly different due to the bilinear upsample issue