RuntimeError:Found 0 files in subfolders of:/home/PVT/datasets01/imagenet_full_size/061417/train Supported extensions are: .jpg,.jpeg,.png,.ppm,.bmp,.pgm,.tif,.tiff,.webp

RuntimeError:Found 0 files in subfolders of:/home/PVT/datasets01/imagenet_full_size/061417/train     Supported extensions are: .jpg,.jpeg,.png,.ppm,.bmp,.pgm,.tif,.tiff,.webp

 

报错原因:这个错误一般发生在调用torchvision.datasets.ImageFolder训练模型读取数据时,主要原因是数据存储路径与数据读取路径不一致。

解决方法:

RuntimeError:Found 0 files in subfolders of:/home/PVT/datasets01/imagenet_full_size/061417/train     Supported extensions are: .jpg,.jpeg,.png,.ppm,.bmp,.pgm,.tif,.tiff,.webp

 

 RuntimeError:Found 0 files in subfolders of:/home/PVT/datasets01/imagenet_full_size/061417/train     Supported extensions are: .jpg,.jpeg,.png,.ppm,.bmp,.pgm,.tif,.tiff,.webp

 

 路径改为一致

RuntimeError:Found 0 files in subfolders of:/home/PVT/datasets01/imagenet_full_size/061417/train Supported extensions are: .jpg,.jpeg,.png,.ppm,.bmp,.pgm,.tif,.tiff,.webp

上一篇:webpackage.config.js


下一篇:CSS(二)