pytorch_Realtime_Multi-Person_Pose_Estimation
                                
                                 pytorch_Realtime_Multi-Person_Pose_Estimation copied to clipboard
                                
                                    pytorch_Realtime_Multi-Person_Pose_Estimation copied to clipboard
                            
                            
                            
                        ImportError: DLL load failed while importing _pafprocess
Hello. I was trying to run your code, but got this ImportError. I'm using Windows 10. I followed this step "Compile the C++ postprocessing: cd lib/pafprocess; sh make.sh", it required me to install Virtual Studio with C++ libraries and compiler, and apparently got it right. When I tryied to run this demo "python demo/picture_demo.py to run the picture demo." I got that ImportError. Does anybody have any suggestions what it could be?
After running "sh make.sh" on git bash, the lib/pafprocess folder looks like this:
 And after running "python demo/picture_demo.py" I got this:
And after running "python demo/picture_demo.py" I got this:

Hello. I meet the similar question. But I run it with git bash,haven‘t get the pafprocess.py. So I want to get you help, Can you send your pafprocess file folder in zip or rar to me? my email [email protected] Thanks very much
The first time I tried, I also had the error "from . import _pafprocess ImportError: DLL load failed while importing _pafprocess". But when I tried the second time, I had a different error :
 I tried to renamed the pyd file, but it didn't work. Then I saw some messege said that we could put the pyd file in the lib path where we installed Python "\Python37\Lib\site-packages", so I put the "_pafprocess.cp37-win_amd64.pyd" there. And it works!!!
I tried to renamed the pyd file, but it didn't work. Then I saw some messege said that we could put the pyd file in the lib path where we installed Python "\Python37\Lib\site-packages", so I put the "_pafprocess.cp37-win_amd64.pyd" there. And it works!!!
Thanks. I have solved it too. But I rename it and make a _init file,it worked.
---Original--- From: "Magicy"<[email protected]> Date: Wed, Nov 25, 2020 09:44 AM To: "tensorboy/pytorch_Realtime_Multi-Person_Pose_Estimation"<[email protected]>; Cc: "Comment"<[email protected]>;"adwardxue"<[email protected]>; Subject: Re: [tensorboy/pytorch_Realtime_Multi-Person_Pose_Estimation] ImportError: DLL load failed while importing _pafprocess (#138)
The first time I tried, I also had the error "from . import _pafprocess ImportError: DLL load failed while importing _pafprocess". But when I tried the second time, I had a different error :
I tried to renamed the pyd file, but it didn't work. Then I saw some messege said that we could put the pyd file in the lib path where we installed Python "\Python37\Lib\site-packages", so I put the "_pafprocess.cp37-win_amd64.pyd" there. And it works!!!
— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.
Hi everyone. @Magicyss @adwardxue can you explain please more precisely how did you fix it ? I am facing the same issue and I don't understand how you managed to fix it. Thanks !
Hi everyone. @Magicyss @adwardxue can you explain please more precisely how did you fix it ? I am facing the same issue and I don't understand how you managed to fix it. Thanks !
well. In your lib/pafprocess you can find ' _pafprocess.cp37-win_amd64.pyd '. Rename it to ' _pafprocess.pyd '. Another step on my computer is needed. you can make a _init.py file in the folder. That's ok.
Hi everyone. @Magicyss @adwardxue can you explain please more precisely how did you fix it ? I am facing the same issue and I don't understand how you managed to fix it. Thanks ! You need to follow the "Demo steps" in the README. After you "Compile the C++ postprocessing: cd lib/pafprocess; sh make.sh", you may find the file like"_pafprocess.cp37-win_amd64.pyd".Then you should put this pyd file into the path where you install your python packages, and try the picture_demo again.
The method of @Magicyss worked for me ! Thanks again !
Hello. I meet the similar question. But I run it with git bash,haven‘t get the pafprocess.py. So I want to get you help, Can you send your pafprocess file folder in zip or rar to me? my email [email protected] Thanks very much
Hello, have you got the file "_pafprocess.cp37-win_amd64.pyd"? Could you please send me a copy? Thanks a million, [email protected]
I still got this file. I have sent it to inever789. I didn't use py any more. I'm not sure when this file will be deleted in my machine. But if anyone else wants this file, feel free to connect with me. My email address is [email protected].