Skip to content

docstring for heatmaps_to_keypoints does not match return values. #7148

Open
@WillieMaddox

Description

@WillieMaddox

The docstring for the function heatmaps_to_keypoints in torchvision/models/detection/roi_heads.py does not match the return values.

def heatmaps_to_keypoints(maps, rois):
    """Extract predicted keypoint locations from heatmaps. Output has shape
    (#rois, 4, #keypoints) with the 4 rows corresponding to (x, y, logit, prob)
    for each keypoint.
    """
...
return xy_preds.permute(0, 2, 1), end_scores

The function returns 2 tensors. The first tensor has the shape (#rois, #keypoints, 3) with the last dimension corresponding to (x, y, vis). The second tensor has shape (#rois, #keypoints) the values of which correspond to... logits? Some explanation on what these end_scores are used for and/or how to use them would also be helpful.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions