Remove unused matplotlib.cm.get_cmap call (removed in matplotlib 3.11) (#13)
Browse files- Remove unused matplotlib.cm.get_cmap call (removed in matplotlib 3.11) (d510d4524ea39f16e54fca2891a5ee552ac16b29)
Co-authored-by: Cyril Achard <C-Achard@users.noreply.huggingface.co>
61 unmodified lines6263646566676861 unmodified lineskeypoints_y = tuple([im_height * y for y in keypoints_y])#cmap = matplotlib.cm.get_cmap('hsv')cmap2 = matplotlib.cm.get_cmap('Greys')# 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!61 unmodified lines62636465666761 unmodified lineskeypoints_y = tuple([im_height * y for y in keypoints_y])#cmap = matplotlib.cm.get_cmap('hsv')# 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!
viz_utils.py-1