PyTorch ImageFolder: RuntimeError: Found 0 files in subfolders of

 Here's a quick solution to the following torch vision image folder error.

RuntimeError: Found 0 files in subfolders of:

Supported extensions are: .jpg,.jpeg,.png,.ppm,.bmp,.pgm,.tif,.tiff,.webp

Make sure your files are in the following structure:

/root/

    - class1/

        - 1.PNG

        - 2.PNG

    - class2/

        - 2.PNG

        - 2.PNG

Post a Comment

0 Comments