From 010848a0311988dbf317dc1ce857f2a3474b36c3 Mon Sep 17 00:00:00 2001 From: nunzip Date: Thu, 28 Feb 2019 00:52:43 +0000 Subject: Clear previous update on epoch --- cgan.py | 1 + 1 file changed, 1 insertion(+) diff --git a/cgan.py b/cgan.py index 716e5ae..3c89121 100644 --- a/cgan.py +++ b/cgan.py @@ -156,6 +156,7 @@ class CGAN(): # Plot the progress #print ("%d [D loss: %f, acc.: %.2f%%] [G loss: %f]" % (epoch, d_loss[0], 100*d_loss[1], g_loss)) if epoch % 500 == 0: + clear_output() print(epoch) loss[0][epoch] = d_loss[0] loss[1][epoch] = g_loss -- cgit v1.2.3-54-g00ecf