Commit Graph

13384 Commits

Author SHA1 Message Date
CalamitousFelicitousness 44759f5f92 refactor(video): per-engine self-contained tab layout
Each engine tab (Generic, FramePack, LTX) now owns its own size, seed,
frame count, and init imagery. The previously shared Size and Inputs
subtabs are removed; persistent encoding settings move to a single
Output subtab constructed first so engine tabs can consume its widgets.
FramePack drops its local fps/interpolate sliders and consumes the
shared Output widgets; LTX drops the redundant shared init_image
parameter and keeps only its own ltx_init_image, with run_ltx's
condition_image fallback removed in turn.
2026-04-19 04:38:47 +01:00
CalamitousFelicitousness 19b930a221 feat(video): hide LTX engine from general video tab dropdown
The LTX tab owns LTX generation; keep the general video engine dropdown
from listing LTX so users have a single entry point per engine.
2026-04-19 03:42:51 +01:00
CalamitousFelicitousness 318a5397dc feat(ltx): dynamic_shift checkbox and refine_strength gate
Wire the dynamic_shift checkbox into _model_change so its value resets
to caps.default_dynamic_shift on model swap, and narrow the
refine_strength interactive gate to the 0.9.x family. On 2.x refine_strength
is unused: Distilled runs a pre-baked sigma schedule, Dev runs the
canonical Stage 2 distilled-LoRA schedule, neither consumes the slider.
2026-04-19 03:37:59 +01:00
CalamitousFelicitousness 5cf46d2f81 feat(ltx): canonical LTX-2.x Stage 2 recipe (LoRA + guidance + connectors)
Implement the Lightricks two-stage recipe (diffusers PR #13217) for the
LTX-2.x Dev family: Stage 1 at half-res with full four-way guidance,
2x latent upsample, Stage 2 with distilled LoRA + scheduler swap + identity
guidance on STAGE_2_DISTILLED_SIGMA_VALUES.

Extends to both LTX-2.0 and LTX-2.3 Dev via per-family distilled-LoRA
repos carried on the caps; Distilled variants take the same flow minus
the LoRA swap. Auto-couples Refine with a fixed 2x upsample on any Dev
variant with a known LoRA when the user enables Refine without Upsample.

- caps: is_ltx_2_3, use_cross_timestep, default_dynamic_shift,
  stage2_dev_lora_repo, supports_canonical_stage2, modality_default_scale,
  guidance_rescale_default; LTX-2.x defaults realigned to canonical
  cfg=3.0 / steps=30; per-variant STG block and four-way guidance wired
  for non-distilled 2.x
- process: canonical Stage 1/Stage 2 helpers, scheduler + opts snapshot
  under try/finally, per-family upsampler repo, audio latents threaded
  from Stage 1 into Stage 2, use_cross_timestep gated per caps
- overrides: skip the redundant unsharded LTX-2.3 connectors blob and
  share LTX2TextConnectors weights across 2.3 variants when te_shared_t5
- load: Gemma3 shared-TE path for LTX-2.3; gate use_dynamic_shifting=False
  override to 0.9.x only so LTX-2.x stays on its canonical token-count
  dynamic shift
2026-04-19 03:37:25 +01:00
CalamitousFelicitousness 05abd99285 fix(video): invalidate ltx cache on pipe-class mismatch
Move cache tracking from ltx_util into video_load where shared.sd_model
lives, and invalidate the name-based hit when the cached class no longer
matches the current pipeline (e.g. after Unload Models triggers an
auto-reload of the default checkpoint).

- Drop the duplicate module-level loaded_model cache in ltx_util
- Add a pipe-class isinstance check around the cache hit in video_load
2026-04-19 03:36:16 +01:00
awsr 0a35e0c891 Update syntax and fix timing of async functions 2026-04-18 16:01:59 -07:00
awsr 909b049922 Fix no-promise-executor-return 2026-04-18 16:00:39 -07:00
vladmandic c69b3935e2 update skills and wiki
Co-authored-by: Copilot <copilot@github.com>
Signed-off-by: vladmandic <mandic00@live.com>
2026-04-18 19:33:51 +02:00
vladmandic 715a28cc81 add docs skill
Signed-off-by: vladmandic <mandic00@live.com>
2026-04-18 18:56:19 +02:00
vladmandic 88114382c0 compatibility import
Signed-off-by: vladmandic <mandic00@live.com>
2026-04-18 18:41:34 +02:00
Vladimir Mandic b98271e514 Merge pull request #4781 from liutyi/dev
ERNIE covers recreated incl. int4 versions
2026-04-18 18:32:24 +02:00
vladmandic 6bb3644f98 fix automasking with rembg
Signed-off-by: vladmandic <mandic00@live.com>
2026-04-18 18:28:50 +02:00
Oleksandr Liutyi 9f6af314c4 ZETA Chroma cover for the next couple of months 2026-04-18 15:34:19 +00:00
Oleksandr Liutyi 6adb7f3e7e BRIA FIBO covers recreated 2026-04-18 14:34:10 +00:00
Oleksandr Liutyi 5f99160d5b ERNIE covers recreated incl. int4 versions 2026-04-18 13:55:26 +00:00
vladmandic 1640a9eb74 set/validate xet cache
Signed-off-by: vladmandic <mandic00@live.com>
2026-04-18 12:10:03 +02:00
Disty0 86cd6b500b Merge pull request #4778 from resonantsky/dev
Established rdna2 best triton matmul configs
2026-04-17 20:26:53 +03:00
resonantsky cefad871b9 fix rdna2 variable name: is_rdna2 -> is_rdna2_and_older 2026-04-17 18:44:24 +02:00
resonantsky 576d566429 established rdna2 best configs 2026-04-17 16:46:41 +02:00
vladmandic 3e2c16e8ae cleanup and update changelog
Signed-off-by: vladmandic <mandic00@live.com>
2026-04-17 13:40:43 +02:00
Vladimir Mandic 06e3e91d91 Merge pull request #4776 from awsr/extra-network-update
Minor Extra Networks cleanup and update
2026-04-17 09:21:42 +02:00
awsr c5b869a0e2 Remove unreachable logic 2026-04-16 22:59:39 -07:00
awsr 609e679c55 Update Civit AI linking
- Minor adjustment to avoid type mixing
2026-04-16 22:54:09 -07:00
awsr ab4e284ef5 Minor typing updates 2026-04-16 22:34:30 -07:00
awsr ba889d6f1b Remove old now-unreachable code 2026-04-16 22:16:21 -07:00
awsr 57e6389eeb Reorder logic to improve static analysis 2026-04-16 22:13:26 -07:00
CalamitousFelicitousness acac6157b0 refactor(ltx): unify tab across 0.9.x and 2.x pipeline families
Rework the LTX Video tab so one UI handles every registered variant
(0.9.0 through 2.3, Dev/Distilled/SDNQ-4Bit, T2V/I2V/Condition). Per-
variant behavior is driven from a single capability lookup rather than
substring matching on model names scattered across the backend.

- modules/ltx/ltx_capabilities.py: new module computing family, is_i2v,
  distilled, supports_input_media, supports_multi_condition,
  supports_image_cond_noise_scale, supports_decode_timestep,
  supports_stg, supports_audio, supports_frame_rate_kwarg, and the
  default CFG / steps / sampler_shift for a given model name by reading
  its registered repo_cls in models_def.

- modules/ltx/ltx_ui.py: capability-gated UI. Selecting a model rewires
  accordion visibility, slider interactivity, and defaults via a single
  model.change handler. New controls: dedicated image input slot inside
  the LTX tab (replaces the disconnected shared init_image for I2V),
  condition strength slider, CFG / sampler shift / dynamic shift
  sliders that were previously unreachable. Input media accordion
  restructured so the image slot is always-visible while the video /
  gallery prefix tabs only appear on Condition pipelines.

- modules/ltx/ltx_process.py: route the base pass through
  processing.process_images(p) so LTX inherits standard scheduler
  wiring, extra_networks activation, VAE handling, and error plumbing
  from StableDiffusionProcessingVideo. The multi-pass latent path
  (upsample / refine) stays on direct pipeline calls for latent
  re-entry. Refine noise control gets family-specific kwargs:
  denoise_strength for 0.9.x LTXConditionPipeline, noise_scale for all
  2.x pipelines; the prior strength= injection crashed on 2.x and only
  affected conditioning intensity on 0.9.x. Add torch_gc between every
  stage boundary (base to upsample to refine to vae decode) so the
  CUDA allocator cache does not retain the prior pass's allocations
  across stages. Remove the TypeError fallback that silently passed
  raw latents to save_video when VAE decode returned None on OOM;
  those errors now surface cleanly.

- modules/ltx/ltx_util.py: get_conditions grows a family parameter and
  builds LTX2VideoCondition (frames, index, strength) for 2.x or
  LTXVideoCondition (image, video, frame_index, strength) for 0.9.x.
  get_bucket floors to max(32, vae_spatial_compression_ratio) since LTX
  pipelines validate divisibility by 32 regardless of family.

- modules/video_models/video_overrides.py: extend the I2V generator
  reset to cover LTX2ImageToVideoPipeline and both Condition classes.
  Keep the strength= kwarg injection gated to 0.9.x
  LTXConditionPipeline only; LTX2ConditionPipeline.__call__ does not
  accept it (per-condition strength lives on the LTX2VideoCondition
  dataclass instead).
2026-04-17 00:37:15 +01:00
CalamitousFelicitousness ca93f0b9b6 fix(video): correct pipeline classes for ltx 2.3 i2v and condition variants
The 2.3 I2V variants (Dev, Distilled, SDNQ-4Bit, Distilled SDNQ-4Bit)
were registered against LTX2Pipeline, whose __call__ does not accept an
image kwarg; init images were silently dropped. Route them through
LTX2ImageToVideoPipeline instead.

Also register the four 2.3 Condition variants under LTX2ConditionPipeline
so the multi-condition (image/video/gallery prefix) generation path is
reachable on LTX 2.3.
2026-04-17 00:37:15 +01:00
CalamitousFelicitousness 2f00a5764d fix(video): friendlier error messages for missing inputs
Replace "init image not set" / "last image not set" with actionable
messages that tell the user what to do. Matches the phrasing used by
the Caption tab for the same failure class.
2026-04-17 00:37:15 +01:00
Disty0 241d6a291e Expose FP8 E3 2026-04-17 02:06:14 +03:00
Disty0 33726b5019 Update triton mm config 2026-04-16 20:51:10 +03:00
vladmandic 04b8056508 fix typo in ernie
Signed-off-by: vladmandic <mandic00@live.com>
2026-04-16 10:41:10 +02:00
vladmandic 4a7148cc5a update requirements
Signed-off-by: vladmandic <mandic00@live.com>
2026-04-16 08:16:59 +02:00
vladmandic 7061672252 add ltx-2.3-1.1
Signed-off-by: vladmandic <mandic00@live.com>
2026-04-16 08:15:46 +02:00
vladmandic d1fb1b47a8 ernie enable/disable built-in pe
Signed-off-by: vladmandic <mandic00@live.com>
2026-04-16 07:48:09 +02:00
Disty0 eba2c3a8a3 SDNQ update RDNA2 detection 2026-04-16 08:34:17 +03:00
CalamitousFelicitousness 0541843a86 fix(video): resolve outdir_video against outdir_samples 2026-04-15 23:03:15 +01:00
CalamitousFelicitousness 11b42fdcab fix(video): reset ltx loader cache on unload 2026-04-15 23:03:07 +01:00
Disty0 85ec9bf137 SDNQ fix post load quant 2026-04-16 00:38:54 +03:00
Disty0 ed5019116b cleanup 2026-04-16 00:25:21 +03:00
Disty0 9960b371d1 cleanup 2026-04-16 00:22:52 +03:00
Disty0 68a5fe6342 SDNQ add fp8 mm info to modules_quant_config 2026-04-16 00:18:42 +03:00
Vladimir Mandic bb07443995 Merge pull request #4771 from liutyi/dev
Nucleus cover image
2026-04-15 22:33:18 +02:00
Disty0 8a1743712a SDNQ disable FP8 MM on dynamic quant with unsupported GPUs 2026-04-15 23:28:20 +03:00
Disty0 202f12ea6c SDNQ disable fp8 mm with pre-quants on unsupported gpus 2026-04-15 23:12:46 +03:00
Oleksandr Liutyi f719539982 Nucleus cover image 2026-04-15 19:47:03 +00:00
Vladimir Mandic 94d378651e Merge pull request #4770 from liutyi/dev
ERNIE cover images
2026-04-15 20:40:07 +02:00
vladmandic 3e094d394a cleanup changelog
Signed-off-by: vladmandic <mandic00@live.com>
2026-04-15 19:58:49 +02:00
Oleksandr Liutyi c491e65829 ERNIE cover images 2026-04-15 14:41:18 +00:00
vladmandic e6f7017b0d update changelog/todo
Signed-off-by: vladmandic <mandic00@live.com>
2026-04-15 15:22:31 +02:00