Skip to content

katsunoriohnishi/chainer-stackgan

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Chainer-StackGAN

Chainer implementation of StackGAN on CUB

"StackGAN: Text to Photo-realistic Image Synthesis with Stacked Generative Adversarial Networks," Han Zhang, Tao Xu, Hongsheng Li, Shaoting Zhang, Xiaolei Huang, Xiaogang Wang, Dimitris Metaxas, arXiv:1612.03242. https://arxiv.org/abs/1612.03242
Original code: https://github.com/hanzhanggit/StackGAN

Requirements

Test

Quick Demo

  1. Download text features from https://drive.google.com/open?id=0B3y_msrWZaXLT1BZdVdycDY5TEE and save it to data/
  2. Download pretrained weights from https://drive.google.com/drive/folders/0B6nc1VY-iOPZU0w2OVZBMGx3cTQ?usp=sharing and save them to models/
  3. cd stage2
  4. python demo.py -g=0

Pretrained Weights

Download pretrained weights from my google drive https://drive.google.com/drive/folders/0B6nc1VY-iOPZU0w2OVZBMGx3cTQ?usp=sharing Put them on models/

Example result on CUB

  • stage1
    stage1_test
  • stage2
    stage2_test

todo

  • multi gpu

Dataset

See original code of StackGAN to prepare CUB dataset

python StackGAN/misc/preprocess_birds.py

Train

cd stage1
python train_stackgan.py -g=0 
cd stage2
python train_stackgan.py -g=0 -s1w=path/to/stage1/gen_epoch_600.npz

Releases

No releases published

Packages

No packages published

Languages