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

867 Commits

Author SHA1 Message Date
vladmandic
f9aa2591e5 fix gallery save/delete
Signed-off-by: vladmandic <mandic00@live.com>
2026-01-20 09:53:20 +01:00
vladmandic
cc0b0e8e3d cleanup todo
Signed-off-by: vladmandic <mandic00@live.com>
2026-01-19 11:10:05 +01:00
Vladimir Mandic
30da7803b5 futureproof
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2026-01-15 09:29:26 +00:00
CalamitousFelicitousness
86744ebd76 feat(prompt-enhance): add Top-K and Top-P sampler controls
Add Top-K and Top-P sampling parameters to match VQA capabilities:
- Top-K: 0-100 (default 0 = disabled)
- Top-P: 0.0-1.0 (default 0 = disabled)

Parameters are only passed to the model when > 0, matching VQA behavior.
2026-01-12 00:17:20 +00:00
CalamitousFelicitousness
e881faa2fb feat(vlm): align default generation settings
Update default settings for both Prompt Enhance and VQA:
- max_tokens: 512 (prompt enhance)
- do_sample: True
- temperature: 0.8

These defaults provide better output quality with more creative
variation while maintaining coherent results.
2026-01-12 00:17:20 +00:00
CalamitousFelicitousness
de1d520929 fix(prompt-enhance): align with VQA approach and fix multiple issues
Thinking mode alignment with VQA:
- Expand is_thinking_model() detection (moondream, mimo patterns)
- Use manual </think> tag approach instead of enable_thinking parameter
- Handle prefill via string concatenation, not assistant message

Bug fixes:
- Fix max_new_tokens (was input_len + tokens, now just tokens)
- Fix vision toggle not disabling vision (wrap image processing in check)
- Fix VL processor error when vision disabled (explicit text= parameter)
- Add error handling when vision enabled but no image provided

Debug logging consistency with VQA:
- Add model_class to entry debug
- Add input_ids_shape to tokenization debug
- Rename raw -> response_before_clean, response -> response_after_clean

UI improvements:
- Make Enhanced prompt textarea scrollable (max_lines=12)
- Remove redundant mode variable from logging
2026-01-12 00:17:20 +00:00
CalamitousFelicitousness
d1a08ec801 fix(prompt-enhance): add Kanvas image support and debug logging
Add fallback to ui_control_helpers.input_source when Gradio image
component is empty, which occurs when Kanvas is active (replaces
gr.Image with gr.HTML).

Also standardize debug logging:
- Add debug at enhance() entry, chat template, tokenization
- Change shared.log.trace() calls to use debug_log() for consistency
- All debug output controlled by SD_LLM_DEBUG environment variable
2026-01-12 00:17:20 +00:00
CalamitousFelicitousness
5f1fbbaeca ui(prompt): add descriptive placeholders to text fields
Clarify purpose of empty fields with placeholder text:
- System prompt: explains built-in instructions used when empty
- Prefix/suffix: describe where text is added to result
- Output: indicates where enhanced prompt appears
2026-01-12 00:17:20 +00:00
CalamitousFelicitousness
7c8f7fd296 feat(prompt): add prefill and thinking mode handling
Add prefill text support and proper thinking tag handling:
- Prefill text input to pre-fill start of model response
- Keep Prefill toggle to retain/remove prefill from output
- Keep Thinking Trace toggle to format <think> tags as readable output
- Proper <think> tag cleanup: strip or format as "Reasoning:/Answer:"
- Support for prefill + thinking combination via keep_think_block_open()

Chat template uses continue_final_message=True when prefill provided,
allowing model to continue from the prefill text naturally.
2026-01-12 00:17:20 +00:00
CalamitousFelicitousness
a77173881f feat(prompt): add vision/reasoning symbols and vision toggle
Add visual capability indicators and user control for image input:
- Vision symbol (eye icon) for VL-capable models in dropdown
- Reasoning symbol (lightbulb) for thinking-capable models
- "Use vision" checkbox to control image input for enhancement
- Toggle dims and unchecks when non-VL model selected
- Vision auto-enables when switching to VL model

Also:
- Rename "Do sample" to "Use samplers" for consistency with VQA
- Add tooltips/hints for all prompt enhance UI elements
- Add CSS styling for dimmed vision toggle appearance
2026-01-12 00:17:20 +00:00
vladmandic
ec007a3018 add laplace beta scheduler
Signed-off-by: vladmandic <mandic00@live.com>
2026-01-10 08:41:27 +01:00
awsr
00d3be3dba show_progress requires "full", "minimal", or "hidden" 2025-11-28 02:27:19 -08:00
vladmandic
b5f000ab8a add xyz and script support to control api
Signed-off-by: vladmandic <mandic00@live.com>
2025-11-23 13:07:42 -05:00
awsr
2e87e20c30 Allow \, to prevent text splitting 2025-11-15 13:09:05 -08:00
awsr
3d604948ea Allow using | as a delimiter instead of ,
This useful for when you want to test combinations of multiple items that would need to be separated by a comma.
2025-11-15 13:09:04 -08:00
Vladimir Mandic
d8eadcb7c1 add warn in animatediff
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2025-11-13 10:04:44 -05:00
Vladimir Mandic
eebd980b2f fix animatediff
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2025-11-13 09:28:08 -05:00
Vladimir Mandic
2612ad95a9 fix stable-video-diffusion dtype mismatch
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2025-11-13 08:56:14 -05:00
Vladimir Mandic
f4b0656dbb reduce requirements
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2025-11-12 19:24:47 -05:00
Vladimir Mandic
b045d72670 remove obsolete video scripts
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2025-11-09 09:54:17 -05:00
Vladimir Mandic
2c8cbf70a2 inline wildcard obey seed
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2025-11-04 20:50:13 -05:00
Vladimir Mandic
4033567d4f controlnet fixes and validation
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2025-10-30 13:36:58 -04:00
Vladimir Mandic
299c22ee91 fix nudenet
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2025-10-29 20:42:00 -04:00
Vladimir Mandic
d43091f1fa lint set minimum to py310 and update rules
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2025-10-29 11:28:09 -04:00
CalamitousFelicitousness
73588c2000 Comment tweaks 2025-10-26 06:52:39 +00:00
CalamitousFelicitousness
33f335a98c VQA class fix f-statement fix 2025-10-26 06:39:05 +00:00
CalamitousFelicitousness
1ac4214379 fix cls_name variable 2025-10-26 06:20:14 +00:00
CalamitousFelicitousness
80bb331169 Prompt enhance resizing and Qwen VL fix 2025-10-26 06:01:33 +00:00
CalamitousFelicitousness
c72d993ff4 Prompt enhance update
Added Qwen3-VL models to prompt enhance
Added Qwen2.5-VL and Glitter Gemma 4B to
    img2img prompt enhance
2025-10-26 03:12:10 +00:00
Vladimir Mandic
0b346ec1ce add base and max shift parameters for flow-matching samplers
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2025-10-19 14:11:41 -04:00
Vladimir Mandic
4b95d72d45 video tab layout
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2025-10-18 14:07:52 -04:00
Vladimir Mandic
95217d48c1 xyz add guidance params
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2025-10-04 18:32:56 -04:00
Vladimir Mandic
8b698ed67f upadte qwen pruning and allow hf models in subfolders
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2025-10-04 15:49:20 -04:00
Vladimir Mandic
5d0a3e5e8a fix microsoft-florence
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2025-10-01 10:58:52 -04:00
Vladimir Mandic
eb025eaf31 remove split-attention and add attention slicing option
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2025-09-28 18:01:34 -04:00
Vladimir Mandic
3275535867 update loopback and note changelog
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2025-09-28 09:09:19 -04:00
Raphael Stoeckli
a1214bfe30 Added option to randomize loopback iterations 2025-09-28 02:32:08 +02:00
Vladimir Mandic
ae25cb8880 linting
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2025-09-25 14:33:21 -04:00
Vladimir Mandic
7a3001170b add daam script
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2025-09-24 20:16:07 -04:00
Vladimir Mandic
696a41fd42 fix prompts-from-file state check
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2025-09-23 15:33:52 -04:00
Vladimir Mandic
2ac299a5a4 nunchaku flux.1-pulid
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2025-09-21 12:33:54 -04:00
Vladimir Mandic
47cba6b0a7 fix xyz with random seed
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2025-09-19 09:24:49 -04:00
Vladimir Mandic
f8f958244f use new pydantic/albumentations/insightface
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2025-09-16 10:17:33 -04:00
Vladimir Mandic
8cd5fbc926 lint
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2025-09-12 16:28:53 -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
aec30cc063 add --new flag
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2025-09-04 16:07:03 -04:00
Vladimir Mandic
cda545ce18 fix process tab
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2025-09-03 17:08:18 -04:00
Vladimir Mandic
9743c8e4bf keep previous processed state
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2025-08-31 15:20:15 -04:00
Vladimir Mandic
b2dbef53e5 restyled all toolbuttons to be modernui native
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2025-08-31 15:01:50 -04:00
Vladimir Mandic
29b081f032 fix infiniteyou offloading
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2025-08-29 13:36:37 -04:00