takuya-takeuchi / OpenPoseDotNet

OpenPose wrapper written in C++ and C# for Windows
MIT License
66 stars 25 forks source link

Issues with Examples #13

Closed bruce987 closed 4 years ago

bruce987 commented 4 years ago

Hi takuya-takeuchi,

I've been messing with this for a few weeks now. Today I started fresh and used your original steps to build it. One of the problems I see is in the steps "Try Tutorial". The first one "01_BodyFromImageDefault" shows these steps...

cd \examples\TutorialApiCpp\01_BodyFromImageDefault SymlinkBinary.bat <Debug/Release> build_windesktop<cpu/cuda>_x64 dotnet run -c Release -i "examples\media\COCO_val2014_000000000192.jpg"

All of the others show the following steps...

cd \examples\TutorialApiCpp\08_HeatmapsFromImage SymlinkBinary.bat <Debug/Release> dotnet run -c Release -i "examples\media\COCO_val2014_000000000294.jpg"

Noticed that the SymlinkBinary.bat file leaves out the second argument. After fixing the error in execution, I tried running some of the examples. The first one works! "01_BodyFromImageDefault" All of the other examples generate this error... image

takuya-takeuchi commented 4 years ago

@bruce987 Yeah, you are correct. README.md and bat file explanation have fucking wrong. OK, let me fix it.

Thanks.

takuya-takeuchi commented 4 years ago

NOTE

takuya-takeuchi commented 4 years ago

Corrected document and script. Please get latest code from develop branch. Replace SymlinkBinary.bat with ymlinkBinary.ps1.

Just in case, please delete bin, examples, models and obj from each example directory before run SymlinkBinary.ps1. Because wrong symlink path occurs issue you faced to.

bruce987 commented 4 years ago

@takuya-takeuchi

I pulled the development branch. Cleanup the folders of bin, obj, models, and examples. I ran powershell as administrator and got the following error: image

takuya-takeuchi commented 4 years ago

@bruce987 Your machine does not allow you to execute untrusted scripts. Please check and follow the this page. https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.security/set-executionpolicy?view=powershell-7

bruce987 commented 4 years ago

Ok I’ll do it tomorrow... it’s late here in Texas and I’ve had a few beers!

Sent from my iPhone

On Apr 11, 2020, at 9:26 PM, Takuya Takeuchi notifications@github.com wrote:

 @bruce987 Your machine does not allow you to execute untrusted scripts. Please check and follow the this page. https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.security/set-executionpolicy?view=powershell-7

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe.

bruce987 commented 4 years ago

I changed the security policy and it now runs, but doesn't find one of the boost libraries: image

...and here is the build folder image

takuya-takeuchi commented 4 years ago

Ok, I understand. I used VS 2015 and it created vc140.dll. Sorry, I forgot to consider version of VS.

bruce987 commented 4 years ago

I have you considered moving the SymlinkBinary.ps1 up two folders, "examples". Then when it is run it applies all the necessary data setup for all examples. This way you don't need to maintain multiple script files.

bruce987 commented 4 years ago

Hey Takuya,

I did some research on the OpenPose application (not your DotNet Library). My laptop now has VS 2015, 2017 and 2019 installed on it. It has Nvidia RTX 2080 graphics card. I cloned openpose and built it using their recommended approach which is cmake-gui. I also have CUDA 10.0, 10.1, and 10.2. CUDA 10.0 was the initial version referenced.

I cloned openpose and built it using VS2015. I verified that it worked by running their demo.

Next I cloned openpose into a folder called openpose2017. Built it using VS2017. I verified that it worked by running their demo.

Finally, I cloned openpose into a folder called openpose2019. Tried building it using VS2019. At this point the build failed due to the CUDA version: “include\crt\host_config.h”. Apparently CUDA 10.0 does NOT work with VS2019. I checked the “include\crt\host_config.h” file for 10.1 and 10.2. Both those files showed valid versions for VS2019. I switched to CUDA 10.2 and cleaned up everything – deleted the cloned folder. I started over. It built and I verified that it worked by running the demo.

In conclusion, if you support VS2019, you will need to make checks for CUDA 10.1 or greater when building openpose.

Thanks,

Bruce

From: Takuya Takeuchi notifications@github.com Sent: Monday, April 13, 2020 4:33 AM To: takuya-takeuchi/OpenPoseDotNet OpenPoseDotNet@noreply.github.com Cc: bruce987 bruce.w.hochstetler@gmail.com; Mention mention@noreply.github.com Subject: Re: [takuya-takeuchi/OpenPoseDotNet] Issues with Examples (#13)

Ok, I understand. I used VS 2017 and it created vc140.dll. Sorry, I forgot to consider version of VS.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/takuya-takeuchi/OpenPoseDotNet/issues/13#issuecomment-612827995 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AAMCBL2UFFJSJO6MRAMEGTLRMLL4JANCNFSM4L4PV5HA . https://github.com/notifications/beacon/AAMCBL427JYXGLVJ2ZIYOALRMLL4JA5CNFSM4L4PV5HKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOESDQGWY.gif

bruce987 commented 4 years ago

@takuya-takeuchi

I modified the SymlinkBinary.ps1... I removed the dll's that it couldn't find. That fixed the problem.

-Bruce