Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -264,8 +264,8 @@ def generation_loop(video_path='./test_videos', seed=666, fps_out=12, batch_size
|
|
264 |
return positive_prompts_embeds
|
265 |
|
266 |
def cut_videos(videos, sp_size):
|
267 |
-
if videos.size(1) >
|
268 |
-
videos = videos[:, :
|
269 |
t = videos.size(1)
|
270 |
if t <= 4 * sp_size:
|
271 |
print(f"Cut input video size: {videos.size()}")
|
@@ -443,7 +443,7 @@ with gr.Blocks(title="SeedVR2: One-Step Video Restoration via Diffusion Adversar
|
|
443 |
</a>
|
444 |
|
445 |
<h4>Notice</h4>
|
446 |
-
<p>This demo supports up to <b>720p</b> and <b>
|
447 |
For other use cases (image restoration, video resolutions beyond 720p, etc), check the <a href='https://github.com/ByteDance-Seed/SeedVR' target='_blank'>GitHub repo</a>.</p>
|
448 |
|
449 |
<h4>Limitations</h4>
|
|
|
264 |
return positive_prompts_embeds
|
265 |
|
266 |
def cut_videos(videos, sp_size):
|
267 |
+
if videos.size(1) > 121:
|
268 |
+
videos = videos[:, :121]
|
269 |
t = videos.size(1)
|
270 |
if t <= 4 * sp_size:
|
271 |
print(f"Cut input video size: {videos.size()}")
|
|
|
443 |
</a>
|
444 |
|
445 |
<h4>Notice</h4>
|
446 |
+
<p>This demo supports up to <b>720p</b> and <b>121 frames</b>.
|
447 |
For other use cases (image restoration, video resolutions beyond 720p, etc), check the <a href='https://github.com/ByteDance-Seed/SeedVR' target='_blank'>GitHub repo</a>.</p>
|
448 |
|
449 |
<h4>Limitations</h4>
|