AlphaPose icon indicating copy to clipboard operation
AlphaPose copied to clipboard

cannot import name 'deform_conv_cuda'

Open cmc370 opened this issue 3 years ago • 7 comments

I successfully run setup.py, but it still shows cannot import name 'deform_conv_cuda'. How can I solve it?

cmc370 avatar May 30 '21 12:05 cmc370

Did you put force_compile to True at line 124 ?

samymdihi avatar May 31 '21 08:05 samymdihi

Yes, and this problem has been solved. But I met another problem.  The model weights are being loaded for a long time and there is no response.

GPU: 3090   RAM: 64GB 

------------------ 原始邮件 ------------------ 发件人: "MVIG-SJTU/AlphaPose" @.>; 发送时间: 2021年5月31日(星期一) 下午4:43 @.>; 抄送: "Cai @.@.>; 主题: Re: [MVIG-SJTU/AlphaPose] cannot import name 'deform_conv_cuda' (#873)

Did you put force_compile to True at line 124 ?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

cmc370 avatar May 31 '21 08:05 cmc370

Please be sure that you have put the weights in detector/yolo/data and that the path to your image folder is the good one

samymdihi avatar May 31 '21 13:05 samymdihi

This time I reconfigured the environment, but no longer extended cuda, and then I ran successfully, even in my dataset. By necessity, I want to know the body parts corresponding to the results of the 26 key points and 136 key points.

------------------ 原始邮件 ------------------ 发件人: "MVIG-SJTU/AlphaPose" @.>; 发送时间: 2021年5月31日(星期一) 晚上9:28 @.>; 抄送: "Cai @.@.>; 主题: Re: [MVIG-SJTU/AlphaPose] cannot import name 'deform_conv_cuda' (#873)

Please be sure that you have put the weights in detector/yolo/data and that the path to your image folder is the good one

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

cmc370 avatar Jun 01 '21 03:06 cmc370

@cmc370 Check this https://github.com/MVIG-SJTU/AlphaPose/blob/master/docs/output.md

P3RI9 avatar Jun 03 '21 14:06 P3RI9

@cmc370 I am facing the same issue. First I installed with setup.py and got the import error. Then I uninstalled alphapose and reinstalled by setting force_compile as true. But now the model weights are taking for ever to load. What do you mean by reconfigure the environment. Should a I create a new environment and install alphapose with force_compile as true?

Pamulapati13 avatar Jun 14 '21 14:06 Pamulapati13

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

koalaaaaaaaaa avatar Nov 14 '21 07:11 koalaaaaaaaaa