Commit Graph
3 Commits
Author SHA1 Message Date
facok a12fe59d0a Replace freq_cutoff with resolution-independent n_periods parameter
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.
2026-04-14 05:41:53 +08:00
facok 634e6c199f Tune defaults and simplify node interface
- Lower freq_cutoff default from 0.02 to 0.005 (most conservative)
- Fix max_rotation default mismatch (1.57 → 1.5708 = π/2)
- Hide hf_preserve from UI, hardcode at 0.0 (optimal setting)
- Gate logging block behind isEnabledFor(INFO) to avoid GPU syncs
- Remove redundant .float() in energy compensation (already float32)
2026-04-14 04:36:32 +08:00
facok 951bfa6526 Initial release: frequency-domain composition diversity for distilled models
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
2026-04-14 04:12:53 +08:00