From 0d3e2818d226fb27c25774136be21f0cfc1cc490 Mon Sep 17 00:00:00 2001 From: WuHaobo Date: Sat, 13 Jun 2020 11:35:58 +0800 Subject: [PATCH] add misc --- ppcls/utils/misc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ppcls/utils/misc.py b/ppcls/utils/misc.py index ee68db41..b94c0895 100644 --- a/ppcls/utils/misc.py +++ b/ppcls/utils/misc.py @@ -20,7 +20,7 @@ class AverageMeter(object): Computes and stores the average and current value """ - def __init__(self, name='', fmt='f', need_avg=False): + def __init__(self, name='', fmt='f', need_avg=True): self.name = name self.fmt = fmt self.need_avg = need_avg -- GitLab