From 5c2db3aa92c281c19998e145ecb8faf915ca2540 Mon Sep 17 00:00:00 2001 From: yyhhyyyyyy <95077259+yyhhyyyyyy@users.noreply.github.com> Date: Thu, 25 Jul 2024 13:36:21 +0800 Subject: [PATCH] resolve issue with video concatenation order always being random --- app/services/task.py | 2 +- webui/Main.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/services/task.py b/app/services/task.py index c2c10487..ccbe4e47 100644 --- a/app/services/task.py +++ b/app/services/task.py @@ -162,7 +162,7 @@ def generate_final_videos( final_video_paths = [] combined_video_paths = [] video_concat_mode = ( - params.video_concat_mode if params.video_count > 1 else VideoConcatMode.random + params.video_concat_mode if params.video_count == 1 else VideoConcatMode.random ) _progress = 50 diff --git a/webui/Main.py b/webui/Main.py index fcbb66e2..94561591 100644 --- a/webui/Main.py +++ b/webui/Main.py @@ -542,7 +542,7 @@ def save_keys_to_config(cfg_key, value): params.video_aspect = VideoAspect(video_aspect_ratios[selected_index][1]) params.video_clip_duration = st.selectbox( - tr("Clip Duration"), options=[2, 3, 4, 5, 6], index=1 + tr("Clip Duration"), options=[2, 3, 4, 5, 6, 7, 8, 9, 10], index=1 ) params.video_count = st.selectbox( tr("Number of Videos Generated Simultaneously"),