maduvantha commited on
Commit
623ba89
·
1 Parent(s): d0580f5

Update logger.py

Browse files
Files changed (1) hide show
  1. logger.py +2 -2
logger.py CHANGED
@@ -4,7 +4,7 @@ import torch.nn.functional as F
4
  import imageio
5
 
6
  import os
7
- from skimage.draw import circle
8
 
9
  import matplotlib.pyplot as plt
10
  import collections
@@ -107,7 +107,7 @@ class Visualizer:
107
  kp_array = spatial_size * (kp_array + 1) / 2
108
  num_kp = kp_array.shape[0]
109
  for kp_ind, kp in enumerate(kp_array):
110
- rr, cc = circle(kp[1], kp[0], self.kp_size, shape=image.shape[:2])
111
  image[rr, cc] = np.array(self.colormap(kp_ind / num_kp))[:3]
112
  return image
113
 
 
4
  import imageio
5
 
6
  import os
7
+ from skimage.draw import disk
8
 
9
  import matplotlib.pyplot as plt
10
  import collections
 
107
  kp_array = spatial_size * (kp_array + 1) / 2
108
  num_kp = kp_array.shape[0]
109
  for kp_ind, kp in enumerate(kp_array):
110
+ rr, cc = disk(kp[1], kp[0], self.kp_size, shape=image.shape[:2])
111
  image[rr, cc] = np.array(self.colormap(kp_ind / num_kp))[:3]
112
  return image
113