1. 重装pytorch 1.9.0
命令如下:conda install pytorch==1.9.0 torchvision==0.10.0 torchaudio==0.9.0 cudatoolkit=11.3 -c pytorch -c conda-forge
2.参照
https://www.cnblogs.com/xuanyuyt/p/11430374.html#_label3
3.demo.py遇到错误urllib.error.HTTPError: HTTP Error 404: Not Found
解决方法:https://blog.csdn.net/weixin_43903091/article/details/105842596
4. AssertionError: Torch not compiled with CUDA enabled
错误原因:解释器默认的是python 3.7 CPU版本
阅读(473) | 评论(0) | 转发(0) |