Spaces:
Running
on
A10G
Running
on
A10G
Commit
·
0fa742d
1
Parent(s):
fbd466e
increasing video duration
Browse files
app.py
CHANGED
@@ -56,7 +56,7 @@ def infer(prompt, video_in, denoise_strength):
|
|
56 |
|
57 |
negative_prompt = "text, watermark, copyright, blurry, nsfw"
|
58 |
|
59 |
-
video = convert_mp4_to_frames(video_in, duration=
|
60 |
video_resized = [Image.fromarray(frame).resize((1024, 576)) for frame in video]
|
61 |
video_frames = pipe_xl(prompt, negative_prompt=negative_prompt, video=video_resized, strength=denoise_strength).frames
|
62 |
video_path = export_to_video(video_frames, output_video_path="xl_result.mp4")
|
|
|
56 |
|
57 |
negative_prompt = "text, watermark, copyright, blurry, nsfw"
|
58 |
|
59 |
+
video = convert_mp4_to_frames(video_in, duration=20)
|
60 |
video_resized = [Image.fromarray(frame).resize((1024, 576)) for frame in video]
|
61 |
video_frames = pipe_xl(prompt, negative_prompt=negative_prompt, video=video_resized, strength=denoise_strength).frames
|
62 |
video_path = export_to_video(video_frames, output_video_path="xl_result.mp4")
|