xizaoqu
commited on
Commit
·
750f1b3
1
Parent(s):
594fef7
update precision
Browse files
app.py
CHANGED
|
@@ -203,7 +203,7 @@ self_frame_idx = None
|
|
| 203 |
|
| 204 |
def get_duration_single_image_to_long_video(first_frame, action, first_pose, device, self_frames, self_actions,
|
| 205 |
self_poses, self_memory_c2w, self_frame_idx):
|
| 206 |
-
return 5 * len(action)
|
| 207 |
|
| 208 |
@spaces.GPU(duration=get_duration_single_image_to_long_video)
|
| 209 |
def run_interactive(first_frame, action, first_pose, device, self_frames, self_actions,
|
|
|
|
| 203 |
|
| 204 |
def get_duration_single_image_to_long_video(first_frame, action, first_pose, device, self_frames, self_actions,
|
| 205 |
self_poses, self_memory_c2w, self_frame_idx):
|
| 206 |
+
return 5 * len(action) if self_actions is not None else 5
|
| 207 |
|
| 208 |
@spaces.GPU(duration=get_duration_single_image_to_long_video)
|
| 209 |
def run_interactive(first_frame, action, first_pose, device, self_frames, self_actions,
|