浏览代码

fixed evaluator progress bar for the case if no_progress was set

Dimitri Korsch 4 年之前
父节点
当前提交
e124478fa1
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      cvfinetune/training/trainer/base.py

+ 3 - 0
cvfinetune/training/trainer/base.py

@@ -85,6 +85,9 @@ class Trainer(T):
 		if not opts.no_progress:
 			self.extend(extensions.ProgressBar(update_interval=1))
 
+		elif self.evaluator is not None:
+			self.evaluator._progress_bar = False
+
 	@property
 	def optimizer(self):
 		return self.updater.get_optimizer("main")