Kandinsky6 (#8537)

Signed-off-by: leffff <levnovitskiy@gmail.com>
Signed-off-by: Artem Borisov <divotionchannel@gmail.com>
Co-authored-by: leffff <levnovitskiy@gmail.com>
Co-authored-by: Artem Borisov <divotionchannel@gmail.com>
This commit is contained in:
authored and GitHub committed 2026-10-06 15:55:15 +08:00
1 parent 1f63e97a40
commit 5f95115e70
38 files changed
+8574 -8

No files matched your search

@@ -334,7 +334,12 @@ class OmniOpenAIServingVideo:
)
vp.width = vp.width or video_defaults.width
vp.height = vp.height or video_defaults.height
if num_frames_provided and vp.num_frames != video_defaults.num_frames:
# Only fixed-duration pipelines (those declaring
# ``duration_seconds``, e.g. MAGI-2) pin the frame count; models
# that merely publish serving defaults (e.g. Kandinsky 6, any
# 4k+1 frame count) still accept an explicit ``num_frames``.
fixed_frame_count = video_defaults.duration_seconds is not None
if fixed_frame_count and num_frames_provided and vp.num_frames != video_defaults.num_frames:
raise HTTPException(
status_code=HTTPStatus.BAD_REQUEST.value,
detail=(f"This diffusion model requires {video_defaults.num_frames} frames; got {vp.num_frames}."),