From 6ec6368fa2767c149c12b84a973c6201806b3c09 Mon Sep 17 00:00:00 2001 From: ck-zhang Date: Thu, 27 Feb 2025 20:05:51 +0800 Subject: [PATCH] Less redundant calibration --- calibration.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/calibration.py b/calibration.py index e2ff0e8..25fdf68 100644 --- a/calibration.py +++ b/calibration.py @@ -69,7 +69,7 @@ def run_9_point_calibration(gaze_estimator, camera_index=0): pts = [(mx + int(c * (gw / 2)), my + int(r * (gh / 2))) for (r, c) in order] feats, targs = [], [] pulse_d, cd_d = 1.0, 1.0 - for cycle in range(2): + for cycle in range(1): for x, y in pts: ps = time.time() final_radius = 20 @@ -140,7 +140,7 @@ def run_5_point_calibration(gaze_estimator, camera_index=0): pts.append((x, y)) feats, targs = [], [] pd, cd = 1.0, 1.0 - for cycle in range(2): + for cycle in range(1): for x, y in pts: ps = time.time() final_radius = 20