Commit Graph

11784 Commits

Author SHA1 Message Date
awsr 05f767cf5f Keep option type definitions together...
and update type annotations.
- Since there's no literal for sets, and because functions usually shouldn't be used as parameter defaults, use None as default and then use `set()` as default during init.
2025-12-18 18:08:54 -08:00
awsr 2cd6600a38 Add type annotations to options_section 2025-12-18 17:04:59 -08:00
awsr e211b7bf39 Fix Extension type inference 2025-12-18 14:04:41 -08:00
awsr 54ea787c88 Improve value parsing for traceback_install 2025-12-17 19:52:41 -08:00
awsr f12907cd1f Adjust parse_str_to_bool typing and logic
Python doesn't have a way to define a TypeVar as "any type except x"
2025-12-17 18:50:42 -08:00
awsr d0d9724bf7 Update wiki to latest commit
Got added by accident in an earlier commit.
2025-12-17 16:51:33 -08:00
awsr 3fa20d8fce Add type assertion 2025-12-17 16:44:35 -08:00
awsr ab7ca7e303 Remove unused TypeGuard import 2025-12-17 16:44:09 -08:00
awsr dcb7164d30 Update readfile type safety 2025-12-17 16:43:54 -08:00
awsr 18bfa4b031 Fix type enforcement 2025-12-17 13:44:25 -08:00
awsr 6f00ad4643 Add type annotation to save queue 2025-12-17 13:38:42 -08:00
awsr 4816455a99 Don't try to read txt file as json 2025-12-17 13:18:48 -08:00
awsr 56fc36d944 More dict type safety opt in 2025-12-17 13:18:48 -08:00
awsr 41105c362a Revert change incorrectly reported by Pyright as an error 2025-12-17 13:18:14 -08:00
awsr c34c42493e Opt in to dict type safety 2025-12-17 13:18:14 -08:00
awsr 5206216487 Typing updates 2025-12-17 13:18:13 -08:00
awsr 89acc8cd35 Update type handling for install_traceback 2025-12-17 13:18:13 -08:00
awsr c22ca8d76e Create and opt in to dict type safety from JSON
Opt in via the keyword-only argument `dict_only`
2025-12-17 13:18:13 -08:00
awsr 1b44c4e498 Type enforcement for install_traceback 2025-12-17 13:17:21 -08:00
awsr 54d431a9bb Update Ruff target version 2025-12-17 13:17:21 -08:00
vladmandic 9a3fddd165 Merge branch 'dev' of https://github.com/vladmandic/sdnext into dev 2025-12-17 10:33:39 +01:00
vladmandic c7688e7403 update changelog
Signed-off-by: vladmandic <mandic00@live.com>
2025-12-17 10:33:36 +01:00
Vladimir Mandic 5ab228a495 Merge pull request #4477 from awsr/extension-status-fix
Fix and improve extension status icons
2025-12-17 10:32:46 +01:00
vladmandic e2fb70d4a1 detailer draw segmentation overlays
Signed-off-by: vladmandic <mandic00@live.com>
2025-12-17 10:03:17 +01:00
awsr 2a95973767 Fix and improve extension status icons 2025-12-16 20:49:07 -08:00
awsr 13a04c2312 Add color-adjustable SVG string support 2025-12-16 20:48:12 -08:00
vladmandic a7956d0c5c detailer support for segmentation models and use of segmentation masks
Signed-off-by: vladmandic <mandic00@live.com>
2025-12-16 22:51:52 +01:00
vladmandic 40a6cbfe00 Merge branch 'dev' of https://github.com/vladmandic/sdnext into dev 2025-12-16 19:30:50 +01:00
vladmandic f7a3fd15ca update changelog
Signed-off-by: vladmandic <mandic00@live.com>
2025-12-16 19:30:45 +01:00
vladmandic 6ec88a509b z-image support transformers finetunes
Signed-off-by: vladmandic <mandic00@live.com>
2025-12-16 19:30:05 +01:00
Disty0 0d45e851fb disable compile on balanced offload hooks 2025-12-16 16:43:43 +03:00
vladmandic 409ad8d2bd add longcat image and image-edit
Signed-off-by: vladmandic <mandic00@live.com>
2025-12-16 08:58:22 +01:00
vladmandic 2ac0a67bd9 update todo
Signed-off-by: vladmandic <mandic00@live.com>
2025-12-15 18:56:54 +01:00
vladmandic 8b73ebf36a update changelog
Signed-off-by: vladmandic <mandic00@live.com>
2025-12-15 09:08:13 +01:00
Vladimir Mandic 4faec1439d Merge pull request #4471 from awsr/patch-2
Fix generation loop state check
2025-12-15 08:59:46 +01:00
awsr 00decaaa20 Fix generation loop state check
This also fixes log spam in the Python console.
2025-12-14 01:27:30 -08:00
vladmandic 0706f46a91 alias pipeline output image/images
Signed-off-by: vladmandic <mandic00@live.com>
2025-12-13 09:30:05 +01:00
Disty0 ce8b6d138c SDNQ remove forced uint4 from convs and cleanup 2025-12-13 01:32:52 +03:00
Disty0 101983faef Update ROCm nightlies to ROCm 7.1 2025-12-12 12:54:46 +03:00
vladmandic 13b4dc8996 update google access methods
Signed-off-by: vladmandic <mandic00@live.com>
2025-12-12 09:56:39 +01:00
vladmandic 2b7e72bf82 cleanup
Signed-off-by: vladmandic <mandic00@live.com>
2025-12-11 14:23:19 +01:00
vladmandic a9b0ab21ab update changelog
Signed-off-by: vladmandic <mandic00@live.com>
2025-12-11 07:54:27 +01:00
Vladimir Mandic 8e02b87696 Merge pull request #4460 from CalamitousFelicitousness/pixtralpromptfix
fix(prompt): handle multi-modal processors in token counter
2025-12-11 07:45:43 +01:00
Vladimir Mandic efebbc25a5 Merge pull request #4462 from CalamitousFelicitousness/fix(processing)/decode_results_to_list
fix(processing): convert vae_decode results to list in process_decode
2025-12-11 07:43:31 +01:00
CalamitousFelicitousness 810c00eb12 fix(processing): convert vae_decode results to list in process_decode
The else branch in process_decode was returning a numpy array directly
from vae_decode, while the if branch properly converted results to a
list. This caused process_samples to return early with an empty infotext
list, and zip(numpy_array, []) produced zero iterations, resulting in
images=0 for detailer, inpainting, and img2img operations.

Bug introduced in 3e8dec929 (Dec 2024), exposed by 63a180be1 (Nov 2025).
2025-12-11 03:00:40 +00:00
CalamitousFelicitousness a19c795b49 fix(prompt): handle multi-modal processors in token counter
For FLUX2 models using Mistral3/PixtralProcessor, detect and use the
underlying text tokenizer instead of calling the processor directly,
which incorrectly tries to interpret text prompts as images.
2025-12-10 18:54:39 +00:00
vladmandic 886f57708c set python==3.10 as minimum supported
Signed-off-by: vladmandic <mandic00@live.com>
2025-12-10 12:14:13 +01:00
Vladimir Mandic 29a3473772 Merge pull request #4458 from awsr/interrogate-icon
Change "interrogate" icon
2025-12-10 10:44:31 +01:00
vladmandic 3d4e47c26f update modernui
Signed-off-by: vladmandic <mandic00@live.com>
2025-12-10 10:18:01 +01:00
vladmandic a72b98848c cleanup
Signed-off-by: vladmandic <mandic00@live.com>
2025-12-10 10:17:37 +01:00