original_docstring: Set keypoint indices to 1) body parts to be assigned different
          weights 2) be ignored for keypoint loss computation.
  
          Returns:
              None
          
docstring: Set keypoint indices to 1) body parts to be assigned different
  weights 2) be ignored for keypoint loss computation.
docstring_tokens: Set keypoint indices to 1 ) body parts to be assigned different weights 2 ) be ignored for keypoint loss computation .
code: def _set_keypoint_idxs(self):
          """Set keypoint indices to 1) body parts to be assigned different
          weights 2) be ignored for keypoint loss computation.
  
          Returns:
              None
          """
          convention = self.body_model.keypoint_dst
  
          # obtain ignore keypoint indices
          if self.ignore_keypoints is not None:
              self.ignore_keypoint_idxs = []
              for keypoint_name in self.ignore_keypoints:
                  keypoint_idx = get_keypoint_idx(
                      keypoint_name, convention=convention)
                  if keypoint_idx != -1:
                      self.ignore_keypoint_idxs.append(keypoint_idx)
  
          # obtain body part keypoint indices
          shoulder_keypoint_idxs = get_keypoint_idxs_by_part(
              'shoulder', convention=convention)
          hip_keypoint_idxs = get_keypoint_idxs_by_part(
              'hip', convention=convention)
          self.shoulder_hip_keypoint_idxs = [
              *shoulder_keypoint_idxs, *hip_keypoint_idxs
          ]
  
          # head keypoints include all facial landmarks
          self.face_keypoint_idxs = get_keypoint_idxs_by_part(
              'head', convention=convention)
  
          left_hand_keypoint_idxs = get_keypoint_idxs_by_part(
              'left_hand', convention=convention)
          right_hand_keypoint_idxs = get_keypoint_idxs_by_part(
              'right_hand', convention=convention)
          self.hand_keypoint_idxs = [
              *left_hand_keypoint_idxs, *right_hand_keypoint_idxs
          ]
  
          self.body_keypoint_idxs = get_keypoint_idxs_by_part(
              'body', convention=convention)
code_tokens: def _set_keypoint_idxs ( self ) : convention = self . body_model . keypoint_dst if self . ignore_keypoints is not None : self . ignore_keypoint_idxs = [ ] for keypoint_name in self . ignore_keypoints : keypoint_idx = get_keypoint_idx ( keypoint_name , convention = convention ) if keypoint_idx != - 1 : self . ignore_keypoint_idxs . append ( keypoint_idx ) shoulder_keypoint_idxs = get_keypoint_idxs_by_part ( 'shoulder' , convention = convention ) hip_keypoint_idxs = get_keypoint_idxs_by_part ( 'hip' , convention = convention ) self . shoulder_hip_keypoint_idxs = [ * shoulder_keypoint_idxs , * hip_keypoint_idxs ] self . face_keypoint_idxs = get_keypoint_idxs_by_part ( 'head' , convention = convention ) left_hand_keypoint_idxs = get_keypoint_idxs_by_part ( 'left_hand' , convention = convention ) right_hand_keypoint_idxs = get_keypoint_idxs_by_part ( 'right_hand' , convention = convention ) self . hand_keypoint_idxs = [ * left_hand_keypoint_idxs , * right_hand_keypoint_idxs ] self . body_keypoint_idxs = get_keypoint_idxs_by_part ( 'body' , convention = convention )
short_docstring: Set keypoint indices to 1) body parts to be assigned different
  weights 2) be ignored for keypoint loss computation.
short_docstring_tokens: Set keypoint indices to 1 ) body parts to be assigned different weights 2 ) be ignored for keypoint loss computation .
comment: """Set keypoint indices to 1) body parts to be assigned different
          weights 2) be ignored for keypoint loss computation.
  
          Returns:
              None
          """$SEP$# obtain ignore keypoint indices$SEP$# obtain body part keypoint indices$SEP$# head keypoints include all facial landmarks