Skip to content

Commit

Permalink
add comment (open-mmlab#463)
Browse files Browse the repository at this point in the history
  • Loading branch information
jin-s13 authored Feb 6, 2021
1 parent 291b43e commit 98ef1b6
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion mmpose/datasets/datasets/face/face_base_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ def _xywh2cs(self, x, y, w, h, padding=1.25):

# pixel std is 200.0
scale = np.array([w / 200.0, h / 200.0], dtype=np.float32)

# padding to include proper amount of context
scale = scale * padding

return center, scale
Expand Down
2 changes: 1 addition & 1 deletion mmpose/datasets/datasets/fashion/fashion_base_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ def _xywh2cs(self, x, y, w, h, padding=1.25):

# pixel std is 200.0
scale = np.array([w / 200.0, h / 200.0], dtype=np.float32)

# padding to include proper amount of context
scale = scale * padding

return center, scale
Expand Down
2 changes: 1 addition & 1 deletion mmpose/datasets/datasets/hand/hand_base_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ def _xywh2cs(self, x, y, w, h, padding=1.25):

# pixel std is 200.0
scale = np.array([w / 200.0, h / 200.0], dtype=np.float32)

# padding to include proper amount of context
scale = scale * padding

return center, scale
Expand Down
2 changes: 1 addition & 1 deletion mmpose/datasets/datasets/top_down/topdown_coco_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ def _xywh2cs(self, x, y, w, h):

# pixel std is 200.0
scale = np.array([w / 200.0, h / 200.0], dtype=np.float32)

# padding to include proper amount of context
scale = scale * 1.25

return center, scale
Expand Down
1 change: 1 addition & 0 deletions mmpose/datasets/datasets/top_down/topdown_mpii_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ def _get_db(self):
# Adjust center/scale slightly to avoid cropping limbs
if center[0] != -1:
center[1] = center[1] + 15 * scale[1]
# padding to include proper amount of context
scale = scale * 1.25

# MPII uses matlab format, index is 1-based,
Expand Down

0 comments on commit 98ef1b6

Please sign in to comment.