35 Commits
Author SHA1 Message Date
Ksenia Balistreri 968d21f1c6 Add Hunyuan 3D 2.1 (#113) 2026-11-23 21:05:36 +01:00
fl0rianrandMichele Balistreri 0d816ef36e feat: add LTX 2.3 and 2.5 video models and audio support (#107)
---

Co-authored-by: Michele Balistreri <[email protected]>
2026-11-21 20:02:53 +01:00
Michele Balistreri eef993689f minor fixes to docs and scripts 2026-11-17 10:51:49 +01:00
Michele Balistreri 745490bc8b Blend video support into the existing architecture (#99)
* p0 refactoring

* p1 step 1

* p1 step 2

* remove check cancel from loaders

* p1 step E

* refactor video model

* p2 step 1

* support mixed dtypes

* more reuse

* uniform loading rules

* add lora roles

* explicit sync

* start vae unification

* improve wan video vae

* nits

* final touch ups

* tests

* add 14b i2v

* add flow_shift to support turbo

* docs changes
2026-11-14 19:27:26 +01:00
fl0rianr 4f959e27f1 Feat: add wan22 14B video model (#97)
* feat: add native Wan 2.2 14B video model

* fix(video): clear generated cache on shutdown

* fix(wan22): require explicit A14B expert paths

* fix(wan22): address FP8 and VAE review findings

* refactor(video): integrate Wan loaders and lifecycle with TheNoise
2026-11-14 19:27:25 +01:00
fl0rianr 0c8286fd64 feat: add native Wan 2.2 video generation (T2V and I2V) (#94) 2026-11-13 11:41:52 +01:00
Ksenia Balistreri dae4f39102 Moss-Image 8 steps recipes (#95) 2026-11-11 17:37:07 +01:00
Michele Balistreri 24c77639f9 Support H3-Image (#93) 2026-11-10 22:43:24 +01:00
Michele Balistreri 025874399a Add Fibo 2 support (#76) 2026-10-21 12:19:55 +02:00
Michele Balistreri 206aa83030 add support for MOSS-Image (#71) 2026-10-16 17:18:37 +02:00
Michele Balistreri 1d5675d54c support Flux 2 VAE small decoder variant 2026-10-16 15:09:06 +02:00
Ksenia Balistreri de54a6f205 Extract pose, depth and canny edge from image (#69) 2026-10-15 09:45:09 +02:00
Ksenia Balistreri 1f9e0df27a add default Qwen Image 2.1 Turbo's sigma grid 2026-10-10 10:40:27 +02:00
Michele Balistreri 40e5751bc3 Add MageFlow/MageTrail 0.3 support (#57) 2026-10-01 11:48:43 +02:00
Ksenia Balistreri a2ee4944b3 Ming Image 0.1 Design (#54) 2026-09-30 15:18:44 +02:00
Ksenia Balistreri 358ecf3a2d Updated documentation (#43) 2026-09-24 14:02:08 +02:00
Michele Balistreri 4de7abf38e Qwen Image 2.1 (#42) 2026-09-21 14:23:49 +02:00
Ksenia Balistreri 31c941bfba Qwen Image / Image Edit support (#37) 2026-09-06 11:13:50 +02:00
Michele Balistreri 9ee112eec7 add AMD dGPU builds (#34) 2026-09-03 10:52:06 +02:00
Michele Balistreri 7b49572967 Bundle Krea 2 tokenizer config (#32)
- Add Krea 2 tokenizer config
- Extend AMD GPU detection method
- Relax dependencies
2026-09-01 17:49:11 +02:00
Michele Balistreri 21607c2be0 read group_size for int8 quants 2026-08-30 13:59:06 +02:00
Michele Balistreri 4a7f18f4b6 Add INT8 ConvRot quantization support (#20) 2026-08-22 20:24:44 +02:00
Michele Balistreri f8f086e141 add Flux Klein 4B/9B support (#18) 2026-08-19 20:45:32 +02:00
Michele Balistreri cb116f49ed Add support for ESRGAN and custom upscale ratios (#9) 2026-08-16 10:50:09 +02:00
Chris KuetheandDeepSeek-V4-Flash-0731 8fc1c62103 Add z-image-turbo (#7)
* vibe-coded z-image-turbo support

written by DeepSeek-V4-Flash-0731 , lemonade , and opencode.

adapt z-image-turbo to sampler/VAE refactors

match Z-Image and Flux VAE to ComfyUI checkpoint layouts

The Comfy-Org single-file exports use ComfyUI/Lumina key names rather than the
official diffusers layouts:
- Z-Image DiT: fused qkv attention with q_norm/k_norm/out, plain x_embedder and
  final_layer (no all_x_embedder/all_final_layer ModuleDict).
- Flux VAE: ComfyUI naming (mid.block_1/attn_1/block_2, up.N.block.M,
  upsample.conv nearest upsamplers, nin_shortcut, norm_out) and reverse-indexed
  up blocks (up.3 -> up.2 -> up.1 -> up.0).

Also strip the decoder. prefix when loading the Flux VAE so the strict load
succeeds, and fix the README --dit/--vae example paths (split_files/).

fix Z-Image dtype and force the euler sampler

- TimestepEmbedder: cast the fp32 sinusoidal embedding to the projection weight
  dtype (bf16) before the MLP, fixing a Float/BFloat16 matmul error.
- ZImageModel.generate: coerce er_sde -> euler with a warning. The web UI defaults
  to er_sde, but Z-Image's flow schedule (model timestep t = 1 - sigma) is only
  compatible with the Euler solver; er_sde reads step.t as sigma and would produce
  wrong output.

fix Z-Image gray output: velocity sign, shifted schedule, text-encoder dtype

- denoise_step: the FlowMatch scheduler integrates x + dt * noise_pred with
  noise_pred = -model_out, so the velocity fed to the shared euler loop (x -= delta*v)
  must be the NEGATED DiT output. The missing negation sent the trajectory the wrong
  way, collapsing the image to gray.
- sampling: Z-Image-Turbo's sigmas are the static-shifted grid (shift = 3.0,
  use_dynamic_shifting = False), not the uniform linspace I had. Apply
  sigma' = 3*s/(1 + 2*s) so deltas and model timesteps (t = 1 - sigma') match the
  official scheduler.
- text encoder: use dtype= instead of the deprecated torch_dtype= to silence the
  transformers warning.

fix Z-Image and Flux VAE attention SDPA layouts

The Z-Image DiT attention fed [batch, seq, heads, head_dim] straight into
scaled_dot_product_attention instead of transposing to [batch, heads,
seq, head_dim], so tokens never mixed and the latent drifted to ~2x std.

The Flux VAE decoder attention had two bugs: it reshaped q/k/v with the
wrong transpose so it attended over a single token instead of the H*W
spatial positions, and it dropped the residual connection, collapsing
the decoder to gray output. Both now follow the reference layout and
restore x + proj_out(attention).

* refine Z-Image support

- single-file Qwen3 text encoder (vendored config, init_empty_weights, tied lm_head)
- torch.compile(fullgraph=True) on transformer blocks (ZIMAGE_NO_COMPILE opt-out)
- reuse the shared attention util in the Z-Image Attention
- feed sigma as Step.t so both euler and er_sde work; derive t=1-sigma in denoise_step
- fix CFG velocity composition (unconditional baseline was -pos instead of -neg)
- default guidance scale to 1 (ComfyUI 'off' convention)
- fetch text encoder / flux upscaler provisioning in the downloader

Co-authored-by: DeepSeek-V4-Flash-0731 <[email protected]>

* use the Flux latent upscaler for Z-Image upscaling

- enable the flux format in _UPSCALER_FORMATS and add make_flux weights (bf16)
- ZImageModel._upscale_format() -> flux (Flux VAE affine shift/scale latent)
- downloader fetches the SesquiLSR Flux upscaler and converts fp32 -> bf16
- tests for the flux format and upscaler loading

* address feedback (part 1)

* vendor the Z-Image Qwen3 tokenizer config

---------

Co-authored-by: DeepSeek-V4-Flash-0731 <[email protected]>
2026-08-15 20:05:09 +02:00
Michele Balistreri 004254f1bf prepare for v0.1.1 2026-08-08 08:59:31 +02:00
Michele Balistreri bffc91ad4c add symlinks to bundles 2026-08-07 11:30:42 +02:00
Michele Balistreri bd28f2d100 add more build scripts 2026-08-07 10:28:34 +02:00
Michele Balistreri 41bd4a56f7 add portable builds 2026-08-06 11:53:51 +02:00
Michele Balistreri 6ed56a63cc add license 2026-08-05 16:51:38 +02:00
Michele Balistreri 7bc0dcac0b thenoise 2026-08-04 13:14:27 +02:00
Michele Balistreri 90e9d4ed65 Review cleanup: download repo, rename hunyuan, drop plan doc
- download_krea2.py: fetch bf16 files from Comfy-Org/Krea-2 (no auth);
  repo structure/file names updated
- Rename diffuse/dit/anima/hunyuan.py -> sampling.py; prune all dead code
  (rotary/guidance helpers unused by inference) to just get_timesteps_sigmas
  and step; update adapter import
- Remove Japanese comments in strategy_base.py (English equivalents)
- Fix stale target_keys/exclude_keys args in load_safetensors_with_lora
- Remove docs/DEVELOPMENT_PLAN.md (implementation complete)
- Drop stale hunyuan references; update README Krea2 example paths
2026-08-02 17:52:39 +02:00
Michele Balistreri b1bb8658c8 Remove vendored libraries; package own implementation
- Delete vendor/ (musubi_tuner + sd_scripts) entirely
- diffuse/__init__.py no longer mutates sys.path
- pyproject.toml: declare all diffuse subpackages + tokenizer config data
- Remove dead debug main block in the shared VAE
2026-08-02 16:52:48 +02:00
Michele Balistreri 1e5032f0a3 rename script 2026-08-02 11:46:59 +02:00
Michele Balistreri a208073799 initial import 2026-08-02 08:30:22 +02:00