Giter Club home page Giter Club logo

Comments (11)

chitsaw avatar chitsaw commented on July 28, 2024 1

Thanks for the feedback. We will follow up with the Azure Kinect team and get back to you.

from psi.

chitsaw avatar chitsaw commented on July 28, 2024 1

Reported the issue to the Azure Kinect team: microsoft/Azure-Kinect-Sensor-SDK#1304

from psi.

xiangzhi avatar xiangzhi commented on July 28, 2024

I traced the problem to a typo in the platform declaration in the .csproj files. The SDK checks the $(Platform) property https://github.com/microsoft/Azure-Kinect-Sensor-SDK/blob/release/1.3.x/src/csharp/k4a.props.

They check for the property $(Platform) but there is a typo in both Sources/Kinect/Microsoft.Psi.AzureKinect.x64/Microsoft.Psi.AzureKinect.x64.csproj and Samples/AzureKinectSample/AzureKinectSample.csproj that specifies the platform as <Platforms>x64</Platforms>. Changing both to <Platform>x64</Platform> solve the problem.

I don't know why this is a problem in Linux but not Windows.

from psi.

xiangzhi avatar xiangzhi commented on July 28, 2024

I tested the Sample application and besides the body tracking, everything works correctly.

If I include the body tracking code, I'll get the following error:

/onnxruntime_src/onnxruntime/core/providers/cuda/cuda_call.cc:97 bool onnxruntime::CudaCall(ERRTYPE, const char*, const char*, ERRTYPE, const char*) [with ERRTYPE = cudaError; bool THRW = true] /onnxruntime_src/onnxruntime/core/providers/cuda/cuda_call.cc:91 bool onnxruntime::CudaCall(ERRTYPE, const char*, const char*, ERRTYPE, const char*) [with ERRTYPE = cudaError; bool THRW = true] CUDA failure 10: invalid device ordinal ; GPU=0 ; hostname=TBD-Beetle ; expr=cudaSetDevice(device_id_); 
Stacktrace:

Stacktrace:

[2020-06-17 17:02:46.889] [error] [t=9234] [K4ABT] /home/vsts/work/1/s/src/TrackerHost/TrackerHost.cpp (157): Create(). /onnxruntime_src/onnxruntime/core/providers/cuda/cuda_call.cc:97 bool onnxruntime::CudaCall(ERRTYPE, const char*, const char*, ERRTYPE, const char*) [with ERRTYPE = cudaError; bool THRW = true] /onnxruntime_src/onnxruntime/core/providers/cuda/cuda_call.cc:91 bool onnxruntime::CudaCall(ERRTYPE, const char*, const char*, ERRTYPE, const char*) [with ERRTYPE = cudaError; bool THRW = true] CUDA failure 10: invalid device ordinal ; GPU=0 ; hostname=TBD-Beetle ; expr=cudaSetDevice(device_id_); 
Stacktrace:

Stacktrace:

[2020-06-17 17:02:46.889] [error] [t=9234] [K4ABT] /home/vsts/work/1/s/src/sdk/k4abt.cpp (38): tracker->Create(sensor_calibration, config) returned failure in k4abt_tracker_create()

It seemed to be an issue in the proprietary body tracking component. I'm using CUDA 10.2, and a search on the internet suggest it might be caused by different CUDA versions. I was able to use Azure Kinect's Body Tracking through the ROS driver, so it's probably not cause by the hardware.

from psi.

chitsaw avatar chitsaw commented on July 28, 2024

Thanks for reporting and investigating the build problem. $(Platforms) is actually a list of available platform configurations. The reason it worked on Windows and not on Linux is because the Visual Studio solution sets the Platform to x64. We will change it as you suggest.

As for the body tracking issue, not quite sure what is going on here. It looks as though you have already installed both the Azure Kinect Sensor SDK and Body SDK.

Could you try running with body tracking in CPU mode by changing the CpuOnlyMode property in the AzureKinectBodyTrackerConfiguration to true?

from psi.

xiangzhi avatar xiangzhi commented on July 28, 2024

No problem, thanks for looking into it! I'm still really unfamiliar with VS build process.

I have both SDK installed through the Ubuntu package manager. These are the packages that I have:

libk4a1.3/bionic,now 1.3.0 amd64 [installed,automatic]
libk4a1.3-dev/bionic,now 1.3.0 amd64 [installed]
libk4abt1.0/bionic,now 1.0.0 amd64 [installed,automatic]
libk4abt1.0-dev/bionic,now 1.0.0 amd64 [installed]

I tried both CPU & GPU versions and both throw the same error. The error is thrown at line 116 in psi/Sources/Kinect/Microsoft.Psi.AzureKinect.x64/AzureKinectBodyTracker.cs when the Tracker is created. I also doubled check that the configuration variables was propagated down correctly.

from psi.

KevinHwangAi avatar KevinHwangAi commented on July 28, 2024

I also had the same problem on Ubuntu 18.04. How is the problem solved now?

from psi.

xiangzhi avatar xiangzhi commented on July 28, 2024

@KevinHwangAi I haven't tried the latest version, but I believe the body tracking component is still broken (It is caused by an external SDK). The other parts of the component (rgb image, depth image, etc) works, just not the body tracker.

from psi.

KevinHwangAi avatar KevinHwangAi commented on July 28, 2024

Now our development is on hold and we have to consider a new direction. I hope the Microsoft team can solve this problem as soon as possible.

from psi.

aistyler avatar aistyler commented on July 28, 2024

any update?

from psi.

sandrist avatar sandrist commented on July 28, 2024

Thanks for the reminder. It looks like there is a new version of the Azure Kinect body tracker SDK, and thankfully it is available via Nuget this time. We will update our \psi component and test to see if it fixes the Linux issue. I'll follow up on this thread to let you know the results, but feel free to also try updating the package reference in a local fork/clone of the repo if you'd like to test it yourself in the meantime.

from psi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.