Spaces:
Runtime error
Runtime error
Update open_oasis_master/generate.py
Browse files
open_oasis_master/generate.py
CHANGED
@@ -39,8 +39,8 @@ ctx_max_noise_idx = ddim_noise_steps // 10 * 3
|
|
39 |
# get input video
|
40 |
print(os.getcwd())
|
41 |
video_id = "snippy-chartreuse-mastiff-f79998db196d-20220401-224517.chunk_001"
|
42 |
-
mp4_path = f"{os.getcwd()}
|
43 |
-
actions_path = f"{os.getcwd()}
|
44 |
video = read_video(mp4_path, pts_unit="sec")[0].float() / 255
|
45 |
actions = one_hot_actions(torch.load(actions_path,map_location=torch.device('cpu')))
|
46 |
offset = 100
|
|
|
39 |
# get input video
|
40 |
print(os.getcwd())
|
41 |
video_id = "snippy-chartreuse-mastiff-f79998db196d-20220401-224517.chunk_001"
|
42 |
+
mp4_path = f"{os.getcwd()}/open_oasis_master/sample_data/{video_id}.mp4"
|
43 |
+
actions_path = f"{os.getcwd()}/open_oasis_master/sample_data/{video_id}.actions.pt"
|
44 |
video = read_video(mp4_path, pts_unit="sec")[0].float() / 255
|
45 |
actions = one_hot_actions(torch.load(actions_path,map_location=torch.device('cpu')))
|
46 |
offset = 100
|