def inference_pose(session, out_bbox, oriImg):
    """run pose detect 

    Args:
        session (ort.InferenceSession): ONNXRuntime session.
        out_bbox (np.ndarray): bbox list
        oriImg (np.ndarray): Input image in shape.

    Returns:
        tuple:
        - keypoints (np.ndarray): Rescaled keypoints.
        - scores (np.ndarray): Model predict scores.
    """
    h, w = session.get_inputs()[0].shape[2:]
    model_input_size = (w, h)
    # preprocess for rtm-pose model inference.
    resized_img, center, scale = preprocess(oriImg, out_bbox, model_input_size)
    # run pose estimation for processed img
    outputs = inference(session, resized_img)
    # postprocess for rtm-pose model output.
    keypoints, scores = postprocess(outputs, model_input_size, center, scale)

    return keypoints, scores
run pose detect 

    Args:
        session (ort.InferenceSession): ONNXRuntime session.
        out_bbox (np.ndarray): bbox list
        oriImg (np.ndarray): Input image in shape.

    Returns:
        tuple:
        - keypoints (np.ndarray): Rescaled keypoints.
        - scores (np.ndarray): Model predict scores.
    
mimicmotion/dwpose/onnxpose.py