Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ImportError:cannot import cpu_soft_nms #2

Open
kangmiao15 opened this issue Apr 25, 2017 · 7 comments
Open

ImportError:cannot import cpu_soft_nms #2

kangmiao15 opened this issue Apr 25, 2017 · 7 comments

Comments

@kangmiao15
Copy link

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

@navaneethbodla
Copy link
Collaborator

There was an import error issue that was closed in the recent commit. Refer to : #1

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

@kangmiao15
Copy link
Author

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
Copy link
Author

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

@bharatsingh430
Copy link
Owner

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

@kangmiao15
Copy link
Author

Looking forward to your outstanding work.

@zengjianyou
Copy link

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

@niuniu111
Copy link

How to use softnms under windows? Please help

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants