DeepLabV3+语义分割bug解决整理


我的环境如下:

系统: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)

解决:
参考链接

文章出处登录后可见!

已经登录?立即刷新

共计人评分,平均

到目前为止还没有投票!成为第一位评论此文章。

(0)
心中带点小风骚的头像心中带点小风骚普通用户
上一篇 2022年5月11日
下一篇 2022年5月11日

相关推荐