Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
Wei-Chen-hub committed Mar 1, 2024
1 parent cb5451a commit 0500781
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mmhuman3d/data/data_converters/synbody_whac.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,11 +178,11 @@ def convert_by_mode(self, dataset_path: str, out_path: str,

slice_seq_dict = {}

if mode == 'AMASS_tracking':
if 'AMASS_tracking' in mode:
for slid in range(slices):
seqs = seqs_targeted[slid * len(seqs_targeted) // slices: (slid + 1) * len(seqs_targeted) // slices]
slice_seq_dict[slid] = seqs
elif mode == 'DuetDance':
elif 'DuetDance' in mode:
seq_ns = list(set([os.path.dirname(os.path.dirname(seq)) for seq in seqs_targeted]))
seq_ns = [os.path.basename(seq_n) for seq_n in seq_ns]
random.shuffle(seq_ns)
Expand Down

0 comments on commit 0500781

Please sign in to comment.