commit 04b46bd01a78c19f8b0a0189f0b30f554cd62691
parent c3c29ab500b9ccf3a0cd1031df026337e4c2b1f9
Author: Martin Herkt <lachs0r@srsfckn.biz>
Date: Fri, 27 Oct 2017 09:38:19 +0200
Tweak NSFW threshold
Of course it’ll have a few false positives, but this seems to work well
with the 0x0.st dataset.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fhost.py b/fhost.py
@@ -45,7 +45,7 @@ app.config["FHOST_MIME_BLACKLIST"] = [
app.config["FHOST_UPLOAD_BLACKLIST"] = "tornodes.txt"
app.config["NSFW_DETECT"] = True
-app.config["NSFW_THRESHOLD"] = 0.7
+app.config["NSFW_THRESHOLD"] = 0.608
if app.config["NSFW_DETECT"]:
from nsfw_detect import NSFWDetector