Skip to content

fix-bug #852

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

Merged
merged 3 commits into from
Sep 28, 2018
Merged

fix-bug #852

merged 3 commits into from
Sep 28, 2018

Conversation

zsdonghao
Copy link
Member

@zsdonghao zsdonghao commented Sep 26, 2018

Checklist

  • I've tested that my changes are compatible with the latest version of Tensorflow.
  • I've read the Contribution Guidelines
  • I've updated the documentation if necessary.

Motivation and Context

Fix a small bug in keypoints_random_flip

@@ -3500,7 +3500,7 @@ def pose_crop(image, annos, mask, x, y, w, h): # TODO : speed up with affine tr
adjust_joint.append((-1000, -1000))
continue
new_x, new_y = point[0] - x, point[1] - y
if new_x > 367 or new_y > 367:
if new_x > w - 1 or new_y > h - 1:
Copy link
Member

Choose a reason for hiding this comment

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

Can you explain in comment why w - 1 and h - 1

Copy link
Member Author

Choose a reason for hiding this comment

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

done

@DEKHTIARJonathan DEKHTIARJonathan merged commit 3beb637 into master Sep 28, 2018
@DEKHTIARJonathan DEKHTIARJonathan deleted the fix-bug branch September 28, 2018 09:29
luomai pushed a commit that referenced this pull request Nov 21, 2018
* fix-bug

* Update prepro.py
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.

2 participants