From 5ac622b28e3b29bf1340c4bd6486a31b641f47ba Mon Sep 17 00:00:00 2001 From: Mr-Neutr0n <64578610+Mr-Neutr0n@users.noreply.github.com> Date: Sat, 7 Feb 2026 02:18:24 +0530 Subject: [PATCH] Fix variable name mismatch in simple_video_sample.py Changed input_image to image at line 171 since input_image is not defined until line 175. The resize operation should be applied to the image variable which is defined earlier. Fixes #469 --- scripts/sampling/simple_video_sample.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/sampling/simple_video_sample.py b/scripts/sampling/simple_video_sample.py index 904db755..e4eeb69f 100644 --- a/scripts/sampling/simple_video_sample.py +++ b/scripts/sampling/simple_video_sample.py @@ -168,7 +168,7 @@ def sample( if h % 64 != 0 or w % 64 != 0: width, height = map(lambda x: x - x % 64, (w, h)) - input_image = input_image.resize((width, height)) + image = image.resize((width, height)) print( f"WARNING: Your image is of size {h}x{w} which is not divisible by 64. We are resizing to {height}x{width}!" )