Skip to content

Commit

Permalink
Silent Patches Bug Fix (ultralytics#3214)
Browse files Browse the repository at this point in the history
  • Loading branch information
glenn-jocher committed May 17, 2021
1 parent 36b0a9e commit ffb47ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/plots.py
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ def plot_labels(labels, names=(), save_dir=Path(''), loggers=None):
matplotlib.use('svg') # faster
ax = plt.subplots(2, 2, figsize=(8, 8), tight_layout=True)[1].ravel()
y = ax[0].hist(c, bins=np.linspace(0, nc, nc + 1) - 0.5, rwidth=0.8)
[y[2].patches[i].set_color([x / 255 for x in colors(i)]) for i in range(nc)] # update colors
# [y[2].patches[i].set_color([x / 255 for x in colors(i)]) for i in range(nc)] # update colors bug #3195
ax[0].set_ylabel('instances')
if 0 < len(names) < 30:
ax[0].set_xticks(range(len(names)))
Expand Down

0 comments on commit ffb47ff

Please sign in to comment.