mwmathis C-Achard commited on
Commit
5b6af2f
Β·
1 Parent(s): 5cce2c7

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>

Files changed (1) hide show
  1. viz_utils.py +0 -1
viz_utils.py CHANGED
@@ -62,7 +62,6 @@ def draw_keypoints_on_image(image,
62
  keypoints_y = tuple([im_height * y for y in keypoints_y])
63
 
64
  #cmap = matplotlib.cm.get_cmap('hsv')
65
- cmap2 = matplotlib.cm.get_cmap('Greys')
66
  # draw ellipses around keypoints
67
  for i, (keypoint_x, keypoint_y) in enumerate(zip(keypoints_x, keypoints_y)):
68
  round_fill = list(cm.viridis(norm(colores[i]),bytes=True))#[round(num*255) for num in list(cmap(i))[:3]] #check!
 
62
  keypoints_y = tuple([im_height * y for y in keypoints_y])
63
 
64
  #cmap = matplotlib.cm.get_cmap('hsv')
 
65
  # draw ellipses around keypoints
66
  for i, (keypoint_x, keypoint_y) in enumerate(zip(keypoints_x, keypoints_y)):
67
  round_fill = list(cm.viridis(norm(colores[i]),bytes=True))#[round(num*255) for num in list(cmap(i))[:3]] #check!