Browse Source

fixed evaluator progress bar for the case if no_progress was set

Dimitri Korsch 4 năm trước cách đây
mục cha
commit
e124478fa1
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  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")