Update viz_utils.py
Browse files65 unmodified lines66676869707165 unmodified lines# draw ellipses around keypointsfor i, (keypoint_x, keypoint_y) in enumerate(zip(keypoints_x, keypoints_y)):round_fill = list(cm.viridis(norm(colores[i]),bytes=True))#[round(num*255) for num in list(cmap(i))[:3]] #check!if np.isnan(alpha[i]) == False :round_fill[3] = round(alpha[i] *255)#print(round_fill)65 unmodified lines6667686970717273747565 unmodified lines# draw ellipses around keypointsfor i, (keypoint_x, keypoint_y) in enumerate(zip(keypoints_x, keypoints_y)):round_fill = list(cm.viridis(norm(colores[i]),bytes=True))#[round(num*255) for num in list(cmap(i))[:3]] #check!# handling potential nans in the keypointsif np.isnan(keypoint_x).any():continueif np.isnan(alpha[i]) == False :round_fill[3] = round(alpha[i] *255)#print(round_fill)
viz_utils.py+4