照片图片 动漫化 卡通化

AnimeGAN

GitHub - TachibanaYoshino/AnimeGANv2: [Open Source]. The improved version of AnimeGAN. Landscape photos/videos to anime

GitHub - TachibanaYoshino/AnimeGANv3: Use AnimeGANv3 to make your own animation works, including turning photos or videos into anime.

效果

这2个模型要求,python版本不能太高,否则无法安装 tensorflow 1.15.0 版本

  • python 3.6
  • tensorflow-gpu 1.15.0 (GPU 2080Ti, cuda 10.0.130, cudnn 7.6.0)

ARGAN

GitHub - amirzenoozi/ARGAN: [Open Source]. ARGAN - The improved version of AnimeGAN. Landscape photos/videos to anime

这是 AnimeGANv2 的改进版本

使用

pip install https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-1.5.0-py3-none-any.whl

pyenv install 3.6.0

pyenv virtualenv 3.6.0 360

pyenv activate 360

source ~/.bashrc
 

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

python test.py --checkpoint_dir  checkpoint/generator_Hayao_weight  --test_dir in/ --style_name Hayao/HR_photo

python video2anime.py  --video input.mp4  --checkpoint_dir  checkpoint/generator_Paprika_weight

猜你喜欢

转载自blog.csdn.net/linzhiji/article/details/132719339