This is the error I am getting when trying to train my model. I am not sure how to interpret this.
UnknownError: Graph execution error:
2 root error(s) found.
(0) UNKNOWN: UnidentifiedImageError: cannot identify image file <_io.BytesIO object at 0x7f487ae83e90>
Traceback (most recent call last):
File “/usr/local/lib/python3.7/dist-packages/tensorflow/python/ops/script_ops.py”, line 271, in call
ret = func(*args)
File “/usr/local/lib/python3.7/dist-packages/tensorflow/python/autograph/impl/api.py”, line 642, in wrapper
return func(*args, **kwargs)
File “/usr/local/lib/python3.7/dist-packages/tensorflow/python/data/ops/dataset_ops.py”, line 1004, in generator_py_func
values = next(generator_state.get_iterator(iterator_id))
File “/usr/local/lib/python3.7/dist-packages/keras/engine/data_adapter.py”, line 830, in wrapped_generator
for data in generator_fn():
File “/usr/local/lib/python3.7/dist-packages/keras/engine/data_adapter.py”, line 956, in generator_fn
yield x[i]
File “/usr/local/lib/python3.7/dist-packages/keras_preprocessing/image/iterator.py”, line 65, in getitem
return self._get_batches_of_transformed_samples(index_array)
File “/usr/local/lib/python3.7/dist-packages/keras_preprocessing/image/iterator.py”, line 230, in _get_batches_of_transformed_samples
interpolation=self.interpolation)
File “/usr/local/lib/python3.7/dist-packages/keras_preprocessing/image/utils.py”, line 114, in load_img
img = pil_image.open(io.BytesIO(f.read()))
File “/usr/local/lib/python3.7/dist-packages/PIL/Image.py”, line 2896, in open
"cannot identify image file r" (filename if filename else fp)
PIL.UnidentifiedImageError: cannot identify image file <_io.BytesIO object at 0x7f487ae83e90>
[[{{node PyFunc}}]]
[[IteratorGetNext]]
[[IteratorGetNext/_4]]
(1) UNKNOWN: UnidentifiedImageError: cannot identify image file <_io.BytesIO object at 0x7f487ae83e90>
Traceback (most recent call last):
File “/usr/local/lib/python3.7/dist-packages/tensorflow/python/ops/script_ops.py”, line 271, in call
ret = func(*args)
File “/usr/local/lib/python3.7/dist-packages/tensorflow/python/autograph/impl/api.py”, line 642, in wrapper
return func(*args, **kwargs)
File “/usr/local/lib/python3.7/dist-packages/tensorflow/python/data/ops/dataset_ops.py”, line 1004, in generator_py_func
values = next(generator_state.get_iterator(iterator_id))
File “/usr/local/lib/python3.7/dist-packages/keras/engine/data_adapter.py”, line 830, in wrapped_generator
for data in generator_fn():
File “/usr/local/lib/python3.7/dist-packages/keras/engine/data_adapter.py”, line 956, in generator_fn
yield x[i]
File “/usr/local/lib/python3.7/dist-packages/keras_preprocessing/image/iterator.py”, line 65, in getitem
return self._get_batches_of_transformed_samples(index_array)
File “/usr/local/lib/python3.7/dist-packages/keras_preprocessing/image/iterator.py”, line 230, in _get_batches_of_transformed_samples
interpolation=self.interpolation)
File “/usr/local/lib/python3.7/dist-packages/keras_preprocessing/image/utils.py”, line 114, in load_img
img = pil_image.open(io.BytesIO(f.read()))
File “/usr/local/lib/python3.7/dist-packages/PIL/Image.py”, line 2896, in open
"cannot identify image file r" (filename if filename else fp)
PIL.UnidentifiedImageError: cannot identify image file <_io.BytesIO object at 0x7f487ae83e90>
[[{{node PyFunc}}]]
[[IteratorGetNext]]
0 successful operations.
0 derived errors ignored. [Op:__inference_train_function_17012]