Handling decoding errors such as UnidentifiedImageError

John6666
Wed, 05 Feb 2025 14:44:59 +0000

I found a similar case.

huggingface.co

aharley/rvl_cdip · UserWarning: Corrupt EXIF data. Expecting to read 2 bytes...

When I used the test set, I found that there was an error when I got the test set sample， code: dataset = load_dataset(dataset_name, split='test') print(dataset[33669]) output: lib/python3.7/site-p...