refactor(api): update cli tools for DeepBooru tagger migration

- Update cli/api-interrogate.py to use /sdapi/v1/tagger for DeepBooru
- Handle tagger response format (scores dict or tags string)
- Remove DeepBooru test from interrogate endpoint tests
- Update API model descriptions to reference tagger for anime tagging
This commit is contained in:
CalamitousFelicitousness
2026-01-25 04:40:35 +00:00
parent 7825f44581
commit 83fa8e39ba
4 changed files with 23 additions and 59 deletions
+4 -3
View File
@@ -98,16 +98,17 @@ def get_interrogate():
Returns model identifiers for use with POST /sdapi/v1/interrogate.
**Model Types:**
- `deepdanbooru`: Anime-style image tagger returning comma-separated tags
- OpenCLIP models: Format `architecture/pretrained_dataset` (e.g., `ViT-L-14/openai`)
For anime-style tagging (WaifuDiffusion, DeepBooru), use `/sdapi/v1/tagger` instead.
**Example Response:**
```json
["deepdanbooru", "ViT-L-14/openai", "ViT-H-14/laion2b_s32b_b79k"]
["ViT-L-14/openai", "ViT-H-14/laion2b_s32b_b79k"]
```
"""
from modules.interrogate.openclip import refresh_clip_models
return ['deepdanbooru'] + refresh_clip_models()
return refresh_clip_models()
def get_schedulers():
from modules.sd_samplers import list_samplers