Archived
ops+minimaxh3+driver: the condition-noise augmentation the reference adds to visual cond rows
The reference's _cond_video_rows runs every visual conditioning latent through x = aug x + (1 - aug) z at VISUAL_COND_TIMESTEP 0.999, its generator restarted per item, while audio conditioning is untouched (its aug is 1.0, a no-op). We staged the clean latent instead, so every image-, keyframe- and reference- conditioned render started from un-augmented conditioning. New op cond_aug: x = f32(f32(a x) + f32(oma z)), a the aug parameter and oma the f32 of the double 1 - aug -- the reference subtracts in double and rounds once -- with z the (seed, stream) normal stream at element k n + c on stream 2, the reference's noise never sharing the generator that fills x. Seed words 0-1 of the video's seed, per-item restart by per-row offset. Issued once at the end of step_venc over the conditioning rows: staging once at encode-build time is equivalent to the reference's per-call restart because each item's rows are exactly its own, and the driver's build_encode now re-stages the seed, where a stale lane's words used to ride through. Reference RNG is MT19937 and ours Philox, so the noise is distributionally faithful, not bit-exact. ABI unchanged at 28. Device: r4d_selftest 0 failures, cond_aug rows 1.13e-9/4.42e-8 rel_l2 against libref. Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
1 parent
8c547fe240
commit
47b7aae7a3
16 files changed
+320
-4
No files matched your search
@@ -1733,6 +1733,9 @@ const RadBatch* VideoDriver::build_encode(Job& j, int step) {
|
||||
if (enc_dbg_)
|
||||
enc_dbg_dump_file("encg_" + std::to_string((int)it.kind) + "_" +
|
||||
std::to_string((int)it.slot), gd, 25 * 4);
|
||||
/* The video encoder's condition-noise blend draws from the request seed (step_venc), and a
|
||||
* reused lane's R_SEED still holds the previous request's -- stage it like build_step does. */
|
||||
stage_seed(j);
|
||||
stage_geom(j, j.geom, j.rows, 0);
|
||||
if (upload() < 0) return nullptr;
|
||||
base_batches(j, j.geom, 0, step);
|
||||
|
||||
Reference in new issue
Block a user