PyTorch Forums
TypeError: img should be PIL Image. Got <class ‘str’>
ptrblck
July 4, 2019, 12:13pm
5
Could you post the following outputs:
print(image) print(type(image)) image = Image.open(image)
AttributeError: 'JpegImageFile' object has no attribute 'read'
show post in topic