Memory leaking?
Actually, I am facing this problem when I tried to write some code using OpenCV.js, so I want to find out how others solve this problem, but your demo seems have same problem, the usage of memory of the browser is keep increasing. The JavaScript didn't recycle the memory correctly. I am not sure am I right or wrong, because i am new to AI and web.
HI @yinzixie,
Tensorflow.js uses webgl shaders to speed up Tensor computation on GPU. Due to this, Tensors need to explicitly deleted using the dispose() method. Handtrack.js has a dispose method for deleting the model as needed (e.g. each time you stop detection, it try calling model.dispose() to explicitly delete memory allocated to this).
See some related discussion here https://stackoverflow.com/questions/56513495/memory-leak-in-tensorflow-js-how-to-clean-up-unused-tensors
-V
@victordibia this means this is done automatically by the library or do we need to manually do it?