From c4943666913ae1e2e0a2b20d3d1cd8c8725f5f75 Mon Sep 17 00:00:00 2001 From: steffen Date: Fri, 15 May 2020 19:47:57 +0200 Subject: [PATCH] unlinken of already processed training files (seed dependent audio augmentation) --- visualization/tools.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/visualization/tools.py b/visualization/tools.py index 02d6e64..32dd67c 100644 --- a/visualization/tools.py +++ b/visualization/tools.py @@ -14,8 +14,10 @@ class Plotter(object): if naked: plt.axis('off') fig.savefig(path, bbox_inches='tight', transparent=True, pad_inches=0) - fig.savefig(path) - fig.clf() + fig.clf() + else: + fig.savefig(path) + fig.clf() def show_current_figure(self): fig, _ = plt.gcf(), plt.gca()