flower icon indicating copy to clipboard operation
flower copied to clipboard

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

Open ajulyav opened this issue 1 year ago • 1 comments

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"):

ajulyav avatar Jun 28 '24 11:06 ajulyav

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

danieljanes avatar Jun 28 '24 22:06 danieljanes

After running the following command, pip install pillow==9.4.0 the error does not occur!

sunyeongan avatar Aug 27 '24 11:08 sunyeongan