InternImage icon indicating copy to clipboard operation
InternImage copied to clipboard

无法运行问题

Open nuclear-missile opened this issue 2 years ago • 2 comments

我在windows平台尝试调试segmentation里的train.py, 但是遇到了如下问题 image 我单步调试后发现当尝试import mmcv时会触发该bug, 但是我已经按照readme安装了该库 我在错误处尝试换gbk编码解释该字符串, 能成功解析 image 我在全盘搜索了该字符串, 发现它位于安装目录Python\Python39\Lib\site-packages\torch\utils下的cpp_extension.py中 image 我不太清楚是否是环境的问题, 以及是否能在windows上修复该问题 谢谢

nuclear-missile avatar Mar 19 '23 03:03 nuclear-missile

您好,关于mmsegmentation如何在windows平台下训练的问题,可能要麻烦您查阅一下mmseg的官方issue,因为我们是在linux下训练的,所以也不太清楚怎么解决这个问题,很抱歉。

czczup avatar Mar 19 '23 16:03 czczup

It is the problem with pytorch. What version of pytorch are you using? https://github.com/pytorch/pytorch/pull/49020 https://github.com/pytorch/pytorch/issues/141234

I suspect the error is due to the fact that when executing some commands on windows, the error message returned is encoded in utf16 because of its multilingual capabilities.

Puiching-Memory avatar Feb 06 '25 05:02 Puiching-Memory