tensorflow.python.framework.errors_impl.OutOfRangeError: End of sequence When Using Custom Dataset
Hello, I am new and trying to train a resnet18 model with your code using my custom dataset (8 classes).
I made changes in a config file (train_scratch.sh). And I got the error below when start training (at 0 step).
Traceback (most recent call last): File "/usr/local/lib/python3.6/dist-packages/tensorflow/python/client/session.py", line 1334, in _do_call return fn(*args) File "/usr/local/lib/python3.6/dist-packages/tensorflow/python/client/session.py", line 1319, in _run_fn options, feed_dict, fetch_list, target_list, run_metadata) File "/usr/local/lib/python3.6/dist-packages/tensorflow/python/client/session.py", line 1407, in _call_tf_sessionrun run_metadata) tensorflow.python.framework.errors_impl.OutOfRangeError: End of sequence [[{{node IteratorGetNext}} = IteratorGetNextoutput_shapes=[[?,224,224,3], [?]], output_types=[DT_FLOAT, DT_INT32], _device="/device:CPU:0"]] [[{{node train_image/ExperimentalFunctionBufferingResourceGetNext_1}} = ExperimentalFunctionBufferingResourceGetNextoutput_types=[DT_FLOAT, DT_INT32], _device="/job:localhost/replica:0/task:0/device:GPU:1"]]
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "train.py", line 263, in
My tensorflow version is 1.12 and Python 3.6.
Let me know if more info / codes are needed. Thank you in advance!