Datasets:

Languages:
English
ArXiv:
License:

PNG file corruption

#8
by Lingshaw - opened

The image file visdoc-tasks/esg_reports_human_labeled_v2/528.png appears to be corrupted.
When using Pillow version 10.1 or higher to load and save the image, the following error occurs:

OSError: image file is truncated

However, the image can still be opened normally with the default image viewer on Windows, macOS, or Linux.

It’s recommended that the author re-save the file using the following code to fix the issue:

from PIL import Image, ImageFile
ImageFile.LOAD_TRUNCATED_IMAGES = True

path = ".../MMEB-V2/visdoc-tasks/visdoc-tasks/esg_reports_human_labeled_v2/528.png"
img = Image.open(path)
img.save(path)

Hi, I encountered a similar issue. When I unzip the files from the visdoc-task, the process stops at visdoc-tasks/esg_reports_human_labeled_v2/528.png. Do you know how to work around this? Thank you!

image

The author uploaded a new file visdoc-tasks/visdoc-tasks.images.tar.gz recently. You can use this instead.

TIGER-Lab org

Thanks for the discussion! Please take another look and let me know if there are any errors at this point. (Feel free to reopen this issue if needed.)

Also, regarding VisDoc: all the images are already embedded in the Hugging Face table, so we technically don’t need a local copy for evaluation. We just included it here for completeness.

ziyjiang changed discussion status to closed

Sign up or log in to comment