From ed4ebd31f8b7c7bf3474f3c910e47524489cbfd0 Mon Sep 17 00:00:00 2001 From: jlw_4049 Date: Mon, 30 Sep 2024 20:15:41 -0400 Subject: [PATCH] fix: generating double the frames when frames are specified --- frame_forge/__init__.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/frame_forge/__init__.py b/frame_forge/__init__.py index 3216aff..506b4fc 100644 --- a/frame_forge/__init__.py +++ b/frame_forge/__init__.py @@ -209,7 +209,9 @@ class GenerateImages: # generate source images ScreenGen( vs_source_info, - frame_numbers=self.frames, + frame_numbers=[ + self.frames[i] for i in range(len(self.frames)) if i % 2 == 0 + ], fpng_compression=1, folder=screenshot_comparison_dir, suffix="a_source__%d", @@ -220,7 +222,9 @@ class GenerateImages: # generate encode images ScreenGen( vs_encode_info, - frame_numbers=self.frames, + frame_numbers=[ + self.frames[i] for i in range(len(self.frames)) if i % 2 != 0 + ], fpng_compression=1, folder=screenshot_comparison_dir, suffix="b_encode__%d",