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

list index out of range #7

Open
oguz417 opened this issue Jan 18, 2021 · 2 comments
Open

list index out of range #7

oguz417 opened this issue Jan 18, 2021 · 2 comments

Comments

@oguz417
Copy link

oguz417 commented Jan 18, 2021

"Generate Adversarial Sample" button does not respond.
Meanwhile, the command windows displays this error:
.
x = tf.get_collection('mnist')[0]
IndexError: list index out of range

It seems like tf.get_collection('mnist') returns an empty list.

@apnorton
Copy link
Collaborator

What version of TensorFlow are you running? It seems that the get_collection function has been removed in TensorFlow 2

@oguz417
Copy link
Author

oguz417 commented Jan 19, 2021

Quick answer: tensorflow-gpu==1.15.4

Detailed answer:

  • I created a new conda env with python 3.6.2 (this is a version which supports downloading tf 1.15.4)
  • I strictly follow the Readme.md directions.
  • numpy version causes a problem, thus I update its version from 1.12.1 to 1.16.0.

So this is the requirements.txt I used (which is exactly the same with the original except Numpy):
Flask==1.0
matplotlib==2.0.0
numpy==1.16.0
pandas==0.19.2
scipy==0.19.0
tensorflow-gpu==1.15.4
Theano==0.9.0

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

2 participants