refactor: 移除二次元识别功能,增强 NSFW 检测

This commit is contained in:
2025-07-12 21:04:52 +08:00
parent 2778393e9d
commit f589592535
17 changed files with 43 additions and 12217 deletions
-7
View File
@@ -68,13 +68,6 @@ func ImageDirSensitive(ext string, width, height int, darkScore, lightScore floa
return imageDir("图片_敏感", ext, width, height, darkScore, lightScore)
}
// ImageDirHentai 返回一张被判为二次元敏感的图片该进的文件夹路径,比如:
// - 「图片_二次元_GIF」:GIF 单独放(不做明暗分类)
// - 「图片_二次元_横屏_1080P/bright_20」:普通分类前加「_二次元」前缀,明暗仍是子目录
func ImageDirHentai(ext string, width, height int, darkScore, lightScore float64) string {
return imageDir("图片_二次元", ext, width, height, darkScore, lightScore)
}
// imageDir 拼出"类型 + 方向 + 清晰度 + 明暗子目录"这段路径。
func imageDir(kind, ext string, width, height int, darkScore, lightScore float64) string {
if strings.EqualFold(ext, ".gif") {