照片图片 动漫化 卡通化

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.

效果

照片图片 动漫化 卡通化_第1张图片

这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 的改进版本

照片图片 动漫化 卡通化_第2张图片

使用

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

你可能感兴趣的:(ai)