Coder Social home page Coder Social logo

blocking browser hang issue about face-api.js HOT 8 OPEN

exexzian avatar exexzian commented on May 27, 2024
blocking browser hang issue

from face-api.js.

Comments (8)

justadudewhohacks avatar justadudewhohacks commented on May 27, 2024 1

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.

from face-api.js.

ScottDellinger avatar ScottDellinger commented on May 27, 2024 1

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.

from face-api.js.

justadudewhohacks avatar justadudewhohacks commented on May 27, 2024

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

from face-api.js.

justadudewhohacks avatar justadudewhohacks commented on May 27, 2024

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

from face-api.js.

exexzian avatar exexzian commented on May 27, 2024

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

from face-api.js.

exexzian avatar exexzian commented on May 27, 2024

@justadudewhohacks thanks dude - that answered my query

from face-api.js.

hanjeahwan avatar hanjeahwan commented on May 27, 2024

maybe pass to web worker to do it ? 🤔

from face-api.js.

hanjeahwan avatar hanjeahwan commented on May 27, 2024

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.

from face-api.js.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.