This commit is contained in:
Dragon Fire
2024-03-23 21:05:31 -04:00
parent 84fae3b5ec
commit 7b035364ae
+1 -1
View File
@@ -54,7 +54,7 @@ module.exports = class AnimeEyesCommand extends Command {
} }
async detect(imgData) { async detect(imgData) {
if (Buffer.byteLength(imgData.body) >= 4e+6) return 'size'; if (Buffer.byteLength(imgData) >= 4e+6) return 'size';
tfnode.setBackend('tensorflow'); tfnode.setBackend('tensorflow');
const image = tfnode.node.decodeImage(imgData); const image = tfnode.node.decodeImage(imgData);
tfnode.setBackend('cpu'); tfnode.setBackend('cpu');