MMnode/tests
Z User 46617b71b8 fix: snap the half-res first pass onto the even-latent grid
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).
2026-10-15 02:05:48 +00:00
..
fixtures init 2026-09-26 11:11:23 -07:00
conftest.py test: skip zh localization tests when locales bundle is absent 2026-09-26 19:06:41 +00:00
test_audio_gain.py init 2026-09-26 11:11:23 -07:00
test_audio_merge.py init 2026-09-26 11:11:23 -07:00
test_bernini_s2v_conditioning.py test: skip zh localization tests when locales bundle is absent 2026-09-26 19:06:41 +00:00
test_common_nodes.py test: skip zh localization tests when locales bundle is absent 2026-09-26 19:06:41 +00:00
test_easy_save_video.py init 2026-09-26 11:11:23 -07:00
test_h3_audio_lock.py init 2026-09-26 11:11:23 -07:00
test_h3_latent_upscale.py init 2026-09-26 11:11:23 -07:00
test_h3_motion_context.py init 2026-09-26 11:11:23 -07:00
test_h3_presets.py init 2026-09-26 11:11:23 -07:00
test_h3_project.py feat: revert editor to pristine upstream, drop format label mapping and T2V==R2V, fix editor delivery 2026-09-27 21:24:56 +00:00
test_h3_tiling.py init 2026-09-26 11:11:23 -07:00
test_llm_api.py feat: revert editor to pristine upstream, drop format label mapping and T2V==R2V, fix editor delivery 2026-09-27 21:24:56 +00:00
test_ltx_nodes.py test: skip zh localization tests when locales bundle is absent 2026-09-26 19:06:41 +00:00
test_ltxv_make_ref_video.py init 2026-09-26 11:11:23 -07:00
test_media.py init 2026-09-26 11:11:23 -07:00
test_minimax_node.py fix: snap the half-res first pass onto the even-latent grid 2026-10-15 02:05:48 +00:00
test_minimax_utils.py init 2026-09-26 11:11:23 -07:00
test_model_memory.py init 2026-09-26 11:11:23 -07:00
test_models.py init 2026-09-26 11:11:23 -07:00
test_moxie_nodes.py feat: expose context_frames on Moxie MultiTrack Project 2026-10-14 05:12:39 +00:00
test_multitrack_info_output.py feat: revert editor to pristine upstream, drop format label mapping and T2V==R2V, fix editor delivery 2026-09-27 21:24:56 +00:00
test_multitrack_workflow_skill.py init 2026-09-26 11:11:23 -07:00
test_panorama.py init 2026-09-26 11:11:23 -07:00
test_project_memory.py init 2026-09-26 11:11:23 -07:00
test_prompt_builder.py init 2026-09-26 11:11:23 -07:00
test_prompt_relay_encode.py init 2026-09-26 11:11:23 -07:00
test_sam3_refs_composite.py test: skip zh localization tests when locales bundle is absent 2026-09-26 19:06:41 +00:00
test_sampling_preview.py init 2026-09-26 11:11:23 -07:00
test_selflift_sampling.py init 2026-09-26 11:11:23 -07:00
test_slot_input_containers.py init 2026-09-26 11:11:23 -07:00
test_speech.py init 2026-09-26 11:11:23 -07:00
test_stage_timing.py init 2026-09-26 11:11:23 -07:00
test_subtitle_recognition_node.py init 2026-09-26 11:11:23 -07:00
test_subtitle_recognition.py init 2026-09-26 11:11:23 -07:00
test_subtitles.py init 2026-09-26 11:11:23 -07:00
test_timeline_prompt_override.py init 2026-09-26 11:11:23 -07:00
test_video_merge_boundary.py init 2026-09-26 11:11:23 -07:00
test_video_passthrough.py init 2026-09-26 11:11:23 -07:00
test_workflow_submission.py init 2026-09-26 11:11:23 -07:00