Closed deeptronos closed 1 year ago
@deeptronos The Nan phenomenon could not be reproduced in my environment (MacOS 12.5, M1 Max chip MacBook & Barracuda updated to 2.1.0-preview)
@creativeIKEP I believe this error may have something to do with Metal on Intel or AMD hardware... but I also suspect that my package installs are not configured entirely correctly.
@deeptronos Can you try the following and see if the issue still occurs?
Library
directory for script recompile and restart Unity Editor.Supplement: You have a project for OpenGL ES on Android as your build target, but Unity Barracuda's GPU inference does not support OpenGL ES on Android.
I believe this issue is resolved. I close this issue.
Hi there!
BlazePose runs just fine in the Unity Project from this repository on my computer. I'm trying to integrate BlazePoseBarracuda into a different Unity Project, but I'm experiencing odd behavior from the PoseVisualizer/PoseVisualizer3D scripts in that project.
I've exported all of the assets from this original Unity Project as a
.unitypackage
file. After that, I install the packages required for BlazePoseBarracuda using this technique in the README in the new Project, and there seems to be no problems with that process. Then, I import my BlazePoseBarracuda .unitypackage in the new Project. When I run a demo scene in the new project, e.g. the3DSampleScene
, no pose skeleton appears & theDebug.Log()
calls inPoseVisuallizer3d.cs
outputVector4
s of the format(NaN, NaN, NaN, w)
, where w is the landmark position visibility score.w
seems to consistently be a number, but the first three coordinates (the x, y, z of each pose landmark) are NEVER a number. They're onlyNaN
. The 33rd index data is always consistently (0.0, 0.0, 0.0, 0.0) too.See the below screenshot for an example (I was visible to the webcam for this capture, so, if BlazePose were working, it would have been able to detect a pose.)
Technical details: I'm running MacOS 12.3/Unity 2020.3.33f1. I'm using Barracuda 2.1.0-preview (because it's required for another NN pose detection implementation. I've tried other ver of Barracuda with BlazePoseBarracuda in this Unity Project and had same result.) My build target is Android. My computer has an Intel CPU and an AMD GPU. Graphics APIs: OpenGLES2 & 3 are enabled, but Metal I think since I'm on a Mac?