-
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 landmarks detection not working in Expo #8078
Comments
Hi, @SamuraiF0x I apologize for the delayed response, if possible could you please help me with your Github repo with detailed steps which you followed to replicate the same behavior from our end which will help us to investigate this issue further ? Thank you for your understanding and patience. |
Hi @gaikwadrahul8, Thanks for the reply! Here's my repo: Steps I took:
|
Hi, @SamuraiF0x Thank you for sharing your repo and steps to replicate the same behavior from our end and I cloned your repo and when I tried Here is error log after
|
Hi @gaikwadrahul8 , I changed I think this should fix the error |
Hi @gaikwadrahul8, did you manage to resolve the error and prebuild it? |
Hi, @SamuraiF0x Yes, command I am using below version of Java :
Here is error log after running command
|
Hi @gaikwadrahul8, No worries, here's my java version:
|
Hi, I'm getting the exact same error
I noticed that I get this error when using imort, regardless of whether I use objects from the library. If you comment it out, the error goes away. these are the dependencies I'm using
I'm using dev-client build from expo on a physical device readme note 11, here are the steps to install the build:
Here's an example of a component
package.json full file -> |
I've also identified such a case. I created an empty project with such dependencies, and found that the @mediapipe/face_mesh library gives an error. When changing the engine type to jsc, I got a clear error
|
@KromoS1 @gaikwadrahul8 have you perhaps found a solution? |
@gaikwadrahul8 Yes, but not using React-Native, I created a separate back end application where I implemented a socket that receives data from the camera in base64 format, then translated it into a Buffer, then into a tensor object and then was able to use the model to determine the points I wanted to use.
To work, I used examples from this repository specifically this example and updated the code for backend use. |
Hi @gaikwadrahul8, did you have time in the meantime to check this out? |
System information
yarn add @tensorflow/tfjs
"@tensorflow/tfjs": "^4.13.0"
Describe the current behavior
expo prebuild
expo run:android
"expo start --dev-client --clear"
an error occurs immediately.const model = FaceModel.SupportedModels.MediaPipeFaceMesh;
is deleted, the error dissapears, but thencreateDetector()
can't be used.Describe the expected behavior
estimateFaces()
should return resultsStandalone code to reproduce the issue
Dependencies:
App.tsx
Logs
const model = FaceModel.SupportedModels.MediaPipeFaceMesh;
is deleted:console.log(tf.getBackend());
results in =>LOG rn-webgl
The text was updated successfully, but these errors were encountered: