当前位置:网站首页>RuntimeError: Dataset not found or corrupted. You can use download=True to download it

RuntimeError: Dataset not found or corrupted. You can use download=True to download it

2022-06-09 06:20:00 GodGump

Add parameters to the call of the corresponding data set download=True that will do
For example, my error code :

train = CIFAR10(root='data', train=True, transform=Compose([ToTensor()]), download=True)

Rewrite to this

train = CIFAR10(root='data', train=True, transform=Compose([ToTensor()]), download=True)
原网站

版权声明
本文为[GodGump]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/160/202206090614049151.html