-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Face Landmark Detection return empty array #7529
Comments
I rebuild the project with expo and manage to use rn-webgl as backend then it sucesses to return keypoint array. If I switch to cpu backend then it doesn't work. So, it's not possible to use cpu backend with react native (managed by react-native-cli)? Or is there any advices? |
Hi, @Lonoyaa Apologize for the delayed response and It seems like CC :@Linchenn Via script tags:
Via npm:
|
Hi, @gaikwadrahul8 |
Hi, @Lonoyaa Apologize for the delayed response and you're welcome, Good to hear that your issue got resolved so please feel free to close this issue if this issue got resolved for you. Thank you! |
Please make sure that this is a bug. As per our
GitHub Policy,
we only address code/doc bugs, performance issues, feature requests and
build/installation issues on GitHub. tag:bug_template
System information
Describe the current behavior
FaceLandmarkDetection.estimateFace(inputTensor3D) return empty array
Describe the expected behavior
estimateFace return face array contain box and keypoints
Standalone code to reproduce the issue
"dependencies": {
},"
const image = require('./assets/Face.jpeg');
const imageAssetPath = Image.resolveAssetSource(image);
const response = await fetch(imageAssetPath.uri, {}, { isBinary: true });
const imageDataArrayBuffer = await response.arrayBuffer();
const imageData1 = new Uint8Array(imageDataArrayBuffer);
const imageTensor1 = decodeJpeg(imageData1);
const test = await modelReady?.estimateFaces(imageTensor1)
console.log('test0',test)
Other info / logs Include any logs or source code that would be helpful to
diagnose the problem. If including tracebacks, please include the full
traceback. Large logs and files should be attached.
At the top, I call tf.setBackend('cpu') before tf.ready(), not sure if it's related
The text was updated successfully, but these errors were encountered: