flower
flower copied to clipboard
AttributeError: module 'PIL.Image' has no attribute 'ExifTags'
What is your question?
When running an example of examples/quickstart-pytorch, it shows the error of AttributeError: module 'PIL.Image' has no attribute 'ExifTags'
all dependencies are installed, i.e. tqdm==4.66.3, PIL == 9.3.0
The error pops up at the line: for batch in tqdm(trainloader, "Training"): for batch in tqdm(testloader, "Testing"):
This might be due to an old version of PIL, could you try installing PIL >= 9.4.0?
Related: https://github.com/huggingface/datasets/issues/6881
After running the following command, pip install pillow==9.4.0
the error does not occur!