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