
实验
论文代码复现问题
Stdleohao
这个作者很懒,什么都没留下…
展开
-
记录在mmsegmentation框架里写代码跑实验时出现的bug
ValueError: size shape must match input shape. Input is 2D, size is 1KeyError: 'layers.0.blocks.0.attn.relative_position_bias_table'KeyError: 'data_time'RuntimeError: element 0 of tensors does not require grad and does not have a grad_fnAttributeError:原创 2022-05-07 08:51:24 · 4861 阅读 · 9 评论 -
data parallel, model parallel,GPU显存不足怎么办?动态图显存优化
gpu 模型并行、数据并行、显存优化、gpu显存不足原创 2022-01-06 19:50:07 · 1087 阅读 · 0 评论 -
OpenMMLab mmcv、mmdet、mmseg使用教程
商汤公开课课程总结 | OpenMMLab开源体系揭秘OpenMMLab开源工具使用教学(一)注册器的使用OpenMMLab开源工具使用教学(二)原创 2021-12-08 21:46:45 · 1560 阅读 · 0 评论 -
PixMatch:怎么加上maxsquare loss
怎么加上maxsquare loss模仿maxsquare loss对照着target loss 加到了PixMatch里面加maxsquare loss的时候出现了pytorch unsupported operand type(s) for *: 'MaxSquareloss' and 'float'# wrong:MaxSquareloss(pred_1, prob_1)# right:MaxSquareloss()(pred_1, prob_1)函数cpu().item()原创 2021-11-30 22:05:27 · 2448 阅读 · 0 评论 -
cityscapesScripts的evalPixelLevelSemanticLabeling使用的参数问题
sys.argv[]global argsglob.glob()*args**kwargs原创 2021-10-19 14:26:46 · 448 阅读 · 1 评论 -
GPU内存溢出,以及forward() missing 1 required positional argument: ‘x‘;设置GPU
问题在实验过程里,总是遇到GPU内存溢出的问题,怎么改batchsize都不行表面原因设置gpu的代码有问题。究其原因,还是因为穷。import os os.environ['CUDA_VISIBLE_DEVICES'] = "0,1,2" 清理gpunvidia-smi --gpu-reset -i [gpu_id]# 或者杀掉进程kill -9 [pid]...原创 2021-10-13 19:08:57 · 1488 阅读 · 0 评论 -
项目导包的时候找不到自定义的包
# 将项目的父目录加入到环境变量里,例如项目hyperseg在code下vim ~/.bashrcexport PYTHONPATY=$PYTHONPATH:/home/data/userleo/Documents/code# wq保存退出source ~/.bashrc原创 2021-09-25 11:47:23 · 329 阅读 · 0 评论