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');