haonanwang0522 / GTPT

[ECCV 2024] GTPT: Group-based Token Pruning Transformer for Efficient Human Pose Estimation
14 stars 0 forks source link

How to Obtain Confidence Scores for Key Points from GTPT? #1

Open wenkaier opened 3 weeks ago

wenkaier commented 3 weeks ago

Hi,

I'm working with the GTPT model and I've managed to identify key points using its capabilities. However, I'm struggling to understand how to extract or estimate the confidence scores associated with these key points. Could you please provide guidance on:

Thank you in advance for your assistance!

Best regards

haonanwang0522 commented 2 days ago

Thank you for your enthusiastic interest in our work. You can locate the confidence scores in the file lib/core/function.py, specifically on lines 188 to 193.

max_val_x, preds_x = output_x.max(2,keepdim=True)
max_val_y, preds_y = output_y.max(2,keepdim=True)

mask = max_val_x > max_val_y
max_val_x[mask] = max_val_y[mask]
maxvals = max_val_x.cpu().numpy()