Home

Awesome

AnimeGANv2

The improved version of AnimeGAN.

Project Page | Landscape photos / videos to anime


News


Focus:

<table border="1px ridge"> <tr align="center"> <th>Anime style</th> <th>Film</th> <th>Picture Number</th> <th>Quality</th> <th>Download Style Dataset</th> </tr > <tr align="center"> <td>Miyazaki Hayao</td> <td>The Wind Rises</td> <td>1752</td> <td>1080p</td> <td rowspan="3"><a href="https://github.com/TachibanaYoshino/AnimeGANv2/releases/tag/1.0">Link</a></td> </tr> <tr align="center"> <td>Makoto Shinkai</td> <td>Your Name & Weathering with you</td> <td>1445</td> <td>BD</td> </tr> <tr align="center"> <td>Kon Satoshi</td> <td>Paprika</td> <td>1284</td> <td>BDRip</td> </tr> </table>

News:

The improvement directions of AnimeGANv2 mainly include the following 4 points:  

Requirements

Usage

1. Inference

python test.py --checkpoint_dir checkpoint/generator_Hayao_weight --test_dir dataset/test/HR_photo --save_dir Hayao/HR_photo

2. Convert video to anime

python video2anime.py --video video/input/お花見.mp4 --checkpoint_dir checkpoint/generator_Hayao_weight --output video/output

3. Train

1. Download vgg19

vgg19.npy

2. Download Train/Val Photo dataset

Link

3. Do edge_smooth

python edge_smooth.py --dataset Hayao --img_size 256

4. Train

python train.py --dataset Hayao --epoch 101 --init_epoch 10

5. Extract the weights of the generator

python get_generator_ckpt.py --checkpoint_dir ../checkpoint/AnimeGANv2_Shinkai_lsgan_300_300_1_2_10_1 --style_name Shinkai


Results


:heart_eyes: Photo to Paprika Style













:heart_eyes: Photo to Hayao Style













:heart_eyes: Photo to Shinkai Style











License

This repo is made freely available to academic and non-academic entities for non-commercial purposes such as academic research, teaching, scientific publications. Permission is granted to use the AnimeGANv2 given that you agree to my license terms. Regarding the request for commercial use, please contact us via email to help you obtain the authorization letter.

Author

Xin Chen