Open craigspaeth opened 4 years ago
FWIW It looks like it was a change after 0.21.0 that broke this code...
await faceapi.nets.tinyFaceDetector.loadFromUri('/static')
const input = document.getElementById('myImg')
const detection = await faceapi.detectSingleFace(
input,
new faceapi.TinyFaceDetectorOptions()
)
console.log(detection) // undefined in version 0.22.0 and above
Thank you @craigspaeth for the bug hunt! I was having the same issue and checking out version 0.21 did the trick.
Version 0.21 still undefined in ios 12.4 with ionic. Working Fine in Android.
I was struggling to get the tiny face detector model to work locally on the same images that are working in the live demo for face and landmark detection—it would always return an empty array for detections. So I followed the README to clone and run the examples locally and I noticed they aren't working there either.
Is it possible the live-hosted version is behind the latest version in this repository and the latest version introduced a breaking change to the tiny face detector model? I noticed the demo web app looks significantly different with new examples as well.