From 8008eaef05606ac0fa7d02eebff9933f0c9304a2 Mon Sep 17 00:00:00 2001 From: Anne Mickan Date: Fri, 15 Dec 2023 08:48:26 +0100 Subject: [PATCH] Elaborate on comments in evaluation script (#15) --- .../example-evaluation-method{{cookiecutter._}}/evaluate.py.j2 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/grand_challenge_forge/partials/example-evaluation-method/example-evaluation-method{{cookiecutter._}}/evaluate.py.j2 b/grand_challenge_forge/partials/example-evaluation-method/example-evaluation-method{{cookiecutter._}}/evaluate.py.j2 index fa5daa9..64d2806 100644 --- a/grand_challenge_forge/partials/example-evaluation-method/example-evaluation-method{{cookiecutter._}}/evaluate.py.j2 +++ b/grand_challenge_forge/partials/example-evaluation-method/example-evaluation-method{{cookiecutter._}}/evaluate.py.j2 @@ -82,7 +82,7 @@ def process(job): {{ py_slug }} = load_json_file(location={{ py_slug }}_location) {% endif -%} {% endfor -%} - # Retrieve the input image name + # Retrieve the input image name to match it with an image in your ground truth {% for ci in cookiecutter.phase.inputs -%} {% set py_slug = ci.slug | replace("-", "_") -%} {% if ci.is_image -%} @@ -98,6 +98,7 @@ def process(job): # make sure to include it in your evaluation container with open(GROUND_TRUTH_DIRECTORY / "some_resource.txt", "r") as f: report += f.read() + # compare the results to your ground truth and compute some metrics print(report) return {