Skip to content

Commit

Permalink
resolve issue with video concatenation
Browse files Browse the repository at this point in the history
order always being random
  • Loading branch information
yyhhyyyyyy committed Jul 25, 2024
1 parent 9058419 commit 5c2db3a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/services/task.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion webui/Main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"),
Expand Down

0 comments on commit 5c2db3a

Please sign in to comment.