From 349614a2f168654ba59bf1461ea61e1cb9358eb6 Mon Sep 17 00:00:00 2001 From: junyanz Date: Tue, 2 May 2017 20:26:39 -0700 Subject: use InstanceNorm2d from the latest pytorch --- util/visualizer.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'util/visualizer.py') diff --git a/util/visualizer.py b/util/visualizer.py index 9a6da2a..46348be 100644 --- a/util/visualizer.py +++ b/util/visualizer.py @@ -70,8 +70,8 @@ class Visualizer(): win=self.display_id) # errors: same format as |errors| of plotCurrentErrors - def print_current_errors(self, epoch, i, errors, start_time): - message = '(epoch: %d, iters: %d, time: %.3f) ' % (epoch, i, time.time() - start_time) + def print_current_errors(self, epoch, i, errors, t): + message = '(epoch: %d, iters: %d, time: %.3f) ' % (epoch, i, t) for k, v in errors.items(): message += '%s: %.3f ' % (k, v) -- cgit v1.2.3-70-g09d2