Comments (5)
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.
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.
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.
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.
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)
- Automatic Page Refresh on Image Detection with Human Library in Worker Environment HOT 5
- Wrong detection issue HOT 5
- Can not import ESM bundle for browser with NextJS 14 HOT 4
- Face IDs shift when a face disappears HOT 1
- About the gaze tracking HOT 1
- Webpack unable to handle @mapbox/node-pre-gyp/lib/util/nw-pre-gyp/index.html HOT 3
- Human inferencing stops after ~5 mins on Chrome on Windows HOT 2
- Face recognition is not working HOT 8
- Questions on using the face meshes to make masks HOT 1
- The highest priority backend 'webgpu' has not yet been initialized. HOT 6
- camera images sometimes out of focus - adding focusMode? HOT 3
- Facing “Reference Error: tJ is not defined” error when trying to precompile using "npm run build" command. HOT 2
- Is it possible to detect pinch gesture with one hand 2 fingers or two hands each with 2 fingers HOT 2
- Blaze resized image normalization HOT 1
- Identification Failures near Glass Windows and Glasses HOT 2
- Is there any way to tell whether to wear a mask? HOT 3
- Recognizing the wrong person HOT 1
- TypeError: Human is not a constructor HOT 3
- error loading model: @vladmandic/human-models/models/blazeface.json TypeError: Failed to parse URL from @vladmandic/human-models/models/blazeface.json HOT 1
- Head Pose Estimation HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from human.