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

support bottom-up demo #72

Merged
merged 2 commits into from
Aug 17, 2020
Merged

support bottom-up demo #72

merged 2 commits into from
Aug 17, 2020

Conversation

innerlee
Copy link
Contributor

@innerlee innerlee commented Aug 17, 2020

Fix #29 and fix #71

inference_pose_model to inference_top_down_pose_model

add video demo for bottom-up models

update readme

support cpu demo

add rotation
@innerlee innerlee requested a review from jin-s13 August 17, 2020 12:34
@innerlee
Copy link
Contributor Author

I cherry-picked the demo codes from #69, to make the diff more readable.
@jin-s13 pls double check

@innerlee innerlee mentioned this pull request Aug 17, 2020
x_coord, y_coord, kpt_score = int(kpt[0]), int(kpt[1]), kpt[2]
if kpt_score > kpt_score_thr:
# cv2.circle(img, (x_coord, y_coord), radius,
# pose_kpt_color, thickness)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

so pose_kpt_color is not used?

Copy link
Collaborator

@jin-s13 jin-s13 Aug 17, 2020

Choose a reason for hiding this comment

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

Oh, pose_kpt_color is used in line284...

result,
skeleton=None,
kpt_score_thr=0.3,
pose_kpt_color=None,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

since None is not a valid value for pose_kpt_color and pose_limb_color in this function, it is better to either

  • do not provide defaults in the signature
  • assert that they are not None
  • provide default colors when None

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I prefer option 3 btw

Copy link
Collaborator

Choose a reason for hiding this comment

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

change to "draw kpt&limbs, only if the color is not None".
And add assert to the color.

@innerlee innerlee merged commit bc7c340 into master Aug 17, 2020
@innerlee innerlee deleted the zz/d branch August 17, 2020 14:18
rollingman1 pushed a commit to rollingman1/mmpose that referenced this pull request Nov 5, 2021
shuheilocale pushed a commit to shuheilocale/mmpose that referenced this pull request May 6, 2023
Co-authored-by: jinsheng <jinsheng@sensetime.com>
HAOCHENYE added a commit to HAOCHENYE/mmpose that referenced this pull request Jun 27, 2023
* add impl

* add test

* Fix as comment

* Fix as comment

* Fix as comment

* Fix as comment
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.

KeyError: 'rotation' Support Demoing HigherHRNet
2 participants