About ImageFolder

I use datasets.ImageFolder ,but get this result :slight_smile:

RuntimeError: Found 0 images in subfolders of: /home/ctl/PycharmProjects/untitled/cat_dog/train
Supported image extensions are: .jpg,.JPG,.jpeg,.JPEG,.png,.PNG,.ppm,.PPM,.bmp,.BMP

but my picture is .jpg. … what’s wrong?

Does /home/ctl/PycharmProjects/untitled/cat_dog/train has subfolders?

i.e.

/home/ctl/PycharmProjects/untitled/cat_dog/train/cat
/home/ctl/PycharmProjects/untitled/cat_dog/train/dog

1 Like