Need help with simple face detection and memory management #106
-
Hi, I'm trying face-api for the first time, and while it detects faces successfully, I am running into a wall with memory management. I've looked through your examples and tried a bunch of different solutions, but for some reason my tensors don't seem to be disposed, and memory on my server gets eaten up quickly. Just by looking at my code could you point out where I might be going wrong? Also is this library meant to work with Typescript? I appreciate any help. Thank you!
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
i just run your code in 1k loop, i don't see a tensor leak - can you show what your but you do have one memory issue - you create new |
Beta Was this translation helpful? Give feedback.
i just run your code in 1k loop, i don't see a tensor leak - can you show what your
console.log
output is?but you do have one memory issue - you create new
options
object on each detect call - why? createoptions
object just once at the time of model load.