Improve tensor handling in live detection
All checks were successful
Build Dev PWA / Build-PWA (push) Successful in 34s

Signed-off-by: Justin Georgi <justin.georgi@gmail.com>
This commit is contained in:
2024-06-28 11:48:51 -07:00
parent 8786555df5
commit a89693d829

View File

@@ -222,6 +222,9 @@ export default {
imageCtx.drawImage(target, pointX, pointY, 20, 20)
}
}
tf.dispose(input)
tf.dispose(res)
tf.dispose(rawRes)
} catch (e) {
console.log(e)
}