diff --git a/src/pages/detection-mixin.js b/src/pages/detection-mixin.js index aad01eb..d0b7197 100644 --- a/src/pages/detection-mixin.js +++ b/src/pages/detection-mixin.js @@ -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) }