Giter Club home page Giter Club logo

Comments (5)

vladmandic avatar vladmandic commented on June 16, 2024

Models are also using tensors! So only time you'll get zero is if all models are disabled.
The goal is thar number does not grow over time as that would indicate a memory leak.

Its also normal that it varies during usage (temp tensors, etc.), but it should always return to same value once it's done.

from human.

alganzory avatar alganzory commented on June 16, 2024

Thanks for the clarification, do you have any tips or advise for optimizations to be speed up detection and make it less resource intensive if I am using human in the context of a chrome extension?

from human.

vladmandic avatar vladmandic commented on June 16, 2024

i'm not sure what to add, you're already using webgl, number of models is minimal and cache sensitivity is set very low.
only major impact would be to reduce maxDetected as faceres that you have enabled runs for each of detected faces.

from human.

alganzory avatar alganzory commented on June 16, 2024

what about the image size? currently I am not using the filters to reduce image size because I am not sure how to maintain aspect ratio, instead I am using my own function where basically I wanna reduce the image size if the width is greater than a max width or the height is greater than a max height otherwise no reduction is needed, but using filters I can provide either the max width or the max height because if I provide both to the filters then it will just resize to them and will distort the aspect ratio, is my understanding right?
Also, what's the smallest you'd recommend resizing the image to before you notice a decrease in the accuracy? given that I am using blazeface back model

from human.

vladmandic avatar vladmandic commented on June 16, 2024

resolutions on which each individual models have been trained on are in wiki - specifically faceres is trained on 224px, so your desired input resolution should be such that cropped face is ~224px - more that that and its pointless, less than that and you loose precision. what does that mean for overal resolution? well, depends if faces are near or far from the camera.

but yes, higher resolution does come with performance impact - and not only inside human, due to offscreen usage there is extra copy to transfer image context to human and that is not as fast as i'd like it to be in chrome - but it cannot be avoided.

regarding filters and aspect ratio - its handled automatically if you provide just width or just height.

from human.

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.