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

7902 Commits

Author SHA1 Message Date
vladmandic
f47c7d17af add CogXDDIM, DDIMParallel, DDPMParallel
Signed-off-by: vladmandic <mandic00@live.com>
2026-01-27 09:46:31 +01:00
vladmandic
c1f3fc594e cleanup
Signed-off-by: vladmandic <mandic00@live.com>
2026-01-25 12:59:14 +01:00
vladmandic
947dd7b2b3 support lora inside prompt selector
Signed-off-by: vladmandic <mandic00@live.com>
2026-01-25 09:49:36 +01:00
vladmandic
33d4a4999d lint deepbooru
Signed-off-by: vladmandic <mandic00@live.com>
2026-01-24 18:51:11 +01:00
vladmandic
7bd73d6e75 log captured exceptions
Signed-off-by: vladmandic <mandic00@live.com>
2026-01-24 13:57:13 +01:00
vladmandic
a7c32caae3 relocate all jsons to data
Signed-off-by: vladmandic <mandic00@live.com>
2026-01-24 13:54:40 +01:00
Vladimir Mandic
a468c5d8f8 Merge pull request #4592 from awsr/errorlimiter
Implement abort system when encountering excessive errors
2026-01-24 13:54:28 +01:00
awsr
09fdda05a4 Move to modules 2026-01-24 02:16:05 -08:00
vladmandic
a4671045b6 lint and crlf
Signed-off-by: vladmandic <mandic00@live.com>
2026-01-24 10:28:46 +01:00
awsr
82361e6633 Adjust names 2026-01-23 22:29:00 -08:00
awsr
58c3aecc00 Allow multiple identifiers for ErrorLimiter.notify
- Update identifiers.
- Also minor message formatting update.
2026-01-23 16:50:52 -08:00
awsr
e7d7894130 Prevent redundant traceback display 2026-01-23 16:43:58 -08:00
awsr
3343d2e05f Update and rewrite to use contextlib 2026-01-23 04:56:27 -08:00
Disty0
50c65ed990 Update OpenVINO to 2025.4.1 2026-01-23 14:43:42 +03:00
Disty0
8d6bfcd827 Update SDNQ 2026-01-23 14:39:07 +03:00
vladmandic
b8bac68915 use base steps as-is for non sd/sdxl models
Signed-off-by: vladmandic <mandic00@live.com>
2026-01-23 10:12:11 +01:00
vladmandic
a673ed2411 support comments in wildcard files
Signed-off-by: vladmandic <mandic00@live.com>
2026-01-23 10:07:38 +01:00
Vladimir Mandic
69685f198d Merge pull request #4584 from awsr/processing-updates
Processing updates
2026-01-23 09:19:47 +01:00
Vladimir Mandic
a47e2ff62f Merge pull request #4569 from CalamitousFelicitousness/feat/wd14-tagger
feat(caption): add WD14 tagger with Booru Tags tab
2026-01-23 09:17:19 +01:00
Vladimir Mandic
51e148cd2c Merge pull request #4583 from ryanmeador/video-element-names
fix elem_ids for some video controls
2026-01-23 09:15:13 +01:00
Vladimir Mandic
1f2b0aa56d Merge pull request #4568 from CalamitousFelicitousness/fix/skip-params-aliases
fix(settings): support aliases in metadata skip params
2026-01-23 09:14:27 +01:00
awsr
0310dc8fd6 Fix naming, use Exception as parent class 2026-01-22 21:39:20 -08:00
vladmandic
2bfdb605cd Merge branch 'dev' of https://github.com/vladmandic/sdnext into dev 2026-01-22 19:52:08 +01:00
vladmandic
01db4d8140 use refiner/detail steps as-is for non sd/sdxl models
Signed-off-by: vladmandic <mandic00@live.com>
2026-01-22 19:50:16 +01:00
vladmandic
0073fa55e3 fix detailer double save
Signed-off-by: vladmandic <mandic00@live.com>
2026-01-22 19:38:37 +01:00
awsr
65d8c9e7f2 Implement limiting system for excessive errors 2026-01-22 03:37:52 -08:00
awsr
747ec86eb9 Fix if cls is None 2026-01-21 18:16:47 -08:00
awsr
b9b36ed962 Update typing 2026-01-21 18:15:20 -08:00
awsr
418f27266e Add compatibility fallback just in case 2026-01-21 16:57:58 -08:00
awsr
3298f3db9a Rework prompt parsing/processing
- Return consistent structure
2026-01-21 16:57:05 -08:00
Ryan Meador
e6eeb22a81 fix/add element names for some video controls that were duplicate/missing 2026-01-21 19:53:11 -05:00
awsr
fe20635d0f Minor readability improvement 2026-01-21 16:41:05 -08:00
awsr
2f8976e28d Type standardization in processing_class 2026-01-21 16:35:19 -08:00
awsr
6344db1b09 Enforce typing for geninfo 2026-01-21 16:20:53 -08:00
awsr
c2c32d7847 Improve/update types and data handling 2026-01-21 14:13:00 -08:00
Oleksandr Liutyi
4a089fb6e4 Qwen layered settings typo 2026-01-21 19:12:43 +00:00
CalamitousFelicitousness
26c679f9e7 refactor(caption): remove unused _device tracking property 2026-01-21 11:56:07 +00:00
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
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
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
CalamitousFelicitousness
694e2f0427 fix(settings): support aliases in metadata skip params
The "Restore from metadata: skip params" setting previously required
exact metadata parameter names (e.g., "Batch-2" instead of "batch_size").
This was confusing because metadata names differ from Python variables
and UI labels.

Changes:
- Auto-populate param_aliases from component labels and elem_ids
- Expand user input with aliases in should_skip()
- Support normalized names so "Batch" skips both "Batch-1" and "Batch-2"

Users can now enter any of these formats (case-insensitive):
- Python variable names: batch_size, cfg_scale, clip_skip
- UI labels: Batch size, CFG scale, Clip skip
- Metadata names: Batch-2, CFG scale, Clip skip
- Normalized names: Batch (skips both Batch-1 and Batch-2)
2026-01-21 00:56:26 +00: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