From 7a2d35629740bf4ca9b2c1ca1919df32c28a72a1 Mon Sep 17 00:00:00 2001 From: glenn-jocher Date: Sun, 7 Jul 2019 23:53:56 +0200 Subject: [PATCH] GIoU to default --- utils/utils.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/utils/utils.py b/utils/utils.py index 767b33e4..bb857ed4 100755 --- a/utils/utils.py +++ b/utils/utils.py @@ -629,7 +629,8 @@ def plot_images(imgs, targets, paths=None, fname='images.jpg'): plt.plot(boxes[[0, 2, 2, 0, 0]], boxes[[1, 1, 3, 3, 1]], '.-') plt.axis('off') if paths is not None: - plt.title(Path(paths[i]).name, fontdict={'size': 8}) + s = Path(paths[i]).name + plt.title(s[:min(len(s), 40)], fontdict={'size': 8}) # limit to 40 characters fig.tight_layout() fig.savefig(fname, dpi=300) plt.close()