-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Please Help! ImportError: No module named cpu_nms (AGAIN) #91
Comments
Have you already followed the installation instruction to compile or install all the necessary libs or dependencies? Especially step 1 |
yes of course |
including
? |
yes of course I will delete the entire AlphaPose folder and try again, but yes, I did that.... |
Thanks. Did you meet any errors when running these commands? |
OK! looks like this is resolved, (though I got a different error, you can close this issue, as ill open a new one for the new error) I'm pretty sure everything was all ok the last time,
make
cd newnms/
Is that allright? pretty sure thats the same as last time... later:
then:
and finally:
(Different error, opening a new thread) |
cool |
You said,‘deleting AlphaPose and recloning it + following the rest of the instructions fixed this issue’. What is the 'the rest of the instructions'? |
Hi there!
finally I've got tensorflow (gpu), and Torch (after following issue #10 ) all installed properly
(using Python2.7)
when running ./run.sh --indir examples/demo/ --outdir examples/results/ --vis
I a bunch of errors, the first of which is:
ImportError: No module named cpu_nms
(hopefully this is a chain reaction and not multiple problems)
I've seen more people with this issue in #41 and in #49
But they were closed without a real solution...
I tried to fix this by myself...
I found the nms files in AlphaPose/human-detection/lib/ nms and newnms
added their dirs to PYTHONPATH
made a copy of the .pyx files to .py
that solved the import error,
but then there were a bunch of syntax errors because of the cython syntax "cimport" "cdef" etc...
I changed everything to the proper Python syntax
and that actually worked! solved all the import problems, but then...
trying to do the same to gpu_nms, but I couldnt figure out the original python syntax for
(not to mention that there's no actual void _nms function in the gpu_nms.cpp file so can't try to convert the cpp logic to python either, and even if I get the syntax right for the extern function it will not load anything) 😢
So all in all, I'm sure that theres a better solution than to edit all those files manually...
Ubuntu 16.04
tensorflow, torch, cuda, cudnn, +all dependencies compiled/install properly
Please help
has anyone figured this out?
@Fang-Haoshu @hd120105 @luoyuncen
Thank you so much!
Tami
The text was updated successfully, but these errors were encountered: