Unity optimizing model

Hi everyone,

I am using the Unity 2022.2.18f1 with a Zed 2 to run the body tracking example.
-zed sdk 4.0.3
-Cuda 12.1

I have optimized all the model with this command ./“ZED Diagnostic.exe” -aio from the tutorial.
The Zed diagnostic tool said that everything is fine.
The Zed depth viewer works also in Neural mode.
The body tracking c++ sample also works using DEPTH_MODE::NEURAL and BODY_FORMAT::BODY_70.

Nevertheless every time I run the Unity samples, they try to optimize the neural model or the AI model if Depth Mode != Neural, ending in a timeout and saying to optimize outside of Unity.

Did anyone meet the same trouble before? and know how to solve it?

Hi,

I’ll investigate on my side, in the meantime you can simply comment the code that checks if the model is optimized (or not).

This is done here : https://github.com/stereolabs/zed-unity/blob/master/ZEDCamera/Assets/ZED/SDK/Helpers/Scripts/ZEDManager.cs#L2169, comment the “if” statement.
If ZED Depth viewer is working correctly, the issue is most likely coming from the function that checks if the model is optimized or not

Stereolabs Support