I am replicating GoogLeNet using tensor flow, the dataset is Oxford Flower 17.
Here is my code.
# This code is implementation of GoogLeNet, which is proposed in "https://www.cs.unc.edu/~wliu/papers/GoogLeNet.pdf"
Here is the error log.
File "/home/mh0205/GoogLeNet/googlenet.py", line 443, in sess.run (pred, feed_dict = {x: testX [test_indices], y: testY [test_indices], keep_prob: 1.0}))) # changed using the minho file "/home/mh0205/anaconda2/lib/python2.7/site-packages/tensorflow/python/client/session.py", line 1159, to output self._default_graph_context_manager. exit (exec_type, exec_value, exec_tb) File "/home/mh0205/anaconda2/lib/python2.7/contextlib.py", line 35, in Output self.gen.throw (type, value, trace) File "/ home / mh0205 / anaconda2 / lib / python2.7 / site-packages / tensorflow / python / framework / ops.py ", line 3671, in get_controller if self.stack [-1] is not the default value: IndexError: index index is out of range
I can not fix the error. Please help me.
source share