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

blocking browser hang issue #87

Open
exexzian opened this issue Sep 9, 2018 · 8 comments
Open

blocking browser hang issue #87

exexzian opened this issue Sep 9, 2018 · 8 comments
Labels
enhancement New feature or request

Comments

@exexzian
Copy link

exexzian commented Sep 9, 2018

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?

@justadudewhohacks
Copy link
Owner

justadudewhohacks commented Sep 9, 2018

Because for the time of forwarding an input through the net, the main thread is blocked.

@justadudewhohacks justadudewhohacks added the enhancement New feature or request label Oct 23, 2018
@justadudewhohacks
Copy link
Owner

Would probably be an enhancement to sprinkle some tf.nextFrame calls into to forward methods. But I would first recommend some closer investigation.

@exexzian
Copy link
Author

@justadudewhohacks can those blocking operations be written node.js backend script?

@justadudewhohacks
Copy link
Owner

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.

@exexzian
Copy link
Author

@justadudewhohacks thanks dude - that answered my query

@hanjeahwan
Copy link

maybe pass to web worker to do it ? 🤔

@ScottDellinger
Copy link

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.

@hanjeahwan
Copy link

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.

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

No branches or pull requests

4 participants