Repository: open-mmlab/mmpose

Issue:
what is a 'show_keypoint_weight' variable?
I would like to know about the function of 'show_keypoint_weight'.
There is no description for 'show_keypoint_weight'.



Discussion:
To change the color/transparency (the alpha channel) using the predicted confidence scores of keypoints. 
Will add some description to this arg.


Resolving patch:
diff --git a/mmpose/models/detectors/bottom_up.py b/mmpose/models/detectors/bottom_up.py
--- a/mmpose/models/detectors/bottom_up.py
+++ b/mmpose/models/detectors/bottom_up.py
@@ -312,15 +312,20 @@ def show_result(self,
             img (str or Tensor): The image to be displayed.
             result (list[dict]): The results to draw over `img`
                 (bbox_result, pose_result).
+            skeleton (list[list]): The connection of keypoints.
             kpt_score_thr (float, optional): Minimum score of keypoints
                 to be shown. Default: 0.3.
             pose_kpt_color (np.array[Nx3]`): Color of N keypoints.
                 If None, do not draw keypoints.
             pose_limb_color (np.array[Mx3]): Color of M limbs.
                 If None, do not draw limbs.
+            radius (int): Radius of circles.
             thickness (int): Thickness of lines.
             font_scale (float): Font scales of texts.
             win_name (str): The window name.
+            show (bool): Whether to show the image. Default: False.
+            show_keypoint_weight (bool): Whether to change the transparency
+                using the predicted confidence scores of keypoints.
             wait_time (int): Value of waitKey param.
                 Default: 0.
             out_file (str or None): The filename to write the image.
diff --git a/mmpose/models/detectors/top_down.py b/mmpose/models/detectors/top_down.py
--- a/mmpose/models/detectors/top_down.py
+++ b/mmpose/models/detectors/top_down.py
@@ -214,8 +214,8 @@ def show_result(self,
                     bbox_color='green',
                     pose_kpt_color=None,
                     pose_limb_color=None,
-                    radius=4,
                     text_color=(255, 0, 0),
+                    radius=4,
                     thickness=1,
                     font_scale=0.5,
                     win_name='',
@@ -229,6 +229,7 @@ def show_result(self,
             img (str or Tensor): The image to be displayed.
             result (list[dict]): The results to draw over `img`
                 (bbox_result, pose_result).
+            skeleton (list[list]): The connection of keypoints.
             kpt_score_thr (float, optional): Minimum score of keypoints
                 to be shown. Default: 0.3.
             bbox_color (str or tuple or :obj:`Color`): Color of bbox lines.
@@ -237,9 +238,13 @@ def show_result(self,
             pose_limb_color (np.array[Mx3]): Color of M limbs.
                 If None, do not draw limbs.
             text_color (str or tuple or :obj:`Color`): Color of texts.
+            radius (int): Radius of circles.
             thickness (int): Thickness of lines.
             font_scale (float): Font scales of texts.
             win_name (str): The window name.
+            show (bool): Whether to show the image. Default: False.
+            show_keypoint_weight (bool): Whether to change the transparency
+                using the predicted confidence scores of keypoints.
             wait_time (int): Value of waitKey param.
                 Default: 0.
             out_file (str or None): The filename to write the image.


Test patch: