Skip to content

Commit 28e9c6b

Browse files
committed
[fix] Correct parameter validation for image-to-video mode
1 parent bc0d6a1 commit 28e9c6b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cogkit/utils/misc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ def _check_image_to_video_params(
6666
generation_mode.value,
6767
GenerationMode.ImageToVideo,
6868
)
69-
if image is not None:
69+
if image is None:
7070
err_msg = f"Image input is required in the image2video pipeline. Please provide a regular image file (image_file = {image})."
7171
raise ValueError(err_msg)
7272

0 commit comments

Comments
 (0)