65 Commits

Author SHA1 Message Date
Vladimir Mandic 34d9d304db modular guiders and other stuff
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2026-08-30 11:51:19 +02:00
CalamitousFelicitousness 259e15fafe feat(lora): per-layer select stack modes klora and estlora
Two-network subject+style sets select a winner per layer instead of
summing: scores are top-K magnitude sums (klora) or Frobenius energies
(estlora), and a timestep ramp shifts layers from the subject network
toward the style network across sampling, reduced to at most one
precomputed flip per layer per pass. On sub-8-bit SDNQ the pair rides
the side-channel as separate segments flipped in place; other layers
recompute the winner from the pristine backup, so select modes force
backup mode. Selection resets per pass from the callback setup and is
gated off under model compile. estlora's measured style-discrepancy
term is exposed as an option. Adds XYZ axes for the stack settings.
2026-08-28 13:09:25 +01:00
CalamitousFelicitousness 4509b145cd feat(attention): generation context
A module-level context tells attention consumers what is running: the
component role (transformer, text encoder, vae), the index of the
denoiser forward about to run, the pass length, and the model. It is
opened and closed around process_images, reset per denoising pass beside
the callback setup, and advanced by both step sources: the classic
callback passes the completed step plus one, the modular pre-forward
hook counts forwards. Roles come from the existing text encoder and vae
hijacks and the modular phase hooks. The step also lives in a device
scalar updated in place, so a compiled reader keeps its graph across
steps.
2026-08-23 08:20:46 +01:00
Vladimir Mandic c66342e2e6 fallback unpack-latents, log client auth, update login page
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2026-08-19 18:03:39 +02:00
Vladimir Mandic 48cf0166f3 separate progress monitoring from live preview, live preview improvements, progress details
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2026-08-07 11:41:40 +02:00
Vladimir Mandic 870cca30fa schedulers fix zero-sigma final-step
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2026-07-06 13:21:19 +02:00
Vladimir Mandic b61475574e preview check for output panel visibility
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2026-06-25 10:54:35 +02:00
CalamitousFelicitousness bcebb6b81b refactor(ideogram4): adopt diffusers-native pipeline
diffusers shipped first-party Ideogram 4 (transformer + pipeline) in
9b0818cf, so drop the in-tree port and keep only SD.Next integration glue.

Bump the diffusers pin to 9b0818cf and build diffusers' Ideogram4Pipeline
from a thin loader with per-transformer SDNQ. A small subclass keeps the
text encoder resident for the Qwen3-VL tap under balanced offload, and the
step callback denormalizes the preview latent from vae.bn before unpatchify.
Deletes the ported transformer, pipeline, scheduler, text encoder, and
latent-norm constants.
2026-06-05 01:54:18 +01:00
Vladimir Mandic f67562b912 - all guidance values set to -1 to enable using model defaults
- log default values used if not overriden by user
- rename inconsistent guidance variables:

p.cfg_scale
p.image_cfg_scale -> p.cfg_image
p.diffusers_guidance_rescale -> p.cfg_rescale
p.pag_scale -> p.cfg_true
p.pag_adaptive -> p.cfg_adaptive

Signed-off-by: Vladimir Mandic <mandic00@live.com>
2026-05-16 11:06:23 +02:00
Vladimir Mandic 7ee740e744 add hidream-o1
Co-authored-by: Copilot <copilot@github.com>
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2026-05-10 21:45:58 +02:00
Vladimir Mandic 63190a50e7 fix ernie preview
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2026-05-02 08:06:57 +02:00
awsr fb853af4b0 RUF013 updates 2026-03-24 04:58:19 -07:00
CalamitousFelicitousness 423c3ef8b7 fix(correction): step-based progress and multi-channel latent support
replace hardcoded timestep thresholds with step-based progress percentages
so corrections work with flow-match schedulers (Flux 2, etc.)
adapt brightness, color and tint corrections for multi-channel latents:
- brightness uses multiplicative scaling instead of additive offset
- color applies to all channels instead of skipping channel 0
- tint falls back to uniform offset when TAESD encoding is unavailable
pass step parameter through correction_callback for progress calculation
2026-03-19 04:03:13 +00:00
vladmandic e0faa149dd cleanup
Signed-off-by: vladmandic <mandic00@live.com>
2026-03-13 14:44:58 +01:00
vladmandic 3addc16a5a merge: modules/processing_callbacks.py 2026-03-13 13:29:46 +01:00
Vladimir Mandic e5c494f999 cleanup logger 2026-02-19 11:09:13 +01:00
Vladimir Mandic a3074baf8b unified logger 2026-02-19 09:46:42 +01:00
Vladimir Mandic bfe014f5da modernize typing 2026-02-19 09:15:37 +01:00
vladmandic f444679fc1 lint
Signed-off-by: vladmandic <mandic00@live.com>
2026-01-16 08:56:30 +01:00
CalamitousFelicitousness c605a1bb62 feat(taesd): add FLUX.2 preview support
Enable live preview during FLUX.2 and FLUX.2 Klein image generation
using the TAE FLUX.2 decoder from madebyollin/taesd.

- Add dedicated TAE entries (FLUX.1, FLUX.2, SD3) that auto-select
  based on model type, making the dropdown only affect SD/SDXL models
- Add FLUX.2 latent unpacking in callback to convert packed
  [B, seq_len, 128] format to spatial [B, 32, H, W] for preview
- Support FLUX.2's 32 latent channels (vs 16 for FLUX.1/SD3)
2026-01-16 03:01:52 +00:00
Vladimir Mandic e166f6a1f3 linting
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2025-10-23 11:01:20 -04:00
nolbert82 c3361e04e7 Fixed guidance end 2025-10-22 21:33:06 +02:00
Disty0 f12caf81f9 SDNQ skip bad layers on svd and fix svd with dequantize_fp32 2025-10-17 17:25:50 +03:00
Vladimir Mandic 4f336d3aab linting
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2025-10-16 19:39:05 -04:00
Vladimir Mandic a4bc61919d add explicit sync for vae preview
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2025-10-16 19:25:12 -04:00
Disty0 a4e51759b9 Force synchronize with ipex 2025-09-02 14:26:35 +03:00
Disty0 ac05301f9a Enable explicit synchronize for ROCm on Windows 2025-08-15 16:05:27 +03:00
Vladimir Mandic 3f5ab15f64 ltx-conditioned prototype
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2025-07-09 18:11:51 -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
Vladimir Mandic 06d5d498fc flex.2 control
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2025-04-24 13:04:50 -04:00
Vladimir Mandic cd8357f1f4 add detailer renoise feature
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2025-04-03 21:12:58 -04:00
Vladimir Mandic 0d6301ff25 samplers add manual sigma adjustment
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2025-03-27 16:26:11 -04:00
Vladimir Mandic d4a67dd946 lora logging
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2025-03-15 19:04:03 -04:00
Disty0 cf97c9fbe8 Add synchronize call for zluda 2025-02-22 23:01:44 +03:00
Vladimir Mandic 0114b59470 refactor of progress monitoring
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2025-01-05 13:22:19 -05:00
Vladimir Mandic 669799bfcc fix pulid
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2025-01-05 08:13:41 -05:00
Disty0 2ecc95c571 Fix live previews with Flux 2024-12-30 16:49:58 +03:00
Disty0 d4f04dbd73 Fix live preview sigmas with img2img 2024-12-27 15:39:58 +03:00
Disty0 422b2bbebd Move simga calcs to do_set_current_image 2024-12-25 20:06:20 +03:00
Disty0 917d9e6c86 Live previews add flow_prediction 2024-12-25 18:43:10 +03:00
Disty0 5e35d6c3a3 Better live previews 2024-12-25 18:19:43 +03:00
Vladimir Mandic 1185950c4a yet another lora refactor
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2024-12-09 13:40:19 -05:00
Vladimir Mandic eee85e5a4e lora refactor in progress
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2024-11-30 12:29:58 -05:00
Vladimir Mandic b6963470a9 conditional imports and summary timer
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2024-11-29 10:05:06 -05:00
Vladimir Mandic d6c1487f9a Merge branch 'dev' into lora-refactor 2024-11-29 07:50:55 -05:00
Vladimir Mandic 23b6309800 ui updates
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2024-11-25 14:37:25 -05:00
AI-Casanova fccd1ed364 Enable stepwise LoRA (untested) 2024-11-24 14:16:33 -06:00
AI-Casanova 2635906742 fix scheduled prompt because diffusers callback is broken 2024-11-11 18:37:08 -06:00
AI-Casanova fb4638288b fix IndexError, change callback type 2024-11-08 23:31:52 -06:00
Vladimir Mandic 29f5202811 Merge branch 'dev' into refactor-prompt 2024-11-06 10:58:03 -05:00