leizizhang commited on
Commit
73aab0c
·
1 Parent(s): d5e8f6d

update extract_vid_and_crop.py

Browse files
benchmark/reference_videos/extract_vid_and_crop.py CHANGED
@@ -4,12 +4,13 @@ import numpy as np
4
  import os
5
  import random
6
 
7
- action_name = "camera4"
8
- subject_type = "camera"
9
- start_second = 3
10
- end_second = 9
 
11
  crop_ratio = 0.8
12
- video_path = f"benchmark/reference_videos/{subject_type}/{action_name}.mp4"
13
  video = load_video(video_path)
14
 
15
  # fps
 
4
  import os
5
  import random
6
 
7
+ action_name = "camera4" # your action name, same with the reference video name
8
+ subject_type = "camera" # camera, human, animal
9
+ start_second = 3 # start second of the action
10
+ end_second = 9 # end second of the action
11
+
12
  crop_ratio = 0.8
13
+ video_path = f"benchmark/reference_videos/{subject_type}/{action_name}.mp4" # path to the reference video
14
  video = load_video(video_path)
15
 
16
  # fps