Improve tensor handling in live detection
All checks were successful
Build Dev PWA / Build-PWA (push) Successful in 34s
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:
@@ -222,6 +222,9 @@ export default {
|
|||||||
imageCtx.drawImage(target, pointX, pointY, 20, 20)
|
imageCtx.drawImage(target, pointX, pointY, 20, 20)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
tf.dispose(input)
|
||||||
|
tf.dispose(res)
|
||||||
|
tf.dispose(rawRes)
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.log(e)
|
console.log(e)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user