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

Index out of range error in data_loader_coco.py #35

Open
SoCohesive opened this issue Feb 5, 2019 · 0 comments
Open

Index out of range error in data_loader_coco.py #35

SoCohesive opened this issue Feb 5, 2019 · 0 comments

Comments

@SoCohesive
Copy link

SoCohesive commented Feb 5, 2019

When running run_train_gpu.sh after following the installation steps I get this error;

File data_loader_coco.py", line 129, in _parse_function
filename = filename_item_list[1] +'/' + filename_item_list[2]

IndexError: list index out of range
[[Node: PyFunc = PyFuncTin=[DT_INT32], Tout=[DT_FLOAT, DT_FLOAT], token="pyfunc_0", _device="/device:CPU:0"]]
[[Node: IteratorGetNext = IteratorGetNextoutput_shapes=[[192,256,256,3], [192,64,64,4]], output_types=[DT_FLOAT, DT_FLOAT], _device="/job:localhost/replica:0/task:0/device:CPU:0"]]

Traceback:
run_metadata=run_metadata)
File "/usr/local/lib/python2.7/site-packages/tensorflow/python/training/monitored_session.py", line 1144, in run
raise six.reraise(*original_exc_info)
File "/usr/local/lib/python2.7/site-packages/tensorflow/python/training/monitored_session.py", line 1129, in run
return self._sess.run(*args, **kwargs)
File "/usr/local/lib/python2.7/site-packages/tensorflow/python/training/monitored_session.py", line 1201, in run
run_metadata=run_metadata)
File "/usr/local/lib/python2.7/site-packages/tensorflow/python/training/monitored_session.py", line 981, in run
return self._sess.run(*args, **kwargs)
File "/usr/local/lib/python2.7/site-packages/tensorflow/python/client/session.py", line 900, in run
run_metadata_ptr)
File "/usr/local/lib/python2.7/site-packages/tensorflow/python/client/session.py", line 1135, in _run
feed_dict_tensor, options, run_metadata)
File "/usr/local/lib/python2.7/site-packages/tensorflow/python/client/session.py", line 1316, in _do_run
run_metadata)
File "/usr/local/lib/python2.7/site-packages/tensorflow/python/client/session.py", line 1335, in _do_call
raise type(e)(node_def, op, message)
tensorflow.python.framework.errors_impl.UnknownError: exceptions.IndexError: list index out of range
Traceback (most recent call last):

File "/usr/local/lib/python2.7/site-packages/tensorflow/python/ops/script_ops.py", line 158, in call
ret = func(*args)

File "/Users/sonam/dont-be-turtle/tfmodules/data_loader_coco.py", line 131, in _parse_function
filename = filename_item_list[1] +'/' + filename_item_list[2]

My datasource is correctly annotated with the correct number of images.
Installed all dependencies listed in requirements.txt
Running Python 2.7
macOS High Sierra

Have you encountered this error before in this script? How can I resolve this issue

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

1 participant