Code Monkey home page Code Monkey logo

animegan_pytorch-v2-new's Introduction

AnimeGAN

「Open Source」. The pytorch implementation of AnimeGAN.
「动画风格生成,用AI拍出一部属于自己的动漫」

数据集

下载地址
训练数据结构设计

|_datasets  
|__animegan  
|___Shinkai(画家风格)  
|_____train(训练数据)  
|________real(真实数据)  
|________style(风格数据)  
|________smooth(经过处理的风格数据)  
|_____test(测试数据)  
|________real(真实数据)  

训练

# 单卡
python tools/train_net.py \
--config-file "path/to/config" \
SOLVER.IMS_PER_BATCH 8

# 多卡
python -m torch.distributed.launch --nproc_per_node=8 \
/tools/train_net.py \
--config-file "path/to/config" \
SOLVER.IMS_PER_BATCH 8

模型下载

图片转换

# --config-path 配置文件路径
# --image 图像路径
# MODEL.WEIGHT 模型文件路径
python scripts/image2anime.py \
--config-file "your_config_path" \
--image "your_image_path" \
MODEL.WEIGHT "your_model_path"

视频转换

# --config-path 配置文件路径
# --video 视频路径
# MODEL.WEIGHT 模型文件路径
python scripts/image2anime.py \
--config-file "your_config_path" \
--video "your_video_path" \
MODEL.WEIGHT "your_model_path"

demo

😍 Photo to Shinkai Style 😍 Photo to Hayao Style

兴趣小组

添加好友,申请进群

Thanks

Thanks for TachibanaYoshino

animegan_pytorch-v2-new's People

Contributors

wan-h avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.