Skip to content

Commit bdd95b1

Browse files
committed
Fix typo in animal3d_dataset.py, correcting "hight" to "height" for improved clarity in keypoint normalization.
1 parent ef803e7 commit bdd95b1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

fmpose3d/animals/common/animal3d_dataset.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,9 @@ def __getitem__(self, item):
3838
else:
3939
keypoint_2d = np.array(data.get("keypoint_2d", []), dtype=np.float32)
4040
# normalize 2D keypoints
41-
hight = np.array(data["height"])
41+
height = np.array(data["height"])
4242
width = np.array(data["width"])
43-
keypoint_2d = normalize_screen_coordinates(keypoint_2d[..., :2], width, hight)
43+
keypoint_2d = normalize_screen_coordinates(keypoint_2d[..., :2], width, height)
4444

4545
# build 3D keypoints; append ones; fallback to zeros if missing
4646
if "keypoint_3d" in data and data["keypoint_3d"] is not None:

0 commit comments

Comments
 (0)