原因可能是pytorch的版本和torchvision版本不匹配。
比如:pytorch的版本如果是1.0,那么对应的torchvision的版本应该是0.2.0.
安装pytorch1.0 要对应安装torchvision0.2.0
pip install torchvision==0.2.0
原因可能是pytorch的版本和torchvision版本不匹配。
比如:pytorch的版本如果是1.0,那么对应的torchvision的版本应该是0.2.0.
安装pytorch1.0 要对应安装torchvision0.2.0
pip install torchvision==0.2.0