From fcb5896b01b8d65fc897911258a1fdddb483d964 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Sun, 5 May 2024 20:51:47 -0400 Subject: [PATCH] Increase tensorflow max size --- structures/Tensorflow.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/structures/Tensorflow.js b/structures/Tensorflow.js index 079e131c..2529c020 100644 --- a/structures/Tensorflow.js +++ b/structures/Tensorflow.js @@ -29,7 +29,7 @@ module.exports = class Tensorflow { } async detectFaces(imgData) { - if (Buffer.byteLength(imgData) >= 4e+6) return 'size'; + if (Buffer.byteLength(imgData) >= 8e+6) return 'size'; tfnode.setBackend('tensorflow'); const image = tfnode.node.decodeImage(imgData, 3); tfnode.setBackend('cpu');