Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Wei-Chen-hub committed Mar 6, 2024
1 parent f8f5ec6 commit de5de1b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 4 additions & 1 deletion mmhuman3d/data/data_converters/synbody_whac.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@
class SynbodyWhacConverter(BaseModeConverter):
"""Synbody dataset."""
ACCEPTED_MODES = ['AMASS_tracking-20240221', 'AMASS_tracking-20240229',
'AMASS_tracking-20240301', 'DuetDance-20240218']
'AMASS_tracking-20240301', 'DuetDance-20240218',
'DLP-20240228']

def __init__(self, modes: List = []) -> None:

Expand Down Expand Up @@ -196,6 +197,8 @@ def convert_by_mode(self, dataset_path: str, out_path: str,
slice_seq_dict['test'] = []
for seq_n in seq_ns[int(len(seq_ns) * 0.8):]:
slice_seq_dict['test'] += [seq for seq in seqs_targeted if seq_n in seq]
elif 'DLP' in mode:
slice_seq_dict[0] = seqs_targeted

for slid, batch in enumerate(slice_seq_dict.keys()):

Expand Down
3 changes: 2 additions & 1 deletion tools/convert_datasets.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,8 @@
type='SynbodyWhacConverter', # synthetic
prefix='synbody',
modes=['AMASS_tracking-20240221', 'AMASS_tracking-20240229',
'AMASS_tracking-20240301', 'DuetDance-20240218']),
'AMASS_tracking-20240301', 'DuetDance-20240218',
'DLP-20240228']),
ubody=dict(
type='UbodyConverter', # real, has some single
prefix='ubody',
Expand Down

0 comments on commit de5de1b

Please sign in to comment.