Python
fixed crash with i2i and change gps for video
deepbeepmeepb2bf2f9891e7
diff --git a/wgp.py b/wgp.pyindex 2731338..93e2da2 100644--- a/wgp.py+++ b/wgp.py@@ -5016,8 +5016,10 @@ def generate_video(else:mp4_files = glob.glob(os.path.join(save_path, "*.mp4"))video_source = max(mp4_files, key=os.path.getmtime) if mp4_files else None-- fps = get_computed_fps(force_fps, base_model_type , video_guide, video_source )+ if is_image:+ fps = 1+ else:+ fps = get_computed_fps(force_fps, base_model_type , video_guide, video_source )control_audio_tracks = source_audio_tracks = source_audio_metadata = []if "R" in audio_prompt_type and video_guide is not None and MMAudio_setting == 0 and not any_letters(audio_prompt_type, "ABX"):control_audio_tracks, _ = extract_audio_tracks(video_guide)