Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Wei-Chen-hub committed May 23, 2024
1 parent a7e1929 commit cc95c90
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion mmhuman3d/data/data_converters/synbody.py
Original file line number Diff line number Diff line change
Expand Up @@ -309,11 +309,13 @@ def convert_by_mode(self, dataset_path: str, out_path: str,
self.smplx_shape[k]))
# pdb.set_trace()
gender = []
track_ids = []
for idx, meta_tmp in enumerate(npfile['meta'][valid_id]):
gender.append(meta_tmp['gender'])
track_ids.append(track_id * 100 + meta_tmp['track_id'])

_meta['gender'] += gender
_meta['track_id'] += [track_id] * len(gender)
_meta['track_id'] += track_ids
if len(list(set(gender))) != 1:
print(f'{npzf} has more than 1 gender, please check')
# pdb.set_trace()
Expand Down

0 comments on commit cc95c90

Please sign in to comment.