Skip to content
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

error Failed to initialize face detection. Please try refreshing the page. #24

Open
jojokic opened this issue Oct 21, 2024 · 1 comment

Comments

@jojokic
Copy link

jojokic commented Oct 21, 2024

Hello, when I disconnect the Internet, it will appear:

“error Failed to initialize face detection. Please try refreshing the page.”

What kind of question is that? How can I disconnect from the Internet and using this code? thank you.

@jbilcke-hf
Copy link
Owner

jbilcke-hf commented Oct 22, 2024

regarding your issue with the frontend models, MediaPipe (the library I use) has external dependencies:

  • https://cdn.jsdelivr.net/npm/@mediapipe/[email protected]/wasm
  • https://storage.googleapis.com/mediapipe-models/face_landmarker/face_landmarker/float16/1/face_landmarker.task

I suppose a branch of FacePoke could be created, one that would put those assets inside the repo itself, and version them using git lfs add "*.task" or git lfs add "*.wasm" (they aren't big, the model is less than 5 Mb I think)

I'm not sure about how it would work for the first link (the one with /wasm), it seems to be valid (it comes from the official code examples and README) but when we open this link it leads to nowhere, so that's weird. If someone has an explanation for that and can demonstrate the asset can be versioned easily in the repo itself, then we could add it.

(note that the backend will still have to connect to the web ie to Hugging Face to fetch some models, although normally this is a one time operation)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants