From 92e6712bbba0078c6282ea454a8cfa7597e96458 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Sat, 23 Mar 2024 20:58:42 -0400 Subject: [PATCH] Increase image size limit --- commands/edit-face/anime-eyes.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/edit-face/anime-eyes.js b/commands/edit-face/anime-eyes.js index f2b667b8..0059c0b1 100644 --- a/commands/edit-face/anime-eyes.js +++ b/commands/edit-face/anime-eyes.js @@ -58,7 +58,7 @@ module.exports = class AnimeEyesCommand extends Command { } async detect(imgData) { - if (Buffer.byteLength(imgData.body) >= 2e+6) return 'size'; + if (Buffer.byteLength(imgData.body) >= 4e+6) return 'size'; tfnode.setBackend('tensorflow'); const image = tfnode.node.decodeImage(imgData); tfnode.setBackend('cpu');