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

Remove unused matplotlib.cm.get_cmap call (removed in matplotlib 3.11)

Browse files
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!