Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix typo error in ann_areas vs ann_area attribute #1828

Merged
merged 1 commit into from
Feb 12, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class KeypointsAnnotation:

ann_boxes_xyxy: np.ndarray
ann_is_crowd: np.ndarray
ann_area: np.ndarray
ann_areas: np.ndarray
ann_keypoints: np.ndarray
ann_segmentations: np.ndarray

Expand Down Expand Up @@ -108,7 +108,7 @@ def parse_coco_into_keypoints_annotations(
image_height=image_height,
ann_boxes_xyxy=ann_box_xyxy[mask],
ann_is_crowd=ann_iscrowd[mask],
ann_area=ann_areas[mask],
ann_areas=ann_areas[mask],
ann_keypoints=ann_keypoints[mask],
ann_segmentations=ann_segmentations[mask],
)
Expand All @@ -128,7 +128,7 @@ def parse_coco_into_keypoints_annotations(

ann.ann_boxes_xyxy = ann.ann_boxes_xyxy[keep_mask]
ann.ann_keypoints = ann.ann_keypoints[keep_mask]
ann.ann_area = ann.ann_area[keep_mask]
ann.ann_areas = ann.ann_areas[keep_mask]
ann.ann_segmentations = ann.ann_segmentations[keep_mask]
ann.ann_is_crowd = ann.ann_is_crowd[keep_mask]

Expand Down
Loading