Skip to content

Different output size in method "boundry" and "centroid" #3

Description

@arshemii

In the implementation of kpts2cs,
the output of crop_size in centroid is half of the width and height

I have a doubt if it is a mistake or if not, is there any concept for that?

if method == 'centroid': center = np.ceil(visible_keypoints.mean(axis=0, keepdims=True)) dif = np.abs(visible_keypoints - center).max(axis=0, keepdims=True) crop_size = np.ceil(dif*enlarge).squeeze() center = center.squeeze() elif method == 'boundary': left_top = visible_keypoints.min(axis=0, keepdims=True) right_bottom = visible_keypoints.max(axis=0, keepdims=True) center = ((left_top + right_bottom) / 2).squeeze() crop_size = ((right_bottom - left_top)*enlarge).squeeze()

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions