Closed harrytrinh2 closed 3 years ago
The operations in ops have been moved into mmcv package, if you need to use nms, you can import it from mmcv, see https://github.com/open-mmlab/mmcv/blob/bf2c9fa8d21e4af903769b3d7aca20452e4b4669/mmcv/ops/nms.py
Very correct! How did you know it has been moved to mmcv?
I am a super fan for mmlab, especially for mmdetection. I have won many awards in object detection competitions using mmdetection.
Hehe, good for you! This framework is very hard to understand how it works under the hood, but once you get the idea, it'd be very lovely then :)
I am reproducing this work using the latest
mmdet
version. Inside the filebarpn_head.py
, I need to importnms
fromops
(from mmdet.ops import nms
). However, in the new architecture ofmmdet
, there is no folder namedops
insidemmdet
, therefore, I copied the wholennm
folder from the oldmmdet
version. And I got this error:ImportError: mmdet/core/nms/nms_cpu.cpython-37m-x86_64-linux-gnu.so: undefined symbol: _ZN3c106detail23torchInternalAssertFailEPKcS2_jS2_S2_ #10
. That is because these two lines inside `nns_wrapper.py":It is failed to load these modules from the following files:
nms_cpu.cpython-37m-x86_64-linux-gnu.so
nms_cuda.cpython-37m-x86_64-linux-gnu.so
soft_nms_cpu.cpython-37m-x86_64-linux-gnu.so
Do you know how to get away with this problem? Note that in the new
mmdet
version, it does not haveops
folder after compiling from mmcv