root
commited on
Commit
·
0437ce1
1
Parent(s):
788559b
please
Browse files- dancing.mp4 +0 -0
- handler.py +4 -2
dancing.mp4
ADDED
|
Binary file (520 kB). View file
|
|
|
handler.py
CHANGED
|
@@ -332,8 +332,10 @@ class EndpointHandler():
|
|
| 332 |
# self.speed_up_video(pose_video_path, sped_up_pose_video_path, factor=4)
|
| 333 |
|
| 334 |
torch.manual_seed(seed)
|
| 335 |
-
|
| 336 |
-
|
|
|
|
|
|
|
| 337 |
|
| 338 |
pose_list = []
|
| 339 |
total_length = min(length, len(pose_images))
|
|
|
|
| 332 |
# self.speed_up_video(pose_video_path, sped_up_pose_video_path, factor=4)
|
| 333 |
|
| 334 |
torch.manual_seed(seed)
|
| 335 |
+
|
| 336 |
+
temporary_pose_video_path = os.path.join(base_dir, 'dancing.mp4')
|
| 337 |
+
pose_images = read_frames(temporary_pose_video_path)
|
| 338 |
+
src_fps = get_fps(temporary_pose_video_path)
|
| 339 |
|
| 340 |
pose_list = []
|
| 341 |
total_length = min(length, len(pose_images))
|