Datasets:

ArXiv:
License:

AttributeError: module 'PIL.Image' has no attribute 'ExifTags'.

#2
by geekyrakshit - opened

I attempted to download and analyze the dataset using the datasets library using the following code:

from datasets import load_dataset

dataset_dict = load_dataset("HuggingFaceM4/COCO")["train"]
print(dataset_dict[0])

Running the above code gets me the following error:

AttributeError: module 'PIL.Image' has no attribute 'ExifTags'. Did you mean: 'TiffTags'?

I'm using datasets==2.21.0.

pip install Pillow==9.4.0

Sign up or log in to comment