-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Conversation
inference_pose_model to inference_top_down_pose_model add video demo for bottom-up models update readme support cpu demo add rotation
mmpose/models/detectors/bottom_up.py
Outdated
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) |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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, |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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.
Co-authored-by: jinsheng <jinsheng@sensetime.com>
* add impl * add test * Fix as comment * Fix as comment * Fix as comment * Fix as comment
Fix #29 and fix #71