github地址:https://github.com/TachibanaYoshino/AnimeGANv2

1、项目介绍:

2、环境安装

  • 平台:windows 10
  • 编译器:pycharm
  • cuda 11.3
  • cudnn 8.2.0.53
conda create -n animegan python=3.7
conda activate animegan
pip install tensorflow==1.15.0 
pip install protobuf==3.20.0
pip install opencv-python
pip install tqdm
pip install numpy
pip install argparse
pip install onnxruntime

3、执行代码

图片执行:

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

视频执行:

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

4、效果展示

5、总结