Open lofyol opened 3 years ago
@CCxiaoLL You need to run setup.py when installing the Alphapose. When you run the setup.py script, a function named 'get_ext_modules' will install some packages like 'deform_conv_cuda'.
@wawaa I successfully run 'python setup.py develop', and everything is installed, but when I use from . import deform_conv_cuda, it still shows ImportError: cannot import name 'deform_conv_cuda' .
I also have the same question
My pc don't have Nvidia, I deleted setup.py line 211: ext_modules=get_ext_modules(), and success run "python setup.py build develop", but the problem still exists.
@wawaa could you please kindly tell me which environment you run this project..(which version of python, cuda, pytorch).. I've tried a whole day and end with no compatible environment...I'm totally confused...
@wawaa could you please kindly tell me which environment you run this project..(which version of python, cuda, pytorch).. I've tried a whole day and end with no compatible environment...I'm totally confused...
In my impression, I should have installed the configuration recommended by the author. If you have no special requirements, maybe you can also try this.
On Windows, set force_compile = True on line 124 def get_ext_modules(): ext_modules = []
# If you force to compile extension on Windows and ensure appropriate visual studio
# is intalled, you can try to use these ext_modules.
force_compile = True
if platform.system() != 'Windows' or force_compile:
https://github.com/MVIG-SJTU/AlphaPose/issues/492 Found this same error in this thread, but personally haven't gotten it to work yet. Have had more luck with tensorflow branch.