1.terminal里已经可import torchvision了,为什么Spyder里还是不能import torchvision

重启。

2.

trainset = torchvision.datasets.CIFAR10(root= '~/data',train=True, download=False, transform=transform) 把download 改成false,因为直接下太慢

3.

root 改成你解压的地址:

root='/home/msx/Documents'

4.truncated gzip input

文件不完整。

5.

%matplotlib inline invalid syntax
matplotlib inline是把图输出在控制台里不要弹出窗口。
The %matplotlib inline is an ipython extension. It will only work if exectuded from an ipython shell (just run ipython) or from an jupyter notboke

 6.看变量值

中间又不输出的变量自己输出一下


 

 

相关文章:

  • 2021-09-25
  • 1970-01-01
  • 2021-07-01
  • 2021-11-19
  • 2021-06-11
  • 2021-12-07
  • 2021-05-20
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-10-12
  • 2021-06-23
  • 2022-12-23
  • 2022-02-01
  • 2021-11-29
相关资源
相似解决方案