diff --git a/src/dvclive/monitor_system.py b/src/dvclive/monitor_system.py index f6d26d8..363337d 100644 --- a/src/dvclive/monitor_system.py +++ b/src/dvclive/monitor_system.py @@ -117,6 +117,7 @@ def _check_directories_to_monitor( def _monitoring_loop(self): while not self._shutdown_event.is_set(): self._metrics = {} + last_metrics = {} for _ in range(self._num_samples): try: last_metrics = self._get_metrics()