Skip to content

Conversation

@n-poulsen
Copy link
Contributor

Addresses issue #2769. When all keypoints labeled in an image are augmented outside of the image (e.g. they are close to the edge and a rotation is applied), no keypoints are left. Then, density-based sampling of the crop center fails as there are no keypoints to sample from.

Address a few other typos when it comes to image augmentation:

  • When creating the Affine transform, the translation parameter must be given as (-translation, translation)
  • Keypoints should be padded with 0s (not visible) and not -1 (not defined)

Copy link
Member

@MMathisLab MMathisLab left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch!

@MMathisLab MMathisLab merged commit 3145fea into pytorch_dlc Dec 3, 2024
1 check passed
@MMathisLab MMathisLab deleted the niels/keypoint_crop branch December 3, 2024 18:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants