-
Notifications
You must be signed in to change notification settings - Fork 25
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
Issues compiling and running #24
Comments
@gferrell Please check https://github.com/takuya-takeuchi/OpenPoseDotNet#1-build
OPDN depends on native binary (C++). You can know exact library name from https://github.com/takuya-takeuchi/OpenPoseDotNet/blob/develop/examples/OpenPoseDemo/SymlinkBinary.ps1 |
Thanks for your response. i wasn't aware there was a core powershell, but I downloaded the latest version 7. (is this the correct version?) I did run the SymlinkBinary.bat file before running the example. Should I be running the SymlinkBinary.ps1 instead? |
@gferrell |
And which branch do you try? |
@gferrell build of openpose says D:/Works/OpenSource/OpenPoseDotNet/src/openpose/src/openpose/net/resizeAndMergeBase.cu(142): error : calling a __host__
function("__floorf") from a __global__ function("op::resize8TimesKernel<float> ") is not allowed [D:\Works\OpenSource\
OpenPoseDotNet\src\OpenPoseDotNet.Native\build_win_desktop_cuda_x64\openpose\src\openpose\openpose.vcxproj] This issue is repoerted in CMU-Perceptual-Computing-Lab/openpose#1886 |
This error message is from CMake command for openpose rather than OpenPoseDotNet.Native. cmake -G Visual Studio 16 2019 -A x64 -D CMAKE_BUILD_TYPE=Release ^
-D USE_CUDA:BOOL=ON ^
-D USE_3D_RENDERER:BOOL=ON ^
D:\Works\OpenSource\OpenPoseDotNet\src\openpose
cmake --build . --config Release |
Okay, any suggestions? I am stuck if the base code wont compile on a fresh download. |
It could suit with your env.
The avobe command build only openpose and show all message. |
I captured the output of the last command (cmake --build . --config Release) : output.txt
and
|
It is restriction of windows operating system. My code is under |
I created a folder with a shorter path and didn't see the errors. The overall build instructions from the main page don't work for me. I got errors like this: So, I ran these instructions from another thread and this build without error:
I tried to run the sample and I still get no output. |
@gferrell But I was success to build by these both instructions. $ git clone https://github.com/takuya-takeuchi/OpenPoseDotNet OpenPoseDotNet1
$ cd OpenPoseDotNet1\src\OpenPoseDotNet.Native
$ pwsh Build.ps1 Debug cuda 64 desktop 2017 100
$ git submodule update --init --recursive
$ pwsh Build.ps1 Debug cuda 64 desktop 2017 100 and $ git clone https://github.com/takuya-takeuchi/OpenPoseDotNet OpenPoseDotNet2
$ cd OpenPoseDotNet2
$ git submodule update --init --recursive
$ cd src\OpenPoseDotNet.Native
$ pwsh Build.ps1 Debug cuda 64 desktop 2017 100 |
I did some debugging in the IDE. When I run the tutorial, I get an exception: at Microsoft.Extensions.CommandLineUtils.CommandLineApplication.Execute(String[] args) at BodyFromImageDefault.Program.Main(String[] args) in C:\Users\geoff\source\repos\OpenPoseDotNet2\examples\TutorialApiCpp\01_BodyFromImageDefault\Program.cs:line 58 I can see a zero byte sym link in the folder examples\TutorialApiCpp\01_BodyFromImageDefault\bin\Debug\netcoreapp2.0 to OpenPoseDotNetNative.dll. |
@gferrell |
I've tried following the instructions to build and run the example.
The build powershell fails.
.\Build.ps1 Release cuda 64 desktop 2019 101
Unable to find type [Config].
_At C:\Users\geoff\source\repos\OpenPoseDotNet\src\OpenPoseDotNet.Native\Build.ps1:60 char:11
Build : The term 'Build' is not recognized as the name of a cmdlet, function, script file, or operable program. Check
the spelling of the name, or if a path was included, verify that the path is correct and try again.
At C:\Users\geoff\source\repos\OpenPoseDotNet\src\OpenPoseDotNet.Native\Build.ps1:61 char:1
But, the 2019 IDE builds the solution without issue Then, I try running the example instruction and get some warnings:
(01_BodyFromImageDefault)
dotnet run -c Release -i "C:\Users\geoff\source\repos\openpose-master\examples\media\COCO_val2014_000000000192.jpg"
C:\Program Files\dotnet\sdk\5.0.202\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.EolTargetFrameworks.targets(28,5): warning NETSDK1138: The target framework 'netcoreapp2.0' is out of support and will not receive security updates in the future. Please refer to https://aka.ms/dotnet-core-support for more information about the support policy. [C:\Users\geoff\source\repos\OpenPoseDotNet\examples\TutorialApiCpp\01_BodyFromImageDefault\01_BodyFromImageDefault.csproj]
C:\Program Files\dotnet\sdk\5.0.202\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.EolTargetFrameworks.targets(28,5): warning NETSDK1138: The target framework 'netcoreapp2.0' is out of support and will not receive security updates in the future. Please refer to https://aka.ms/dotnet-core-support for more information about the support policy. [C:\Users\geoff\source\repos\OpenPoseDotNet\examples\TutorialApiCpp\01_BodyFromImageDefault\01_BodyFromImageDefault.csproj]
C:\Program Files\dotnet\sdk\5.0.202\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.EolTargetFrameworks.targets(28,5): warning NETSDK1138: The target framework 'netcoreapp2.0' is out of support and will not receive security updates in the future. Please refer to https://aka.ms/dotnet-core-support for more information about the support policy. [C:\Users\geoff\source\repos\OpenPoseDotNet\examples\TutorialApiCpp\01_BodyFromImageDefault\01_BodyFromImageDefault.csproj]
Then, nothing happens after the warnings. The program exits with error code 0 and no warnings if I debug it from the IDE. No picture is shown.
The text was updated successfully, but these errors were encountered: