From 80b75034a08ded4b189cb4f91a6880d050cf8f09 Mon Sep 17 00:00:00 2001 From: Guy Avnon Date: Tue, 10 Aug 2021 17:12:17 +0300 Subject: [PATCH] fix throttling --- catalyst/loggers/comet.py | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/catalyst/loggers/comet.py b/catalyst/loggers/comet.py index dbf1bf0b14..2fefdbd0eb 100644 --- a/catalyst/loggers/comet.py +++ b/catalyst/loggers/comet.py @@ -165,12 +165,13 @@ def log_metrics( prefix_parameters = [stage_key, loader_key, scope] prefix = self._format_prefix(prefix_parameters) - self.experiment.log_metrics( - metrics, - step=global_batch_step, - epoch=global_batch_step, - prefix=prefix, - ) + if global_batch_step % 10 == 0: + self.experiment.log_metrics( + metrics, + step=global_batch_step, + epoch=global_batch_step, + prefix=prefix, + ) def log_image( self,