https://github.com/nashory/text2image-benchmark
Performance comparison of existing GAN based Text To Image algorithms. (GAN-CLS, StackGAN, TAC-GAN)
https://github.com/nashory/text2image-benchmark
benchmark generative-adversarial-network image tensorflow text text2image
Last synced: about 1 year ago
JSON representation
Performance comparison of existing GAN based Text To Image algorithms. (GAN-CLS, StackGAN, TAC-GAN)
- Host: GitHub
- URL: https://github.com/nashory/text2image-benchmark
- Owner: nashory
- Created: 2017-10-11T02:35:34.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-10-25T02:17:40.000Z (over 8 years ago)
- Last Synced: 2025-04-02T20:38:31.828Z (about 1 year ago)
- Topics: benchmark, generative-adversarial-network, image, tensorflow, text, text2image
- Language: Python
- Size: 94.7 KB
- Stars: 29
- Watchers: 3
- Forks: 14
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# text2image-benchmark
Performance comparison of existing GAN based Text To Image algorithms. (GAN-CLS, StackGAN, TAC-GAN)
__Note: The codes in algorithms folder is brought from the respective author's repo, not written by me.__
## Bug fixed.
+ StackGAN:
+ modified requirements.txt to avoid environemnt conflict.
+ used tensorflow 1.0.1 version instead of 0.12.0, to avoid `tf.zeros_initializer()` error.
+ change the argument order of tf.concat to avoid type mismatch error. [[see here]](https://github.com/google/prettytensor/issues/48)
+ added folder/file creation code to automatically create Data/birds/example_captions.txt file.
(please add example sentences to example_captions.txt file, otherwise there will be error.)
+ GAN-CLS:
+ used tensorflow 0.11.0 version instead of 0.12.0, to avoidi `get_variable()` error.
~~~
(you may need to manually do this to install tensorflow 0.11.0 version using pip)
export TF_BINARY_URL=https://storage.googleapis.com/tensorflow/linux/gpu/tensorflow-0.11.0-cp27-none-linux_x86_64.whl
sudo pip install --upgrade $TF_BINARY_URL
~~~
## How to run?
+ StackGAN
~~~
. venv/bin/activate
python demo/birds_skip_thought_demo.py --cfg demo/cfg/birds-skip-thought-demo.yml --gpu 0 --caption_path
~~~