ikostrikov / TensorFlow-VAE-GAN-DRAW

A collection of generative methods implemented with TensorFlow (Deep Convolutional Generative Adversarial Networks (DCGAN), Variational Autoencoder (VAE) and DRAW: A Recurrent Neural Network For Image Generation).
Apache License 2.0
595 stars 167 forks source link

ProgressBar issue #8

Closed tsitsilin closed 7 years ago

tsitsilin commented 8 years ago

I downloaded the package and upgraded TensorFlow to v0.9. However, the first test run did not work:

python main-vae.py -- working_directory /tmp/gan
Successfully downloaded train-images-idx3-ubyte.gz 9912422 bytes.
Extracting MNIST/train-images-idx3-ubyte.gz
Successfully downloaded train-labels-idx1-ubyte.gz 28881 bytes.
Extracting MNIST/train-labels-idx1-ubyte.gz
Successfully downloaded t10k-images-idx3-ubyte.gz 1648877 bytes.
Extracting MNIST/t10k-images-idx3-ubyte.gz
Successfully downloaded t10k-labels-idx1-ubyte.gz 4542 bytes.
Extracting MNIST/t10k-labels-idx1-ubyte.gz
Traceback (most recent call last):
  File "main-vae.py", line 143, in <module>
    pbar = ProgressBar(max_value = FLAGS.updates_per_epoch, widgets=widgets)
TypeError: __init__() got an unexpected keyword argument 'max_value'

Apparently, something was changed in the ProgressBar package recently. Quick look at the examples revealed that maxval arg should be used rather than max_value. Original: pbar = ProgressBar(max_value = FLAGS.updates_per_epoch, widgets=widgets) Modified: pbar = ProgressBar(maxval = FLAGS.updates_per_epoch, widgets=widgets) With this fix the package seems to work.

tigerneil commented 8 years ago

thanks @tsitsilin

baniyan commented 7 years ago

This helped me. @tsitsilin