soft-nms icon indicating copy to clipboard operation
soft-nms copied to clipboard

ImportError:cannot import cpu_soft_nms

Open kangmiao15 opened this issue 7 years ago • 7 comments

Hi.I tried your soft_nms in my py faster rcnn for tensorflow . I added the code in nms_wrapper.py, cpu_nms.py and config.py following your guide.But I got this error. Could your help me? Traceback (most recent call last): File "./tools/train_net.py", line 16, in from networks.factory import get_network File "/home/km/Faster-RCNN_TF/tools/../lib/networks/init.py", line 8, in from .VGGnet_train import VGGnet_train File "/home/km/Faster-RCNN_TF/tools/../lib/networks/VGGnet_train.py", line 2, in from networks.network import Network File "/home/km/Faster-RCNN_TF/tools/../lib/networks/network.py", line 5, in from rpn_msr.proposal_layer_tf import proposal_layer as proposal_layer_py File "/home/km/Faster-RCNN_TF/tools/../lib/rpn_msr/proposal_layer_tf.py", line 13, in from fast_rcnn.nms_wrapper import nms,soft_nms File "/home/km/Faster-RCNN_TF/tools/../lib/fast_rcnn/nms_wrapper.py", line 10, in from nms.cpu_nms import cpu_nms,cpu_soft_nms ImportError: cannot import name cpu_soft_nms

kangmiao15 avatar Apr 25 '17 03:04 kangmiao15

There was an import error issue that was closed in the recent commit. Refer to : https://github.com/bharatsingh430/soft-nms/issues/1

Are you using the latest code and did you compile your lib folder ?

navaneethbodla avatar Apr 25 '17 04:04 navaneethbodla

Yes. I‘m using the latest code and I'm a new user for python. could you please tell me how to compile the lib folder?Thank you so much.

kangmiao15 avatar Apr 25 '17 07:04 kangmiao15

Thank you.I have resolved it. cd to lib,and make in shell .By the way,how to use the soft-nms with gpu?

kangmiao15 avatar Apr 25 '17 07:04 kangmiao15

We have not released the GPU version yet. It will be released in a month or so.

bharatsingh430 avatar Apr 25 '17 13:04 bharatsingh430

Looking forward to your outstanding work.

kangmiao15 avatar Apr 26 '17 00:04 kangmiao15

hi,I also tried your soft_nms in my py faster rcnn for caffe,i am a new user.Can i succeed when i replace nms_wrapper.py, cpu_nms.py and config.py in the py-faster-rcn"s lib to your corresponding file. please help

zengjianyou avatar Dec 25 '17 13:12 zengjianyou

How to use softnms under windows? Please help

niuniu111 avatar May 21 '18 05:05 niuniu111