Skip to content

A PyTorch implementation of Conditional Analogy GAN combines with StackGAN-v2

License

Notifications You must be signed in to change notification settings

maktu6/CAGAN_v2_pytorch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 

Repository files navigation

CAGAN_v2_pytorch

A PyTorch implementation of The Conditional Analogy GAN combined with StackGAN-v2
Code based on the original implementation in keras
The following repositories were also referenced:

Prerequisites

  • Python 3.6
  • PyTorch 0.4.0
  • Visdom

Description

Data

The dataset is just same as here and the folder of dataset is structured as follows:

├── data
    ├── imgs_test
    │   ├── 1
    │   └── 5
    └── imgs_train
        ├── 1
        └── 5

Train

  • Open a visdom server
python -m visdom.server
  • Train a model
python main.py

Test

Use trained model to generate images and calculate IS score

python main.py --mode test --model_dir logs/origin/model_weight

About

A PyTorch implementation of Conditional Analogy GAN combines with StackGAN-v2

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages