feat: 二次元识别功能 + 模型目录整理(nwfs/wd-tagger 子目录),修复 wd-tagger 输入维度(NHWC)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user