GithubHelp home page GithubHelp logo

anime2clothing's Introduction

Anime2Clothing

report Open In Colab

Pytorch official implementation of Anime to Real Clothing: Cosplay Costume Generation via Image-to-Image Translation. (https://arxiv.org/abs/2008.11479)

Prerequisites

  • Anaconda 3
  • Python 3
  • CPU or NVIDIA GPU + CUDA CuDNN

Getting Started

Training

python train.py --project_name cosplay_synthesis --dataset DATASET

Training dataset structure

DATASET
├── train
│    ├── a
│    │   ├── 0.png
│    │   ├── 1.png
│    │      ︙
│    |   └── n.png
│    └── b
│        ├── 0.png
│        ├── 1.png
│           ︙
│        └── n.png
└── test
     ├── a
     │   ├── 0.png
     │   ├── 1.png
     │      ︙
     |   └── n.png
     └── b
         ├── 0.png
         ├── 1.png
            ︙
         └── n.png

Continue Training

Add continue_train option, and you can control starting epoch and resolution. Basically, model load from latest checkpoints. However, you can choose number of epoch if you use --load_epoch option.

--continue_train --start_epoch 47 --start_resolution 256

Testing

python test.py --model_path models/pretrained_model.pth --input_dir dataset/test/a --output_dir result

Pre-trained model

You can download pre-trained model from models/pretrained_unet_20200122.pth

We recommend using an anime character image with a simple background as the input image.

Acknowledgments

Our code is inspired by pix2pix and pix2pixHD

anime2clothing's People

Contributors

tan5o avatar efferifick avatar

Watchers

 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.