-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathprocess_dataset.py
40 lines (35 loc) · 1.53 KB
/
process_dataset.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
import os
import loader
if __name__ == '__main__':
# Define the path to the dataset
dataset_path = 'dataset'
genea_trn_path = './dataset/Genea2023/trn/main-agent/bvh'
loader.DatasetBVHLoader(name='trn',
path=genea_trn_path,
load=False,
pos_mean=None,
window=120)
genea_val_path = './dataset/Genea2023/val/main-agent/bvh'
loader.DatasetBVHLoader(name='val',
path=genea_val_path,
load=False, #change to False to compute a save processed data
pos_mean=None,
window=120)
entries = ['BD', 'BM', 'NA', 'SA', 'SB', 'SC', 'SD', 'SE', 'SF', 'SG', 'SH', 'SI', 'SJ','SK','SL']
bvhsubmissionspath = './dataset/SubmittedGenea2023/BVH'
for entry in entries:
print(f'Loading {entry}...')
path = os.path.join(bvhsubmissionspath, entry)
loader.DatasetBVHLoader(name=entry,
path=path,
load=False,
pos_mean=None,
window=120)
zeggs_path = './dataset/ZEGGS/'
loader.DatasetBVHLoader(name='zeggs',
path=zeggs_path,
load=False,
pos_mean=None,
window=120,
fps=60,
njoints=75)