项目源码地址:https://github.com/leftthomas/espcn
1.pycharm中的Terminal终端使用虚拟环境并切换项目路径运行项目
解决方法:
参考:PyCharm Terminal 进入虚拟环境运行
pycharm中的—Terminal终端–使用虚拟环境并切换项目路径----运行项目
2.报错AttributeError: module ‘torchvision.transforms’ has no attribute ‘Scale’
解决方法:
参考:AttributeError: module ‘torchvision.transforms‘ has no attribute ‘Scale‘
3.报错RuntimeError: Numpy is not available
原因:我查看我的虚拟环境下的包list,有两个版本的numpy,1.15.3和1.21.6
解决方法:我卸载了1.21.6,因为这