- 博客(5)
- 收藏
- 关注
原创 同时安装 conda-forge::pytorch-gpu 和 pytigre 源码 报错 cicc: not found
conda-forge::pytorch-gpu 会自己装一个nvcc 覆盖掉环境中原有的 nvcc 换成 pytorch::pytorch 和 pytorch::pytorch-gpu 后解决。理论上安装 pip 版的 pytorch 同样也不会出现该问题。
2025-10-29 18:23:54
122
原创 【BUG】windows 上 用 golang + cgo + MinGW 编译 clib 报错 cgo: cannot parse gcc output $WORK\b067\\_cgo_.o as
在 https://github.com/skeeto/w64devkit 下载的最新版 MinGW 为 GCC 15. 默认编译 启用 bigobj 导致 cgo 无法识别。切换为 GCC 13 的 https://github.com/skeeto/w64devkit/releases/tag/v1.22.0 后解决。
2025-10-19 00:38:29
228
原创 libGL error: MESA-LOADER: failed to open swrast
使用pip 安装 pyvista 后 尝试绘制并显示报错:libGL error: MESA-LOADER: failed to open swrast: /usr/lib/dri/swrast_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib/x86_64-linux-gnu/dri:$${ORIGIN}/dri:/usr/lib/dri, suffix _dri)检查发现
2025-07-01 22:30:49
767
原创 BUG处理 Input type (c10::Half) and bias type (float) should be the same
该修改可能会导致后续训练中出现 ValueError: Attempting to unscale FP16 gradients. 错误。注意,这种情况下不要像一些解决方案里那样直接更改模型参量,如。使用nn.ModelList替换了 list 后问题解决。对于我的情况,这个bug是由两个因素导致的。
2024-11-04 04:43:29
925
原创 nnUNet导出onnx
参考自这个PR:https://github.com/MIC-DKFZ/nnUNet/pull/1826/commits。其他需要注意的是(也是我踩过的坑),导出onnx模型在其他框架下进行推理时,需确认预处理结果和nnUNet一致,比如。,其他流程,如强度归一化、patch_size,crop, spacingresample等也最好保持一致。下面是验证预处理后图像方向一致和预处理结果一致的代码,只适用于我自己的项目,具体使用可能还需要修改。
2024-10-24 15:36:44
642
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅