hand-pose-detection: ‘tfjs-webgl’ backend returns NaN values.
I’m setting the hand-pose-detection model following the https://storage.googleapis.com/tfjs-models/demos/hand-pose-detection/index.html?model=mediapipe_hands example
In my code, setting the mediapipe runtime works fine, although setting the ‘tfjs-webgl’ runtime returns NaN values of x,y coordinates.
Detector initialization:
detectorConfig = {
runtime: 'tfjs',
modelType: 'full',
maxHands: 1
}
handDetector = await handPoseDetection.createDetector(model, detectorConfig)
Estimate hand data:
try {
handData = await handDetector.estimateHands(sourceElement,
{flipHorizontal: isFlipHorizontal} // flipHorizontal: false, if we want the result to flip horizontaly. Defaults is set to false.
)
} catch (error) {
handDetector.dispose()
handDetector = null
alert(error)
}
Logged detector output:
I would appreciate any suggestion on how to fix this issue. Maybe I’m missing some other detector configuration or setting?
Thanks!