From 776514b3dd102d00a355b994384e032541066ece Mon Sep 17 00:00:00 2001 From: Bai Yifan Date: Thu, 9 Aug 2018 22:38:38 +0800 Subject: [PATCH] fix tab (#1117) --- fluid/object_detection/train.py | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/fluid/object_detection/train.py b/fluid/object_detection/train.py index aadcc904..46af235f 100644 --- a/fluid/object_detection/train.py +++ b/fluid/object_detection/train.py @@ -193,13 +193,16 @@ def train(args, total_time += end_time - start_time train_avg_loss = np.mean(every_pass_loss) if devices_num == 1: - print ("kpis train_cost %s" % train_avg_loss) - print ("kpis test_acc %s" % mean_map) - print ("kpis train_speed %s" % (total_time / epoch_idx)) + print ("kpis train_cost %s" % train_avg_loss) + print ("kpis test_acc %s" % mean_map) + print ("kpis train_speed %s" % (total_time / epoch_idx)) else: - print ("kpis train_cost_card%s %s" % (devices_num, train_avg_loss)) - print ("kpis test_acc_card%s %s" % (devices_num, mean_map)) - print ("kpis train_speed_card%s %f" % (devices_num, total_time / epoch_idx)) + print ("kpis train_cost_card%s %s" % + (devices_num, train_avg_loss)) + print ("kpis test_acc_card%s %s" % + (devices_num, mean_map)) + print ("kpis train_speed_card%s %f" % + (devices_num, total_time / epoch_idx)) if pass_id % 10 == 0 or pass_id == num_passes - 1: -- GitLab