Multi-segment projects crashed on the first continuation segment with RuntimeError: shape '[1, 24, 1, 1, 8, 2, 15, 2]' is invalid for input of size 12240 (patchify_video). The hidden half-resolution first pass declared its size with plain integer halving, so a 1920x1080 editor sampled at 960x540 - and a latent encoded from 540px carries an odd 17-row count. Odd latents sample fine, but when the segment tail comes back as motion-context keyframes on the next segment, the model's patchify_video (2x2 latent patches) cannot reshape them. The first pass now snaps onto the nearest 64px grid (h3_even_latent_size) so every latent in the pipeline keeps even row/column counts: - 1920x1080 editor samples at 960x512 (was 960x540 -> 17 rows) - 1344x768 samples at 704x384 (672 had odd latent columns) - 3840x2160 is unchanged at 1920x1088 - the size the VAE already rounds up to, so the 4K-editor trick behaves identically Outputs and second-pass dimensions are unchanged; only continuation segments that previously crashed now run. Also updates the stale single-task expansion test, which still expected pre-half-res-trick conditioning dimensions (editor size instead of the sampled size). |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| audio_gain.py | ||
| audio.py | ||
| bernini_s2v_model_patch.py | ||
| bernini_s2v.py | ||
| bernini.py | ||
| h3_conditioning_cache.py | ||
| h3_presets.py | ||
| h3_project.py | ||
| image.py | ||
| llm_api.py | ||
| log.py | ||
| media.py | ||
| minimax.py | ||
| model_memory.py | ||
| models.py | ||
| multitrack.py | ||
| panorama.py | ||
| project_memory.py | ||
| prompt_builder.py | ||
| prompt_override.py | ||
| rtx_vsr.py | ||
| sampling_preview.py | ||
| speech.py | ||
| subtitles.py | ||
| video.py | ||
| workflow_submission.py | ||