Skip to content

Commit

Permalink
default for get task metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
janiceblue authored and mshuaibii committed Jul 18, 2023
1 parent 4961bb1 commit 99eb482
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ocpmodels/trainers/base_trainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ def __init__(
self.evaluator = Evaluator(
task=name,
eval_metrics=self.config["task"].get(
"evaluation_metrics", Evaluator.task_metrics[name]
"evaluation_metrics", Evaluator.task_metrics.get(name, {})
),
)

Expand Down Expand Up @@ -960,7 +960,7 @@ def validate(self, split: str = "val", disable_tqdm: bool = False):
evaluator = Evaluator(
task=self.name,
eval_metrics=self.config["task"].get(
"evaluation_metrics", Evaluator.task_metrics[self.name]
"evaluation_metrics", Evaluator.task_metrics.get(self.name, {})
),
)

Expand Down

0 comments on commit 99eb482

Please sign in to comment.