jbwang1997 / OBBDetection

OBBDetection is an oriented object detection library, which is based on MMdetection.
Apache License 2.0
520 stars 111 forks source link

ImportError: cannot import name 'corner_pool_ext' from 'mmdet.ops.corner_pool' #105

Open houw0517 opened 2 years ago

houw0517 commented 2 years ago

运行命令 python tools/train.py configs/obb/faster_rcnn_obb/faster_rcnn_obb_r50_fpn_1x_dota10.py 报错

File "/home/hw/Project/OBBDetection/mmdet/ops/corner_pool/corner_pool.py", line 4, in from . import corner_pool_ext ImportError: cannot import name 'corner_pool_ext' from 'mmdet.ops.corner_pool'

jbwang1997 commented 2 years ago

corner_pool需要编译,是否是编译过程中出现什么问题

myheal000 commented 1 year ago

我也遇到了类似是的问题,编译过程中的确出现了问题sigmoid_focal_loss_cuda.obj : error LNK2001: 无法解析的外部符号 "public: long __cdecl at::Tensor::item(void)const " (??$item@J@Tensor@at@@QEBAJXZ) build\lib.win-amd64-3.7\mmdet\ops\sigmoid_focal_loss\sigmoid_focal_loss_ext.pyd : fatal error LNK1120: 1 个无法解析的外部命令 error: command 'C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\bin\HostX86\x64\link.exe' failed with exit code 1120,但是我不知道如何修改

zzm9910 commented 1 month ago

我也遇到了类似是的问题,编译过程中的确出现了问题sigmoid_focal_loss_cuda.obj : error LNK2001: 无法解析的外部符号 "public: long __cdecl at::Tensor::item(void)const " (??$item@J@Tensor@at@@QEBAJXZ) build\lib.win-amd64-3.7\mmdet\ops\sigmoid_focal_loss\sigmoid_focal_loss_ext.pyd : fatal error LNK1120: 1 个无法解析的外部命令 error: command 'C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\bin\HostX86\x64\link.exe' failed with exit code 1120,但是我不知道如何修改

Have you solved it?