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

how to use .pyx in nms file #9

Open
sadsearth opened this issue Apr 30, 2019 · 23 comments
Open

how to use .pyx in nms file #9

sadsearth opened this issue Apr 30, 2019 · 23 comments

Comments

@sadsearth
Copy link

sadsearth commented Apr 30, 2019

from nms.cpu_nms import cpu_nms
can't import correctly.
so i wonder how to compile in your code, and can you show the makefile
@liuwei16

@hdjsjyl
Copy link

hdjsjyl commented Apr 30, 2019

I meet the same problem, did you solve it? Thanks

@sadsearth
Copy link
Author

sadsearth commented Apr 30, 2019 via email

@hdjsjyl
Copy link

hdjsjyl commented Apr 30, 2019

I see, thanks.

@hdjsjyl
Copy link

hdjsjyl commented Apr 30, 2019

@sadsearth , when you run the training of the code, how about the gpu utility, what is your gpu? Can you share training information as a reference? Thank you very much!

@liuwei16
Copy link
Owner

liuwei16 commented May 1, 2019

@sadsearth @hdjsjyl sorry, the code for NMS is from py-faster-rcnn, you can follow https://github.com/rbgirshick/py-faster-rcnn to compile it by yourself.

@sadsearth
Copy link
Author

sadsearth commented May 5, 2019

@hdjsjyl Hi, did you solve it? After following https://github.com/rbgirshick/py-faster-rcnn to compile the code, I still met No module named 'nms'

@hdjsjyl
Copy link

hdjsjyl commented May 6, 2019

@sadsearth , after compiling following the advice, my code does not have this problem again. Thanks

@msha096
Copy link

msha096 commented May 8, 2019

@sadsearth , after compiling following the advice, my code does not have this problem again. Thanks

How did you solve it?

@soongyuu
Copy link

@hdjsjyl How did you solve it?

@soongyuu
Copy link

@msha096 My solution is to copy all folders except nms under the py-faster-rcnn-master/lib path to the CSP-master/keras_csp path. Then, make!

@msha096
Copy link

msha096 commented May 14, 2019

@msha096 My solution is to copy all folders except nms under the py-faster-rcnn-master/lib path to the CSP-master/keras_csp path. Then, make!

Did you solution work? what is your cuda and gcc version?
Thanks!

@soongyuu
Copy link

cuda:9.0 gcc:5.4

@msha096
Copy link

msha096 commented May 16, 2019

cuda:9.0 gcc:5.4

Thanks, it works for me.

@zxinyang38
Copy link

@msha096 What is your solution, do I have to install gcc5.4?

@msha096
Copy link

msha096 commented Jul 22, 2019

@msha096 What is your solution, do I have to install gcc5.4?

My solution is what soongyuu said. I installed gcc5.4, not sure if it is necessary.

@zxinyang38
Copy link

@msha096 好的,谢谢

@fengyuentau
Copy link

Following the advice from #9 (comment) and #9 (comment) and also the pull request #53 (comment), the solution to get the nms module working with the minimum changes is:

  1. install cython: pip install cython
  2. enter $CSP/keras_csp, copy the following two files from https://github.com/rbgirshick/py-faster-rcnn/tree/master/lib:
    1. Makefile
    2. setup.py, remove line 113-118 and line 142-149
  3. run make in $CSP/keras_csp

The nms module should work now.

@zhijianglu
Copy link

when i run make in keras_csp ,it comes python setup.py build_ext --inplace
Traceback (most recent call last):
File "setup.py", line 58, in
CUDA = locate_cuda()
File "setup.py", line 53, in locate_cuda
for k, v in cudaconfig.iteritems():
AttributeError: 'dict' object has no attribute 'iteritems'
Makefile:2: recipe for target 'all' failed
make: *** [all] Error 1
how to slove this error?

@baiboat
Copy link

baiboat commented Nov 8, 2019

when i run make in keras_csp ,it comes python setup.py build_ext --inplace
Traceback (most recent call last):
File "setup.py", line 58, in
CUDA = locate_cuda()
File "setup.py", line 53, in locate_cuda
for k, v in cudaconfig.iteritems():
AttributeError: 'dict' object has no attribute 'iteritems'
Makefile:2: recipe for target 'all' failed
make: *** [all] Error 1
how to slove this error?

i got the same error,did you fixed that?

@xauat-liushipeng
Copy link

@soongyuu if your method must have cuda? may i do it on cpu?

@ll490187880
Copy link

when i run make in keras_csp ,it comes python setup.py build_ext --inplace
Traceback (most recent call last):
File "setup.py", line 58, in
CUDA = locate_cuda()
File "setup.py", line 53, in locate_cuda
for k, v in cudaconfig.iteritems():
AttributeError: 'dict' object has no attribute 'iteritems'
Makefile:2: recipe for target 'all' failed
make: *** [all] Error 1
how to slove this error?

i got the same error,did you fixed that?

Python3.x do not support iteritems(),modify iteritems() to items() in the line 53

@Abel150
Copy link

Abel150 commented Dec 31, 2019

How to compile it with windows 10?

@SouleTraveler
Copy link

How to compile it with windows 10?

Have you solved it? I confused the same problem ethier.

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