Error
In some cases when opening the record file the following error turns up.
OSError: image file is truncated (46 bytes not processed) Solution
In the file ~/tfrecord-viewer/overlays/detection_overlay.py
Add the following statements to the top
import io from PIL import Image, ImageDraw, ImageFont, ImageFile ImageFile.LOAD_TRUNCATED_IMAGES = True Referenceshttps://stackoverflow.com/questions/12984426/python-pil-ioerror-image-file-truncated-with-big-images
Error In some cases when opening the record file the following error turns up.
OSError: image file is truncated (46 bytes not processed)
Solution In the file ~/tfrecord-viewer/overlays/detection_overlay.py Add the following statements to the topimport io from PIL import Image, ImageDraw, ImageFont, ImageFile ImageFile.LOAD_TRUNCATED_IMAGES = True
References https://stackoverflow.com/questions/12984426/python-pil-ioerror-image-file-truncated-with-big-images