Azure Kinect DK only work in CPU mode with Unity / Visual Studio

Andrew Banks 6 Reputation points
2022-05-24T11:36:35.563+00:00

Only works with TrackerProcessingMode.Cpu but not TrackerProcessingMode.Cuda or TrackerProcessingMode.Gpu, however the stand alone app : Azure Kinect Body Tracking Viewer works with k4abt_simple_3d_viewer.exe CUDA

Have tried rolling back to old versions of SDKs, CUDA, Unity with no change of results checked all require files are part of Unity project in correct locations. Also tried adding C:\Program Files\Azure Kinect Body Tracking SDK\tools to Environmental Variables and running the Unreal project file with not success.

Azure Kinect Body Tracking SDK 1.1.1
Azure Kinect SDK v1.4.1
(Installed to default locations)

Processor Intel(R) Core(TM) i7-9700 CPU @ 3.00GHz 3.00 GHz
Installed RAM 64.0 GB (63.8 GB usable)
System type 64-bit operating system, x64-based processor

Edition Windows 10 Enterprise
Version 21H2
OS build 19044.1706

NVIDIA GeForce RTX 2080
Driver version 516.01
CUDA 11.7.0_516.01

Unity Error :
catching exception for background thread result = K4A_RESULT_FAILED
UnityEngine.Debug:Log (object)
SkeletalTrackingProvider:RunBackgroundThreadAsync (int,System.Threading.CancellationToken) (at Assets/Scripts/SkeletalTrackingProvider.cs:132)

Azure Kinect DK
Azure Kinect DK
A Microsoft developer kit and peripheral device with advanced artificial intelligence sensors for sophisticated computer vision and speech models.
299 questions
{count} votes

1 answer

Sort by: Most helpful
  1. António Sérgio Azevedo 7,671 Reputation points Microsoft Employee Moderator
    2022-06-06T10:39:27.123+00:00

    Hi @Andrew Banks ,

    As per the related thread on github: https://github.com/microsoft/Azure-Kinect-Sensor-SDK/issues/1682#issuecomment-1147305310

    @fkavache "Check the latest changes in the unity samples project. Please follow the updated instructions."

    And you confirmed that is now working:

    "
    Many thanks fkavache this is now working! One note for those installing the MoveLibraryFile.bat file did not copy the below files so have to do them manually :
    directml.dll
    onnxruntime.dll
    onnxruntime_providers_cuda.dll
    onnxruntime_providers_shared.dll
    onnxruntime_providers_tensorrt.dll
    "

    Thank you!

    Remember:

    • Please accept an answer if correct. Original posters help the community find answers faster by identifying the correct answer. Here is how.
    • Want a reminder to come back and check responses? Here is how to subscribe to a notification.
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.