Commit Graph

12164 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 5abb794462 style(test): remove unused imports in test-tagger.py 2026-01-21 11:56:07 +00:00
CalamitousFelicitousness becb19319d refactor(caption): unify tagger settings and reorganize Caption Tab UI
Consolidate WD14 and DeepBooru tagger settings into unified options:
- Merge wd14_general_threshold + deepbooru_score_threshold → tagger_threshold
- Merge wd14_include_rating + deepbooru_include_rating → tagger_include_rating
- Rename interrogate_score → tagger_show_scores
- Rename tagger_escape → tagger_escape_brackets
- Rename CLiP → OpenCLiP in caption type choices

UI reorganization:
- Add Interrogate tab to Caption Tab with default caption type selector
- Move interrogate_offload to Model Offloading section as "Offload caption models"
- Hide Interrogate settings section (all settings now in Caption Tab UI)
- Update locale_en.json for OpenCLiP naming

Code improvements:
- DeepBooru tag_multi() now accepts same parameters as WD14 for unified interface
- Fix setting references in interrogate.py for consolidated settings
- Add comprehensive tagger test suite (cli/test-tagger.py)
2026-01-21 11:56:07 +00:00
CalamitousFelicitousness 656e86a962 refactor(caption): consolidate interrogate settings into Caption Tab UI
Hide all CLiP, VLM, and Tagger settings from Settings > Interrogate page
while keeping them in shared.opts for persistence. Caption Tab UI becomes
the single control point with change handlers that save directly to config.

Changes:
- Hide OpenCLiP, VLM, and Tagger settings with visible=False
- Add change handlers to save settings when UI controls change
- Rename "Booru Tags" tab to "Tagger", update choice labels
- Update interrogate.py to use unified tagger interface with all settings
2026-01-21 11:56:07 +00:00
CalamitousFelicitousness 09b8fe9761 feat(caption): integrate DeepBooru into unified Booru Tagger UI
Add DeepBooru as a model option alongside WD14 models in the Booru Tags
tab, with dynamic UI that disables inapplicable controls.

Changes:
- Create modules/interrogate/tagger.py as unified adapter module
- Add batch, load/unload, get_models functions to deepbooru.py
- Update ui_caption.py to use unified tagger interface
- Consolidate shared tagger settings in shared.py
- Add implementation plan for future settings consolidation

UI behavior:
- Model dropdown shows DeepBooru + all WD14 models
- Character threshold and include rating disabled for DeepBooru
- All controls re-enable when WD14 model selected
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
vladmandic 42ff7aa961 update changelog
Signed-off-by: vladmandic <mandic00@live.com>
2026-01-21 09:26:49 +01:00
Seunghoon Lee 40e366acf7 rocm hipblaslt detection fix 2026-01-21 17:07:39 +09:00
vladmandic b54d3eb07b Merge branch 'dev' of https://github.com/vladmandic/sdnext into dev 2026-01-21 08:45:58 +01:00
vladmandic bfbe4af598 fix lora load
Signed-off-by: vladmandic <mandic00@live.com>
2026-01-21 08:45:45 +01:00
Vladimir Mandic a5367308bc Merge pull request #4577 from awsr/patch-1
Re-enable file deletion
2026-01-21 08:02:28 +01:00
awsr ffa2150d42 Re-enable file deletion 2026-01-20 22:07:44 -08:00
vladmandic 84ad7bf20b improve wrap_gradio_call
Signed-off-by: vladmandic <mandic00@live.com>
2026-01-20 18:56:49 +01:00
vladmandic a7b69cd805 fix get_fixed_seed
Signed-off-by: vladmandic <mandic00@live.com>
2026-01-20 18:33:39 +01:00
vladmandic bb1e62f2ae fix_seed
Signed-off-by: vladmandic <mandic00@live.com>
2026-01-20 18:32:19 +01:00
vladmandic b3a99274e2 enhance SD_DEVICE_DEBUG
Signed-off-by: vladmandic <mandic00@live.com>
2026-01-20 18:12:05 +01:00
vladmandic cbc5ada65e Merge branch 'dev' of https://github.com/vladmandic/sdnext into dev 2026-01-20 17:30:24 +01:00
vladmandic b82132c17d cleanup
Signed-off-by: vladmandic <mandic00@live.com>
2026-01-20 17:30:22 +01:00
Vladimir Mandic 1e16d001fe Merge pull request #4573 from james58899/fix-rocm-triton-windows
Fix rocm triton windows patch
2026-01-20 14:37:51 +01:00
James58899 f77361f49a Fix rocm triton windows patch 2026-01-20 20:58:04 +08:00
Vladimir Mandic e48b8b777e Merge pull request #4572 from vladmandic/master
refresh dev
2026-01-20 11:18:27 +01:00
vladmandic c637403ce8 update changelog
Signed-off-by: vladmandic <mandic00@live.com>
2026-01-20 11:17:48 +01:00
Vladimir Mandic 252d9c6a1b Merge pull request #4562 from vladmandic/dev
merge dev
2026-01-20 11:01:09 +01:00
vladmandic f9cb90cd25 pre-merge
Signed-off-by: vladmandic <mandic00@live.com>
2026-01-20 10:58:36 +01:00
vladmandic 0f3442bbd7 update kanvas and modernui
Signed-off-by: vladmandic <mandic00@live.com>
2026-01-20 10:49:41 +01:00
vladmandic 7664d7ea88 lint js
Signed-off-by: vladmandic <mandic00@live.com>
2026-01-20 10:11:31 +01:00
vladmandic e6f4c76638 Merge branch 'dev' of https://github.com/vladmandic/sdnext into dev 2026-01-20 10:09:02 +01:00
vladmandic 86c0681453 lint and changelog
Signed-off-by: vladmandic <mandic00@live.com>
2026-01-20 10:09:00 +01:00
Vladimir Mandic 3e76ba9d3b Merge pull request #4545 from ryanmeador/fix-gallery-next-prev
Fix gallery next/prev buttons
2026-01-20 10:07:06 +01:00
vladmandic f9aa2591e5 fix gallery save/delete
Signed-off-by: vladmandic <mandic00@live.com>
2026-01-20 09:53:20 +01:00
Ryan Meador 300bc31de7 address PR feedback 2026-01-19 21:04:04 -05:00
Ryan Meador a38e5af3b3 add selection indicator to gallery view 2026-01-19 14:27:35 -05:00
Ryan Meador 383898eae7 fix gallery modal next/prev button navigation 2026-01-19 14:27:35 -05:00
vladmandic 8cf27dffdb allow unsafe ssl context for downloads
Signed-off-by: vladmandic <mandic00@live.com>
2026-01-19 17:36:01 +01:00
vladmandic ae357a5e49 fix handling of p.seeds
Signed-off-by: vladmandic <mandic00@live.com>
2026-01-19 11:35:21 +01:00
vladmandic cc0b0e8e3d cleanup todo
Signed-off-by: vladmandic <mandic00@live.com>
2026-01-19 11:10:05 +01:00
vladmandic e8a158f4f5 refactor prompt set
Signed-off-by: vladmandic <mandic00@live.com>
2026-01-19 10:51:28 +01:00
Vladimir Mandic 204bee6d2b Merge pull request #4567 from CalamitousFelicitousness/fix/lora-null-description
fix(ui): handle null description in network info JSON
2026-01-19 08:12:29 +01:00
vladmandic 9a62c47490 Merge branch 'dev' of https://github.com/vladmandic/sdnext into dev 2026-01-19 08:11:38 +01:00
CalamitousFelicitousness 66607c48e1 fix(ui): handle null description in network info JSON
Use both default parameter and `or ''` fallback to handle missing
keys and explicit null values in LoRA info JSON files.
2026-01-19 01:26:44 +00:00
Vladimir Mandic 2c5b082095 Merge pull request #4566 from liutyi/dev
FLUX.2-klein SDNQ Cover images
2026-01-18 17:06:02 +01:00
Oleksandr Liutyi 9e23e53340 FLUX.2-klein SDNQ Cover images 2026-01-18 15:29:39 +00:00
vladmandic 16293375dc lora native stack improvements
Signed-off-by: vladmandic <mandic00@live.com>
2026-01-18 10:06:03 +01:00
vladmandic 9e3b261836 Merge branch 'dev' of https://github.com/vladmandic/sdnext into dev 2026-01-18 07:30:14 +01:00
vladmandic 77612b746e refresh
Signed-off-by: vladmandic <mandic00@live.com>
2026-01-18 07:30:12 +01:00
Vladimir Mandic b460d1635a Merge branch 'master' into dev 2026-01-18 07:27:08 +01:00
vladmandic ba74483e16 Merge branch 'dev' of https://github.com/vladmandic/sdnext into dev 2026-01-18 07:25:58 +01:00
vladmandic e0ea7c9d94 cleanup
Signed-off-by: vladmandic <mandic00@live.com>
2026-01-18 07:25:54 +01:00
Vladimir Mandic 6f5e576ea7 Merge pull request #4556 from CalamitousFelicitousness/feat/f2preq-ref
feat(flux2-klein): add SDNQ pre-quantized model support and reference images
2026-01-18 07:14:23 +01:00
Vladimir Mandic 13cddf13be Merge pull request #4561 from CalamitousFelicitousness/fix/gallery-sort
fix(ui): improve gallery sorting and IndexedDB operations
2026-01-18 07:12:34 +01:00