I'm running a binary classifier of 21250 images (total for the 2 classes). My batch size is at 425 with steps at 50.
When I run the model I get the following error:
UnknownError: 2 root error(s) found.
(0) Unknown: UnidentifiedImageError: cannot identify image file <_io.BytesIO object at 0x0000019FA183C8B0>
Traceback (most recent call last):
From what I understand, the image here could be corrupt or the image cannot be read for other reasons. Is there a way to get the trainer to skip images that are not identifiable?
Please do let me know other suggestions to consider in my code/ data to fix this problem.