From 2f00a5764d69157d86084cd98596556fc639d58b Mon Sep 17 00:00:00 2001 From: CalamitousFelicitousness Date: Thu, 16 Apr 2026 03:38:13 +0100 Subject: [PATCH] fix(video): friendlier error messages for missing inputs Replace "init image not set" / "last image not set" with actionable messages that tell the user what to do. Matches the phrasing used by the Caption tab for the same failure class. --- modules/video_models/video_run.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/video_models/video_run.py b/modules/video_models/video_run.py index 51c781e6f..3454faf69 100644 --- a/modules/video_models/video_run.py +++ b/modules/video_models/video_run.py @@ -65,14 +65,14 @@ def generate(*args, **kwargs): log.warning('Video: op=T2V init image not supported') elif 'I2V' in model: if init_image is None: - return video_utils.queue_err('init image not set') + return video_utils.queue_err('No input image provided. Please upload or select an image.') p.task_args['image'] = images.resize_image(resize_mode=2, im=init_image, width=p.width, height=p.height, upscaler_name=None, output_type='pil') log.debug(f'Video: op=I2V init={init_image} resized={p.task_args["image"]}') elif 'FLF2V' in model: if init_image is None: - return video_utils.queue_err('init image not set') + return video_utils.queue_err('No input image provided. Please upload or select an image.') if last_image is None: - return video_utils.queue_err('last image not set') + return video_utils.queue_err('No last frame image provided. Please upload or select an image.') p.task_args['image'] = images.resize_image(resize_mode=2, im=init_image, width=p.width, height=p.height, upscaler_name=None, output_type='pil') p.task_args['last_image'] = images.resize_image(resize_mode=2, im=last_image, width=p.width, height=p.height, upscaler_name=None, output_type='pil') log.debug(f'Video: op=FLF2V init={init_image} last={last_image} resized={p.task_args["image"]}') @@ -82,7 +82,7 @@ def generate(*args, **kwargs): log.debug(f'Video: op=VACE reference={init_image} resized={p.task_args["reference_images"]}') elif 'Animate' in model: if init_image is None: - return video_utils.queue_err('init image not set') + return video_utils.queue_err('No input image provided. Please upload or select an image.') p.task_args['image'] = images.resize_image(resize_mode=2, im=init_image, width=p.width, height=p.height, upscaler_name=None, output_type='pil') p.task_args['mode'] = 'animate' p.task_args['pose_video'] = [] # input pose video to condition the generation on. must be a list of PIL images.