Giter VIP home page Giter VIP logo

zstgan-pytorch's Introduction

ZstGAN-PyTorch

PyTorch Implementation of "ZstGAN: An Adversarial Approach for Unsupervised Zero-Shot Image-to-Image Translation"

Dependency:

Python 3.6

PyTorch 0.4.0

Usage:

Unsupervised Zero-Shot Image-to-Image Transaltion

  1. Downloading CUB and FLO training and testing dataset following CUB and FLO with password n6qd. Or you can follow the StackGAN to prepare these two datasets.

  2. Unzip the Data.zip and organize the CUB and FLO training and testing sets as:

    Data
    ├── flowers
    |   ├── train
    |   ├── test
    |   └── ...
    ├── birds
        ├── train
        ├── test
        └── ...
    
  3. Train ZstGAN on seen domains of FLO:

    $ python main.py --mode train --model_dir flower --datadir Data/flowers/ --c_dim 102 --batch_size 8 --nz_num 312 --ft_num 2048 --lambda_mut 200

  4. Train ZstGAN on seen domains of CUB:

    $ python main.py --mode train --model_dir bird --datadir Data/birds/ --c_dim 200 --batch_size 8 --nz_num 312 --ft_num 2048 --lambda_mut 50

  5. Test ZstGAN on unseen domains of FLO at iteration 200000:

    $ python main.py --mode test --model_dir flower --datadir Data/flowers/ --c_dim 102 --test_iters 200000

  6. Test ZstGAN on unseen domains of CUB at iteration 200000:

    $ python main.py --mode test --model_dir bird --datadir Data/birds/ --c_dim 200 --test_iters 200000

Results:

1. Image translation on unseen domains of FLO at iterations 150000:

# Results of V-ZstGAN:

# Results of A-ZstGAN:

2. Image translation on unseen domains of CUB at iterations 150000:

# Results of V-ZstGAN:

# Results of A-ZstGAN:

zstgan-pytorch's People

Contributors

linjx-ustc1106 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.