Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ProgressBar issue #8

Closed
tsitsilin opened this issue Jun 10, 2016 · 2 comments
Closed

ProgressBar issue #8

tsitsilin opened this issue Jun 10, 2016 · 2 comments

Comments

@tsitsilin
Copy link

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
Copy link

thanks @tsitsilin

@baniyan
Copy link

baniyan commented Apr 19, 2017

This helped me. @tsitsilin

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants