Skip to content

yayeoCddy/animegan2-pytorch

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PyTorch Implementation of AnimeGANv2

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] --device [cpu/cuda]

Results from converted [Paprika] style model

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

     

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!

 

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

About

PyTorch implementation of AnimeGANv2

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Jupyter Notebook 99.2%
  • Python 0.8%