-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
blocking browser hang issue #87
Comments
Because for the time of forwarding an input through the net, the main thread is blocked. |
Would probably be an enhancement to sprinkle some tf.nextFrame calls into to forward methods. But I would first recommend some closer investigation. |
@justadudewhohacks can those blocking operations be written node.js backend script? |
I didn't quite get your question sorry. If your question is, whether you can use face-api.js with nodejs, then the answer is yes. See my comment in #55. |
@justadudewhohacks thanks dude - that answered my query |
maybe pass to web worker to do it ? 🤔 |
I tried to pass it to a web worker but had no success at all. If anyone manages to do it, I would be most interested. |
i tried pass the job of load model to web worker do, but when getEnv() in tfjsImageRecognitionBase are fail because web worker cant access window object. Not sure anyway to bypass and direct tell the tfjsImageRecognitionBase is broswer env. |
Checked demo link as well as ran the local setup - why it hangs the browser in a blocking way for the time being it is detecting/recognizing face?
The text was updated successfully, but these errors were encountered: