This commit is contained in:
Dragon Fire
2021-03-22 21:47:29 -04:00
parent d90c757757
commit 2c8b593cad
+1 -1
View File
@@ -219,7 +219,7 @@ module.exports = class Util {
static async isImageNSFW(model, image, bool = true) {
const img = await tf.node.decodeImage(image, 3);
const predictions = await model.classify(img, 2);
const predictions = await model.classify(img);
img.dispose();
if (bool) {
const results = [];