Skip to content

Commit

Permalink
Add metrics plots
Browse files Browse the repository at this point in the history
  • Loading branch information
PawelPeczek-Roboflow committed Aug 29, 2024
1 parent 7c62cae commit 783dc88
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions maestro/trainer/models/florence_2/metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,7 @@ def summarise_metrics(
split_name: str,
) -> None:
plots_dir_path = os.path.join(training_dir, "metrics", split_name)
os.makedirs(plots_dir_path, exist_ok=True)
for metric_name in metrics_tracker.describe_metrics():
plot_path = os.path.join(plots_dir_path, f"metric_{metric_name}_plot.png")
plt.clf()
Expand Down

0 comments on commit 783dc88

Please sign in to comment.