
BUG解决
一些bug解决方法
gorgeous(๑><๑)
一点浩然气,千里快哉风。
展开
-
【BUG解决】Yolov7训练 yolov7-e6e 出现IndexError: list index out of range
Train failed on yolov7-e6e IndexError: list index out of range原创 2022-08-14 13:39:27 · 3312 阅读 · 12 评论 -
【BUG解决】fiftyone报AttributeError: module ‘cv2‘ has no attribute ‘gapi_wip_gst_GStreamerPipeline‘错误解决方法
fiftyone bug解决原创 2022-06-23 15:27:24 · 1388 阅读 · 0 评论 -
【BUG解决】deeplab_v3测试时遇到的错误Invalid argument: padded_shape[1]=69 is not divisible by block_shape[1]=2
解决方案:deeplab/input_preprocess.py中找到if is_training and label is not None然后添加:else: rr = tf.minimum(tf.cast(crop_height,tf.float32)/tf.cast(image_height,tf.float32),\ tf.cast(crop_width,tf.float32)/tf.cast(image_width,tf.float32)) newh原创 2022-04-21 16:18:40 · 1520 阅读 · 0 评论 -
【BUG解决】Pycharm debug 变量值显示不出,或者加载不出
File -> settings -> build,execution,deployment -> python Debugger , 勾选 Gevent compatible即可加载出中间变量原创 2022-03-31 17:00:55 · 4674 阅读 · 4 评论 -
【BUG解决】pytorch 使用gpu报错CUDA error: no kernel image is available for execution on the device
报错原因cuda版本和 pytorch不匹配解决方法进入pytorch官网下载匹配cuda版本的pytorch原创 2022-03-25 00:16:10 · 2951 阅读 · 0 评论 -
【BUG解决】AttributeError: module ‘enum‘ has no attribute ‘IntFlag‘
pip uninstall enum34原创 2022-02-25 08:56:28 · 659 阅读 · 0 评论 -
【BUG解决】PyTorch ImportError: libtinfo.so.5: cannot open shared object file: No such file or directory
主要原因是 Ubuntu 升级后,系统动态库版本更新更名。PyTorch 在引入时调用动态库找不到对应的库进而报错。解决方案是设置一个软连接,让系统在查找低版本动态库时,自动打开高版本动态库。操作如下。首先输入下面命令查询当前动态库版本。根据找不到的动态库名自行更改。ls /lib/x86_64-linux-gnu/libtinfo.so.*/lib/x86_64-linux-gnu/libtinfo.so.6 /lib/x86_64-linux-gnu/libtinfo.so.6.2可以看到我原创 2022-02-10 17:01:18 · 4700 阅读 · 2 评论 -
【BUG解决】ImportError: libgthread-2.0.so.0: cannot open shared object file: No such file or directory
解决方法apt-get install libglib2.0-dev原创 2021-12-15 22:40:41 · 11018 阅读 · 2 评论 -
【BUG解决】RuntimeError: Input type (torch.FloatTensor) and weight type (torch.cuda.FloatTensor)
问题描述RuntimeError: Input type (torch.FloatTensor) and weight type(torch.cuda.FloatTensor) should be the same解决方法方法1device = torch.device('cuda:0')inputs = inputs.to(device)方法2inputs = inputs.cuda()原创 2021-12-13 14:55:33 · 2493 阅读 · 1 评论 -
【BUG解决】 RuntimeError: Input type (torch.cuda.FloatTensor) and weight type (torch.FloatTensor)
问题描述RuntimeError: Input type (torch.cuda.FloatTensor) and weight type(torch.FloatTensor) should be the same解决方法对net或者新添加的模块进行转换。解决方法1device = torch.device('cuda:0')net= net.to(device)解决方法2net = net.cuda()...原创 2021-12-13 14:53:58 · 4722 阅读 · 4 评论 -
【BUG解决】RuntimeError: [enforce fail at inline_container.cc:145] . PytorchStreamReader failed reading
加载的权重文件不完整,更换为完整的权重文件原创 2021-12-10 10:40:34 · 8544 阅读 · 1 评论