feat: 二次元识别功能 + 模型目录整理(nwfs/wd-tagger 子目录),修复 wd-tagger 输入维度(NHWC)

This commit is contained in:
2025-06-25 21:10:21 +08:00
parent 4efa48f550
commit 3af2bf70b4
18 changed files with 1386 additions and 21 deletions
+6
View File
@@ -38,6 +38,12 @@ func NewRouter(st *store.Store) *gin.Engine {
apiGroup.GET("/nsfw/list", nc.List)
apiGroup.GET("/nsfw/preview", nc.Preview)
// 二次元识别(查看分级结果 + 图片预览 + 标签详情)
hc := NewHentaiController(st)
apiGroup.GET("/hentai/list", hc.List)
apiGroup.GET("/hentai/preview", hc.Preview)
apiGroup.GET("/hentai/tags", hc.Tags)
// 扫描整理(开始 / 中止 / 查进度 / 实时进度)
sc := NewScanController(service.NewScanService(st))
apiGroup.POST("/scan/start", sc.Start)