TachibanaYoshino / AnimeGANv3

Use AnimeGANv3 to make your own animation works, including turning photos or videos into anime.
https://tachibanayoshino.github.io/AnimeGANv3/
1.69k stars 212 forks source link
animegan animeganv2 animeganv3 colab coreml huggingface onnx tensorflow tflite

AnimeGANv3

Paper Title: A Novel Double-Tail Generative Adversarial Network for Fast Photo Animation.

Let's use AnimeGANv3 to produce our own animation.

[![manuscript](https://img.shields.io/badge/manuscript-PDF-gold?logo=googledocs&logoColor=gold)](https://github.com/TachibanaYoshino/AnimeGANv3/blob/master/doc/AnimeGANv3_manuscript.pdf) [![Paper](https://img.shields.io/badge/cs.CV-Paper-violet?logo=docusign&logoColor=violet)](https://www.jstage.jst.go.jp/article/transinf/E107.D/1/E107.D_2023EDP7061/_pdf/-char/en) [![Project Page](https://img.shields.io/badge/Project-Website-green?logo=googlechrome&logoColor=green)](https://tachibanayoshino.github.io/AnimeGANv3/) [![HuggingFace](https://img.shields.io/badge/%F0%9F%A4%97%20Hugging%20Face-Leaderboard-40D1F5)](https://huggingface.co/spaces/TachibanaYoshino/AnimeGANv3) [![Video](https://img.shields.io/badge/YouTube-Video-b31b1b?logo=youtube&logoColor=red)](https://youtu.be/EosubeJmAnE) [![twitter](https://img.shields.io/badge/twitter-Asher-1D9BF0?logo=x&logoColor=#1D9BF0)](https://twitter.com/asher_9527) [![LICENSE](https://img.shields.io/badge/license-AnimeGANv3-AB82FF?logo=leagueoflegends&logoColor=AB82FF)](https://github.com/TachibanaYoshino/AnimeGANv3?tab=readme-ov-file#scroll-license) [![Github](https://img.shields.io/github/stars/TachibanaYoshino/AnimeGANv3?logo=githubsponsors&logoColor=#EA4AAA)](https://github.com/TachibanaYoshino/AnimeGANv3) [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://drive.google.com/file/d/1Er23bL36pkr67Q9f1P28BuMP6yZKf-yz/view?usp=sharing) [![Visitor](https://hits.seeyoufarm.com/api/count/incr/badge.svg?url=https%3A%2F%2Fgithub.com%2FVchitect%2FAnimeGANv3&count_bg=%23FFA500&title_bg=%23555555&icon=&icon_color=%23E7E7E7&title=visitors&edge_flat=false)](https://hits.seeyoufarm.com)

📢 Updates

🎮 Usage

🚀 Landscape Demos

:fire: Video to anime (Hayao Style)


:art: Photo to Hayao Style


more surprise 👈 ![](https://github.com/TachibanaYoshino/AnimeGANv3/blob/master/results/AnimeGANv3_Hayao/33.jpg) ![](https://github.com/TachibanaYoshino/AnimeGANv3/blob/master/results/AnimeGANv3_Hayao/31.jpg) ![](https://github.com/TachibanaYoshino/AnimeGANv3/blob/master/results/AnimeGANv3_Hayao/35.jpg) ![](https://github.com/TachibanaYoshino/AnimeGANv3/blob/master/results/AnimeGANv3_Hayao/32.jpg) ![](https://github.com/TachibanaYoshino/AnimeGANv3/blob/master/results/AnimeGANv3_Hayao/34.jpg)


:art: Photo to Shinkai Style


more surprise 👈 ![](https://github.com/TachibanaYoshino/AnimeGANv3/blob/master/results/AnimeGANv3_Shinkai/9.jpg) ![](https://github.com/TachibanaYoshino/AnimeGANv3/blob/master/results/AnimeGANv3_Shinkai/10.jpg) ![](https://github.com/TachibanaYoshino/AnimeGANv3/blob/master/results/AnimeGANv3_Shinkai/11.jpg) ![](https://github.com/TachibanaYoshino/AnimeGANv3/blob/master/results/AnimeGANv3_Shinkai/8.jpg)


🚀 Portrait Style Demos

The paper has been completed in 2022. The study of portrait stylization is an extension of the paper.

Some exhibits  👈 ### :art: Face to USA cartoon style ![](https://github.com/TachibanaYoshino/AnimeGANv3/blob/master/results/AnimeGANv3_USA/AnimeGANv3_USA_Trump.gif) ![](https://github.com/TachibanaYoshino/AnimeGANv3/blob/master/results/AnimeGANv3_USA/output.jpg) ___ ### :art: Face to Disney cartoon style ![](https://github.com/TachibanaYoshino/AnimeGANv3/blob/master/results/AnimeGANv3_Disney/pic.gif) ![](https://github.com/TachibanaYoshino/AnimeGANv3/blob/master/results/AnimeGANv3_Disney/output.jpg) ___ ### :art: Face to USA cartoon + Disney style ![](https://github.com/TachibanaYoshino/AnimeGANv3/blob/master/results/AnimeGANv3_Trump/AnimeGANv3_Trump_1pic.gif)
more surprise 👈 ![](https://github.com/TachibanaYoshino/AnimeGANv3/blob/master/results/AnimeGANv3_Trump/Trump_output.jpg)
___ ### :art: Face to Arcane style ![](https://github.com/TachibanaYoshino/AnimeGANv3/blob/master/results/AnimeGANv3_Arcane/AnimeGANv3_Arcane.gif) ![](https://github.com/TachibanaYoshino/AnimeGANv3/blob/master/results/AnimeGANv3_Arcane/AnimeGANv3_Arcane.jpg) ___ ### :art: Portrait to comic style ![](https://github.com/TachibanaYoshino/AnimeGANv3/blob/master/results/AnimeGANv3_comic/AnimeGANv3_comic.gif) ![](https://github.com/TachibanaYoshino/AnimeGANv3/blob/master/results/AnimeGANv3_comic/AnimeGANv3_comic.jpg) ___ ### :art: Face to Kpop style ![](https://github.com/TachibanaYoshino/AnimeGANv3/blob/master/results/AnimeGANv3_Kpop/AnimeGANv3_Kpop.gif) ![](https://github.com/TachibanaYoshino/AnimeGANv3/blob/master/results/AnimeGANv3_Kpop/AnimeGANv3_Kpop.jpg) ___ ### :art: Portrait to Oil-painting style ![](https://github.com/TachibanaYoshino/AnimeGANv3/blob/master/results/AnimeGANv3_oil-painting/AnimeGANv3_oil-painting.gif)
more surprise 👈 ![](https://github.com/TachibanaYoshino/AnimeGANv3/blob/master/results/AnimeGANv3_oil-painting/AnimeGANv3_oil-painting.jpg)
___ ### :art: Portrait to Cute style ![](https://github.com/TachibanaYoshino/AnimeGANv3/blob/master/results/AnimeGANv3_Cute/AnimeGANv3_Cute.gif) ![](https://github.com/TachibanaYoshino/AnimeGANv3/blob/master/results/AnimeGANv3_Cute/AnimeGANv3_Cute.jpg) ___ ### :art: Portrait to 8bit style ![](https://github.com/TachibanaYoshino/AnimeGANv3/blob/master/results/AnimeGANv3_8bit/AnimeGANv3_8bit.gif) ![](https://github.com/TachibanaYoshino/AnimeGANv3/blob/master/results/AnimeGANv3_8bit/AnimeGANv3_8bit.jpg) ___ ### :art: Portrait to Sketch-0 style ![](https://github.com/TachibanaYoshino/AnimeGANv3/blob/master/results/AnimeGANv3_Sketch-0/AnimeGANv3_Sketch-0.jpg) ___ ### :art: Face to portrait sketch [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/drive/1XYNWwM8Xq-U7KaTOqNap6A-Yq1f-V-FB?usp=sharing) | input | Face | panoramic image| | :-: |:-:| :-:| |||| ||||
more surprise 👈 ![](https://github.com/TachibanaYoshino/AnimeGANv3/blob/master/results/AnimeGANv3_Face2portrait_sketch/face2portrait_sketch.jpg)


🔨 Train

1. Download dataset and pretrained vgg19

  1. vgg19
  2. Hayao dataset
  3. Shinkai dataset
  4. photo dataset

2. Do edge_smooth

    cd tools && python edge_smooth.py --dataset Hayao --img_size 256

3. Do superPixel

    cd tools && python visual_superPixel_seg_image.py

4. Train

    python train.py --style_dataset Hayao --init_G_epoch 5 --epoch 100


✒️ Citation

Consider citing as below if you find this repository helpful to your project:

@article{Liu2024dtgan,
  title={A Novel Double-Tail Generative Adversarial Network for Fast Photo Animation},
  author={Gang LIU and Xin CHEN and Zhixiang GAO},
  journal={IEICE Transactions on Information and Systems},
  volume={E107.D},
  number={1},
  pages={72-82},
  year={2024},
  doi={10.1587/transinf.2023EDP7061}
}

:scroll: 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 AnimeGANv3 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.

:e-mail: Author

Asher Chan asher_chan@foxmail.com