Skip to content

Commit

Permalink
Fix for progress bar crash with lightning 2.2
Browse files Browse the repository at this point in the history
Fixes one part of #592
  • Loading branch information
mittagessen committed Apr 22, 2024
1 parent 3ed6526 commit aca1779
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion kraken/lib/progress.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,10 @@ def _init_progress(self, trainer):
reconfigure(**self._console_kwargs)
self._console = get_console()
self._console.clear_live()
self._metric_component = MetricsTextColumn(trainer, self.theme.metrics)
self._metric_component = MetricsTextColumn(trainer,
self.theme.metrics,
self.theme.metrics_text_delimiter,
self.theme.metrics_format)
columns = self.configure_columns(trainer)
columns.append(self._metric_component)

Expand Down Expand Up @@ -158,3 +161,5 @@ class RichProgressBarTheme:
time: Union[str, 'Style'] = DEFAULT_STYLES['progress.elapsed']
processing_speed: Union[str, 'Style'] = DEFAULT_STYLES['progress.data.speed']
metrics: Union[str, 'Style'] = DEFAULT_STYLES['progress.description']
metrics_text_delimiter: str = ' '
metrics_format: str = '.3f'

0 comments on commit aca1779

Please sign in to comment.