1
0
mirror of https://github.com/vladmandic/sdnext.git synced 2026-01-27 15:02:48 +03:00

16 Commits

Author SHA1 Message Date
CalamitousFelicitousness
6b10f0df4f refactor(caption): address PR review feedback
Rename WD14 module and settings to WaifuDiffusion:
- Rename wd14.py to waifudiffusion.py
- Rename WD14Tagger class to WaifuDiffusionTagger
- Rename WD14_MODELS constant to WAIFUDIFFUSION_MODELS
- Rename settings: wd14_model -> waifudiffusion_model,
  wd14_character_threshold -> waifudiffusion_character_threshold
- Update all log messages from "WD14" to "WaifuDiffusion"

Code quality improvements:
- Simplify threshold parameter defaulting using `or` operator
- Extract save_output logic into _save_tags_to_file() helper with
  isolated error handling to prevent single file failures from
  impacting entire batch
- Fix timing log format consistency (remove 's' suffix)
2026-01-21 11:56:07 +00:00
CalamitousFelicitousness
db97c42320 feat(caption): add WD14 tagger with Booru Tags tab
Add SmilingWolf's WD14/WaifuDiffusion tagger models for anime/illustration
tagging as a new "Booru Tags" tab in the Caption panel.

- Support 9 models (v2 and v3 variants) via HuggingFace
- ONNX backend chosen due to safetensors v3 variants exhibiting
  unacceptable accuracy loss
- Separate thresholds for general/character tags
- Batch processing with progress bar
- Consolidate debug env var to SD_INTERROGATE_DEBUG
2026-01-21 11:56:07 +00:00
CalamitousFelicitousness
85cd222793 fix(vqa): sort CLiP analysis results and add text output
Improvements to the OpenCLIP interrogation:
- Sort all ranking dicts by similarity score (descending)
- Add format_category() helper for text formatting
- Add formatted text output for CLIP labels textbox
- Return additional text update in analyze_image()
2025-12-02 21:48:09 +00:00
Vladimir Mandic
d351fdb98f add more job state updates and update history tab
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2025-09-13 10:54:04 -04:00
Vladimir Mandic
175e9cbe29 cleanup/refactor state history
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2025-09-12 16:12:45 -04:00
Vladimir Mandic
e8b5ea3847 major refactor: remove backend original
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2025-07-05 13:16:46 -04:00
Disty0
dca11dd806 Add jxl to image extension lists 2025-05-01 16:02:50 +03:00
Vladimir Mandic
d1c3b97c65 add prompt enhance
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2025-03-28 14:05:28 -04:00
Disty0
30afbd036d Fix circular import between sd_models.py and shared.py 2025-03-11 17:03:33 +03:00
Vladimir Mandic
6cf445d317 add ras-sd35 experimental
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2025-02-18 18:47:42 -05:00
Vladimir Mandic
b6990151c4 caption tab modernui support
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2025-02-17 10:59:22 -05:00
Vladimir Mandic
a4b3dc269e modernize clip interrogate
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2025-02-16 19:37:09 -05:00
Vladimir Mandic
f3dd9b9646 vlm advanced settings and batch processing
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2025-02-15 14:34:28 -05:00
Vladimir Mandic
e95bd93f67 caption ui redesign
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2025-02-15 12:57:19 -05:00
Vladimir Mandic
1f2fc929f7 add joytag
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2025-02-15 10:10:04 -05:00
Vladimir Mandic
2963ce127c refactor interrogate/caption
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2025-02-01 15:40:19 -05:00