Skip to content

Commit

Permalink
fix amass preprocessing bug, downsample to 25 fps
Browse files Browse the repository at this point in the history
  • Loading branch information
mkocabas committed Sep 6, 2021
1 parent 9b17d1e commit 03ed50d
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions lib/data_utils/amass_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def read_data(folder, sequences):



def read_single_sequence(folder, seq_name):
def read_single_sequence(folder, seq_name, fps=25):
subjects = os.listdir(folder)

thetas = []
Expand All @@ -95,8 +95,10 @@ def read_single_sequence(folder, seq_name):
continue

data = np.load(fname)

pose = data['poses'][:, joints_to_use]

mocap_framerate = int(data['mocap_framerate'])
sampling_freq = mocap_framerate // fps
pose = data['poses'][0::sampling_freq, joints_to_use]

if pose.shape[0] < 60:
continue
Expand Down

0 comments on commit 03ed50d

Please sign in to comment.