import torch import numpy as np ''' def keyp_rep_error_l1(smpl_keyp_2d, keyp_hourglass, keyp_hourglass_scores, thr_kp=0.3): # step 1: make sure that the hg prediction and barc are close with torch.no_grad(): kp_weights = keyp_hourglass_scores kp_weights[keyp_hourglass_scores