Spaces:
Running
on
Zero
Running
on
Zero
zejunyang
commited on
Commit
•
67869c4
1
Parent(s):
ab95f9d
debug fps data type
Browse files
app.py
CHANGED
@@ -195,7 +195,7 @@ def audio2video(input_audio, ref_img, headpose_video=None, size=512, steps=25, l
|
|
195 |
save_path = f"{save_dir}/{size}x{size}_{time_str}_noaudio"
|
196 |
save_pil_imgs(video, save_path)
|
197 |
|
198 |
-
save_path = batch_images_interpolation_tool(save_path, frame_inter_model, fps)
|
199 |
|
200 |
stream = ffmpeg.input(save_path)
|
201 |
audio = ffmpeg.input(input_audio)
|
@@ -320,7 +320,7 @@ def video2video(ref_img, source_video, size=512, steps=25, length=150, seed=42):
|
|
320 |
save_path = f"{save_dir}/{size}x{size}_{time_str}_noaudio"
|
321 |
save_pil_imgs(video, save_path)
|
322 |
|
323 |
-
save_path = batch_images_interpolation_tool(save_path, frame_inter_model, src_fps)
|
324 |
|
325 |
audio_output = f'{save_dir}/audio_from_video.aac'
|
326 |
# extract audio
|
|
|
195 |
save_path = f"{save_dir}/{size}x{size}_{time_str}_noaudio"
|
196 |
save_pil_imgs(video, save_path)
|
197 |
|
198 |
+
save_path = batch_images_interpolation_tool(save_path, frame_inter_model, int(fps))
|
199 |
|
200 |
stream = ffmpeg.input(save_path)
|
201 |
audio = ffmpeg.input(input_audio)
|
|
|
320 |
save_path = f"{save_dir}/{size}x{size}_{time_str}_noaudio"
|
321 |
save_pil_imgs(video, save_path)
|
322 |
|
323 |
+
save_path = batch_images_interpolation_tool(save_path, frame_inter_model, int(src_fps))
|
324 |
|
325 |
audio_output = f'{save_dir}/audio_from_video.aac'
|
326 |
# extract audio
|