Includes FFmpeg-backed import/export nodes, master presets, sequence export, metadata probe, image batch to latent bridge, codec preset and audio mux utilities, packaging files, workflows, and baseline tests. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
9 lines
365 B
Python
9 lines
365 B
Python
def ensure_image_batch(images):
|
|
if images is None:
|
|
raise ValueError("IMAGE batch is required")
|
|
if not hasattr(images, "shape") or len(images.shape) != 4:
|
|
raise ValueError("Expected IMAGE batch tensor with shape [B, H, W, C]")
|
|
if images.shape[-1] not in (3, 4):
|
|
raise ValueError("Expected RGB or RGBA channels")
|
|
return images
|