解决pytorch加载FashionMNIST 数据集的问题

  使用FashionMNIST运行的时候,总是出现“  RuntimeError: Dataset not found. You can use download=True to download it”,怎么修改路径都不行。经过测试做以下说明,避免更多人踩坑。

1、如果路径为 root='./Datasets',一定要在该路径下建立\FashionMNIST\raw文件夹。

2、下载的4个GZ文件,类似train-images-idx3-ubyte.gz,一定要解压为train-images-idx3-ubyte文件,然后放在上面目录里。

你可能感兴趣的:(pytorch)