Skip to content

Commit

Permalink
regular update 230803
Browse files Browse the repository at this point in the history
  • Loading branch information
Wei-Chen-hub committed Aug 3, 2023
1 parent 21ef023 commit 0a4a5ac
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
4 changes: 3 additions & 1 deletion mmhuman3d/data/data_converters/cimi4d.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,12 @@ def convert_by_mode(self, dataset_path: str, out_path: str,
betas = np.repeat(betas, transl.shape[0], axis=0)

# image paths
image_paths = sorted(glob.glob(os.path.join(seq, 'img*', '*.jpg')))
image_paths = sorted(glob.glob(os.path.join(seq, '**', '*.jpg'), recursive=True))

# translation need for official vis tools






Expand Down
2 changes: 1 addition & 1 deletion mmhuman3d/data/data_converters/hsc4d.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def __init__(self, modes=[], *args, **kwargs):
self.misc_config = dict(
bbox_source='by_dataset',
smpl_source='original',
cam_param_type='prespective',
cam_param_type='perspective',
kps3d_root_aligned=False,
)

Expand Down
6 changes: 4 additions & 2 deletions mmhuman3d/data/data_converters/ssp3d.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,10 @@ def __init__(self):
bbox_body_scale=1.2,
bbox_facehand_scale=1.0,
bbox_source='keypoints2d_smpl',
cam_param_type='prespective',
cam_param_source='estimated',
smpl_source='original',
focal_length=5000,
focal_length=(5000, 5000),
principal_point=(256, 256),
image_size=512,
)
Expand All @@ -54,6 +55,7 @@ def __init__(self):
}

super(Ssp3dConverter, self).__init__()


def _keypoints_to_scaled_bbox_bfh(self,
keypoints,
Expand Down Expand Up @@ -136,7 +138,7 @@ def convert(self, dataset_path: str, out_path: str) -> dict:
# initialize
image_path_, keypoints2d_, bbox_xywh_ = [], [], []

seed, size = '230525', '999'
seed, size = '230803', '999'
random.seed(int(seed))

anno = dict(np.load(os.path.join(dataset_path, 'labels.npz')))
Expand Down

0 comments on commit 0a4a5ac

Please sign in to comment.