Major rewrite of DiversityBoost core:
- Replace Butterworth LPF with polynomial frequency modulation
(smooth continuous curve, token-grid normalized via DiT patch_size)
- Add hf_factor, lf_factor, transition parameters for fine control
- Add schedule parameter (flat/linear/cosine) for timestep decay
- Protect near-DC frequencies (r_norm < 1.0) from dc_preserve
to prevent brightness/color shift
- Fix DC handling: step 1+ always preserves full DC
- Support 5D video latents
Rename Core node to V3 (node_id=DiversityBoostCoreV3).
Preserve old node as Legacy (node_id=DiversityBoostCore) for
backward compatibility.
Remove experimental DCW and Smart Patch nodes (superseded by V3).
Aggressive defaults tuned for strong diversity:
strength=2.0, clamp=0.5, hf=1.0, lf=0.3, trans=2.0, sched=linear
Experimentally validated combined mechanism:
1. Butterworth LPF erases HF spatial anchoring (composition sketch)
2. Random 4x4 DCT field applied after blur redistributes latent energy
Push runs after cleanup in single post-cfg hook — ensures signal survives.
Defaults: strength=0.5, n_periods=2, noise_type=pink.
DC (image mean brightness/color) was previously hardcoded to 1.0
(fully preserved). Testing showed dc_preserve=0 (let model rebuild
brightness freely) produces better quality. New parameter allows
tuning between 0 (attenuate DC with HF) and 1 (fully preserve).
Default 0.
Circular mask with cutoff = n/max(H,W) under-counts bins along the
shorter axis of non-square images. Elliptical normalization computes
r_norm = sqrt((ky/n)^2 + (kx/n)^2) so the mask depends only on
integer cycle counts, not on H or W. n_periods=2 now covers exactly
14 bins (>0.1) at any resolution and any aspect ratio.
Remove claim of "precise spatial surgery" and "not affecting appearance"
— DiversityBoost also relies on random noise phase. Reword to emphasize
frequency-domain precision and mathematical safety bounds vs indirect
token-level perturbation.
Bilingual comparison table explaining the fundamental difference:
frequency-domain phase surgery (direct, bounded, safe) vs padding
token perturbation (indirect, random, no guarantees).
freq_cutoff=0.005 produced zero effective bins at 512x512 (min
non-DC frequency 0.0156 >> 0.005 cutoff). New n_periods param
computes cutoff = n_periods / max(H,W) at runtime, guaranteeing
consistent composition-scale coverage at any resolution.
Also adds bilingual README (English + Chinese) and per-batch-item
diagnostics in logging.
Injects seed-dependent low-frequency phase from initial noise into the
model's denoised prediction at step 0 via post-CFG hook. Different seeds
produce different compositions instead of identical layouts.
Key features:
- Slerp phase rotation with shared rotation field (zero color artifacts)
- 6th-order Butterworth LPF (steep composition/object frequency separation)
- Per-bin tanh rotation budget (decouples diversity from tail risk)
- High-frequency attenuation (prevents frequency shearing on distilled models)
- Optional energy compensation
- LTXAV video format compatible