glenn-jocher commited on
Commit
ffb47ff
1 Parent(s): 36b0a9e

Silent Patches Bug Fix (#3214)

Browse files
Files changed (1) hide show
  1. utils/plots.py +1 -1
utils/plots.py CHANGED
@@ -300,7 +300,7 @@ def plot_labels(labels, names=(), save_dir=Path(''), loggers=None):
300
  matplotlib.use('svg') # faster
301
  ax = plt.subplots(2, 2, figsize=(8, 8), tight_layout=True)[1].ravel()
302
  y = ax[0].hist(c, bins=np.linspace(0, nc, nc + 1) - 0.5, rwidth=0.8)
303
- [y[2].patches[i].set_color([x / 255 for x in colors(i)]) for i in range(nc)] # update colors
304
  ax[0].set_ylabel('instances')
305
  if 0 < len(names) < 30:
306
  ax[0].set_xticks(range(len(names)))
 
300
  matplotlib.use('svg') # faster
301
  ax = plt.subplots(2, 2, figsize=(8, 8), tight_layout=True)[1].ravel()
302
  y = ax[0].hist(c, bins=np.linspace(0, nc, nc + 1) - 0.5, rwidth=0.8)
303
+ # [y[2].patches[i].set_color([x / 255 for x in colors(i)]) for i in range(nc)] # update colors bug #3195
304
  ax[0].set_ylabel('instances')
305
  if 0 < len(names) < 30:
306
  ax[0].set_xticks(range(len(names)))