Possibly corrupt EXIF data

During the lauch of C2_W2_Assignment.ipynb - Colaboratory (google.com) get the error below:

Epoch 1/15
1617/2250 [====================>…] - ETA: 2:29 - loss: 0.6755 - accuracy: 0.6022/usr/local/lib/python3.7/dist-packages/PIL/TiffImagePlugin.py:770: UserWarning: Possibly corrupt EXIF data. Expecting to read 32 bytes but only got 0. Skipping tag 270
" Skipping tag s" (size, len(data), tag)
/usr/local/lib/python3.7/dist-packages/PIL/TiffImagePlugin.py:770: UserWarning: Possibly corrupt EXIF data. Expecting to read 5 bytes but only got 0. Skipping tag 271
" Skipping tag s" (size, len(data), tag)
/usr/local/lib/python3.7/dist-packages/PIL/TiffImagePlugin.py:770: UserWarning: Possibly corrupt EXIF data. Expecting to read 8 bytes but only got 0. Skipping tag 272
" Skipping tag s" (size, len(data), tag)
/usr/local/lib/python3.7/dist-packages/PIL/TiffImagePlugin.py:770: UserWarning: Possibly corrupt EXIF data. Expecting to read 8 bytes but only got 0. Skipping tag 282
" Skipping tag s" (size, len(data), tag)
/usr/local/lib/python3.7/dist-packages/PIL/TiffImagePlugin.py:770: UserWarning: Possibly corrupt EXIF data. Expecting to read 8 bytes but only got 0. Skipping tag 283

Maybe is a bug ?? Ref: python - “UserWarning: Possibly corrupt EXIF data” while classifying images - Stack Overflow

Hi Edgar,

Thanks for heads up. This is a recurrent warning message you get when working in this field with image banks. EXIF data contains image metadata, where you took the photo, which date and so on.

As we are using image content for training - not the metadata - and that image is being processed, no worries this is not going to affect the result.

Best,

1 Like

Ok, thanks very much ! :slight_smile: