This commit is contained in:
Dragon Fire
2024-03-23 21:03:11 -04:00
parent d4361f3d01
commit 31c665bdd4
+1 -1
View File
@@ -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;