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;