torchvision.datasets.ImageFolder code here it seems like
tiff is not supported. This seems like a small bug, since
tiff without problems?
You can always copy the source I just linked and add
tiff extension to
IMG_EXTENSIONS, it should then work without issues?
As a hacky workaround:
from torchvision.datasets import ImageFolder
from torchvision.datasets.folder import IMG_EXTENSIONS
len(ImageFolder("/tmp/test/")) # prints 1
len(ImageFolder("/tmp/test/")) # prints 2