feat: 降低 NSFW 检测阈值,显示更多检测结果

This commit is contained in:
2025-07-15 21:11:04 +08:00
parent f589592535
commit 8ac21e6941
4 changed files with 86 additions and 50 deletions
+2
View File
@@ -306,6 +306,8 @@ func (d *Detector) detectOnce(path string) (score float64, nsfw bool, err error)
classes = append(classes, fmt.Sprintf("%s:%.3f", cls, sc))
}
fmt.Printf("=== NSFW 检测详情 %s: [%s]\n", path, strings.Join(classes, ", "))
} else {
fmt.Printf("=== NSFW 检测详情 %s: [无检测结果]\n", path)
}
return out.Score, out.Nsfw, nil
}