Spaces:
Runtime error
Runtime error
encounter1997
commited on
Commit
β’
985e189
1
Parent(s):
80831ec
fps=2
Browse files- test_vid2vid_zero.py +1 -1
- vid2vid_zero/util.py +2 -2
test_vid2vid_zero.py
CHANGED
@@ -83,7 +83,7 @@ def main(
|
|
83 |
use_sc_attn: bool = True,
|
84 |
use_st_attn: bool = True,
|
85 |
st_attn_idx: int = 0,
|
86 |
-
fps: int =
|
87 |
):
|
88 |
*_, config = inspect.getargvalues(inspect.currentframe())
|
89 |
|
|
|
83 |
use_sc_attn: bool = True,
|
84 |
use_st_attn: bool = True,
|
85 |
st_attn_idx: int = 0,
|
86 |
+
fps: int = 2,
|
87 |
):
|
88 |
*_, config = inspect.getargvalues(inspect.currentframe())
|
89 |
|
vid2vid_zero/util.py
CHANGED
@@ -12,7 +12,7 @@ from tqdm import tqdm
|
|
12 |
from einops import rearrange
|
13 |
|
14 |
|
15 |
-
def save_videos_as_images(videos: torch.Tensor, path: str, rescale=False, n_rows=4, fps=
|
16 |
dir_name = os.path.dirname(path)
|
17 |
videos = rearrange(videos, "b c t h w -> t b h w c")
|
18 |
|
@@ -30,7 +30,7 @@ def save_videos_as_images(videos: torch.Tensor, path: str, rescale=False, n_rows
|
|
30 |
image.save(save_path)
|
31 |
|
32 |
|
33 |
-
def save_videos_grid(videos: torch.Tensor, path: str, rescale=False, n_rows=4, fps=
|
34 |
videos = rearrange(videos, "b c t h w -> t b c h w")
|
35 |
outputs = []
|
36 |
for x in videos:
|
|
|
12 |
from einops import rearrange
|
13 |
|
14 |
|
15 |
+
def save_videos_as_images(videos: torch.Tensor, path: str, rescale=False, n_rows=4, fps=2):
|
16 |
dir_name = os.path.dirname(path)
|
17 |
videos = rearrange(videos, "b c t h w -> t b h w c")
|
18 |
|
|
|
30 |
image.save(save_path)
|
31 |
|
32 |
|
33 |
+
def save_videos_grid(videos: torch.Tensor, path: str, rescale=False, n_rows=4, fps=2):
|
34 |
videos = rearrange(videos, "b c t h w -> t b c h w")
|
35 |
outputs = []
|
36 |
for x in videos:
|