Commit Graph
21 Commits
Author SHA1 Message Date
WildAi eefa0d530b refactor: nodes/ package — 4 patch nodes move from __init__.py, WMNodes/image
S1 of the 2026-09-08 layout plan: DyPE/SEGA/SPA/HAP node classes now live
in nodes/{dype,sega,spa,hap}.py with engine imports via dual-form try/except
(loader-relative ..src / flat src). Entry __init__.py keeps extension
registration only. nodes/__init__.py re-exports the full 8-class surface
(transitional src/*_node re-exports until S2/S3 land). All patch nodes
category -> WMNodes/image. New tests/test_structure.py guards the layout.
2026-09-08 20:50:40 +03:00
WildAi 279b5f0a19 feat(hiflow): register node, docs, workflow, v2.10.0
Step 8 of plan 2026-09-03. Workflow uses core nodes only;
version-sync, workflow-claims and code-quality guards pass.
2026-09-03 11:32:30 +03:00
IrradiatedHaggis c96560050a Fix graph-build and execution crashes when resolution inputs are None 2026-08-29 15:23:24 -07:00
WildAi 9b11bd70c1 fix(validation): /8 alignment + named validate_inputs params (v2.8.1) 2026-08-25 17:12:27 +03:00
WildAi 900ceda564 fix: resolve review issues W1-W9; suite green (1107 passed) 2026-08-25 16:09:05 +03:00
WildAi 4f0fb1934f fix(spa): accurate error for SEGA/DyPE->SPA switch; narrow filter-error scope 2026-08-24 20:17:19 +03:00
WildAi 17244b9b6d feat(hap): HAP calibration node + runtime fixes for Krea2 2026-08-19 15:54:54 +03:00
WildAi b9578e7400 feat(hrdit): add HAP node, calibration, scaling
- HAP runtime: per-head scope plans via FlexAttention
  (CUDA + torch>=2.5) with SDPA dense-mask fallback
- Calibration: Taylor-softmax scoring + knapsack solver
  (calibration/calibrate_hap.py, --dry_run toy pipeline)
- Shipped FLUX scope plan (configs/scope_plan_flux.json)
- SPA+HAP compose via refcounted shared hook install
- proportional_attention knob on SPA+HAP (default off)
- spa_layer_filter knob on SPA (flat index spec)
- Demote "SPA averaged-attention ACTIVE" log to debug
- README: HAP section, coverage matrix, v2.7.0 changelog
2026-08-16 01:41:20 +03:00
WildAi 265904917e refactor(spa): remove no-op method input from node
The DyPE extrapolation methods (ntk/yarn/vision_yarn/pi) never
affected SPA output: SPA always applies the model's native
no-extrapolation RoPE (ntk_factor=1.0) on the bundled coords
(HRDiT "nor" RoPE). The knob was inherited UI plumbing from the
DyPE base-class constructor chain and only invited misleading
A/B testing.

- drop the method combo from the SPA node schema + execute()
- keep method/yarn_alt_scaling params in apply_spa_to_model for
  the DyPEBasePosEmbed constructor chain (documented as no-ops)
- add a schema guard test asserting the input stays removed
- update README parameter table + changelog
2026-08-15 17:53:37 +03:00
WildAi f0069c6e87 feat(spa): add SPA position-alignment node
HRDiT-style bundle+slide positional alignment for high-res DiTs
(Krea-2, Z-Image, FLUX, Anima, Qwen, Nunchaku). Fixes the
ripple/mosaic output and ~10x inference time at bundle_size>2.

- bundle_size is the paper's tokens-per-bundle N (0=auto, 1=off,
  2..8 explicit); legacy group_num-scale values (>=32) migrate to
  auto with a one-time warning
- trained-extent gate: identity at <=1024px (no big-patch mosaic)
- spa_steps (default 3) gates SPA to leading denoise steps;
  ~1.3-1.8x overhead instead of 10x
- delta-RoPE cache: inv(base)@variant composed once per grid
- averages attention OUTPUTS across 2s-1 slide variants (not
  rotation matrices), killing the period-s ripple
2026-08-15 17:53:18 +03:00
WildAi 8813763a08 fix(freescale): pass 5D latents for 3D latent models (Krea2/Qwen/Anima) 2026-08-10 20:02:55 +03:00
WildAi 65100aa533 feat: add PixelRush node for cascade-based high-res generation 2026-08-06 17:29:34 +03:00
WildAi 1bcb040dec feat: add SEGA (Spectral-Energy Guided Attention) node 2026-08-05 18:50:23 +03:00
WildAi 73f502a1c4 merge: integrate fixes branch into dev (PR#36 + quality improvements)
- Resolve conflicts in base.py (per-axis theta type) and patch_utils.py (Anima + logging)

- Fix max_seq_len regression: revert to dynamic image_seq_len for non-Anima models

- Fix per-axis theta bug: PosEmbedAnima now overrides get_components() with per-axis theta

- All fixes branch improvements preserved: logging, type annotations, DY-PI, caching, snapping, Z-Image fix

- 86 tests passing
2026-08-01 02:03:49 +03:00
WildAi 74aa49fbe3 fix: replace validate_inputs with silent resolution snapping
- Remove validate_inputs() which caused per-input error spam in ComfyUI

- Add _snap_to_multiple() helper that rounds to nearest multiple of 16

- Apply snapping at top of apply_dype_to_model() for graceful UX

- width=1000 now silently becomes 1008 instead of blocking execution
2026-08-01 00:38:22 +03:00
WildAi a316d6cfc3 fix: resolve Z-Image inference crash, add test suite, code quality improvements
- Remove incompatible patchify_and_embed override for Lumina/Z-Image (API drift)

- Replace with lightweight scale-hint approach via wrapper function

- Fix bare except blocks with typed exceptions + logging (CRIT-001)

- Add validate_inputs() for resolution parameters (CRIT-002)

- Add type annotations to rope.py, base.py, patch_utils.py (IMP-001)

- Add DY-PI method (NTH-001)

- Add _axis_token_span caching (NTH-005)

- Rename category to model_patches/position_encoding (NTH-006)

- Document YaRN magic numbers with paper references (NTH-003)

- Add requires-comfyui, ruff config, pytest config to pyproject.toml

- Add 85 unit tests covering rope math, base class, model adapters, validation
2026-07-31 20:53:38 +03:00
levzzz5154 0aab12aa80 add initial DyPE support for Anima/Cosmos models 2026-05-01 17:18:38 +05:00
WildAi 419f12cdcd v2.2.0. zit 2025-12-03 16:34:06 +03:00
WildAi 862dc44e6c v2.1.0. refactor. Qwen, nunchacku support 2025-11-28 23:56:23 +03:00
WildAi a717a8a268 v2.0.0. new method Vision YaRN 2025-11-26 20:33:45 +03:00
WildAi c60e4f1937 init 2025-10-28 00:36:04 +03:00