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 lines6263646565666761 unmodified lines keypoints_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 keypoints for 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