Open rajendraranabhat opened 8 years ago
This code is working perfectly fine for me. Can you try to re-install tflearn?
I'm getting a similar error. Here's a link to the SO question I asked. http://stackoverflow.com/questions/40200311/tflearn-covnet-example-resulting-in-an-error-w-cifar-10
Are you using python notebooks?
same error here, while running quickstart tutorial on ipython notebook
Edit: restarting kernel solved the problem
Yeah. I've found when I run the session for the first time it works correctly but I get the index error when I tried to rerun the notebook cell. @cemysf I noticed that in ipython notebooks when using vanilla tensor flow that variables get namespaced to the number of iterations of the cell. My quick fix was to use tf.reset_default_graph()
at the top of the cell to clear all of the variables.
Perhaps it's worth submitting a PR to address this issue?
Restarting kernel solved my problem too.
For me , adding this line before any code do the trick: tf.reset_default_graph()
For me restarting kernel doesn't work, adding tf.reset_default_graph() does.
Restarting the kernel worked. I don't know why this is a recurring problem in Jupyter Notebooks. Some bug I suppose.
How do you restart a kernel?
Also: is there a function in tflearn that replaces tf.reset_default_graph()
?
Thank you
I used:
from tensorflow import reset_default_graph
reset_default_graph()
but same error is there:
ValueError: Index (16494) out of range (0-7127)
Worked for me! I ran
from tensorflow import reset_default_graph
reset_default_graph()
, then I reran the code that built the network. Then I ran the .fit
method.
I still get the same exact error, even with the from tensorflow import reset_default_graph & reset_default_graph().
I've restarted the kernel as well, no luck.
Funzione per me. Grazie!
from tensorflow import reset_default_graph reset_default_graph()
For me, it was working with jupyter-notebook and to tweak a model, I need to reset tensorflow graph by tf.reset_default_graph() every time.
I got the same error when using jupyter notebook, and restarting kernel solved the problem.
I am trying to run tflearn for simple mnist classification using MLP. I tried to other example and I am getting this error for almost all. I just started using TFlearn.
IndexError Traceback (most recent call last)