Skip to content

Commit

Permalink
fix bug on metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
mvpatel2000 committed Mar 2, 2024
1 parent d104d16 commit d3b3a61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/train/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -534,7 +534,7 @@ def main(cfg: DictConfig) -> Trainer:

# Now add the eval metrics
if eval_loader_config is not None and not use_async_eval:
train_metrics = model.get_metrics(is_train=True)
train_metrics = model.get_metrics(is_train=False)
evaluators = add_metrics_to_eval_loaders(evaluators,
list(train_metrics.keys()))

Expand Down

0 comments on commit d3b3a61

Please sign in to comment.