The new SeedVR2 templates (Sharpen / Rescue) failed at ComfyUI validation:
SeedVR2VideoUpscaler: Value 717176984641663 bigger than max of 4294967295: seed
Enhance gives every seed / noise_seed / *.seed input a fresh value per job. Those values were 52-bit (random::<u64>() >> 12). SeedVR2 caps its seed at 2^32 − 1.
Adds template::random_seed(), which returns 32-bit seeds, and uses it for submits. Fibo (KSampler / TextGenerate) still gets plenty of variety.
Adds a test that filled seeds stay within u32.
Testing
cargo test --lib enhance:: (with DATABASE_URL=:memory:): 50 pass.
cargo fmt --check and cargo clippy --all-targets are clean.
The new SeedVR2 templates (Sharpen / Rescue) failed at ComfyUI validation:
> SeedVR2VideoUpscaler: Value 717176984641663 bigger than max of 4294967295: seed
Enhance gives every `seed` / `noise_seed` / `*.seed` input a fresh value per job. Those values were 52-bit (`random::<u64>() >> 12`). SeedVR2 caps its seed at 2^32 − 1.
- Adds `template::random_seed()`, which returns 32-bit seeds, and uses it for submits. Fibo (KSampler / TextGenerate) still gets plenty of variety.
- Adds a test that filled seeds stay within u32.
## Testing
- `cargo test --lib enhance::` (with `DATABASE_URL=:memory:`): 50 pass.
- `cargo fmt --check` and `cargo clippy --all-targets` are clean.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
SeedVR2VideoUpscaler (the new Sharpen / Rescue templates) rejects seeds
above 2^32 - 1 at validation, and the 52-bit seeds made every job fail with
"Value ... bigger than max of 4294967295: seed". 32 bits is still plenty of
variety for the Fibo templates.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
cameron
merged commit 31c1b14d61 into master2026-11-01 23:25:21 +00:00
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
The new SeedVR2 templates (Sharpen / Rescue) failed at ComfyUI validation:
Enhance gives every
seed/noise_seed/*.seedinput a fresh value per job. Those values were 52-bit (random::<u64>() >> 12). SeedVR2 caps its seed at 2^32 − 1.template::random_seed(), which returns 32-bit seeds, and uses it for submits. Fibo (KSampler / TextGenerate) still gets plenty of variety.Testing
cargo test --lib enhance::(withDATABASE_URL=:memory:): 50 pass.cargo fmt --checkandcargo clippy --all-targetsare clean.🤖 Generated with Claude Code