From a9cf2efc8d049292483c90da81de0b9ad50de94a Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Sun, 24 Mar 2024 11:01:13 -0400 Subject: [PATCH] Fix --- structures/Client.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/structures/Client.js b/structures/Client.js index 288ccc37..fe3d15e4 100644 --- a/structures/Client.js +++ b/structures/Client.js @@ -94,7 +94,7 @@ module.exports = class XiaoClient extends CommandClient { async detectFaces(imgData) { if (Buffer.byteLength(imgData) >= 4e+6) return 'size'; tfnode.setBackend('tensorflow'); - const image = tfnode.node.decodeImage(imgData); + const image = tfnode.node.decodeImage(imgData, 3); tfnode.setBackend('cpu'); const faces = await this.faceDetector.estimateFaces(image); tfnode.setBackend('tensorflow');