driver+server: keyframes ride a latent upscale -- pinned at the small size, then re-encoded at the full size

A keyframe is pinned on the grid the steps run on, which is why 7935897 refused it with
latent_upscale. The pin can follow the switch instead: the server prepares each keyframe at the
small size too, the same way as at the canvas (stretch or centre crop), and the driver encodes
that picture into the keyframe's slot before the prompt pass, runs the small steps on the pack it
already lays out at the small size, and after the VUPSCALE pass encodes the canvas picture into
the same slot before the first full-size evaluation. The plugin reads its slots as before, so
neither the plugin nor the ABI changes; rad_builder.h documents the order. References keep their
own grids and are encoded once, as before.

Host: video_gen_test checks the pass order (E C S S U E S A D), each encode's size and slot and the
step rows at both sizes, and that a keyframe without its small picture is refused; videos_test
checks that each keyframe is prepared at both sizes with its stretch/crop and that the tower still
sees the canvas frame only. GUIDE, the ComfyUI node's README and tooltip no longer say keyframes
refuse latent_upscale.
This commit is contained in:
Alex authored and StillDeadcode committed 2026-10-28 12:37:10 +01:00
1 parent 812cdeceb0
commit 9f707a0f67
10 files changed
+181 -33

No files matched your search

+4 -1
View File
@@ -1253,7 +1253,10 @@ int rad_declare_audio_generator(RadBuilder* b, const RadAudioGenDecl* d);
* encoder.
*
* `enc_kind` (RAD_ENC_*, rad_runtime.h) and `enc_slot`, the media's 1-based number within its kind,
* say where the latents go. The media's shape is the plugin's to accept: rad_arch_encode_geom
* say where the latents go. A latent-upscaled request's keyframes, pinned on the grid its steps
* run on, are encoded at W' x H' before the prompt pass and again at W x H, into the same slots,
* after the VUPSCALE pass and before the first evaluation at W x H; references, in their own grid,
* are encoded once. The media's shape is the plugin's to accept: rad_arch_encode_geom
* (below) refuses what the encoders cannot take, and the step's packed sequence with the encoded
* media in it is the plugin's rad_arch_video_pack.
*