Datasets:
PNG file corruption
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)
The author uploaded a new file visdoc-tasks/visdoc-tasks.images.tar.gz recently. You can use this instead.
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.
