Skip to content

armgit / cua

Public Imported from GitHub
0

Scale computer-use 2.0 with open-source drivers, cross-OS sandboxes, and benchmarks for training, evaluation, and data generation.

fixed timing miscalculation in som experiment example

Dillon DuPont18de43ccbbca
diff --git a/examples/som_examples.py b/examples/som_examples.py
index 75b798acc4..4dc3e38bc4 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(