DeepLabV3+语义分割bug解决整理

DeepLabV3+语义分割bug解决整理,第1张

文章目录
      • 1、TensorBoard 版本太旧问题
      • 2、ModuleNotFoundError: No module named 'past'
      • 3、RuntimeError: cuda runtime error (30) : unknown error at ..\aten\src\THC\THCGeneral.cpp:50
      • 4、RuntimeError: CUDA out of memory

我的环境如下:

系统:win11
编译器:pycharm
python :3.6
torch:1.2.0
torchvision:0.4.0

1、TensorBoard 版本太旧问题

bug:

ImportError: TensorBoard logging requires TensorBoard with Python summary writer installed. This should be available in 1.14 or above.

解决:

很简单,我就直接打开win+R,激活我的pytorch环境,然后输入:
pip install tensorboard==1.14.0

2、ModuleNotFoundError: No module named ‘past’

bug:

ModuleNotFoundError: No module named ‘past’

解决:
参考这篇链接

3、RuntimeError: cuda runtime error (30) : unknown error at …\aten\src\THC\THCGeneral.cpp:50

bug:

RuntimeError: cuda runtime error (30) : unknown error at …\aten\src\THC\THCGeneral.cpp:50

解决:

我是打开我的设备管理器,更新了一下显卡就不再报错了

参考:链接

4、RuntimeError: CUDA out of memory

bug:

RuntimeError: CUDA out of memory. Tried to allocate 128.00 MiB (GPU 0; 2.00 GiB total capacity; 1.25 GiB already allocated; 0 bytes free; 30.69 MiB cached)

解决:
参考链接

欢迎分享,转载请注明来源:内存溢出

原文地址:https://54852.com/langs/916646.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2022-05-16
下一篇2022-05-16

发表评论

登录后才能评论

评论列表(0条)

    保存