CSP
CSP copied to clipboard
how to use .pyx in nms file
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
I meet the same problem, did you solve it? Thanks
I still don’t know how to solve yet, and I hope author will notice our problem.
发自我的iPhone
------------------ Original ------------------ From: hdjsjyl [email protected] Date: Tue,Apr 30,2019 10:22 PM To: liuwei16/CSP [email protected] Cc: Wang Zijian [email protected], Author [email protected] Subject: Re: [liuwei16/CSP] how to use .pyx in nms file (#9)
I meet the same problem, did you solve it? Thanks
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.
I see, thanks.
@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!
@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.
@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'
@sadsearth , after compiling following the advice, my code does not have this problem again. Thanks
@sadsearth , after compiling following the advice, my code does not have this problem again. Thanks
How did you solve it?
@hdjsjyl How did you solve it?
@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 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!
cuda:9.0 gcc:5.4
cuda:9.0 gcc:5.4
Thanks, it works for me.
@msha096 What is your solution, do I have to install gcc5.4?
@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.
@msha096 好的,谢谢
Following the advice from https://github.com/liuwei16/CSP/issues/9#issuecomment-488234679 and https://github.com/liuwei16/CSP/issues/9#issuecomment-492058883 and also the pull request https://github.com/liuwei16/CSP/pull/53#issue-304999591, the solution to get the nms module working with the minimum changes is:
- install cython:
pip install cython
- enter
$CSP/keras_csp
, copy the following two files from https://github.com/rbgirshick/py-faster-rcnn/tree/master/lib:- Makefile
- setup.py, remove line 113-118 and line 142-149
- run
make
in$CSP/keras_csp
The nms module should work now.
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
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?
@soongyuu if your method must have cuda? may i do it on cpu?
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
How to compile it with windows 10?
How to compile it with windows 10?
Have you solved it? I confused the same problem ethier.