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 783dc88 commit dbe7593
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion maestro/trainer/models/florence_2/metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,12 @@ def dump_post_processed_outputs(
result_dict = {
dataset.dataset.entries[idx]["image"]: output for idx, output in enumerate(post_processed_text_outputs)
}
target_path = os.path.join(training_dir, split_name, f"post_processed_text_predictions_{split_name}.json")
target_path = os.path.join(
training_dir,
"model_debug",
split_name,
f"post_processed_text_predictions_{split_name}.json",
)
save_json(path=target_path, content=result_dict)


Expand Down

0 comments on commit dbe7593

Please sign in to comment.