Skip to content
Branch: master
Find file History
vfdev-5 and zhreshold Update README.md (#756)
* Update README.md

* Update README.md

* Update README.md
Latest commit 59fa12d Apr 26, 2019
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
README.md
demo_cycle_gan.py Cycle Gan (#354) Dec 19, 2018
download_dataset.py
images.png
train_cgan.py

README.md

Reproducing Cycle GAN experiments

Download horse2zebra dataset

python ./download_dataset.py --download-dir . --file horse2zebra

Monitoring loss values and images during training

pip install mxboard
tensorboard --logdir=./logs --host=127.0.0.1 --port=8888

Details about mxboard is in mxboard

Train Cycle GAN

python train_cgan.py --dataroot ./horse2zebra

Test Cycle GAN

for horse to zebra model:

python demo_cycle_gan.py --images ./horse2zebra/testA/n02391049_10160.jpg --pretrained ./samples/netG_A_epoch_200.params --gpu_id -1

for zebra to horse model:

python demo_cycle_gan.py --images ./horse2zebra/testA/n02391049_10160.jpg --pretrained ./samples/netG_A_epoch_200.params --gpu_id -1

images

images The meaning of those images are :

real_A(from dataset) fake_B(generate from real_A) rec_A(reconstruct from fake_B) idt_A(generate from real_B)
real_B(from dataset) fake_A(generate from real_A) rec_B(reconstruct from fake_A) idt_B(generate from real_A)

References

"Cycle GAN"

You can’t perform that action at this time.