[Pytorch] Error when downloading CIFAR10 data set: urllib.error.URLError: <urlopen error name: https>

When using Pytorch to download CIFAR10, I encountered an error, which
Insert image description here
may be caused by a particularly slow network. Generally, you will encounter this error.
Solution:
1. Go to the official website to download the compressed package directly and unzip it.
After decompressing http://www.cs.utoronto.ca/~kriz/cifar.html
Insert image description here
, place it in the corresponding directory file and run the code again to succeed.
Insert image description here
Insert image description here

Guess you like

Origin blog.csdn.net/qq_30353203/article/details/132090473