From 18de43ccbbcadafd877dca2e29a2c56df364359d Mon Sep 17 00:00:00 2001 From: Dillon DuPont Date: Wed, 26 Mar 2025 16:40:33 -0400 Subject: [PATCH] fixed timing miscalculation in som experiment example --- examples/som_examples.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/examples/som_examples.py b/examples/som_examples.py index 75b798ac..4dc3e38b 100644 --- a/examples/som_examples.py +++ b/examples/som_examples.py @@ -318,7 +318,6 @@ def run_experiments(input_path: str, output_dir: Path, use_ocr: bool = False): # Update totals total_icons += result.metadata.num_icons total_text += result.metadata.num_text - total_time += t.elapsed_time # Log detailed results detail_file = combo_dir / f"{Path(image_path).stem}_details.txt" @@ -360,6 +359,9 @@ def run_experiments(input_path: str, output_dir: Path, use_ocr: bool = False): ) text_count += 1 + # Update timing totals + total_time += t.elapsed_time + # Write summary for this combination avg_time = total_time / len(image_files) f.write(