Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

change clip embedding thershold for comparison

laurenspriemee96e23ac859
diff --git a/infra/ml/test/comparator/compare.py b/infra/ml/test/comparator/compare.py
index c6064e5067..021321e723 100644
--- a/infra/ml/test/comparator/compare.py
+++ b/infra/ml/test/comparator/compare.py
@@ -88,8 +88,8 @@ def _percentile(values: Sequence[float], percentile: float) -> float:
@dataclass(frozen=True)
class ThresholdConfig:
- clip_cosine_distance: float = 0.010
- cross_platform_clip_cosine_distance: float = 0.010
+ clip_cosine_distance: float = 0.015
+ cross_platform_clip_cosine_distance: float = 0.015
face_embedding_cosine_distance: float = 0.015
box_iou_threshold: float = 0.98
landmark_error_threshold: float = 0.03
diff --git a/infra/ml/test/ground_truth/manifest.json b/infra/ml/test/ground_truth/manifest.json
index 9fc0257ecc..dc06157399 100644
--- a/infra/ml/test/ground_truth/manifest.json
+++ b/infra/ml/test/ground_truth/manifest.json
@@ -213,8 +213,8 @@
}
],
"threshold_defaults": {
- "clip_cosine_distance": 0.01,
- "cross_platform_clip_cosine_distance": 0.01,
+ "clip_cosine_distance": 0.015,
+ "cross_platform_clip_cosine_distance": 0.015,
"face_embedding_cosine_distance": 0.015,
"box_iou_threshold": 0.98,
"landmark_error_threshold": 0.03,