From 7b035364aee5fa4473c3612dba4b6f5485c7e423 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Sat, 23 Mar 2024 21:05:31 -0400 Subject: [PATCH] Fix --- 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 dd4dad48..398dbd22 100644 --- a/commands/edit-face/anime-eyes.js +++ b/commands/edit-face/anime-eyes.js @@ -54,7 +54,7 @@ module.exports = class AnimeEyesCommand extends Command { } async detect(imgData) { - if (Buffer.byteLength(imgData.body) >= 4e+6) return 'size'; + if (Buffer.byteLength(imgData) >= 4e+6) return 'size'; tfnode.setBackend('tensorflow'); const image = tfnode.node.decodeImage(imgData); tfnode.setBackend('cpu');