MCPcopy
hub / github.com/TachibanaYoshino/AnimeGANv2

github.com/TachibanaYoshino/AnimeGANv2 @1.1 sqlite

repository ↗ · DeepWiki ↗ · release 1.1 ↗
34 symbols 106 edges 6 files 3 documented · 9%
README

AnimeGANv2

[Open Source]. The improved version of AnimeGAN.
Landscape photos/videos to anime


Focus:

Anime style Film Picture Number Quality Download Style Dataset
Miyazaki Hayao The Wind Rises 1752 1080p Link
Makoto Shinkai Your Name & Weathering with you 1445 BD
Kon Satoshi Paprika 1284 BDRip

     Different styles of training have different loss weights!

News:

The improvement directions of AnimeGANv2 mainly include the following 4 points:  
  • [x] 1. Solve the problem of high-frequency artifacts in the generated image.
  • [x] 2. It is easy to train and directly achieve the effects in the paper.
  • [x] 3. Further reduce the number of parameters of the generator network. (generator size: 8.17 Mb)
  • [x] 4. Use new high-quality style data, which come from BD movies as much as possible.

      AnimeGAN can be accessed from here.


Requirements

  • python 3.6
  • tensorflow-gpu
  • tensorflow-gpu 1.8.0 (ubuntu, GPU 1080Ti or Titan xp, cuda 9.0, cudnn 7.1.3)
  • tensorflow-gpu 1.15.0 (ubuntu, GPU 2080Ti, cuda 10.0.130, cudnn 7.6.0)
  • opencv
  • tqdm
  • numpy
  • glob
  • argparse

Usage

1. Inference

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

2. Convert video to anime

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


Results


:heart_eyes: Photo to Paprika Style













:heart_eyes: Photo to Hayao Style













:heart_eyes: Photo to Shinkai Style











Core symbols most depended-on inside this repo

Conv2DNormLReLU
called by 12
net/generator.py
InvertedRes_block
called by 4
net/generator.py
preprocessing
called by 3
tools/utils.py
read_img
called by 3
tools/adjust_brightness.py
adjust_brightness_from_src_to_dst
called by 3
tools/adjust_brightness.py
layer_norm
called by 3
net/generator.py
Conv2D
called by 3
net/generator.py
getfileloc
called by 2
video2anime.py

Shape

Function 31
Method 2
Class 1

Languages

Python100%

Modules by API surface

net/generator.py12 symbols
tools/utils.py9 symbols
video2anime.py5 symbols
tools/adjust_brightness.py3 symbols
test.py3 symbols
tools/concat.py2 symbols

For agents

$ claude mcp add AnimeGANv2 \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact