From 31c665bdd47e53ab01bfc8ca6b10a17db0049b4a Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Sat, 23 Mar 2024 21:03:11 -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 ec1ba94d..f7ec33b8 100644 --- a/commands/edit-face/anime-eyes.js +++ b/commands/edit-face/anime-eyes.js @@ -62,7 +62,7 @@ module.exports = class AnimeEyesCommand extends Command { tfnode.setBackend('tensorflow'); const image = tfnode.node.decodeImage(imgData); tfnode.setBackend('cpu'); - const faces = await detector.estimateFaces(image); + const faces = await this.detector.estimateFaces(image); tfnode.setBackend('tensorflow'); if (!faces || !faces.length) return null; return faces;