CSP icon indicating copy to clipboard operation
CSP copied to clipboard

how to use .pyx in nms file

Open sadsearth opened this issue 5 years ago • 23 comments

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

sadsearth avatar Apr 30 '19 04:04 sadsearth

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

hdjsjyl avatar Apr 30 '19 14:04 hdjsjyl

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.

sadsearth avatar Apr 30 '19 14:04 sadsearth

I see, thanks.

hdjsjyl avatar Apr 30 '19 14:04 hdjsjyl

@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!

hdjsjyl avatar Apr 30 '19 16:04 hdjsjyl

@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.

liuwei16 avatar May 01 '19 08:05 liuwei16

@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 avatar May 05 '19 02:05 sadsearth

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

hdjsjyl avatar May 06 '19 18:05 hdjsjyl

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

How did you solve it?

msha096 avatar May 08 '19 18:05 msha096

@hdjsjyl How did you solve it?

soongyuu avatar May 14 '19 02:05 soongyuu

@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!

soongyuu avatar May 14 '19 02:05 soongyuu

@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!

msha096 avatar May 14 '19 03:05 msha096

cuda:9.0 gcc:5.4

soongyuu avatar May 14 '19 06:05 soongyuu

cuda:9.0 gcc:5.4

Thanks, it works for me.

msha096 avatar May 16 '19 21:05 msha096

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

zxinyang38 avatar Jul 22 '19 06:07 zxinyang38

@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 avatar Jul 22 '19 18:07 msha096

@msha096 好的,谢谢

zxinyang38 avatar Jul 23 '19 00:07 zxinyang38

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:

  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.

fengyuentau avatar Oct 15 '19 03:10 fengyuentau

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?

zhijianglu avatar Oct 30 '19 13:10 zhijianglu

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?

baiboat avatar Nov 08 '19 01:11 baiboat

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

xauat-liushipeng avatar Nov 24 '19 12:11 xauat-liushipeng

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

ll490187880 avatar Dec 25 '19 05:12 ll490187880

How to compile it with windows 10?

Abel150 avatar Dec 31 '19 09:12 Abel150

How to compile it with windows 10?

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

SouleTraveler avatar Jan 03 '20 10:01 SouleTraveler