Skip to content

armgit / ente

Public Imported from GitHub
0

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

Test suite scaffold

laurenspriem9be4b8b9ab3c
diff --git a/infra/ml/.gitignore b/infra/ml/.gitignore
index 4887c07499..61bff9f0e1 100644
--- a/infra/ml/.gitignore
+++ b/infra/ml/.gitignore
@@ -19,4 +19,7 @@ wheels/
CLIP/mobileclip_repo/
# Data
-data/flickr8k_captions.txt
\ No newline at end of file
+data/flickr8k_captions.txt
+
+# Local parity run outputs
+out/
diff --git a/infra/ml/comparator/__init__.py b/infra/ml/comparator/__init__.py
new file mode 100644
index 0000000000..e4f48041dd
--- /dev/null
+++ b/infra/ml/comparator/__init__.py
@@ -0,0 +1,17 @@
+from .compare import (
+ AggregateMetric,
+ ComparisonFinding,
+ ComparisonReport,
+ ThresholdConfig,
+ compare_platform_matrix,
+ compare_result_sets,
+)
+
+__all__ = [
+ "AggregateMetric",
+ "ComparisonFinding",
+ "ComparisonReport",
+ "ThresholdConfig",
+ "compare_platform_matrix",
+ "compare_result_sets",
+]
diff --git a/infra/ml/comparator/compare.py b/infra/ml/comparator/compare.py
new file mode 100644
index 0000000000..fa6939501c
--- /dev/null
+++ b/infra/ml/comparator/compare.py
@@ -0,0 +1,462 @@
+from __future__ import annotations
+
+from dataclasses import dataclass
+import itertools
+import math
+from typing import Any, Mapping, Sequence
+
+from ground_truth.schema import FaceResult, ParityResult
+
+
+def _l2_norm(values: Sequence[float]) -> float:
+ return math.sqrt(sum(value * value for value in values))
+
+
+def cosine_distance(left: Sequence[float], right: Sequence[float]) -> float:
+ if len(left) != len(right):
+ raise ValueError("cosine distance vectors must have equal dimensions")
+ dot = sum(x * y for x, y in zip(left, right, strict=True))
+ denominator = _l2_norm(left) * _l2_norm(right)
+ if denominator == 0:
+ raise ValueError("cosine distance cannot be computed for zero vectors")
+ similarity = dot / denominator
+ similarity = max(-1.0, min(1.0, similarity))
+ return 1.0 - similarity
+
+
+def _box_iou(left: Sequence[float], right: Sequence[float]) -> float:
+ lx, ly, lw, lh = left
+ rx, ry, rw, rh = right
+
+ left_x2 = lx + lw
+ left_y2 = ly + lh
+ right_x2 = rx + rw
+ right_y2 = ry + rh
+
+ inter_x1 = max(lx, rx)
+ inter_y1 = max(ly, ry)
+ inter_x2 = min(left_x2, right_x2)
+ inter_y2 = min(left_y2, right_y2)
+
+ inter_w = max(0.0, inter_x2 - inter_x1)
+ inter_h = max(0.0, inter_y2 - inter_y1)
+ inter_area = inter_w * inter_h
+ left_area = max(0.0, lw * lh)
+ right_area = max(0.0, rw * rh)
+
+ denominator = left_area + right_area - inter_area
+ if denominator <= 0:
+ return 0.0
+
+ return inter_area / denominator
+
+
+def _landmark_error(left: Sequence[Sequence[float]], right: Sequence[Sequence[float]]) -> float:
+ if len(left) != len(right):
+ raise ValueError("landmark count mismatch")
+ if not left:
+ return 0.0
+
+ distances = []
+ for left_point, right_point in zip(left, right, strict=True):
+ dx = left_point[0] - right_point[0]
+ dy = left_point[1] - right_point[1]
+ distances.append(math.sqrt(dx * dx + dy * dy))
+
+ return sum(distances) / len(distances)
+
+
+def _percentile(values: Sequence[float], percentile: float) -> float:
+ if not values:
+ return 0.0
+
+ sorted_values = sorted(values)
+ if len(sorted_values) == 1:
+ return sorted_values[0]
+
+ rank = (len(sorted_values) - 1) * (percentile / 100.0)
+ lower_index = math.floor(rank)
+ upper_index = math.ceil(rank)
+ if lower_index == upper_index:
+ return sorted_values[lower_index]
+
+ lower_value = sorted_values[lower_index]
+ upper_value = sorted_values[upper_index]
+ weight = rank - lower_index
+ return lower_value + (upper_value - lower_value) * weight
+
+
+@dataclass(frozen=True)
+class ThresholdConfig:
+ clip_cosine_distance: float = 0.010
+ cross_platform_clip_cosine_distance: float = 0.010
+ face_embedding_cosine_distance: float = 0.015
+ box_iou_threshold: float = 0.98
+ landmark_error_threshold: float = 0.03
+ score_delta_threshold: float = 0.10
+
+ def to_dict(self) -> dict[str, float]:
+ return {
+ "clip_cosine_distance": self.clip_cosine_distance,
+ "cross_platform_clip_cosine_distance": self.cross_platform_clip_cosine_distance,
+ "face_embedding_cosine_distance": self.face_embedding_cosine_distance,
+ "box_iou_threshold": self.box_iou_threshold,
+ "landmark_error_threshold": self.landmark_error_threshold,
+ "score_delta_threshold": self.score_delta_threshold,
+ }
+
+
+@dataclass(frozen=True)
+class AggregateMetric:
+ count: int
+ p95: float
+ p99: float
+ max: float
+ threshold: float
+ passed: bool
+
+ def to_dict(self) -> dict[str, float | int | bool]:
+ return {
+ "count": self.count,
+ "p95": self.p95,
+ "p99": self.p99,
+ "max": self.max,
+ "threshold": self.threshold,
+ "passed": self.passed,
+ }
+
+
+@dataclass(frozen=True)
+class ComparisonFinding:
+ file_id: str
+ metric: str
+ message: str
+ value: float | None = None
+ threshold: float | None = None
+
+ def to_dict(self) -> dict[str, Any]:
+ payload: dict[str, Any] = {
+ "file_id": self.file_id,
+ "metric": self.metric,
+ "message": self.message,
+ }
+ if self.value is not None:
+ payload["value"] = self.value
+ if self.threshold is not None:
+ payload["threshold"] = self.threshold
+ return payload
+
+
+@dataclass(frozen=True)
+class ComparisonReport:
+ reference_platform: str
+ candidate_platform: str
+ checked_files: int
+ missing_files: tuple[str, ...]
+ extra_files: tuple[str, ...]
+ aggregates: Mapping[str, AggregateMetric]
+ findings: tuple[ComparisonFinding, ...]
+ passed: bool
+
+ def to_dict(self) -> dict[str, Any]:
+ return {
+ "reference_platform": self.reference_platform,
+ "candidate_platform": self.candidate_platform,
+ "checked_files": self.checked_files,
+ "missing_files": list(self.missing_files),
+ "extra_files": list(self.extra_files),
+ "aggregates": {
+ metric_name: metric.to_dict()
+ for metric_name, metric in self.aggregates.items()
+ },
+ "findings": [finding.to_dict() for finding in self.findings],
+ "passed": self.passed,
+ }
+
+
+def _make_aggregate(values: list[float], threshold: float) -> AggregateMetric:
+ if not values:
+ return AggregateMetric(
+ count=0,
+ p95=0.0,
+ p99=0.0,
+ max=0.0,
+ threshold=threshold,
+ passed=True,
+ )
+
+ p95 = _percentile(values, 95.0)
+ p99 = _percentile(values, 99.0)
+ maximum = max(values)
+ passed = p95 <= threshold and p99 <= threshold and maximum <= threshold
+ return AggregateMetric(
+ count=len(values),
+ p95=p95,
+ p99=p99,
+ max=maximum,
+ threshold=threshold,
+ passed=passed,
+ )
+
+
+def _match_faces(
+ reference_faces: Sequence[FaceResult],
+ candidate_faces: Sequence[FaceResult],
+) -> list[tuple[int, int, float]]:
+ pairs: list[tuple[float, int, int]] = []
+ for reference_index, reference_face in enumerate(reference_faces):
+ for candidate_index, candidate_face in enumerate(candidate_faces):
+ iou = _box_iou(reference_face.box, candidate_face.box)
+ pairs.append((iou, reference_index, candidate_index))
+
+ pairs.sort(key=lambda entry: (-entry[0], entry[1], entry[2]))
+ used_reference: set[int] = set()
+ used_candidate: set[int] = set()
+ matches: list[tuple[int, int, float]] = []
+ for iou, reference_index, candidate_index in pairs:
+ if reference_index in used_reference or candidate_index in used_candidate:
+ continue
+ used_reference.add(reference_index)
+ used_candidate.add(candidate_index)
+ matches.append((reference_index, candidate_index, iou))
+
+ matches.sort(key=lambda entry: entry[0])
+ return matches
+
+
+def compare_result_sets(
+ *,
+ reference_platform: str,
+ candidate_platform: str,
+ reference_results: Mapping[str, ParityResult],
+ candidate_results: Mapping[str, ParityResult],
+ thresholds: ThresholdConfig | None = None,
+ clip_threshold: float | None = None,
+) -> ComparisonReport:
+ thresholds = thresholds or ThresholdConfig()
+ clip_threshold = (
+ thresholds.clip_cosine_distance if clip_threshold is None else clip_threshold
+ )
+
+ missing_files = tuple(sorted(set(reference_results) - set(candidate_results)))
+ extra_files = tuple(sorted(set(candidate_results) - set(reference_results)))
+ findings: list[ComparisonFinding] = []
+
+ for missing_file in missing_files:
+ findings.append(
+ ComparisonFinding(
+ file_id=missing_file,
+ metric="file_presence",
+ message=f"Missing from {candidate_platform}",
+ ),
+ )
+ for extra_file in extra_files:
+ findings.append(
+ ComparisonFinding(
+ file_id=extra_file,
+ metric="file_presence",
+ message=f"Unexpected file in {candidate_platform}",
+ ),
+ )
+
+ clip_distances: list[float] = []
+ iou_errors: list[float] = []
+ landmark_errors: list[float] = []
+ score_deltas: list[float] = []
+ face_embedding_distances: list[float] = []
+
+ shared_file_ids = sorted(set(reference_results) & set(candidate_results))
+ for file_id in shared_file_ids:
+ reference = reference_results[file_id]
+ candidate = candidate_results[file_id]
+
+ clip_distance = cosine_distance(reference.clip.embedding, candidate.clip.embedding)
+ clip_distances.append(clip_distance)
+ if clip_distance > clip_threshold:
+ findings.append(
+ ComparisonFinding(
+ file_id=file_id,
+ metric="clip_cosine_distance",
+ message="CLIP cosine distance exceeded threshold",
+ value=clip_distance,
+ threshold=clip_threshold,
+ ),
+ )
+
+ if len(reference.faces) != len(candidate.faces):
+ findings.append(
+ ComparisonFinding(
+ file_id=file_id,
+ metric="face_count",
+ message="Face count mismatch",
+ value=float(abs(len(reference.faces) - len(candidate.faces))),
+ ),
+ )
+
+ matches = _match_faces(reference.faces, candidate.faces)
+ for reference_index, candidate_index, iou in matches:
+ reference_face = reference.faces[reference_index]
+ candidate_face = candidate.faces[candidate_index]
+
+ iou_error = 1.0 - iou
+ iou_errors.append(iou_error)
+ if iou < thresholds.box_iou_threshold:
+ findings.append(
+ ComparisonFinding(
+ file_id=file_id,
+ metric="face_box_iou",
+ message="Face box IoU below threshold",
+ value=iou,
+ threshold=thresholds.box_iou_threshold,
+ ),
+ )
+
+ try:
+ landmark_error = _landmark_error(
+ reference_face.landmarks,
+ candidate_face.landmarks,
+ )
+ except ValueError:
+ findings.append(
+ ComparisonFinding(
+ file_id=file_id,
+ metric="landmarks",
+ message="Landmark count mismatch",
+ ),
+ )
+ else:
+ landmark_errors.append(landmark_error)
+ if landmark_error > thresholds.landmark_error_threshold:
+ findings.append(
+ ComparisonFinding(
+ file_id=file_id,
+ metric="landmark_error",
+ message="Landmark error exceeded threshold",
+ value=landmark_error,
+ threshold=thresholds.landmark_error_threshold,
+ ),
+ )
+
+ score_delta = abs(reference_face.score - candidate_face.score)
+ score_deltas.append(score_delta)
+ if score_delta > thresholds.score_delta_threshold:
+ findings.append(
+ ComparisonFinding(
+ file_id=file_id,
+ metric="score_delta",
+ message="Face score delta exceeded threshold",
+ value=score_delta,
+ threshold=thresholds.score_delta_threshold,
+ ),
+ )
+
+ embedding_distance = cosine_distance(
+ reference_face.embedding,
+ candidate_face.embedding,
+ )
+ face_embedding_distances.append(embedding_distance)
+ if embedding_distance > thresholds.face_embedding_cosine_distance:
+ findings.append(
+ ComparisonFinding(
+ file_id=file_id,
+ metric="face_embedding_cosine_distance",
+ message="Face embedding cosine distance exceeded threshold",
+ value=embedding_distance,
+ threshold=thresholds.face_embedding_cosine_distance,
+ ),
+ )
+
+ aggregates = {
+ "clip_cosine_distance": _make_aggregate(clip_distances, clip_threshold),
+ "face_box_iou_error": _make_aggregate(
+ iou_errors,
+ 1.0 - thresholds.box_iou_threshold,
+ ),
+ "landmark_error": _make_aggregate(
+ landmark_errors,
+ thresholds.landmark_error_threshold,
+ ),
+ "score_delta": _make_aggregate(score_deltas, thresholds.score_delta_threshold),
+ "face_embedding_cosine_distance": _make_aggregate(
+ face_embedding_distances,
+ thresholds.face_embedding_cosine_distance,
+ ),
+ }
+
+ for metric_name, metric in aggregates.items():
+ if metric.passed:
+ continue
+ findings.append(
+ ComparisonFinding(
+ file_id="*aggregate*",
+ metric=metric_name,
+ message="Aggregate threshold gate failed",
+ value=metric.max,
+ threshold=metric.threshold,
+ ),
+ )
+
+ report_findings = tuple(findings)
+ return ComparisonReport(
+ reference_platform=reference_platform,
+ candidate_platform=candidate_platform,
+ checked_files=len(shared_file_ids),
+ missing_files=missing_files,
+ extra_files=extra_files,
+ aggregates=aggregates,
+ findings=report_findings,
+ passed=not report_findings,
+ )
+
+
+def compare_platform_matrix(
+ platform_results: Mapping[str, Sequence[ParityResult]],
+ *,
+ ground_truth_platform: str = "python",
+ include_pairwise: bool = True,
+ thresholds: ThresholdConfig | None = None,
+) -> tuple[ComparisonReport, ...]:
+ thresholds = thresholds or ThresholdConfig()
+
+ if ground_truth_platform not in platform_results:
+ raise ValueError(f"ground truth platform '{ground_truth_platform}' missing")
+
+ by_platform: dict[str, dict[str, ParityResult]] = {
+ platform: {result.file_id: result for result in results}
+ for platform, results in platform_results.items()
+ }
+
+ reports: list[ComparisonReport] = []
+ reference = by_platform[ground_truth_platform]
+ non_ground_truth_platforms = [
+ platform for platform in by_platform if platform != ground_truth_platform
+ ]
+
+ for platform in sorted(non_ground_truth_platforms):
+ reports.append(
+ compare_result_sets(
+ reference_platform=ground_truth_platform,
+ candidate_platform=platform,
+ reference_results=reference,
+ candidate_results=by_platform[platform],
+ thresholds=thresholds,
+ clip_threshold=thresholds.clip_cosine_distance,
+ ),
+ )
+
+ if include_pairwise:
+ for left_platform, right_platform in itertools.combinations(
+ sorted(non_ground_truth_platforms), 2
+ ):
+ reports.append(
+ compare_result_sets(
+ reference_platform=left_platform,
+ candidate_platform=right_platform,
+ reference_results=by_platform[left_platform],
+ candidate_results=by_platform[right_platform],
+ thresholds=thresholds,
+ clip_threshold=thresholds.cross_platform_clip_cosine_distance,
+ ),
+ )
+
+ return tuple(reports)
diff --git a/infra/ml/ground_truth/README.md b/infra/ml/ground_truth/README.md
new file mode 100644
index 0000000000..31d0c4dbe9
--- /dev/null
+++ b/infra/ml/ground_truth/README.md
@@ -0,0 +1,32 @@
+# ML Parity Ground Truth
+
+This directory stores bootstrap assets for the ML indexing parity suite:
+
+- `manifest.json`: corpus definition and per-item metadata.
+- `goldens/*.json`: per-item parity outputs in the shared schema.
+- `goldens/results.json`: combined output used by the comparator.
+- `schema.py`: strict shared result schema used by all runners.
+
+## Current Scope
+
+The current generator (`tools/generate_goldens.py`) emits deterministic bootstrap
+results so we can build and validate the cross-platform comparison harness before
+the full ONNX-backed Python pipeline lands.
+
+## Generate Goldens
+
+```bash
+uv run --project infra/ml python infra/ml/tools/generate_goldens.py \
+ --manifest infra/ml/ground_truth/manifest.json \
+ --output-dir infra/ml/ground_truth/goldens
+```
+
+## Compare Against Platforms
+
+```bash
+uv run --project infra/ml python infra/ml/tools/compare_parity_outputs.py \
+ --ground-truth infra/ml/ground_truth/goldens/results.json \
+ --platform-result android=infra/ml/out/parity/android/results.json \
+ --platform-result ios=infra/ml/out/parity/ios/results.json \
+ --platform-result desktop=infra/ml/out/parity/desktop/results.json
+```
diff --git a/infra/ml/ground_truth/__init__.py b/infra/ml/ground_truth/__init__.py
new file mode 100644
index 0000000000..481767a03c
--- /dev/null
+++ b/infra/ml/ground_truth/__init__.py
@@ -0,0 +1,21 @@
+from .schema import (
+ CLIP_EMBEDDING_DIM,
+ FACE_EMBEDDING_DIM,
+ ClipResult,
+ FaceResult,
+ ParityResult,
+ RunnerMetadata,
+ dump_results_document,
+ load_results_document,
+)
+
+__all__ = [
+ "CLIP_EMBEDDING_DIM",
+ "FACE_EMBEDDING_DIM",
+ "ClipResult",
+ "FaceResult",
+ "ParityResult",
+ "RunnerMetadata",
+ "dump_results_document",
+ "load_results_document",
+]
diff --git a/infra/ml/ground_truth/goldens/.gitkeep b/infra/ml/ground_truth/goldens/.gitkeep
new file mode 100644
index 0000000000..8b13789179
--- /dev/null
+++ b/infra/ml/ground_truth/goldens/.gitkeep
@@ -0,0 +1 @@
+
diff --git a/infra/ml/ground_truth/goldens/man.jpeg.json b/infra/ml/ground_truth/goldens/man.jpeg.json
new file mode 100644
index 0000000000..765bc8792f
--- /dev/null
+++ b/infra/ml/ground_truth/goldens/man.jpeg.json
@@ -0,0 +1,759 @@
+{
+ "clip": {
+ "embedding": [
+ -0.022361238898057162,
+ 0.07048105745407393,
+ -0.07002398838637057,
+ -0.05592286386441639,
+ 0.0324481190250824,
+ -0.030518000079507734,
+ 0.058194069915176685,
+ 0.022568686527260337,
+ -0.028799368815003258,
+ 0.059031443104446815,
+ -0.0375623818655285,
+ -0.01360094847060853,
+ 0.02338140823239253,
+ 0.03290974814820545,
+ -0.02788316885639714,
+ -0.053318837138632495,
+ -0.009219112842261663,
+ -0.06238402451298767,
+ -0.054401979583169016,
+ 0.010382087048171501,
+ 0.07267014861381561,
+ -0.051714384963719155,
+ 0.06932478167624118,
+ -0.006435102427941931,
+ -0.06121357106751902,
+ -0.05488746581455256,
+ -0.07137120294241334,
+ 0.04999948233078205,
+ 0.05776775308507388,
+ -0.009351094377556027,
+ 0.0022748774104346336,
+ 0.028882338122751688,
+ -0.0012458209083450241,
+ -0.05707796987960645,
+ 0.06620503785198047,
+ 0.01997565572453825,
+ 0.06717829859676022,
+ 0.012648205959835575,
+ 0.03842907146430973,
+ -0.04438720999194267,
+ 0.00761345438248254,
+ -0.012582906538243578,
+ -0.05427176317182401,
+ 0.04390477553929516,
+ -0.023412314760613125,
+ 0.05493859489398335,
+ -0.07290512832111579,
+ 0.06430740188378982,
+ 0.06321858612198136,
+ 0.05416305722828013,
+ -0.07434870182073681,
+ -0.05243485174360571,
+ 0.00028321378717335464,
+ -0.014165962333490318,
+ -0.05205804324042094,
+ 0.024973264937052778,
+ -0.019426715214931774,
+ 0.03793983774439526,
+ -0.012311128132513229,
+ -0.051925959814433154,
+ -0.05774147611665723,
+ 0.015192919578854373,
+ 0.0209054349050632,
+ 0.04356841865785276,
+ 0.06212235648908441,
+ -0.07332289520065095,
+ -0.02188577847256564,
+ 0.05411900007098529,
+ -0.011278906604755886,
+ 0.06333624600375452,
+ 0.05113298194599765,
+ -0.04505228356512617,
+ 0.02225068903789836,
+ 0.05695398811317535,
+ -0.03463146368290547,
+ 0.003559194459381074,
+ 0.00025368013703005283,
+ 0.010788941318775665,
+ 0.05179049037178278,
+ 0.06828211254947016,
+ 0.07220522649704351,
+ -0.013286206296018602,
+ -0.05086096232535428,
+ 0.06886635276910447,
+ -0.008013280683798902,
+ 0.0012480596294906438,
+ -0.0747850175031908,
+ 0.009204829498519588,
+ 0.05159618685233189,
+ -0.055024068848123706,
+ 0.01411706471983069,
+ -0.011585627735060847,
+ -0.013120515414756735,
+ 0.06000897677407849,
+ 0.04221478533862552,
+ 0.03828730319997915,
+ -0.002760839972923655,
+ -0.02514260520156491,
+ -0.007519381863260686,
+ 0.05895047491309316,
+ -0.07003857631563924,
+ 0.0017061791141844455,
+ 0.054491708761851616,
+ -0.03189312914548649,
+ 0.045428984990200025,
+ 0.055599573526814834,
+ 0.01042468909981191,
+ 0.05477871195749719,
+ 0.07465750769701843,
+ 0.030560986525793744,
+ -0.06258286008281386,
+ -0.05367490848477258,
+ 0.04687180533288254,
+ 0.06383005754949858,
+ -0.011981797923504265,
+ 0.06624213377541244,
+ -0.06746850362069758,
+ -0.0033511337685615717,
+ -0.008518796235091362,
+ -0.022231672386002644,
+ -0.04832901234705539,
+ -0.04444918512013012,
+ -0.02024846439344111,
+ -0.06790568307826292,
+ 0.0006962608178002455,
+ -0.06442875702941789,
+ 0.042549384772094426,
+ 0.03579034175675928,
+ -0.060353103039957626,
+ -0.0513281034300555,
+ 0.06521871957124022,
+ 0.0072912622702325635,
+ -0.01689747261290811,
+ -0.02927030644335067,
+ 0.013883717647033321,
+ 0.0024229085700743285,
+ -0.013169641029434843,
+ -0.035545711840633036,
+ 0.005273106015177749,
+ 0.03186985555159273,
+ -0.03442374115562575,
+ -0.06381093490604563,
+ 0.011315528755741011,
+ -0.0680585518201577,
+ 0.03863303059030489,
+ 0.026246639409217214,
+ -0.07331336633533386,
+ -0.03928167207225395,
+ -0.04059970992855652,
+ 0.03009515629551084,
+ -0.0479821916033445,
+ -0.05735218945596478,
+ -0.03231275483793679,
+ 0.06149782794620812,
+ -0.07090096249596578,
+ 0.003850575695182851,
+ -0.046343454068822204,
+ -0.008227611875803157,
+ 0.07199687142028179,
+ -0.07196817108669717,
+ 0.03846897749591319,
+ -0.009463633296868964,
+ -0.0042122358527600535,
+ -0.0589907890682722,
+ -0.0026174626277696627,
+ -0.03707688417275633,
+ 0.05776732656018627,
+ 0.05655136572373475,
+ 0.053385822646157446,
+ -0.07481131210181687,
+ -0.059061467771695096,
+ -0.03355277386517655,
+ -0.05588212840681734,
+ 0.05079995174136783,
+ -0.06792318517950383,
+ 0.06630766109287256,
+ -0.03435046267979031,
+ -0.038902944890552266,
+ -0.012322876406360839,
+ 0.0546969905741549,
+ -0.0719695728110217,
+ -0.026612146737861324,
+ 0.030313312401756987,
+ 0.04530059682806715,
+ -0.014855448103655236,
+ -0.0061129558457954135,
+ -0.03198996333361656,
+ 0.07191626799550757,
+ -0.06877379693859462,
+ -0.0012952624647880144,
+ -0.06055750155423375,
+ -0.019374093491170016,
+ 0.00922584863376468,
+ 0.06379115510792772,
+ 0.04789330723765935,
+ 0.07020636543717325,
+ -0.017154686117297393,
+ 0.0416534504412937,
+ 0.07515692782246622,
+ -0.06326462382125163,
+ -0.011985352671435558,
+ 0.006610255193745122,
+ -0.020386687128021462,
+ -0.036645236324835295,
+ -0.007588344057248075,
+ -0.05587997678521529,
+ 0.004341478046071452,
+ -0.03361236782853827,
+ -0.016837674552708477,
+ 0.025985490898164973,
+ 0.04093229236792714,
+ 0.008180657440693021,
+ 0.06670095822313232,
+ 0.04692165501290111,
+ -0.021476826978142773,
+ 0.041177670008223595,
+ -0.04697966194196373,
+ 0.05170696131364771,
+ 0.023966561227203358,
+ -0.011873264216240912,
+ -0.049836408782041916,
+ -0.01077847146293697,
+ -0.0430485932298788,
+ -0.07483654037069887,
+ 0.038733771114101284,
+ -0.04049287534587007,
+ -0.04217450423570788,
+ -0.036744769056610824,
+ -0.03232471194038826,
+ 0.007359823350667996,
+ 0.01858467121186864,
+ -0.021431866333952717,
+ -0.04227557882218023,
+ -0.07059324461040126,
+ -0.00026504787174505426,
+ 0.019793297110097714,
+ -0.004511852534419439,
+ 0.06676394966454527,
+ -0.0021152153948430855,
+ -0.020607898412865103,
+ 0.007724512889955743,
+ -0.04033403465969682,
+ -0.030457821024523955,
+ 0.013625935910128808,
+ -0.03634745851257383,
+ 0.01859417308859476,
+ -0.027303135737492882,
+ 0.00405589928722695,
+ 0.03615357860885073,
+ -0.04247362394174221,
+ -0.03427555602081708,
+ 0.04376920588835703,
+ 0.06597355523516725,
+ -0.05475103312455556,
+ -0.05511192081257915,
+ 0.0385833888275871,
+ -0.07293975037215956,
+ -0.0002112735248483741,
+ -0.011456919565349376,
+ -0.04972749141618544,
+ -0.07424675073596022,
+ -0.06602124817626653,
+ -0.054157504027763044,
+ 0.03271313910208377,
+ -0.014402286913823389,
+ 0.0699763051191039,
+ -0.023102389068107174,
+ 0.04012973502180397,
+ -0.0014723796845624072,
+ 0.03270490067696612,
+ -7.298387959249731e-05,
+ 0.06704956179110223,
+ 0.0399791564195781,
+ -0.006191154446914153,
+ -0.03999209951690287,
+ -0.022317615170523192,
+ 0.013146103788552466,
+ -0.0003194626544003261,
+ -0.007446206049221273,
+ -0.022464370926464132,
+ -0.04676618103077535,
+ -0.051265732586034285,
+ -0.005118852653416093,
+ -0.04251530662878389,
+ 0.019529524957502476,
+ -0.07016127962901132,
+ -0.06964332356403806,
+ -0.07086581949501614,
+ -0.07129034172402024,
+ 0.039781820539156625,
+ -0.0717478521778613,
+ -0.02315417120133909,
+ -0.06245398454878828,
+ 0.026331865488922104,
+ 0.030486813676093818,
+ 0.0562529853648924,
+ 0.016549159154766017,
+ 0.022629179210701202,
+ -0.039071406693953536,
+ 0.004465930570639251,
+ -0.005431339317853814,
+ -0.05454489223385675,
+ -0.058567844585285904,
+ -0.02508644145306474,
+ -0.0015315018032337764,
+ -0.002508836107793484,
+ -0.04883464875115519,
+ -0.05585054124035265,
+ 0.07060429482609605,
+ -0.016904172793491098,
+ -0.029023075387857276,
+ 0.021351809936372267,
+ -0.06340629664411053,
+ -0.05414766405759738,
+ -0.06159357929598848,
+ 0.051191463663960546,
+ -0.0013345289368858367,
+ -0.02669234992533653,
+ 0.0465268720380333,
+ 0.005244982256036491,
+ 0.065375327810239,
+ -0.057202761268716394,
+ -0.003393389630185145,
+ 0.02263269792711105,
+ 0.07431561117945466,
+ 0.04240192815399123,
+ 0.012561412438847619,
+ 0.018145170840630647,
+ -0.002181122725684043,
+ -0.03386595049118979,
+ 0.07319395657641273,
+ -0.06184639621870906,
+ 0.07074018606186808,
+ -0.06472341064939925,
+ 0.03363022421637331,
+ -0.026335139800858186,
+ 0.06037459412504343,
+ 0.01645903730960993,
+ 0.07413472894609027,
+ 0.014962602413519323,
+ 0.044913524809089146,
+ -0.033738585196654486,
+ -0.05746574072783985,
+ -0.017931269958926754,
+ 0.03982822184835245,
+ 0.028940263805640465,
+ -0.009348171758505327,
+ -0.05068485833439498,
+ 0.004534908046478147,
+ -0.01558671224768435,
+ -0.0020883330758361073,
+ -0.03546905046759553,
+ -0.010035190350854609,
+ 0.0137500341831526,
+ -0.06067539192558378,
+ 0.034873986666330285,
+ -0.04095002919980922,
+ 0.0005628768221288829,
+ -0.06707701269312562,
+ 0.009496139197030249,
+ -0.0731982499004334,
+ -0.012186984154135386,
+ -0.06185526183064065,
+ 0.0005957554452464312,
+ 0.07405241483020017,
+ -0.020828668697122348,
+ -0.05682731029165717,
+ -0.0642088130166456,
+ 0.06490267398790715,
+ -0.019990948616833017,
+ -0.037566586898301585,
+ -0.0588288505825578,
+ -0.03218939205659198,
+ -0.005761393276752179,
+ -0.047162075164488323,
+ 0.054168185095613636,
+ -0.03424428279826054,
+ -0.027295660213246593,
+ 0.050762624942807685,
+ -0.009095073173035395,
+ -0.06519647925482913,
+ 0.03612297179419033,
+ -0.049437027336824944,
+ 0.06147370897851503,
+ 0.051960677377048854,
+ 0.012344520835713486,
+ 0.003999241261960818,
+ 0.054994681462123385,
+ -0.07199855456200482,
+ 0.018794466918586022,
+ 0.038198891450086946,
+ 0.03020761824476435,
+ 0.07226325631383328,
+ 0.021274377250435048,
+ -0.018738222940365437,
+ 0.0673067959400111,
+ 0.018027465008152603,
+ 0.022056683794952806,
+ 0.013793240078228266,
+ -0.02482870573696534,
+ -0.022097873992784553,
+ -0.032882643085697716,
+ 0.060193620586121294,
+ 0.034041621297739036,
+ 0.04099419308471379,
+ 0.0042562653555116925,
+ 0.06386560548446306,
+ 0.04025749319311346,
+ 0.07196011068112955,
+ 0.03517257136736138,
+ 0.05235206087600871,
+ -0.021993435295973453,
+ 0.07034278186391543,
+ 0.07294531173935419,
+ 0.06251674220591326,
+ 0.011592668427541532,
+ 0.04175701102749513,
+ -0.054260213281645056,
+ 0.04867492613390938,
+ 0.06900754172508249,
+ -0.017891945829384595,
+ -0.021672218137809562,
+ -0.04757200448710697,
+ -0.013518921450236086,
+ 0.033201337827059786,
+ -0.03796174806394409,
+ 0.044631175883580815,
+ -0.07267480733531786,
+ -0.0666127019906143,
+ 0.06655083839190275,
+ 0.028971148742988284,
+ 0.06632447337273843,
+ -0.04745588341067035,
+ -0.03406796437067848,
+ -0.026607906619919987,
+ 0.04802289400868214,
+ 0.001035491738829604,
+ -0.04606077227234193,
+ 0.029234856894067806,
+ 0.02751216934949162,
+ -0.07309580145448046,
+ -0.051456271161995415,
+ -0.053165872008912825,
+ -0.05213613034711388,
+ 0.06853267424243947,
+ 0.04750455519641882,
+ 0.033881230800492136,
+ 0.01855312754260056,
+ 0.025019298079807694,
+ 0.07379214509570985,
+ 0.039246827312759525,
+ -0.049872265894098475,
+ -0.0066245711691471825,
+ -0.0023412096188076426,
+ 0.05298172093143078,
+ 0.06851807968869847,
+ 0.048245181752753996,
+ -0.029402667781725164,
+ -0.009867483211546934,
+ -0.058489677424123136,
+ 0.07201225400582886,
+ -0.018826578995619923,
+ 0.048137555878600496,
+ -0.06619291278936289,
+ -0.001714112708424661,
+ -0.033648973856469054,
+ -0.0751755787614293,
+ -0.06336189266589672,
+ 0.005399387560060269,
+ 0.005554834132993648,
+ 0.0390030272782804,
+ 0.04470720225362804,
+ 0.04851337687975689,
+ 0.05095113804254195,
+ 0.0666548058398755,
+ -0.0662314910523911,
+ -0.0017513566134554118,
+ 0.053614206061424786,
+ -0.010737758787914714,
+ -0.0414600787993337,
+ 0.0658373819861447,
+ 0.03637074651206614,
+ 0.01911770047499619,
+ -0.0033416003116790117,
+ -0.0067936157158125935,
+ 0.06957981274997457,
+ -0.04036578484426096,
+ 0.021001377978989766,
+ -0.023070253192043057,
+ -0.03417922143707093,
+ -0.01792345238057757,
+ -0.01861637856518842,
+ -0.02748251207758165,
+ 0.05392760557113926,
+ -0.035966275053643255,
+ 0.015684980826849042,
+ -0.026345385125640098,
+ -0.006632952879147774,
+ 0.07518481169859896,
+ -0.03831383796201469,
+ 0.0110144668525605,
+ -0.002258284894809484,
+ -0.07350532549258308,
+ 0.033012227788763546,
+ 0.02514833905039087,
+ 0.0400047758477785,
+ -0.04111823433119537,
+ -0.017496526239221075,
+ -0.040874399001247286,
+ -0.06412026306413758,
+ 0.0667226985846583,
+ -0.01602615292857116
+ ]
+ },
+ "faces": [
+ {
+ "box": [
+ 0.02,
+ 0.14591952495581878,
+ 0.22281127122230826,
+ 0.3096272175386548
+ ],
+ "embedding": [
+ 0.024045487705147802,
+ -0.023166287758084693,
+ 0.09202831974851905,
+ -0.003539518614263867,
+ 0.014601317148753713,
+ 0.09756812866608176,
+ -0.015714450530556753,
+ 0.08658258909454558,
+ -0.03711226676372324,
+ -0.0790736317110808,
+ 0.012664906352484481,
+ -0.036444901501759414,
+ 0.1100930457472562,
+ -0.026217393191643703,
+ -0.07230896403970169,
+ 0.08153494170782352,
+ -0.09523581841241902,
+ -0.07916429142909465,
+ 0.053866916786225835,
+ -0.07233248153099404,
+ 0.0995642518948108,
+ -0.03964336618311389,
+ -0.08820557122464255,
+ 0.005216555671472225,
+ 0.08085921181155273,
+ -0.041104263231283855,
+ 0.04658075687673762,
+ -0.09239366171557895,
+ 0.11522694575715424,
+ 0.045884356826851436,
+ -0.10253389220190193,
+ 0.08471248728296762,
+ 0.09002943913928915,
+ -0.02283990543143836,
+ 0.053647300776580295,
+ -0.023497835505308984,
+ 0.08328724076504737,
+ -0.09134913309936489,
+ -0.11539856710653824,
+ -0.1173558983920878,
+ -0.11802039954665126,
+ -0.07969630698559745,
+ -0.08069401972056152,
+ -0.018577365436467107,
+ 0.08699079660687582,
+ -0.05104630100080438,
+ -0.08686286102088349,
+ 0.07132437629300448,
+ -0.10622936745741893,
+ 0.06288675617343975,
+ -0.038636659171238104,
+ -0.11307292382641972,
+ -0.025133466847602447,
+ -0.07705042595532281,
+ 0.023201051855738175,
+ -0.12288895383660513,
+ 0.003074847731349731,
+ -0.03230533947846584,
+ 0.0419185603724218,
+ -0.08826945470799835,
+ -0.042606362510199086,
+ -0.05350090938962565,
+ -0.05380745134701188,
+ 0.08727049801685029,
+ 0.1133117493525344,
+ -0.025083965332606407,
+ -0.12084839758330415,
+ 0.08506957664438831,
+ 0.09745171134444422,
+ 0.03537893034497851,
+ -0.03465254833475081,
+ 0.07788794455315119,
+ 0.10742795266488415,
+ 0.10389616368292634,
+ -0.05154240722008895,
+ -0.0061946894950288146,
+ -0.12044818133401633,
+ -0.017209023718963472,
+ -0.1014197337923659,
+ 0.10329120524661153,
+ -0.03685450614527305,
+ -0.046880798289999574,
+ 0.024275064699987574,
+ -0.029690951585360892,
+ -0.033449595910965225,
+ 0.10998507056947196,
+ 0.1121938349859777,
+ -0.05333883030100185,
+ 0.06544746181916286,
+ -0.03997794302646063,
+ -0.09290647910831196,
+ -0.06775877125023108,
+ 0.03488936921619688,
+ -0.018605973835442678,
+ 0.011451580270001769,
+ 0.07616340555435883,
+ 0.009149725505262201,
+ -0.06026827439321766,
+ 0.11547134453660486,
+ -0.07294892982110131,
+ -0.0921010802359785,
+ 0.03265246727841313,
+ -0.06368058474341072,
+ 0.09768167173780581,
+ 0.08161006517033015,
+ 0.0042938137426666275,
+ -0.0903481627159655,
+ -0.015464360475799235,
+ 0.004578804069841956,
+ 0.12098322592901364,
+ 0.04926777542160841,
+ -0.09263812279080623,
+ -0.03424947835108741,
+ 0.020910872218539395,
+ 0.08650327233676756,
+ -0.10886037403116795,
+ 0.017987779073728255,
+ -0.08583858296943207,
+ 0.11256322323949654,
+ 0.08705935411757411,
+ -0.04099652922632598,
+ -0.050564588563602235,
+ -0.11511978912628176,
+ 0.035522229763754895,
+ -0.08156696732693242,
+ 0.018037598464306196,
+ 0.12341036914144705,
+ 0.06843205472623304,
+ -0.07803446243338036,
+ -0.12357272403727443,
+ -0.1025478039264712,
+ -0.009858301930298193,
+ -0.11189137008835728,
+ 0.013213136156920359,
+ -0.0663723520590304,
+ -0.01744071779053498,
+ -0.06758372979931795,
+ -0.06079960573347972,
+ -0.07647127341482488,
+ -0.11051748825356911,
+ 0.07422367930885503,
+ -0.12110055653785604,
+ 0.09522830246442363,
+ 0.10188324929320215,
+ -0.11836809284933336,
+ 0.08434261806686602,
+ -0.028197203686332054,
+ -0.009305540036075706,
+ -0.03364931086915563,
+ -0.03764225450913541,
+ 0.09083759931082172,
+ 0.030352866687216276,
+ -0.08271382986665447,
+ 0.024242734978368572,
+ -0.11256432076314724,
+ 0.028428029362844887,
+ -0.09397038966371832,
+ -0.08011852920358196,
+ 0.07677302712634008,
+ 0.043464428975206165,
+ -0.11443254448095903,
+ 0.0017013820277393835,
+ -0.10074081113669264,
+ 0.05370628582949064,
+ -0.03818598322760322,
+ 0.1041601337092717,
+ 0.020405456036622,
+ 0.043073274830886604,
+ -0.06030453969806993,
+ 0.06299002724210963,
+ 0.042961095293271204,
+ 0.03219428328180729,
+ -0.055173483798685585,
+ -0.07209732217760767,
+ -0.02995938489376174,
+ 0.06305840282147866,
+ 0.08622401581430077,
+ -0.02741811391677362,
+ -0.003989977185401484,
+ -0.05845198754611096,
+ 0.021290458135101425,
+ -0.02021024942551701,
+ 0.0009960401999725092,
+ -0.010834905329302839,
+ -0.07556936518765886,
+ 0.09702633624557477,
+ -0.018744492615232904,
+ 0.07760583118440138,
+ 0.06674374518772949,
+ 0.03710277515790076,
+ -0.08065799530039605,
+ 0.059521677259395354
+ ],
+ "landmarks": [
+ [
+ 0.08684338136669248,
+ 0.2635778676205076
+ ],
+ [
+ 0.17596788985561576,
+ 0.2635778676205076
+ ],
+ [
+ 0.13140563561115412,
+ 0.32550331112823855
+ ],
+ [
+ 0.09575583221558481,
+ 0.38742875463596954
+ ],
+ [
+ 0.16705543900672346,
+ 0.38742875463596954
+ ]
+ ],
+ "score": 0.8760527286853176
+ }
+ ],
+ "file_id": "man.jpeg",
+ "runner_metadata": {
+ "code_revision": "8f39129d1c",
+ "models": {
+ "clip": "bootstrap-mobileclip-sha256:synthetic",
+ "face_detection": "bootstrap-yolov5face-sha256:synthetic",
+ "face_embedding": "bootstrap-mobilefacenet-sha256:synthetic"
+ },
+ "platform": "python",
+ "runtime": "bootstrap-deterministic",
+ "timing_ms": {
+ "total": 46.0
+ }
+ }
+}
\ No newline at end of file
diff --git a/infra/ml/ground_truth/goldens/people.jpeg.json b/infra/ml/ground_truth/goldens/people.jpeg.json
new file mode 100644
index 0000000000..a5c35b6bbd
--- /dev/null
+++ b/infra/ml/ground_truth/goldens/people.jpeg.json
@@ -0,0 +1,1209 @@
+{
+ "clip": {
+ "embedding": [
+ 0.027311880170020467,
+ -0.04049287690976766,
+ 0.050926267563917986,
+ 0.04520741387144618,
+ -0.026191020484162723,
+ 0.05765857395535975,
+ -0.05322635143606597,
+ 0.05240058745630706,
+ -0.06132886495662953,
+ -0.00040082896464134775,
+ 0.004444487145085447,
+ -0.016411556199964778,
+ -0.060302190264437346,
+ -0.003277895752993477,
+ -0.0038627126047113937,
+ 0.07247516289060178,
+ 0.011750832617168156,
+ -0.026265170623442344,
+ -0.02196693347388616,
+ -0.05801038602429144,
+ -0.010342372398281037,
+ -0.007351292827362135,
+ -0.055832832081945005,
+ -0.0689979476224658,
+ -0.034797802526859455,
+ -0.0309268372846034,
+ -0.07656000269951518,
+ -0.028252167955421417,
+ -0.04967568201774789,
+ 0.05281238038179636,
+ 0.03646291039011229,
+ -0.07442425305778921,
+ 0.008192154267267002,
+ -0.0035795088209287862,
+ 0.05411581783626026,
+ -0.05766326987517995,
+ 0.06486544398802647,
+ -0.035818390580777765,
+ 0.021510798480838016,
+ 0.06897134606037524,
+ -0.0711775655610266,
+ -0.025322872650778833,
+ 0.003081445028822552,
+ -0.06127012156199268,
+ 0.05439876762019485,
+ 0.07080486078984476,
+ 0.022664242492388065,
+ 0.04949756448935236,
+ -0.0015972499520348084,
+ 0.059597614985864904,
+ 0.021179575984395935,
+ -0.052528281209857426,
+ 0.07058527124460329,
+ -0.06221644746762938,
+ -0.057349680986154755,
+ 0.06474664044511243,
+ 0.002886992758323357,
+ -0.02827431816747602,
+ 0.019809856591130808,
+ 0.03225668644014069,
+ -0.04942100396098077,
+ -0.029158333810835414,
+ 0.06875106084996974,
+ -0.06637423425485889,
+ -0.06949584624448524,
+ -0.004527762274795724,
+ -0.07064040231293339,
+ -0.07462399278665222,
+ -0.044076103047446254,
+ -0.05314926764713176,
+ 0.06571600745188381,
+ -0.07341947321008443,
+ 0.0652559246454121,
+ -0.027278378428694582,
+ 0.023682855991727612,
+ 0.025102811638340366,
+ -0.05164687906188763,
+ 0.057882861220051915,
+ -0.01638239833474173,
+ -0.027132826077922886,
+ -0.06841316341604507,
+ -0.044882299932777404,
+ -0.05630140583303148,
+ -0.05015277187228346,
+ 0.030607545726466664,
+ -0.055153018171297113,
+ 0.06331621674383084,
+ -0.013981228461862857,
+ -0.0035433847660238885,
+ 0.01464138720416658,
+ 0.059159950284443236,
+ -0.05297707212681245,
+ 0.00043004873715341187,
+ 0.07557201020098347,
+ -0.03616616143546322,
+ 0.038160569249900675,
+ -0.01637254424201246,
+ -0.049286191948971755,
+ 0.04282204018324912,
+ 0.042324805408926566,
+ 0.0041377531205997005,
+ 0.0020636524849220682,
+ -0.047033253572774616,
+ 0.01134195401330194,
+ -0.07687920316035628,
+ -0.06431442444894689,
+ -0.0349379133349044,
+ -0.004829351263675014,
+ -0.002592020254928191,
+ 0.06476372667691806,
+ -0.03626510188072574,
+ 0.03821303344580071,
+ 0.0706147556347833,
+ 0.022544572283420394,
+ -0.07638374782467425,
+ -0.02453512716095396,
+ 0.06034197707129545,
+ 0.058313016675293664,
+ -0.03261141614201558,
+ -0.057359957488153736,
+ 0.04651158316364705,
+ -0.015107369091422013,
+ 0.014367847976029543,
+ 0.031847194450216665,
+ -0.029988950170289738,
+ 0.006448138149684445,
+ 0.04795261539875389,
+ -0.03850707982335071,
+ 0.029868963874221978,
+ -0.058204010680718746,
+ 0.017979429775641875,
+ -0.039605513773725114,
+ 0.04944985686082019,
+ 0.035083855845567335,
+ 0.07047330014283273,
+ 0.06938448798888334,
+ -0.01212258401609913,
+ 0.05225099975808454,
+ 0.018983013300979016,
+ -0.037120878910118775,
+ 0.054178019832767,
+ -0.03849090931552599,
+ 0.015843707092380716,
+ -0.05684411640613192,
+ 0.009671585578164893,
+ 0.04187729240958582,
+ 0.013228657613879105,
+ 0.02545654200540156,
+ 0.045687632995471114,
+ -0.056894171472681346,
+ -0.05105189102254727,
+ -0.007599502832168333,
+ -0.07186573864734444,
+ 0.0016795290222588908,
+ -0.05697259757000893,
+ -0.03250569342930776,
+ -0.020578612919864986,
+ -0.010035165790827388,
+ 0.0695395211530271,
+ -0.07718283239032739,
+ 0.02673056295174772,
+ -0.0492514355412576,
+ -0.03110533233948411,
+ 0.050915044456278806,
+ -0.02818027271715902,
+ -0.04781010726693438,
+ 0.05213217299993711,
+ 0.02314138014510957,
+ 0.044702689790849584,
+ 0.054726115800122765,
+ 0.0005120076171198811,
+ -0.044145803456357345,
+ -0.0043842148203729284,
+ 0.053360956994464644,
+ -6.910217574204779e-05,
+ -0.047014455820383334,
+ 0.014925197679381554,
+ 0.0030451971593396204,
+ -0.013227515496381964,
+ 0.0014588383551029458,
+ -0.04444841521123937,
+ -0.016685020779428895,
+ 0.0623785243495367,
+ -0.015938665927158983,
+ 0.02031459298119999,
+ 0.04602561699162258,
+ -0.07340099766353692,
+ -0.02700692738380574,
+ 0.06226231691758167,
+ 0.0019251963651317674,
+ -0.06775781533800189,
+ 0.008989365993456936,
+ -0.05829305279833444,
+ -0.0320822692759757,
+ 0.021635421488882704,
+ 0.02378239287052868,
+ 0.006930714537709138,
+ 0.03547496993689448,
+ -0.033363409740521856,
+ 0.04566337304059499,
+ -0.06899369801100828,
+ 0.05171159413440236,
+ -0.0613989676549414,
+ 0.047813236752379404,
+ -0.0662952962706334,
+ -0.011904735541376039,
+ 0.004998505156510049,
+ 0.020963134280830537,
+ -0.0057819521929057755,
+ 0.018647610010949528,
+ -0.03670943770441336,
+ -0.05573704142195948,
+ -0.0244176023274916,
+ 0.07328748985728695,
+ -0.058241398580127446,
+ -0.05227582206149763,
+ -0.031087245729079102,
+ 0.0667940970114272,
+ -0.04897314143740535,
+ 0.02972676902207898,
+ -0.05436292851878248,
+ 0.038243936736647936,
+ -0.06241190789113169,
+ -0.06613915107881436,
+ -0.0730686050473472,
+ 0.014979888810040925,
+ 0.024962841093496186,
+ -0.04153833924042775,
+ -0.03076368332384501,
+ 0.024109907516277358,
+ 0.06396090597038014,
+ -0.07378723965121843,
+ 0.0014805374717777491,
+ -0.05464421184487899,
+ 0.05099124606634453,
+ 0.007315586898606371,
+ -0.005186959726474409,
+ -0.01506189671194207,
+ 0.049420452374234154,
+ 0.06607054088605695,
+ -0.003716618493175579,
+ 0.0144446303268559,
+ -0.012286295970288696,
+ 0.060840796888172496,
+ 0.06802746441287641,
+ 0.07290904059358089,
+ 0.02527681596726988,
+ -0.0241818149200419,
+ 0.04595929225760819,
+ -0.048087559647611654,
+ -0.04572011945725712,
+ 0.016388741528338933,
+ -0.05171188844597346,
+ -0.00012068887181288066,
+ -0.031427869351254946,
+ -0.06226093476536915,
+ 0.0029271554719991918,
+ 0.0340237861301376,
+ 0.04756717208708591,
+ 0.023575713622507762,
+ 0.04484981519863668,
+ 0.017452099204675057,
+ 0.06552586882369514,
+ 0.02645753197525499,
+ -0.0749940772598412,
+ 0.012572605808327288,
+ 0.010754077321839143,
+ -0.026806132315628055,
+ 0.06311188817316207,
+ -0.03463546405066343,
+ -0.05460848338474944,
+ 0.02786571429520112,
+ 0.01713214037954351,
+ 0.07178377462043475,
+ 0.05395662443030934,
+ -0.02421681830904515,
+ -0.003862360812942294,
+ -0.04497414180753889,
+ -0.0707835947362522,
+ -0.06976720136906872,
+ 0.05111291847221536,
+ -0.04497888343797366,
+ 0.018815741209767048,
+ 0.048399989574598276,
+ -0.006282918357088607,
+ -0.026976694311347346,
+ 0.04202152242786264,
+ -0.031354183264694684,
+ 0.07085364798071807,
+ -0.009962520070656098,
+ -0.003183814849955734,
+ 0.040199008911592296,
+ 0.030223876022636417,
+ -0.04962023007530059,
+ 0.06562363461414118,
+ -0.024078421865002052,
+ -0.033320528612998584,
+ -0.010143694523395117,
+ -0.02838888563215386,
+ -0.026423943707694925,
+ 0.033999545611270825,
+ 0.04925063927674892,
+ -0.012242419071220114,
+ -0.026436150745310767,
+ -0.019121524669425505,
+ -0.056468114963832104,
+ -0.011811412714687873,
+ 0.0313872955299889,
+ -0.03717822294807557,
+ 0.0044373407763984695,
+ 0.05699562423810705,
+ -0.018016129316386364,
+ 0.05564379713114611,
+ 0.051023396213183685,
+ -0.0534004682419014,
+ 0.024220516837652594,
+ -0.004198668921191896,
+ 0.03277675312654923,
+ 0.025718482650993007,
+ 0.00817326505765398,
+ 0.026974917392189508,
+ -0.04019739287940069,
+ -0.030752978077876976,
+ -0.0525429567286376,
+ -0.001756342650663245,
+ -0.0745669385971829,
+ -0.06896135987476765,
+ -0.05575136302540658,
+ -0.050859385628309835,
+ 0.034468182997291597,
+ 0.008929314879324822,
+ -0.027997417841449292,
+ -0.03586003208682369,
+ -0.05822587072035238,
+ -0.0579130207596083,
+ 0.029620816460564386,
+ -0.01932935474515516,
+ 0.02065398583608052,
+ 0.05131683107629159,
+ 0.05058398907352446,
+ -0.05715935314481587,
+ 0.07267811398809731,
+ 0.04389042962644837,
+ 0.07159586789398559,
+ 0.04105846809295527,
+ -0.011077309386899633,
+ -0.02693274359143587,
+ -0.03404285767831235,
+ 0.055029597604363746,
+ -0.01469161885046014,
+ -0.019116990644364604,
+ 0.031845743624104465,
+ -0.07081335680941753,
+ -0.04893690692118069,
+ 0.05347527704594207,
+ 0.056037125487833905,
+ 0.07235675487047785,
+ -0.044508195804915524,
+ 0.0490149693131853,
+ -0.06847994540017555,
+ -0.006609106999096195,
+ 0.010144974888506861,
+ 0.024643261522495085,
+ -0.0009176923807545798,
+ 0.07394492046773857,
+ 0.020219433235673295,
+ 0.05602060228842485,
+ -0.06615729610522522,
+ -0.0670319984088264,
+ -0.07362367598658162,
+ -0.04374028649026997,
+ 0.009905089038561188,
+ -0.049817357388552294,
+ -0.003979175872137549,
+ 0.019530056952399323,
+ 0.03582649341708005,
+ -0.07249612073947583,
+ 0.06073194551784968,
+ -0.049053348773003956,
+ 0.05258720892264954,
+ -0.06262646275410864,
+ 0.03522985176926336,
+ 0.06784041780182587,
+ -0.050766622378727685,
+ 0.02843632705934325,
+ -0.022243986588541886,
+ -0.06998414988457403,
+ -0.00205556980448132,
+ 0.01276454993380605,
+ -0.019609542888117837,
+ 0.03340078619428061,
+ -0.028975820936904893,
+ -0.05088714312905975,
+ 0.017124756495623842,
+ 0.05233818692456415,
+ -0.01726924062172651,
+ -0.006572010135931093,
+ -0.0019077923185807828,
+ 0.07145530429890819,
+ 0.06164974771205705,
+ -0.024086026563583416,
+ -0.0432944465354149,
+ -0.051911249352617324,
+ -0.06302698005874093,
+ 0.03035255730542443,
+ 0.06862861345122268,
+ 0.04139336064785037,
+ 0.009836547375733013,
+ -0.00494464775866625,
+ 0.07321427401417495,
+ -0.057510764400043796,
+ -0.0745305940875424,
+ 0.05340422533048514,
+ -0.04843899015888587,
+ -0.055628063357649846,
+ 0.021713451091619703,
+ -0.02960765982992172,
+ 0.053598097184157194,
+ -0.010428013214261789,
+ -0.07036950299876162,
+ -0.03001616184311062,
+ -0.00694233691136987,
+ -0.007211704092123703,
+ 0.042655383493681115,
+ 0.0641371201735719,
+ -0.009782453614420044,
+ -0.004902773776353026,
+ -0.07433773967296682,
+ -0.02720395211811925,
+ -0.048795662345924105,
+ -0.04586054700026912,
+ -0.06261893975875174,
+ 0.06302220963421824,
+ 0.016357874374072042,
+ 0.031586041070981424,
+ -0.05678681876264928,
+ -0.064799302312426,
+ -0.07329868201128163,
+ -0.01424880022325737,
+ 0.05319153106948403,
+ -0.013238417118029576,
+ 0.0693089131181337,
+ -0.015179157755566518,
+ -0.01559511819337017,
+ 0.02766042601758215,
+ 0.023957297914520777,
+ 0.003927942479525432,
+ -0.045206023728874264,
+ 0.07411845469719026,
+ -0.010132835588982838,
+ -0.005788292579079406,
+ -0.06499014150077365,
+ -0.01975133872618755,
+ 0.07207023317993742,
+ -0.02405996186726201,
+ -0.030121985263140916,
+ -0.02815844683451217,
+ -0.07433696489604624,
+ -0.06918079594752054,
+ 0.01692520410829534,
+ 0.014406430326190172,
+ 0.0537607670083199,
+ 0.045953896137555114,
+ -0.07130915263518915,
+ -0.05311812057833772,
+ -0.02335681078027045,
+ 0.04106379751870221,
+ 0.02360820645498572,
+ -0.03519897151368647,
+ 0.027690527429073557,
+ 0.024879033273159483,
+ -0.02870089412167124,
+ -0.034389451178735576,
+ -0.0039722652550453754,
+ 0.007087757709152405,
+ -0.023052721564744902,
+ -0.02450564831363588,
+ 0.07248239027865362,
+ -0.01705224124866342,
+ 0.0042938161052977365,
+ -0.04648728480465617,
+ 0.009350498564676228,
+ 0.04238351756197803,
+ -0.04100342578240117,
+ -0.06607935533224944,
+ 0.04492159382084302,
+ 0.02285126189302553,
+ -0.06659374911543484,
+ 0.0393737339274314,
+ -0.0638500507474941,
+ 0.007225148807615956,
+ 0.05807446741091639,
+ 0.019832514586925785,
+ -0.05101416993954879,
+ 0.0011206675932987412,
+ 0.0060923422747192904,
+ -0.06907944047011938,
+ -0.016734474949356145,
+ 0.030749648113594843,
+ 0.024722564003880967,
+ -0.0206252224138693,
+ 0.07457559132857913,
+ 0.03888480329607827,
+ 0.004301566429978728,
+ -0.023534056783610025,
+ 0.05347427274414821,
+ 0.044756531387937636,
+ 0.04764204808932926,
+ -0.03951345137224281,
+ -0.018101462215589476,
+ -0.007144106155526937,
+ 0.05275978506481848
+ ]
+ },
+ "faces": [
+ {
+ "box": [
+ 0.02,
+ 0.3659777828533622,
+ 0.1874342807731591,
+ 0.22578797277994453
+ ],
+ "embedding": [
+ -0.12085902254737323,
+ 0.0030747406670401686,
+ 0.04413054442323277,
+ -0.0021830748557149326,
+ 0.0631234392734338,
+ 0.06224988130041595,
+ -0.03637037470629538,
+ 0.034480361940975444,
+ -0.035795335419633985,
+ 0.0018523407123636768,
+ -0.10171028317681095,
+ -0.11358111779283417,
+ -0.061914314284827396,
+ 0.08255787332554719,
+ 0.06517566844858386,
+ -0.07319764544772847,
+ 0.1188080758080455,
+ 0.10632423881274829,
+ -0.04446298975724517,
+ 0.09541567065645905,
+ 0.054963308794702764,
+ -0.08885149462644207,
+ 0.10887462120626631,
+ -0.048538560315870456,
+ -0.04146207638531186,
+ -0.009850811709002066,
+ -0.06323364682009973,
+ -0.10893269925645169,
+ -0.06696353619022558,
+ 0.11862738052999598,
+ -0.04370320673136833,
+ 0.05112713581816342,
+ -0.0016474698815602455,
+ 0.10572734969885242,
+ 0.012413720647243574,
+ 0.06186647534078732,
+ 0.035175278759792386,
+ 0.10331859411732643,
+ 0.057417584780913765,
+ 0.048937295011999865,
+ 0.04983255655613669,
+ 0.12569502871806293,
+ 0.06448205197209714,
+ -0.10638940866470366,
+ -0.07003153458581769,
+ 0.1154493891124148,
+ -0.035314038351110015,
+ 0.1149541526521329,
+ -0.12465904788024723,
+ 0.001954023583209722,
+ -0.019943663977094853,
+ 0.04958417644531671,
+ -0.03464090839223498,
+ 0.0499845047028432,
+ -0.04091135395966901,
+ 0.04135137458368611,
+ -0.056085597822534236,
+ -0.109735345691098,
+ 0.06837512688289017,
+ 0.04635500445836767,
+ -0.03878151721354377,
+ 0.04460311684029765,
+ 0.0058000915546471445,
+ 0.060627199857184254,
+ 0.11420627409653897,
+ -0.011430267902418164,
+ 0.12508764197281397,
+ -0.018619042071439763,
+ 0.04048121837594527,
+ -0.07132917309225487,
+ 0.058877964817305804,
+ -0.08499089829228458,
+ -0.06866507924901528,
+ 0.07510053958936262,
+ -0.050734578867259336,
+ 0.12408744163634867,
+ -0.10780689949281816,
+ -0.10159167276570123,
+ 0.060372310377324885,
+ -0.022370272877123502,
+ 0.037321241906661744,
+ -0.05937718223593109,
+ -0.06510763514574519,
+ -0.09753701323851141,
+ 0.11158238095256359,
+ -0.049029761568158414,
+ -0.07018871779435339,
+ 0.04395146650338687,
+ 0.07295768051207643,
+ -0.02506764555297337,
+ 0.09579596871781038,
+ 0.012740749616034299,
+ 0.03269552375663897,
+ 0.02369116027453078,
+ 0.11649775612913711,
+ 0.12128187642609844,
+ 0.11857350933110726,
+ -0.02195803714526177,
+ -0.04886385606428308,
+ -0.09336872042586314,
+ -0.07664553223440072,
+ 0.05384184299501077,
+ -0.10467830900867336,
+ -0.07521775252711733,
+ -0.01646056286457853,
+ 0.11978376125165159,
+ 0.03052360224032297,
+ 0.06707599624599868,
+ -0.03276136145065541,
+ -0.015423987990143866,
+ -0.1131902328621052,
+ -0.06101801439884435,
+ 0.09843244454105537,
+ 0.04387350050773876,
+ 0.10520555022996732,
+ -0.02565304793656666,
+ -0.014249130520776343,
+ -0.11760800868509289,
+ -0.09841543235720009,
+ -0.1031021999185628,
+ -0.014097614957602776,
+ -0.05760833397411899,
+ 0.03231216586184733,
+ 0.0034834236063674743,
+ 0.0733060215238348,
+ -0.0026193218009981957,
+ 0.06444409983544003,
+ 0.012211714268674194,
+ 0.06718375519551534,
+ -0.06229119296890875,
+ 0.12380879876143974,
+ 0.03944809256588578,
+ 0.06795724506415937,
+ -0.07523720671098741,
+ -0.06570029449508266,
+ -0.03618614436551036,
+ -0.0852424779544289,
+ 0.10848907300392126,
+ -0.04411001196129162,
+ -0.07730893801703856,
+ 0.06515015438436447,
+ 0.009203627102013652,
+ -0.0589543915601104,
+ 0.11748501877803307,
+ 0.053236146647668715,
+ 0.04432873047190299,
+ -0.034009663110105524,
+ 0.1064973606982101,
+ 0.042042291595203986,
+ 0.05979218469997225,
+ -0.05407653134222811,
+ -0.08496521841615817,
+ 0.0167979398511366,
+ -0.0759201121506009,
+ 0.0974192740614752,
+ 0.044785507287396,
+ -0.07334709104215005,
+ 0.05546638618493713,
+ -0.04431803445529133,
+ 0.039677379332531064,
+ 0.028790554860294616,
+ 0.032852247993103774,
+ -0.014208809541613679,
+ 0.05632708333878306,
+ 0.10122732339478373,
+ -0.042413559534208174,
+ 0.03719119129860879,
+ 0.08646238754973866,
+ -0.0685744421607148,
+ -0.07031899423645663,
+ 0.0653184538234176,
+ 0.12343645949491688,
+ 0.0371198738008542,
+ -0.1216043720443383,
+ -0.062497578784525255,
+ 0.10770540499372297,
+ -0.011080325023941628,
+ 0.061930056991517386,
+ 0.038196175558929575,
+ 0.05590570657025059,
+ 0.019388762855782903,
+ -0.09108415254362769,
+ 0.10559827558450985,
+ 0.09702891095230373,
+ 0.08562057463446532,
+ 0.06066553716047017,
+ 0.0647075505698739,
+ -0.07477738826307692,
+ -0.04253751998577675,
+ -0.04741616950367829,
+ 0.10904537242323001,
+ -0.10444134500347514
+ ],
+ "landmarks": [
+ [
+ 0.07623028423194773,
+ 0.4517772125097411
+ ],
+ [
+ 0.15120399654121136,
+ 0.4517772125097411
+ ],
+ [
+ 0.11371714038657955,
+ 0.49693480706573
+ ],
+ [
+ 0.0837276554628741,
+ 0.5420924016217189
+ ],
+ [
+ 0.143706625310285,
+ 0.5420924016217189
+ ]
+ ],
+ "score": 0.9346935231215321
+ },
+ {
+ "box": [
+ 0.27927513994431746,
+ 0.44722348866197903,
+ 0.18217458016704768,
+ 0.2481649636151269
+ ],
+ "embedding": [
+ -0.018918495520468894,
+ -0.1181345308479883,
+ -0.11616347391764856,
+ 0.03902403827342113,
+ -0.009625844853325233,
+ 0.057784974329716556,
+ 0.03974433997513512,
+ 0.03830591494313241,
+ -0.10173444884925428,
+ -0.10937377137308232,
+ -0.11229628203030782,
+ -0.017102485130720206,
+ -0.09946343286531861,
+ 0.027607278371141193,
+ -0.1006405364218901,
+ -0.024463364908047035,
+ -0.040401033547897515,
+ -0.11788930300261012,
+ -0.012367478435406868,
+ -0.09729485616547921,
+ -0.05842062419062253,
+ 0.04707123505884693,
+ 0.11621449274043953,
+ 0.011676793014715144,
+ 0.030874474509387195,
+ -0.006487304456207885,
+ -0.09008565090102394,
+ 0.08173288091908974,
+ -0.05840435733233597,
+ 0.0473354790716761,
+ 0.04478190356112785,
+ 0.034938364827487405,
+ -0.00783280380018037,
+ -0.11221691992530741,
+ -0.02979271978364788,
+ 0.10506752736741737,
+ -0.04807142151189019,
+ -0.06163438557623186,
+ -0.09814131241312357,
+ 0.05513546837776743,
+ -0.06855715989175905,
+ -0.030763331005013307,
+ 0.02414272924101777,
+ 0.11457700413173491,
+ 0.05079328162475795,
+ -0.10626453616159835,
+ 0.07890613410156865,
+ 0.012679744434315635,
+ 0.02808335084074324,
+ 0.03415626685624321,
+ -0.040636797525558356,
+ 0.04493720314160638,
+ -0.0908765879689632,
+ 0.012577630026459615,
+ 0.123146056482955,
+ 0.05148461251706994,
+ -0.0020903361215708566,
+ 0.10987677602435794,
+ 0.0888340006794057,
+ -0.055130816079636956,
+ 0.10338029985448124,
+ -0.09886215614210986,
+ -0.09394130833307217,
+ 0.06765354049680691,
+ -0.014182926566420652,
+ -0.020456012555738867,
+ 0.040810718026942895,
+ -0.11941799554302328,
+ 0.053628384329548195,
+ 0.10275281482546704,
+ -0.09839589651829476,
+ -0.03256525713011899,
+ -0.02387263956697351,
+ 0.11368694579821001,
+ 0.012126581295866475,
+ 0.06978959831647913,
+ 0.10070134780036348,
+ -0.05011108051714153,
+ -0.09387151178087946,
+ 0.08526078179568782,
+ -0.10234827640952375,
+ -0.003323205153914051,
+ -0.09578612920521189,
+ 0.02952960333766839,
+ 0.0807952700280598,
+ 0.01301844797029754,
+ -0.08223574219086943,
+ 0.11426331530390614,
+ -0.0302706717268058,
+ 0.033806808157451906,
+ -0.1242096199571407,
+ 0.0974095093301603,
+ 0.0244321478785176,
+ -0.022241198171765154,
+ -0.04469187431484089,
+ 0.08743584053886488,
+ 0.07743657472514458,
+ -0.03399547622224358,
+ -0.04384371469532828,
+ -0.11090615108289638,
+ 0.024686385058086405,
+ -0.0570466345491456,
+ -0.013787972585983507,
+ -0.09683542433776575,
+ -0.052774998893921454,
+ -0.03346225819790995,
+ -0.08796563997379404,
+ 0.04707928917479257,
+ 0.03622892572269468,
+ 0.0839274470144449,
+ 0.07471148989306192,
+ 0.012159752977894013,
+ 0.05988826234044324,
+ 0.09105974498333884,
+ 0.07557286921938183,
+ 0.02264730203377939,
+ -0.0438781478823522,
+ -0.10274327448868521,
+ 0.09933478721060031,
+ 0.12469067493752822,
+ -0.05086928929461505,
+ -0.009275098495240955,
+ -0.10042983277579663,
+ 0.00336341240036798,
+ -0.10172568147162814,
+ 0.08329025956238029,
+ 0.04002925849028849,
+ -0.052997631244939766,
+ 0.08547087363062345,
+ 0.07304197388212683,
+ 0.07754882550626362,
+ -0.11208885681942854,
+ 0.04468073276041652,
+ -0.09716178404266673,
+ -0.07222153793429038,
+ -0.008943044777131603,
+ 0.10872929807287411,
+ 0.030710978137170157,
+ 0.06510582349005437,
+ 0.10658387144403787,
+ -0.1228001981635221,
+ 0.09362322974699154,
+ -0.04496570563663031,
+ 0.0762139202943865,
+ 0.03469462044677514,
+ 0.08784391940212367,
+ 0.1046915770050602,
+ 0.014815198183563541,
+ -0.02690220028794593,
+ -0.09922969086108076,
+ 0.08245598130646532,
+ -0.11539868152903088,
+ -0.0543801902302769,
+ 0.012423361605513265,
+ -0.10920710857171949,
+ 0.10976428000272687,
+ -0.044631661670377035,
+ 0.03771175858056725,
+ 0.05970338963939602,
+ -0.05440996754201319,
+ -0.038581640633525545,
+ 0.027842041213933206,
+ -0.003952308054876237,
+ 0.08626996004898742,
+ -0.0989080055036724,
+ 0.06463949502062447,
+ -0.11186225112643669,
+ 0.021159382399786472,
+ 0.06324399176958119,
+ 0.022286090262615497,
+ 0.10795231537772368,
+ -0.11170358444416001,
+ 0.09026780466942162,
+ 0.0008343416478311465,
+ 0.007088543589945534,
+ 0.021093743207914198,
+ 0.07420218838963397,
+ -0.02995382714266078,
+ -0.10236502114082145,
+ 0.04091124306282435,
+ 0.02705241749044816,
+ -0.03620165013393396,
+ 0.00511597715792711,
+ 0.10580334361021829,
+ -0.09152147088298695,
+ -0.01627505982829083,
+ -0.03811881079972176,
+ -0.02564644049917254,
+ -0.06035436310329537,
+ 0.12428222275980276,
+ 0.09354512902970367,
+ -0.026909281006651197
+ ],
+ "landmarks": [
+ [
+ 0.33392751399443177,
+ 0.5415261748357273
+ ],
+ [
+ 0.40679734606125084,
+ 0.5415261748357273
+ ],
+ [
+ 0.3703624300278413,
+ 0.5911591675587526
+ ],
+ [
+ 0.3412144972011137,
+ 0.640792160281778
+ ],
+ [
+ 0.3995103628545689,
+ 0.640792160281778
+ ]
+ ],
+ "score": 0.945824727776926
+ },
+ {
+ "box": [
+ 0.46290141610894353,
+ 0.3904328656526745,
+ 0.2956478758365847,
+ 0.32112167465500535
+ ],
+ "embedding": [
+ -0.042180895204648995,
+ 0.08993087926024577,
+ 0.03711769647420716,
+ 0.07483006859361344,
+ -0.09134786105130462,
+ 0.041949047695394155,
+ 0.10331982825688611,
+ -0.0433101566532734,
+ -0.048299888759706304,
+ -0.02938423340181253,
+ 0.09275806709867569,
+ -0.04494416958470538,
+ -0.03196829469032866,
+ -0.07891892523691553,
+ 0.051778442636068144,
+ -0.12096434338277455,
+ -0.020978277710229733,
+ 0.09547762889126038,
+ -0.07909759908704835,
+ 0.09719850454365724,
+ 0.08107504194979731,
+ 0.09621191570180401,
+ 0.08661150945899618,
+ -0.08585230153903156,
+ 0.0794005998170791,
+ 0.11528750648908527,
+ 0.008699305344306027,
+ -0.05728264775480561,
+ 0.12041768343540887,
+ -0.055159256113031845,
+ -0.05249437423690871,
+ -0.1237945747441552,
+ -0.06048446135845737,
+ 0.06512276491207945,
+ 0.07528546433256544,
+ -0.045210439824309855,
+ -0.0720544490817565,
+ 0.014213623639228918,
+ 0.10407589078620075,
+ -0.07366325909500952,
+ 0.0657570850689431,
+ 0.10664336550003674,
+ 0.05699994156043727,
+ 0.04536196555444052,
+ -0.04020109344435472,
+ 0.016273875225938095,
+ 0.06369994891179588,
+ -0.08358739599920512,
+ -0.04023767232585794,
+ -0.05754932901399618,
+ 0.0076863873964256235,
+ 0.07482652917102336,
+ 0.08206929838675442,
+ 0.09943033013346904,
+ 0.08183158455464266,
+ -0.07337255235931064,
+ -0.0015612096982709274,
+ 0.009377476316884351,
+ 0.10005298507161109,
+ -0.06603399684706575,
+ -0.08930986008115573,
+ 0.014716629292346555,
+ 0.0684272950155225,
+ -0.062446672236765796,
+ -0.01308449425209926,
+ 0.006523656678172967,
+ -0.033667112640665936,
+ 0.021480925052005433,
+ 0.11284393268410552,
+ -0.09420939389578593,
+ 0.11545826997203594,
+ 0.08490273977328755,
+ 0.059844794340008466,
+ 0.12002760153026665,
+ 0.07119104923840212,
+ 0.0637638801722916,
+ 0.09516590448140577,
+ -0.09745688477798403,
+ -0.05290955905419049,
+ -0.0824007740184831,
+ -0.059222274721265886,
+ -0.018979506101601505,
+ 0.08958151633537893,
+ -0.05398829860360146,
+ 0.08129107151717761,
+ 0.05299753359331672,
+ 0.10862298115252408,
+ 0.007688517309810871,
+ -0.022864370379151257,
+ 0.06764717094004019,
+ 0.06595885548550194,
+ 0.002788992396241767,
+ 0.02633264416988783,
+ -0.021579777909510496,
+ -0.11554136911493089,
+ 0.06357793805309013,
+ -0.12363973950642446,
+ 0.0399798430846663,
+ -0.10188352773080431,
+ -0.06865705577862957,
+ -0.11280959524104721,
+ -0.012225734305006671,
+ -0.06152228203186786,
+ 0.02836670831124811,
+ 0.022358864865932446,
+ -0.11915426629924136,
+ 0.11182828600831761,
+ 0.054503685458179,
+ -0.0007155307040298351,
+ 0.100682209516437,
+ -0.06068935284773458,
+ -0.03902713127412272,
+ -0.04737508218295022,
+ 0.1245474074100047,
+ -0.08455325950567404,
+ -0.007436464740919587,
+ 0.011699288434692284,
+ 0.08230152410384071,
+ 0.05371276986420781,
+ -0.01727096266574006,
+ 0.10334159356199739,
+ -0.0701856907348244,
+ -0.06234404172238827,
+ 0.056959016517688574,
+ 0.11076296373224323,
+ -0.012347908640716944,
+ -0.0172165931810565,
+ -0.1194931462175606,
+ -0.054108260414771174,
+ -0.11435994232869419,
+ 0.022538866661298437,
+ -0.08724934093902172,
+ 0.008503402065080273,
+ 0.07864884121260236,
+ 0.09410633822484292,
+ -0.1231627639883994,
+ -0.01807338721536019,
+ 0.08401086235209923,
+ 0.06950486660609263,
+ 0.10940229872205846,
+ 0.09862120378296282,
+ 0.0030728265237644345,
+ -0.1174635536667774,
+ 0.09877654184338044,
+ 0.11174638623977327,
+ -0.05746249607958871,
+ -0.012457431717937072,
+ 0.07198776954592498,
+ -0.001671800030170042,
+ -0.00994685572820513,
+ -0.05576805436793867,
+ -0.052236049212431475,
+ -0.026506982039727407,
+ -0.05278383552217599,
+ -0.0335327230821057,
+ 0.09721354157740661,
+ 0.01752075413240439,
+ -0.03561704686134974,
+ -0.09137493121430107,
+ -0.12312988119979698,
+ -0.051078387503033264,
+ 0.11961345563552819,
+ -0.015374984990317007,
+ -0.053977100836029815,
+ 0.07162615974999091,
+ 0.08182224536353487,
+ 0.07911800154080449,
+ 0.03570104739666748,
+ -0.02498116173867698,
+ -0.07283555105224558,
+ -0.07652448174042034,
+ 0.011586164267399954,
+ -0.09297355119972348,
+ -0.04245402886048423,
+ -0.003444433607559008,
+ -0.010790083963623276,
+ -0.03185116295117388,
+ -0.08545146383599858,
+ -0.07568414600079856,
+ -0.05495946097573795,
+ 0.028483838595981144,
+ 0.08832902475720864,
+ 0.06121428222158033,
+ 0.03757899070782516,
+ 0.12113542544226501,
+ -0.09520664161286457,
+ -0.07538196591369514,
+ -0.07802345132162772,
+ -0.08402475975914342,
+ -0.09243316545324985,
+ 0.023041369608082955,
+ -0.017209404265238436
+ ],
+ "landmarks": [
+ [
+ 0.551595778859919,
+ 0.5124591020215765
+ ],
+ [
+ 0.6698549291945528,
+ 0.5124591020215765
+ ],
+ [
+ 0.6107253540272359,
+ 0.5766834369525775
+ ],
+ [
+ 0.5634216938933824,
+ 0.6409077718835787
+ ],
+ [
+ 0.6580290141610894,
+ 0.6409077718835787
+ ]
+ ],
+ "score": 0.8924952892807778
+ }
+ ],
+ "file_id": "people.jpeg",
+ "runner_metadata": {
+ "code_revision": "8f39129d1c",
+ "models": {
+ "clip": "bootstrap-mobileclip-sha256:synthetic",
+ "face_detection": "bootstrap-yolov5face-sha256:synthetic",
+ "face_embedding": "bootstrap-mobilefacenet-sha256:synthetic"
+ },
+ "platform": "python",
+ "runtime": "bootstrap-deterministic",
+ "timing_ms": {
+ "total": 88.0
+ }
+ }
+}
\ No newline at end of file
diff --git a/infra/ml/ground_truth/goldens/results.json b/infra/ml/ground_truth/goldens/results.json
new file mode 100644
index 0000000000..88c3e87ee4
--- /dev/null
+++ b/infra/ml/ground_truth/goldens/results.json
@@ -0,0 +1,2506 @@
+{
+ "platform": "python",
+ "results": [
+ {
+ "clip": {
+ "embedding": [
+ -0.022361238898057162,
+ 0.07048105745407393,
+ -0.07002398838637057,
+ -0.05592286386441639,
+ 0.0324481190250824,
+ -0.030518000079507734,
+ 0.058194069915176685,
+ 0.022568686527260337,
+ -0.028799368815003258,
+ 0.059031443104446815,
+ -0.0375623818655285,
+ -0.01360094847060853,
+ 0.02338140823239253,
+ 0.03290974814820545,
+ -0.02788316885639714,
+ -0.053318837138632495,
+ -0.009219112842261663,
+ -0.06238402451298767,
+ -0.054401979583169016,
+ 0.010382087048171501,
+ 0.07267014861381561,
+ -0.051714384963719155,
+ 0.06932478167624118,
+ -0.006435102427941931,
+ -0.06121357106751902,
+ -0.05488746581455256,
+ -0.07137120294241334,
+ 0.04999948233078205,
+ 0.05776775308507388,
+ -0.009351094377556027,
+ 0.0022748774104346336,
+ 0.028882338122751688,
+ -0.0012458209083450241,
+ -0.05707796987960645,
+ 0.06620503785198047,
+ 0.01997565572453825,
+ 0.06717829859676022,
+ 0.012648205959835575,
+ 0.03842907146430973,
+ -0.04438720999194267,
+ 0.00761345438248254,
+ -0.012582906538243578,
+ -0.05427176317182401,
+ 0.04390477553929516,
+ -0.023412314760613125,
+ 0.05493859489398335,
+ -0.07290512832111579,
+ 0.06430740188378982,
+ 0.06321858612198136,
+ 0.05416305722828013,
+ -0.07434870182073681,
+ -0.05243485174360571,
+ 0.00028321378717335464,
+ -0.014165962333490318,
+ -0.05205804324042094,
+ 0.024973264937052778,
+ -0.019426715214931774,
+ 0.03793983774439526,
+ -0.012311128132513229,
+ -0.051925959814433154,
+ -0.05774147611665723,
+ 0.015192919578854373,
+ 0.0209054349050632,
+ 0.04356841865785276,
+ 0.06212235648908441,
+ -0.07332289520065095,
+ -0.02188577847256564,
+ 0.05411900007098529,
+ -0.011278906604755886,
+ 0.06333624600375452,
+ 0.05113298194599765,
+ -0.04505228356512617,
+ 0.02225068903789836,
+ 0.05695398811317535,
+ -0.03463146368290547,
+ 0.003559194459381074,
+ 0.00025368013703005283,
+ 0.010788941318775665,
+ 0.05179049037178278,
+ 0.06828211254947016,
+ 0.07220522649704351,
+ -0.013286206296018602,
+ -0.05086096232535428,
+ 0.06886635276910447,
+ -0.008013280683798902,
+ 0.0012480596294906438,
+ -0.0747850175031908,
+ 0.009204829498519588,
+ 0.05159618685233189,
+ -0.055024068848123706,
+ 0.01411706471983069,
+ -0.011585627735060847,
+ -0.013120515414756735,
+ 0.06000897677407849,
+ 0.04221478533862552,
+ 0.03828730319997915,
+ -0.002760839972923655,
+ -0.02514260520156491,
+ -0.007519381863260686,
+ 0.05895047491309316,
+ -0.07003857631563924,
+ 0.0017061791141844455,
+ 0.054491708761851616,
+ -0.03189312914548649,
+ 0.045428984990200025,
+ 0.055599573526814834,
+ 0.01042468909981191,
+ 0.05477871195749719,
+ 0.07465750769701843,
+ 0.030560986525793744,
+ -0.06258286008281386,
+ -0.05367490848477258,
+ 0.04687180533288254,
+ 0.06383005754949858,
+ -0.011981797923504265,
+ 0.06624213377541244,
+ -0.06746850362069758,
+ -0.0033511337685615717,
+ -0.008518796235091362,
+ -0.022231672386002644,
+ -0.04832901234705539,
+ -0.04444918512013012,
+ -0.02024846439344111,
+ -0.06790568307826292,
+ 0.0006962608178002455,
+ -0.06442875702941789,
+ 0.042549384772094426,
+ 0.03579034175675928,
+ -0.060353103039957626,
+ -0.0513281034300555,
+ 0.06521871957124022,
+ 0.0072912622702325635,
+ -0.01689747261290811,
+ -0.02927030644335067,
+ 0.013883717647033321,
+ 0.0024229085700743285,
+ -0.013169641029434843,
+ -0.035545711840633036,
+ 0.005273106015177749,
+ 0.03186985555159273,
+ -0.03442374115562575,
+ -0.06381093490604563,
+ 0.011315528755741011,
+ -0.0680585518201577,
+ 0.03863303059030489,
+ 0.026246639409217214,
+ -0.07331336633533386,
+ -0.03928167207225395,
+ -0.04059970992855652,
+ 0.03009515629551084,
+ -0.0479821916033445,
+ -0.05735218945596478,
+ -0.03231275483793679,
+ 0.06149782794620812,
+ -0.07090096249596578,
+ 0.003850575695182851,
+ -0.046343454068822204,
+ -0.008227611875803157,
+ 0.07199687142028179,
+ -0.07196817108669717,
+ 0.03846897749591319,
+ -0.009463633296868964,
+ -0.0042122358527600535,
+ -0.0589907890682722,
+ -0.0026174626277696627,
+ -0.03707688417275633,
+ 0.05776732656018627,
+ 0.05655136572373475,
+ 0.053385822646157446,
+ -0.07481131210181687,
+ -0.059061467771695096,
+ -0.03355277386517655,
+ -0.05588212840681734,
+ 0.05079995174136783,
+ -0.06792318517950383,
+ 0.06630766109287256,
+ -0.03435046267979031,
+ -0.038902944890552266,
+ -0.012322876406360839,
+ 0.0546969905741549,
+ -0.0719695728110217,
+ -0.026612146737861324,
+ 0.030313312401756987,
+ 0.04530059682806715,
+ -0.014855448103655236,
+ -0.0061129558457954135,
+ -0.03198996333361656,
+ 0.07191626799550757,
+ -0.06877379693859462,
+ -0.0012952624647880144,
+ -0.06055750155423375,
+ -0.019374093491170016,
+ 0.00922584863376468,
+ 0.06379115510792772,
+ 0.04789330723765935,
+ 0.07020636543717325,
+ -0.017154686117297393,
+ 0.0416534504412937,
+ 0.07515692782246622,
+ -0.06326462382125163,
+ -0.011985352671435558,
+ 0.006610255193745122,
+ -0.020386687128021462,
+ -0.036645236324835295,
+ -0.007588344057248075,
+ -0.05587997678521529,
+ 0.004341478046071452,
+ -0.03361236782853827,
+ -0.016837674552708477,
+ 0.025985490898164973,
+ 0.04093229236792714,
+ 0.008180657440693021,
+ 0.06670095822313232,
+ 0.04692165501290111,
+ -0.021476826978142773,
+ 0.041177670008223595,
+ -0.04697966194196373,
+ 0.05170696131364771,
+ 0.023966561227203358,
+ -0.011873264216240912,
+ -0.049836408782041916,
+ -0.01077847146293697,
+ -0.0430485932298788,
+ -0.07483654037069887,
+ 0.038733771114101284,
+ -0.04049287534587007,
+ -0.04217450423570788,
+ -0.036744769056610824,
+ -0.03232471194038826,
+ 0.007359823350667996,
+ 0.01858467121186864,
+ -0.021431866333952717,
+ -0.04227557882218023,
+ -0.07059324461040126,
+ -0.00026504787174505426,
+ 0.019793297110097714,
+ -0.004511852534419439,
+ 0.06676394966454527,
+ -0.0021152153948430855,
+ -0.020607898412865103,
+ 0.007724512889955743,
+ -0.04033403465969682,
+ -0.030457821024523955,
+ 0.013625935910128808,
+ -0.03634745851257383,
+ 0.01859417308859476,
+ -0.027303135737492882,
+ 0.00405589928722695,
+ 0.03615357860885073,
+ -0.04247362394174221,
+ -0.03427555602081708,
+ 0.04376920588835703,
+ 0.06597355523516725,
+ -0.05475103312455556,
+ -0.05511192081257915,
+ 0.0385833888275871,
+ -0.07293975037215956,
+ -0.0002112735248483741,
+ -0.011456919565349376,
+ -0.04972749141618544,
+ -0.07424675073596022,
+ -0.06602124817626653,
+ -0.054157504027763044,
+ 0.03271313910208377,
+ -0.014402286913823389,
+ 0.0699763051191039,
+ -0.023102389068107174,
+ 0.04012973502180397,
+ -0.0014723796845624072,
+ 0.03270490067696612,
+ -7.298387959249731e-05,
+ 0.06704956179110223,
+ 0.0399791564195781,
+ -0.006191154446914153,
+ -0.03999209951690287,
+ -0.022317615170523192,
+ 0.013146103788552466,
+ -0.0003194626544003261,
+ -0.007446206049221273,
+ -0.022464370926464132,
+ -0.04676618103077535,
+ -0.051265732586034285,
+ -0.005118852653416093,
+ -0.04251530662878389,
+ 0.019529524957502476,
+ -0.07016127962901132,
+ -0.06964332356403806,
+ -0.07086581949501614,
+ -0.07129034172402024,
+ 0.039781820539156625,
+ -0.0717478521778613,
+ -0.02315417120133909,
+ -0.06245398454878828,
+ 0.026331865488922104,
+ 0.030486813676093818,
+ 0.0562529853648924,
+ 0.016549159154766017,
+ 0.022629179210701202,
+ -0.039071406693953536,
+ 0.004465930570639251,
+ -0.005431339317853814,
+ -0.05454489223385675,
+ -0.058567844585285904,
+ -0.02508644145306474,
+ -0.0015315018032337764,
+ -0.002508836107793484,
+ -0.04883464875115519,
+ -0.05585054124035265,
+ 0.07060429482609605,
+ -0.016904172793491098,
+ -0.029023075387857276,
+ 0.021351809936372267,
+ -0.06340629664411053,
+ -0.05414766405759738,
+ -0.06159357929598848,
+ 0.051191463663960546,
+ -0.0013345289368858367,
+ -0.02669234992533653,
+ 0.0465268720380333,
+ 0.005244982256036491,
+ 0.065375327810239,
+ -0.057202761268716394,
+ -0.003393389630185145,
+ 0.02263269792711105,
+ 0.07431561117945466,
+ 0.04240192815399123,
+ 0.012561412438847619,
+ 0.018145170840630647,
+ -0.002181122725684043,
+ -0.03386595049118979,
+ 0.07319395657641273,
+ -0.06184639621870906,
+ 0.07074018606186808,
+ -0.06472341064939925,
+ 0.03363022421637331,
+ -0.026335139800858186,
+ 0.06037459412504343,
+ 0.01645903730960993,
+ 0.07413472894609027,
+ 0.014962602413519323,
+ 0.044913524809089146,
+ -0.033738585196654486,
+ -0.05746574072783985,
+ -0.017931269958926754,
+ 0.03982822184835245,
+ 0.028940263805640465,
+ -0.009348171758505327,
+ -0.05068485833439498,
+ 0.004534908046478147,
+ -0.01558671224768435,
+ -0.0020883330758361073,
+ -0.03546905046759553,
+ -0.010035190350854609,
+ 0.0137500341831526,
+ -0.06067539192558378,
+ 0.034873986666330285,
+ -0.04095002919980922,
+ 0.0005628768221288829,
+ -0.06707701269312562,
+ 0.009496139197030249,
+ -0.0731982499004334,
+ -0.012186984154135386,
+ -0.06185526183064065,
+ 0.0005957554452464312,
+ 0.07405241483020017,
+ -0.020828668697122348,
+ -0.05682731029165717,
+ -0.0642088130166456,
+ 0.06490267398790715,
+ -0.019990948616833017,
+ -0.037566586898301585,
+ -0.0588288505825578,
+ -0.03218939205659198,
+ -0.005761393276752179,
+ -0.047162075164488323,
+ 0.054168185095613636,
+ -0.03424428279826054,
+ -0.027295660213246593,
+ 0.050762624942807685,
+ -0.009095073173035395,
+ -0.06519647925482913,
+ 0.03612297179419033,
+ -0.049437027336824944,
+ 0.06147370897851503,
+ 0.051960677377048854,
+ 0.012344520835713486,
+ 0.003999241261960818,
+ 0.054994681462123385,
+ -0.07199855456200482,
+ 0.018794466918586022,
+ 0.038198891450086946,
+ 0.03020761824476435,
+ 0.07226325631383328,
+ 0.021274377250435048,
+ -0.018738222940365437,
+ 0.0673067959400111,
+ 0.018027465008152603,
+ 0.022056683794952806,
+ 0.013793240078228266,
+ -0.02482870573696534,
+ -0.022097873992784553,
+ -0.032882643085697716,
+ 0.060193620586121294,
+ 0.034041621297739036,
+ 0.04099419308471379,
+ 0.0042562653555116925,
+ 0.06386560548446306,
+ 0.04025749319311346,
+ 0.07196011068112955,
+ 0.03517257136736138,
+ 0.05235206087600871,
+ -0.021993435295973453,
+ 0.07034278186391543,
+ 0.07294531173935419,
+ 0.06251674220591326,
+ 0.011592668427541532,
+ 0.04175701102749513,
+ -0.054260213281645056,
+ 0.04867492613390938,
+ 0.06900754172508249,
+ -0.017891945829384595,
+ -0.021672218137809562,
+ -0.04757200448710697,
+ -0.013518921450236086,
+ 0.033201337827059786,
+ -0.03796174806394409,
+ 0.044631175883580815,
+ -0.07267480733531786,
+ -0.0666127019906143,
+ 0.06655083839190275,
+ 0.028971148742988284,
+ 0.06632447337273843,
+ -0.04745588341067035,
+ -0.03406796437067848,
+ -0.026607906619919987,
+ 0.04802289400868214,
+ 0.001035491738829604,
+ -0.04606077227234193,
+ 0.029234856894067806,
+ 0.02751216934949162,
+ -0.07309580145448046,
+ -0.051456271161995415,
+ -0.053165872008912825,
+ -0.05213613034711388,
+ 0.06853267424243947,
+ 0.04750455519641882,
+ 0.033881230800492136,
+ 0.01855312754260056,
+ 0.025019298079807694,
+ 0.07379214509570985,
+ 0.039246827312759525,
+ -0.049872265894098475,
+ -0.0066245711691471825,
+ -0.0023412096188076426,
+ 0.05298172093143078,
+ 0.06851807968869847,
+ 0.048245181752753996,
+ -0.029402667781725164,
+ -0.009867483211546934,
+ -0.058489677424123136,
+ 0.07201225400582886,
+ -0.018826578995619923,
+ 0.048137555878600496,
+ -0.06619291278936289,
+ -0.001714112708424661,
+ -0.033648973856469054,
+ -0.0751755787614293,
+ -0.06336189266589672,
+ 0.005399387560060269,
+ 0.005554834132993648,
+ 0.0390030272782804,
+ 0.04470720225362804,
+ 0.04851337687975689,
+ 0.05095113804254195,
+ 0.0666548058398755,
+ -0.0662314910523911,
+ -0.0017513566134554118,
+ 0.053614206061424786,
+ -0.010737758787914714,
+ -0.0414600787993337,
+ 0.0658373819861447,
+ 0.03637074651206614,
+ 0.01911770047499619,
+ -0.0033416003116790117,
+ -0.0067936157158125935,
+ 0.06957981274997457,
+ -0.04036578484426096,
+ 0.021001377978989766,
+ -0.023070253192043057,
+ -0.03417922143707093,
+ -0.01792345238057757,
+ -0.01861637856518842,
+ -0.02748251207758165,
+ 0.05392760557113926,
+ -0.035966275053643255,
+ 0.015684980826849042,
+ -0.026345385125640098,
+ -0.006632952879147774,
+ 0.07518481169859896,
+ -0.03831383796201469,
+ 0.0110144668525605,
+ -0.002258284894809484,
+ -0.07350532549258308,
+ 0.033012227788763546,
+ 0.02514833905039087,
+ 0.0400047758477785,
+ -0.04111823433119537,
+ -0.017496526239221075,
+ -0.040874399001247286,
+ -0.06412026306413758,
+ 0.0667226985846583,
+ -0.01602615292857116
+ ]
+ },
+ "faces": [
+ {
+ "box": [
+ 0.02,
+ 0.14591952495581878,
+ 0.22281127122230826,
+ 0.3096272175386548
+ ],
+ "embedding": [
+ 0.024045487705147802,
+ -0.023166287758084693,
+ 0.09202831974851905,
+ -0.003539518614263867,
+ 0.014601317148753713,
+ 0.09756812866608176,
+ -0.015714450530556753,
+ 0.08658258909454558,
+ -0.03711226676372324,
+ -0.0790736317110808,
+ 0.012664906352484481,
+ -0.036444901501759414,
+ 0.1100930457472562,
+ -0.026217393191643703,
+ -0.07230896403970169,
+ 0.08153494170782352,
+ -0.09523581841241902,
+ -0.07916429142909465,
+ 0.053866916786225835,
+ -0.07233248153099404,
+ 0.0995642518948108,
+ -0.03964336618311389,
+ -0.08820557122464255,
+ 0.005216555671472225,
+ 0.08085921181155273,
+ -0.041104263231283855,
+ 0.04658075687673762,
+ -0.09239366171557895,
+ 0.11522694575715424,
+ 0.045884356826851436,
+ -0.10253389220190193,
+ 0.08471248728296762,
+ 0.09002943913928915,
+ -0.02283990543143836,
+ 0.053647300776580295,
+ -0.023497835505308984,
+ 0.08328724076504737,
+ -0.09134913309936489,
+ -0.11539856710653824,
+ -0.1173558983920878,
+ -0.11802039954665126,
+ -0.07969630698559745,
+ -0.08069401972056152,
+ -0.018577365436467107,
+ 0.08699079660687582,
+ -0.05104630100080438,
+ -0.08686286102088349,
+ 0.07132437629300448,
+ -0.10622936745741893,
+ 0.06288675617343975,
+ -0.038636659171238104,
+ -0.11307292382641972,
+ -0.025133466847602447,
+ -0.07705042595532281,
+ 0.023201051855738175,
+ -0.12288895383660513,
+ 0.003074847731349731,
+ -0.03230533947846584,
+ 0.0419185603724218,
+ -0.08826945470799835,
+ -0.042606362510199086,
+ -0.05350090938962565,
+ -0.05380745134701188,
+ 0.08727049801685029,
+ 0.1133117493525344,
+ -0.025083965332606407,
+ -0.12084839758330415,
+ 0.08506957664438831,
+ 0.09745171134444422,
+ 0.03537893034497851,
+ -0.03465254833475081,
+ 0.07788794455315119,
+ 0.10742795266488415,
+ 0.10389616368292634,
+ -0.05154240722008895,
+ -0.0061946894950288146,
+ -0.12044818133401633,
+ -0.017209023718963472,
+ -0.1014197337923659,
+ 0.10329120524661153,
+ -0.03685450614527305,
+ -0.046880798289999574,
+ 0.024275064699987574,
+ -0.029690951585360892,
+ -0.033449595910965225,
+ 0.10998507056947196,
+ 0.1121938349859777,
+ -0.05333883030100185,
+ 0.06544746181916286,
+ -0.03997794302646063,
+ -0.09290647910831196,
+ -0.06775877125023108,
+ 0.03488936921619688,
+ -0.018605973835442678,
+ 0.011451580270001769,
+ 0.07616340555435883,
+ 0.009149725505262201,
+ -0.06026827439321766,
+ 0.11547134453660486,
+ -0.07294892982110131,
+ -0.0921010802359785,
+ 0.03265246727841313,
+ -0.06368058474341072,
+ 0.09768167173780581,
+ 0.08161006517033015,
+ 0.0042938137426666275,
+ -0.0903481627159655,
+ -0.015464360475799235,
+ 0.004578804069841956,
+ 0.12098322592901364,
+ 0.04926777542160841,
+ -0.09263812279080623,
+ -0.03424947835108741,
+ 0.020910872218539395,
+ 0.08650327233676756,
+ -0.10886037403116795,
+ 0.017987779073728255,
+ -0.08583858296943207,
+ 0.11256322323949654,
+ 0.08705935411757411,
+ -0.04099652922632598,
+ -0.050564588563602235,
+ -0.11511978912628176,
+ 0.035522229763754895,
+ -0.08156696732693242,
+ 0.018037598464306196,
+ 0.12341036914144705,
+ 0.06843205472623304,
+ -0.07803446243338036,
+ -0.12357272403727443,
+ -0.1025478039264712,
+ -0.009858301930298193,
+ -0.11189137008835728,
+ 0.013213136156920359,
+ -0.0663723520590304,
+ -0.01744071779053498,
+ -0.06758372979931795,
+ -0.06079960573347972,
+ -0.07647127341482488,
+ -0.11051748825356911,
+ 0.07422367930885503,
+ -0.12110055653785604,
+ 0.09522830246442363,
+ 0.10188324929320215,
+ -0.11836809284933336,
+ 0.08434261806686602,
+ -0.028197203686332054,
+ -0.009305540036075706,
+ -0.03364931086915563,
+ -0.03764225450913541,
+ 0.09083759931082172,
+ 0.030352866687216276,
+ -0.08271382986665447,
+ 0.024242734978368572,
+ -0.11256432076314724,
+ 0.028428029362844887,
+ -0.09397038966371832,
+ -0.08011852920358196,
+ 0.07677302712634008,
+ 0.043464428975206165,
+ -0.11443254448095903,
+ 0.0017013820277393835,
+ -0.10074081113669264,
+ 0.05370628582949064,
+ -0.03818598322760322,
+ 0.1041601337092717,
+ 0.020405456036622,
+ 0.043073274830886604,
+ -0.06030453969806993,
+ 0.06299002724210963,
+ 0.042961095293271204,
+ 0.03219428328180729,
+ -0.055173483798685585,
+ -0.07209732217760767,
+ -0.02995938489376174,
+ 0.06305840282147866,
+ 0.08622401581430077,
+ -0.02741811391677362,
+ -0.003989977185401484,
+ -0.05845198754611096,
+ 0.021290458135101425,
+ -0.02021024942551701,
+ 0.0009960401999725092,
+ -0.010834905329302839,
+ -0.07556936518765886,
+ 0.09702633624557477,
+ -0.018744492615232904,
+ 0.07760583118440138,
+ 0.06674374518772949,
+ 0.03710277515790076,
+ -0.08065799530039605,
+ 0.059521677259395354
+ ],
+ "landmarks": [
+ [
+ 0.08684338136669248,
+ 0.2635778676205076
+ ],
+ [
+ 0.17596788985561576,
+ 0.2635778676205076
+ ],
+ [
+ 0.13140563561115412,
+ 0.32550331112823855
+ ],
+ [
+ 0.09575583221558481,
+ 0.38742875463596954
+ ],
+ [
+ 0.16705543900672346,
+ 0.38742875463596954
+ ]
+ ],
+ "score": 0.8760527286853176
+ }
+ ],
+ "file_id": "man.jpeg",
+ "runner_metadata": {
+ "code_revision": "8f39129d1c",
+ "models": {
+ "clip": "bootstrap-mobileclip-sha256:synthetic",
+ "face_detection": "bootstrap-yolov5face-sha256:synthetic",
+ "face_embedding": "bootstrap-mobilefacenet-sha256:synthetic"
+ },
+ "platform": "python",
+ "runtime": "bootstrap-deterministic",
+ "timing_ms": {
+ "total": 46.0
+ }
+ }
+ },
+ {
+ "clip": {
+ "embedding": [
+ 0.027311880170020467,
+ -0.04049287690976766,
+ 0.050926267563917986,
+ 0.04520741387144618,
+ -0.026191020484162723,
+ 0.05765857395535975,
+ -0.05322635143606597,
+ 0.05240058745630706,
+ -0.06132886495662953,
+ -0.00040082896464134775,
+ 0.004444487145085447,
+ -0.016411556199964778,
+ -0.060302190264437346,
+ -0.003277895752993477,
+ -0.0038627126047113937,
+ 0.07247516289060178,
+ 0.011750832617168156,
+ -0.026265170623442344,
+ -0.02196693347388616,
+ -0.05801038602429144,
+ -0.010342372398281037,
+ -0.007351292827362135,
+ -0.055832832081945005,
+ -0.0689979476224658,
+ -0.034797802526859455,
+ -0.0309268372846034,
+ -0.07656000269951518,
+ -0.028252167955421417,
+ -0.04967568201774789,
+ 0.05281238038179636,
+ 0.03646291039011229,
+ -0.07442425305778921,
+ 0.008192154267267002,
+ -0.0035795088209287862,
+ 0.05411581783626026,
+ -0.05766326987517995,
+ 0.06486544398802647,
+ -0.035818390580777765,
+ 0.021510798480838016,
+ 0.06897134606037524,
+ -0.0711775655610266,
+ -0.025322872650778833,
+ 0.003081445028822552,
+ -0.06127012156199268,
+ 0.05439876762019485,
+ 0.07080486078984476,
+ 0.022664242492388065,
+ 0.04949756448935236,
+ -0.0015972499520348084,
+ 0.059597614985864904,
+ 0.021179575984395935,
+ -0.052528281209857426,
+ 0.07058527124460329,
+ -0.06221644746762938,
+ -0.057349680986154755,
+ 0.06474664044511243,
+ 0.002886992758323357,
+ -0.02827431816747602,
+ 0.019809856591130808,
+ 0.03225668644014069,
+ -0.04942100396098077,
+ -0.029158333810835414,
+ 0.06875106084996974,
+ -0.06637423425485889,
+ -0.06949584624448524,
+ -0.004527762274795724,
+ -0.07064040231293339,
+ -0.07462399278665222,
+ -0.044076103047446254,
+ -0.05314926764713176,
+ 0.06571600745188381,
+ -0.07341947321008443,
+ 0.0652559246454121,
+ -0.027278378428694582,
+ 0.023682855991727612,
+ 0.025102811638340366,
+ -0.05164687906188763,
+ 0.057882861220051915,
+ -0.01638239833474173,
+ -0.027132826077922886,
+ -0.06841316341604507,
+ -0.044882299932777404,
+ -0.05630140583303148,
+ -0.05015277187228346,
+ 0.030607545726466664,
+ -0.055153018171297113,
+ 0.06331621674383084,
+ -0.013981228461862857,
+ -0.0035433847660238885,
+ 0.01464138720416658,
+ 0.059159950284443236,
+ -0.05297707212681245,
+ 0.00043004873715341187,
+ 0.07557201020098347,
+ -0.03616616143546322,
+ 0.038160569249900675,
+ -0.01637254424201246,
+ -0.049286191948971755,
+ 0.04282204018324912,
+ 0.042324805408926566,
+ 0.0041377531205997005,
+ 0.0020636524849220682,
+ -0.047033253572774616,
+ 0.01134195401330194,
+ -0.07687920316035628,
+ -0.06431442444894689,
+ -0.0349379133349044,
+ -0.004829351263675014,
+ -0.002592020254928191,
+ 0.06476372667691806,
+ -0.03626510188072574,
+ 0.03821303344580071,
+ 0.0706147556347833,
+ 0.022544572283420394,
+ -0.07638374782467425,
+ -0.02453512716095396,
+ 0.06034197707129545,
+ 0.058313016675293664,
+ -0.03261141614201558,
+ -0.057359957488153736,
+ 0.04651158316364705,
+ -0.015107369091422013,
+ 0.014367847976029543,
+ 0.031847194450216665,
+ -0.029988950170289738,
+ 0.006448138149684445,
+ 0.04795261539875389,
+ -0.03850707982335071,
+ 0.029868963874221978,
+ -0.058204010680718746,
+ 0.017979429775641875,
+ -0.039605513773725114,
+ 0.04944985686082019,
+ 0.035083855845567335,
+ 0.07047330014283273,
+ 0.06938448798888334,
+ -0.01212258401609913,
+ 0.05225099975808454,
+ 0.018983013300979016,
+ -0.037120878910118775,
+ 0.054178019832767,
+ -0.03849090931552599,
+ 0.015843707092380716,
+ -0.05684411640613192,
+ 0.009671585578164893,
+ 0.04187729240958582,
+ 0.013228657613879105,
+ 0.02545654200540156,
+ 0.045687632995471114,
+ -0.056894171472681346,
+ -0.05105189102254727,
+ -0.007599502832168333,
+ -0.07186573864734444,
+ 0.0016795290222588908,
+ -0.05697259757000893,
+ -0.03250569342930776,
+ -0.020578612919864986,
+ -0.010035165790827388,
+ 0.0695395211530271,
+ -0.07718283239032739,
+ 0.02673056295174772,
+ -0.0492514355412576,
+ -0.03110533233948411,
+ 0.050915044456278806,
+ -0.02818027271715902,
+ -0.04781010726693438,
+ 0.05213217299993711,
+ 0.02314138014510957,
+ 0.044702689790849584,
+ 0.054726115800122765,
+ 0.0005120076171198811,
+ -0.044145803456357345,
+ -0.0043842148203729284,
+ 0.053360956994464644,
+ -6.910217574204779e-05,
+ -0.047014455820383334,
+ 0.014925197679381554,
+ 0.0030451971593396204,
+ -0.013227515496381964,
+ 0.0014588383551029458,
+ -0.04444841521123937,
+ -0.016685020779428895,
+ 0.0623785243495367,
+ -0.015938665927158983,
+ 0.02031459298119999,
+ 0.04602561699162258,
+ -0.07340099766353692,
+ -0.02700692738380574,
+ 0.06226231691758167,
+ 0.0019251963651317674,
+ -0.06775781533800189,
+ 0.008989365993456936,
+ -0.05829305279833444,
+ -0.0320822692759757,
+ 0.021635421488882704,
+ 0.02378239287052868,
+ 0.006930714537709138,
+ 0.03547496993689448,
+ -0.033363409740521856,
+ 0.04566337304059499,
+ -0.06899369801100828,
+ 0.05171159413440236,
+ -0.0613989676549414,
+ 0.047813236752379404,
+ -0.0662952962706334,
+ -0.011904735541376039,
+ 0.004998505156510049,
+ 0.020963134280830537,
+ -0.0057819521929057755,
+ 0.018647610010949528,
+ -0.03670943770441336,
+ -0.05573704142195948,
+ -0.0244176023274916,
+ 0.07328748985728695,
+ -0.058241398580127446,
+ -0.05227582206149763,
+ -0.031087245729079102,
+ 0.0667940970114272,
+ -0.04897314143740535,
+ 0.02972676902207898,
+ -0.05436292851878248,
+ 0.038243936736647936,
+ -0.06241190789113169,
+ -0.06613915107881436,
+ -0.0730686050473472,
+ 0.014979888810040925,
+ 0.024962841093496186,
+ -0.04153833924042775,
+ -0.03076368332384501,
+ 0.024109907516277358,
+ 0.06396090597038014,
+ -0.07378723965121843,
+ 0.0014805374717777491,
+ -0.05464421184487899,
+ 0.05099124606634453,
+ 0.007315586898606371,
+ -0.005186959726474409,
+ -0.01506189671194207,
+ 0.049420452374234154,
+ 0.06607054088605695,
+ -0.003716618493175579,
+ 0.0144446303268559,
+ -0.012286295970288696,
+ 0.060840796888172496,
+ 0.06802746441287641,
+ 0.07290904059358089,
+ 0.02527681596726988,
+ -0.0241818149200419,
+ 0.04595929225760819,
+ -0.048087559647611654,
+ -0.04572011945725712,
+ 0.016388741528338933,
+ -0.05171188844597346,
+ -0.00012068887181288066,
+ -0.031427869351254946,
+ -0.06226093476536915,
+ 0.0029271554719991918,
+ 0.0340237861301376,
+ 0.04756717208708591,
+ 0.023575713622507762,
+ 0.04484981519863668,
+ 0.017452099204675057,
+ 0.06552586882369514,
+ 0.02645753197525499,
+ -0.0749940772598412,
+ 0.012572605808327288,
+ 0.010754077321839143,
+ -0.026806132315628055,
+ 0.06311188817316207,
+ -0.03463546405066343,
+ -0.05460848338474944,
+ 0.02786571429520112,
+ 0.01713214037954351,
+ 0.07178377462043475,
+ 0.05395662443030934,
+ -0.02421681830904515,
+ -0.003862360812942294,
+ -0.04497414180753889,
+ -0.0707835947362522,
+ -0.06976720136906872,
+ 0.05111291847221536,
+ -0.04497888343797366,
+ 0.018815741209767048,
+ 0.048399989574598276,
+ -0.006282918357088607,
+ -0.026976694311347346,
+ 0.04202152242786264,
+ -0.031354183264694684,
+ 0.07085364798071807,
+ -0.009962520070656098,
+ -0.003183814849955734,
+ 0.040199008911592296,
+ 0.030223876022636417,
+ -0.04962023007530059,
+ 0.06562363461414118,
+ -0.024078421865002052,
+ -0.033320528612998584,
+ -0.010143694523395117,
+ -0.02838888563215386,
+ -0.026423943707694925,
+ 0.033999545611270825,
+ 0.04925063927674892,
+ -0.012242419071220114,
+ -0.026436150745310767,
+ -0.019121524669425505,
+ -0.056468114963832104,
+ -0.011811412714687873,
+ 0.0313872955299889,
+ -0.03717822294807557,
+ 0.0044373407763984695,
+ 0.05699562423810705,
+ -0.018016129316386364,
+ 0.05564379713114611,
+ 0.051023396213183685,
+ -0.0534004682419014,
+ 0.024220516837652594,
+ -0.004198668921191896,
+ 0.03277675312654923,
+ 0.025718482650993007,
+ 0.00817326505765398,
+ 0.026974917392189508,
+ -0.04019739287940069,
+ -0.030752978077876976,
+ -0.0525429567286376,
+ -0.001756342650663245,
+ -0.0745669385971829,
+ -0.06896135987476765,
+ -0.05575136302540658,
+ -0.050859385628309835,
+ 0.034468182997291597,
+ 0.008929314879324822,
+ -0.027997417841449292,
+ -0.03586003208682369,
+ -0.05822587072035238,
+ -0.0579130207596083,
+ 0.029620816460564386,
+ -0.01932935474515516,
+ 0.02065398583608052,
+ 0.05131683107629159,
+ 0.05058398907352446,
+ -0.05715935314481587,
+ 0.07267811398809731,
+ 0.04389042962644837,
+ 0.07159586789398559,
+ 0.04105846809295527,
+ -0.011077309386899633,
+ -0.02693274359143587,
+ -0.03404285767831235,
+ 0.055029597604363746,
+ -0.01469161885046014,
+ -0.019116990644364604,
+ 0.031845743624104465,
+ -0.07081335680941753,
+ -0.04893690692118069,
+ 0.05347527704594207,
+ 0.056037125487833905,
+ 0.07235675487047785,
+ -0.044508195804915524,
+ 0.0490149693131853,
+ -0.06847994540017555,
+ -0.006609106999096195,
+ 0.010144974888506861,
+ 0.024643261522495085,
+ -0.0009176923807545798,
+ 0.07394492046773857,
+ 0.020219433235673295,
+ 0.05602060228842485,
+ -0.06615729610522522,
+ -0.0670319984088264,
+ -0.07362367598658162,
+ -0.04374028649026997,
+ 0.009905089038561188,
+ -0.049817357388552294,
+ -0.003979175872137549,
+ 0.019530056952399323,
+ 0.03582649341708005,
+ -0.07249612073947583,
+ 0.06073194551784968,
+ -0.049053348773003956,
+ 0.05258720892264954,
+ -0.06262646275410864,
+ 0.03522985176926336,
+ 0.06784041780182587,
+ -0.050766622378727685,
+ 0.02843632705934325,
+ -0.022243986588541886,
+ -0.06998414988457403,
+ -0.00205556980448132,
+ 0.01276454993380605,
+ -0.019609542888117837,
+ 0.03340078619428061,
+ -0.028975820936904893,
+ -0.05088714312905975,
+ 0.017124756495623842,
+ 0.05233818692456415,
+ -0.01726924062172651,
+ -0.006572010135931093,
+ -0.0019077923185807828,
+ 0.07145530429890819,
+ 0.06164974771205705,
+ -0.024086026563583416,
+ -0.0432944465354149,
+ -0.051911249352617324,
+ -0.06302698005874093,
+ 0.03035255730542443,
+ 0.06862861345122268,
+ 0.04139336064785037,
+ 0.009836547375733013,
+ -0.00494464775866625,
+ 0.07321427401417495,
+ -0.057510764400043796,
+ -0.0745305940875424,
+ 0.05340422533048514,
+ -0.04843899015888587,
+ -0.055628063357649846,
+ 0.021713451091619703,
+ -0.02960765982992172,
+ 0.053598097184157194,
+ -0.010428013214261789,
+ -0.07036950299876162,
+ -0.03001616184311062,
+ -0.00694233691136987,
+ -0.007211704092123703,
+ 0.042655383493681115,
+ 0.0641371201735719,
+ -0.009782453614420044,
+ -0.004902773776353026,
+ -0.07433773967296682,
+ -0.02720395211811925,
+ -0.048795662345924105,
+ -0.04586054700026912,
+ -0.06261893975875174,
+ 0.06302220963421824,
+ 0.016357874374072042,
+ 0.031586041070981424,
+ -0.05678681876264928,
+ -0.064799302312426,
+ -0.07329868201128163,
+ -0.01424880022325737,
+ 0.05319153106948403,
+ -0.013238417118029576,
+ 0.0693089131181337,
+ -0.015179157755566518,
+ -0.01559511819337017,
+ 0.02766042601758215,
+ 0.023957297914520777,
+ 0.003927942479525432,
+ -0.045206023728874264,
+ 0.07411845469719026,
+ -0.010132835588982838,
+ -0.005788292579079406,
+ -0.06499014150077365,
+ -0.01975133872618755,
+ 0.07207023317993742,
+ -0.02405996186726201,
+ -0.030121985263140916,
+ -0.02815844683451217,
+ -0.07433696489604624,
+ -0.06918079594752054,
+ 0.01692520410829534,
+ 0.014406430326190172,
+ 0.0537607670083199,
+ 0.045953896137555114,
+ -0.07130915263518915,
+ -0.05311812057833772,
+ -0.02335681078027045,
+ 0.04106379751870221,
+ 0.02360820645498572,
+ -0.03519897151368647,
+ 0.027690527429073557,
+ 0.024879033273159483,
+ -0.02870089412167124,
+ -0.034389451178735576,
+ -0.0039722652550453754,
+ 0.007087757709152405,
+ -0.023052721564744902,
+ -0.02450564831363588,
+ 0.07248239027865362,
+ -0.01705224124866342,
+ 0.0042938161052977365,
+ -0.04648728480465617,
+ 0.009350498564676228,
+ 0.04238351756197803,
+ -0.04100342578240117,
+ -0.06607935533224944,
+ 0.04492159382084302,
+ 0.02285126189302553,
+ -0.06659374911543484,
+ 0.0393737339274314,
+ -0.0638500507474941,
+ 0.007225148807615956,
+ 0.05807446741091639,
+ 0.019832514586925785,
+ -0.05101416993954879,
+ 0.0011206675932987412,
+ 0.0060923422747192904,
+ -0.06907944047011938,
+ -0.016734474949356145,
+ 0.030749648113594843,
+ 0.024722564003880967,
+ -0.0206252224138693,
+ 0.07457559132857913,
+ 0.03888480329607827,
+ 0.004301566429978728,
+ -0.023534056783610025,
+ 0.05347427274414821,
+ 0.044756531387937636,
+ 0.04764204808932926,
+ -0.03951345137224281,
+ -0.018101462215589476,
+ -0.007144106155526937,
+ 0.05275978506481848
+ ]
+ },
+ "faces": [
+ {
+ "box": [
+ 0.02,
+ 0.3659777828533622,
+ 0.1874342807731591,
+ 0.22578797277994453
+ ],
+ "embedding": [
+ -0.12085902254737323,
+ 0.0030747406670401686,
+ 0.04413054442323277,
+ -0.0021830748557149326,
+ 0.0631234392734338,
+ 0.06224988130041595,
+ -0.03637037470629538,
+ 0.034480361940975444,
+ -0.035795335419633985,
+ 0.0018523407123636768,
+ -0.10171028317681095,
+ -0.11358111779283417,
+ -0.061914314284827396,
+ 0.08255787332554719,
+ 0.06517566844858386,
+ -0.07319764544772847,
+ 0.1188080758080455,
+ 0.10632423881274829,
+ -0.04446298975724517,
+ 0.09541567065645905,
+ 0.054963308794702764,
+ -0.08885149462644207,
+ 0.10887462120626631,
+ -0.048538560315870456,
+ -0.04146207638531186,
+ -0.009850811709002066,
+ -0.06323364682009973,
+ -0.10893269925645169,
+ -0.06696353619022558,
+ 0.11862738052999598,
+ -0.04370320673136833,
+ 0.05112713581816342,
+ -0.0016474698815602455,
+ 0.10572734969885242,
+ 0.012413720647243574,
+ 0.06186647534078732,
+ 0.035175278759792386,
+ 0.10331859411732643,
+ 0.057417584780913765,
+ 0.048937295011999865,
+ 0.04983255655613669,
+ 0.12569502871806293,
+ 0.06448205197209714,
+ -0.10638940866470366,
+ -0.07003153458581769,
+ 0.1154493891124148,
+ -0.035314038351110015,
+ 0.1149541526521329,
+ -0.12465904788024723,
+ 0.001954023583209722,
+ -0.019943663977094853,
+ 0.04958417644531671,
+ -0.03464090839223498,
+ 0.0499845047028432,
+ -0.04091135395966901,
+ 0.04135137458368611,
+ -0.056085597822534236,
+ -0.109735345691098,
+ 0.06837512688289017,
+ 0.04635500445836767,
+ -0.03878151721354377,
+ 0.04460311684029765,
+ 0.0058000915546471445,
+ 0.060627199857184254,
+ 0.11420627409653897,
+ -0.011430267902418164,
+ 0.12508764197281397,
+ -0.018619042071439763,
+ 0.04048121837594527,
+ -0.07132917309225487,
+ 0.058877964817305804,
+ -0.08499089829228458,
+ -0.06866507924901528,
+ 0.07510053958936262,
+ -0.050734578867259336,
+ 0.12408744163634867,
+ -0.10780689949281816,
+ -0.10159167276570123,
+ 0.060372310377324885,
+ -0.022370272877123502,
+ 0.037321241906661744,
+ -0.05937718223593109,
+ -0.06510763514574519,
+ -0.09753701323851141,
+ 0.11158238095256359,
+ -0.049029761568158414,
+ -0.07018871779435339,
+ 0.04395146650338687,
+ 0.07295768051207643,
+ -0.02506764555297337,
+ 0.09579596871781038,
+ 0.012740749616034299,
+ 0.03269552375663897,
+ 0.02369116027453078,
+ 0.11649775612913711,
+ 0.12128187642609844,
+ 0.11857350933110726,
+ -0.02195803714526177,
+ -0.04886385606428308,
+ -0.09336872042586314,
+ -0.07664553223440072,
+ 0.05384184299501077,
+ -0.10467830900867336,
+ -0.07521775252711733,
+ -0.01646056286457853,
+ 0.11978376125165159,
+ 0.03052360224032297,
+ 0.06707599624599868,
+ -0.03276136145065541,
+ -0.015423987990143866,
+ -0.1131902328621052,
+ -0.06101801439884435,
+ 0.09843244454105537,
+ 0.04387350050773876,
+ 0.10520555022996732,
+ -0.02565304793656666,
+ -0.014249130520776343,
+ -0.11760800868509289,
+ -0.09841543235720009,
+ -0.1031021999185628,
+ -0.014097614957602776,
+ -0.05760833397411899,
+ 0.03231216586184733,
+ 0.0034834236063674743,
+ 0.0733060215238348,
+ -0.0026193218009981957,
+ 0.06444409983544003,
+ 0.012211714268674194,
+ 0.06718375519551534,
+ -0.06229119296890875,
+ 0.12380879876143974,
+ 0.03944809256588578,
+ 0.06795724506415937,
+ -0.07523720671098741,
+ -0.06570029449508266,
+ -0.03618614436551036,
+ -0.0852424779544289,
+ 0.10848907300392126,
+ -0.04411001196129162,
+ -0.07730893801703856,
+ 0.06515015438436447,
+ 0.009203627102013652,
+ -0.0589543915601104,
+ 0.11748501877803307,
+ 0.053236146647668715,
+ 0.04432873047190299,
+ -0.034009663110105524,
+ 0.1064973606982101,
+ 0.042042291595203986,
+ 0.05979218469997225,
+ -0.05407653134222811,
+ -0.08496521841615817,
+ 0.0167979398511366,
+ -0.0759201121506009,
+ 0.0974192740614752,
+ 0.044785507287396,
+ -0.07334709104215005,
+ 0.05546638618493713,
+ -0.04431803445529133,
+ 0.039677379332531064,
+ 0.028790554860294616,
+ 0.032852247993103774,
+ -0.014208809541613679,
+ 0.05632708333878306,
+ 0.10122732339478373,
+ -0.042413559534208174,
+ 0.03719119129860879,
+ 0.08646238754973866,
+ -0.0685744421607148,
+ -0.07031899423645663,
+ 0.0653184538234176,
+ 0.12343645949491688,
+ 0.0371198738008542,
+ -0.1216043720443383,
+ -0.062497578784525255,
+ 0.10770540499372297,
+ -0.011080325023941628,
+ 0.061930056991517386,
+ 0.038196175558929575,
+ 0.05590570657025059,
+ 0.019388762855782903,
+ -0.09108415254362769,
+ 0.10559827558450985,
+ 0.09702891095230373,
+ 0.08562057463446532,
+ 0.06066553716047017,
+ 0.0647075505698739,
+ -0.07477738826307692,
+ -0.04253751998577675,
+ -0.04741616950367829,
+ 0.10904537242323001,
+ -0.10444134500347514
+ ],
+ "landmarks": [
+ [
+ 0.07623028423194773,
+ 0.4517772125097411
+ ],
+ [
+ 0.15120399654121136,
+ 0.4517772125097411
+ ],
+ [
+ 0.11371714038657955,
+ 0.49693480706573
+ ],
+ [
+ 0.0837276554628741,
+ 0.5420924016217189
+ ],
+ [
+ 0.143706625310285,
+ 0.5420924016217189
+ ]
+ ],
+ "score": 0.9346935231215321
+ },
+ {
+ "box": [
+ 0.27927513994431746,
+ 0.44722348866197903,
+ 0.18217458016704768,
+ 0.2481649636151269
+ ],
+ "embedding": [
+ -0.018918495520468894,
+ -0.1181345308479883,
+ -0.11616347391764856,
+ 0.03902403827342113,
+ -0.009625844853325233,
+ 0.057784974329716556,
+ 0.03974433997513512,
+ 0.03830591494313241,
+ -0.10173444884925428,
+ -0.10937377137308232,
+ -0.11229628203030782,
+ -0.017102485130720206,
+ -0.09946343286531861,
+ 0.027607278371141193,
+ -0.1006405364218901,
+ -0.024463364908047035,
+ -0.040401033547897515,
+ -0.11788930300261012,
+ -0.012367478435406868,
+ -0.09729485616547921,
+ -0.05842062419062253,
+ 0.04707123505884693,
+ 0.11621449274043953,
+ 0.011676793014715144,
+ 0.030874474509387195,
+ -0.006487304456207885,
+ -0.09008565090102394,
+ 0.08173288091908974,
+ -0.05840435733233597,
+ 0.0473354790716761,
+ 0.04478190356112785,
+ 0.034938364827487405,
+ -0.00783280380018037,
+ -0.11221691992530741,
+ -0.02979271978364788,
+ 0.10506752736741737,
+ -0.04807142151189019,
+ -0.06163438557623186,
+ -0.09814131241312357,
+ 0.05513546837776743,
+ -0.06855715989175905,
+ -0.030763331005013307,
+ 0.02414272924101777,
+ 0.11457700413173491,
+ 0.05079328162475795,
+ -0.10626453616159835,
+ 0.07890613410156865,
+ 0.012679744434315635,
+ 0.02808335084074324,
+ 0.03415626685624321,
+ -0.040636797525558356,
+ 0.04493720314160638,
+ -0.0908765879689632,
+ 0.012577630026459615,
+ 0.123146056482955,
+ 0.05148461251706994,
+ -0.0020903361215708566,
+ 0.10987677602435794,
+ 0.0888340006794057,
+ -0.055130816079636956,
+ 0.10338029985448124,
+ -0.09886215614210986,
+ -0.09394130833307217,
+ 0.06765354049680691,
+ -0.014182926566420652,
+ -0.020456012555738867,
+ 0.040810718026942895,
+ -0.11941799554302328,
+ 0.053628384329548195,
+ 0.10275281482546704,
+ -0.09839589651829476,
+ -0.03256525713011899,
+ -0.02387263956697351,
+ 0.11368694579821001,
+ 0.012126581295866475,
+ 0.06978959831647913,
+ 0.10070134780036348,
+ -0.05011108051714153,
+ -0.09387151178087946,
+ 0.08526078179568782,
+ -0.10234827640952375,
+ -0.003323205153914051,
+ -0.09578612920521189,
+ 0.02952960333766839,
+ 0.0807952700280598,
+ 0.01301844797029754,
+ -0.08223574219086943,
+ 0.11426331530390614,
+ -0.0302706717268058,
+ 0.033806808157451906,
+ -0.1242096199571407,
+ 0.0974095093301603,
+ 0.0244321478785176,
+ -0.022241198171765154,
+ -0.04469187431484089,
+ 0.08743584053886488,
+ 0.07743657472514458,
+ -0.03399547622224358,
+ -0.04384371469532828,
+ -0.11090615108289638,
+ 0.024686385058086405,
+ -0.0570466345491456,
+ -0.013787972585983507,
+ -0.09683542433776575,
+ -0.052774998893921454,
+ -0.03346225819790995,
+ -0.08796563997379404,
+ 0.04707928917479257,
+ 0.03622892572269468,
+ 0.0839274470144449,
+ 0.07471148989306192,
+ 0.012159752977894013,
+ 0.05988826234044324,
+ 0.09105974498333884,
+ 0.07557286921938183,
+ 0.02264730203377939,
+ -0.0438781478823522,
+ -0.10274327448868521,
+ 0.09933478721060031,
+ 0.12469067493752822,
+ -0.05086928929461505,
+ -0.009275098495240955,
+ -0.10042983277579663,
+ 0.00336341240036798,
+ -0.10172568147162814,
+ 0.08329025956238029,
+ 0.04002925849028849,
+ -0.052997631244939766,
+ 0.08547087363062345,
+ 0.07304197388212683,
+ 0.07754882550626362,
+ -0.11208885681942854,
+ 0.04468073276041652,
+ -0.09716178404266673,
+ -0.07222153793429038,
+ -0.008943044777131603,
+ 0.10872929807287411,
+ 0.030710978137170157,
+ 0.06510582349005437,
+ 0.10658387144403787,
+ -0.1228001981635221,
+ 0.09362322974699154,
+ -0.04496570563663031,
+ 0.0762139202943865,
+ 0.03469462044677514,
+ 0.08784391940212367,
+ 0.1046915770050602,
+ 0.014815198183563541,
+ -0.02690220028794593,
+ -0.09922969086108076,
+ 0.08245598130646532,
+ -0.11539868152903088,
+ -0.0543801902302769,
+ 0.012423361605513265,
+ -0.10920710857171949,
+ 0.10976428000272687,
+ -0.044631661670377035,
+ 0.03771175858056725,
+ 0.05970338963939602,
+ -0.05440996754201319,
+ -0.038581640633525545,
+ 0.027842041213933206,
+ -0.003952308054876237,
+ 0.08626996004898742,
+ -0.0989080055036724,
+ 0.06463949502062447,
+ -0.11186225112643669,
+ 0.021159382399786472,
+ 0.06324399176958119,
+ 0.022286090262615497,
+ 0.10795231537772368,
+ -0.11170358444416001,
+ 0.09026780466942162,
+ 0.0008343416478311465,
+ 0.007088543589945534,
+ 0.021093743207914198,
+ 0.07420218838963397,
+ -0.02995382714266078,
+ -0.10236502114082145,
+ 0.04091124306282435,
+ 0.02705241749044816,
+ -0.03620165013393396,
+ 0.00511597715792711,
+ 0.10580334361021829,
+ -0.09152147088298695,
+ -0.01627505982829083,
+ -0.03811881079972176,
+ -0.02564644049917254,
+ -0.06035436310329537,
+ 0.12428222275980276,
+ 0.09354512902970367,
+ -0.026909281006651197
+ ],
+ "landmarks": [
+ [
+ 0.33392751399443177,
+ 0.5415261748357273
+ ],
+ [
+ 0.40679734606125084,
+ 0.5415261748357273
+ ],
+ [
+ 0.3703624300278413,
+ 0.5911591675587526
+ ],
+ [
+ 0.3412144972011137,
+ 0.640792160281778
+ ],
+ [
+ 0.3995103628545689,
+ 0.640792160281778
+ ]
+ ],
+ "score": 0.945824727776926
+ },
+ {
+ "box": [
+ 0.46290141610894353,
+ 0.3904328656526745,
+ 0.2956478758365847,
+ 0.32112167465500535
+ ],
+ "embedding": [
+ -0.042180895204648995,
+ 0.08993087926024577,
+ 0.03711769647420716,
+ 0.07483006859361344,
+ -0.09134786105130462,
+ 0.041949047695394155,
+ 0.10331982825688611,
+ -0.0433101566532734,
+ -0.048299888759706304,
+ -0.02938423340181253,
+ 0.09275806709867569,
+ -0.04494416958470538,
+ -0.03196829469032866,
+ -0.07891892523691553,
+ 0.051778442636068144,
+ -0.12096434338277455,
+ -0.020978277710229733,
+ 0.09547762889126038,
+ -0.07909759908704835,
+ 0.09719850454365724,
+ 0.08107504194979731,
+ 0.09621191570180401,
+ 0.08661150945899618,
+ -0.08585230153903156,
+ 0.0794005998170791,
+ 0.11528750648908527,
+ 0.008699305344306027,
+ -0.05728264775480561,
+ 0.12041768343540887,
+ -0.055159256113031845,
+ -0.05249437423690871,
+ -0.1237945747441552,
+ -0.06048446135845737,
+ 0.06512276491207945,
+ 0.07528546433256544,
+ -0.045210439824309855,
+ -0.0720544490817565,
+ 0.014213623639228918,
+ 0.10407589078620075,
+ -0.07366325909500952,
+ 0.0657570850689431,
+ 0.10664336550003674,
+ 0.05699994156043727,
+ 0.04536196555444052,
+ -0.04020109344435472,
+ 0.016273875225938095,
+ 0.06369994891179588,
+ -0.08358739599920512,
+ -0.04023767232585794,
+ -0.05754932901399618,
+ 0.0076863873964256235,
+ 0.07482652917102336,
+ 0.08206929838675442,
+ 0.09943033013346904,
+ 0.08183158455464266,
+ -0.07337255235931064,
+ -0.0015612096982709274,
+ 0.009377476316884351,
+ 0.10005298507161109,
+ -0.06603399684706575,
+ -0.08930986008115573,
+ 0.014716629292346555,
+ 0.0684272950155225,
+ -0.062446672236765796,
+ -0.01308449425209926,
+ 0.006523656678172967,
+ -0.033667112640665936,
+ 0.021480925052005433,
+ 0.11284393268410552,
+ -0.09420939389578593,
+ 0.11545826997203594,
+ 0.08490273977328755,
+ 0.059844794340008466,
+ 0.12002760153026665,
+ 0.07119104923840212,
+ 0.0637638801722916,
+ 0.09516590448140577,
+ -0.09745688477798403,
+ -0.05290955905419049,
+ -0.0824007740184831,
+ -0.059222274721265886,
+ -0.018979506101601505,
+ 0.08958151633537893,
+ -0.05398829860360146,
+ 0.08129107151717761,
+ 0.05299753359331672,
+ 0.10862298115252408,
+ 0.007688517309810871,
+ -0.022864370379151257,
+ 0.06764717094004019,
+ 0.06595885548550194,
+ 0.002788992396241767,
+ 0.02633264416988783,
+ -0.021579777909510496,
+ -0.11554136911493089,
+ 0.06357793805309013,
+ -0.12363973950642446,
+ 0.0399798430846663,
+ -0.10188352773080431,
+ -0.06865705577862957,
+ -0.11280959524104721,
+ -0.012225734305006671,
+ -0.06152228203186786,
+ 0.02836670831124811,
+ 0.022358864865932446,
+ -0.11915426629924136,
+ 0.11182828600831761,
+ 0.054503685458179,
+ -0.0007155307040298351,
+ 0.100682209516437,
+ -0.06068935284773458,
+ -0.03902713127412272,
+ -0.04737508218295022,
+ 0.1245474074100047,
+ -0.08455325950567404,
+ -0.007436464740919587,
+ 0.011699288434692284,
+ 0.08230152410384071,
+ 0.05371276986420781,
+ -0.01727096266574006,
+ 0.10334159356199739,
+ -0.0701856907348244,
+ -0.06234404172238827,
+ 0.056959016517688574,
+ 0.11076296373224323,
+ -0.012347908640716944,
+ -0.0172165931810565,
+ -0.1194931462175606,
+ -0.054108260414771174,
+ -0.11435994232869419,
+ 0.022538866661298437,
+ -0.08724934093902172,
+ 0.008503402065080273,
+ 0.07864884121260236,
+ 0.09410633822484292,
+ -0.1231627639883994,
+ -0.01807338721536019,
+ 0.08401086235209923,
+ 0.06950486660609263,
+ 0.10940229872205846,
+ 0.09862120378296282,
+ 0.0030728265237644345,
+ -0.1174635536667774,
+ 0.09877654184338044,
+ 0.11174638623977327,
+ -0.05746249607958871,
+ -0.012457431717937072,
+ 0.07198776954592498,
+ -0.001671800030170042,
+ -0.00994685572820513,
+ -0.05576805436793867,
+ -0.052236049212431475,
+ -0.026506982039727407,
+ -0.05278383552217599,
+ -0.0335327230821057,
+ 0.09721354157740661,
+ 0.01752075413240439,
+ -0.03561704686134974,
+ -0.09137493121430107,
+ -0.12312988119979698,
+ -0.051078387503033264,
+ 0.11961345563552819,
+ -0.015374984990317007,
+ -0.053977100836029815,
+ 0.07162615974999091,
+ 0.08182224536353487,
+ 0.07911800154080449,
+ 0.03570104739666748,
+ -0.02498116173867698,
+ -0.07283555105224558,
+ -0.07652448174042034,
+ 0.011586164267399954,
+ -0.09297355119972348,
+ -0.04245402886048423,
+ -0.003444433607559008,
+ -0.010790083963623276,
+ -0.03185116295117388,
+ -0.08545146383599858,
+ -0.07568414600079856,
+ -0.05495946097573795,
+ 0.028483838595981144,
+ 0.08832902475720864,
+ 0.06121428222158033,
+ 0.03757899070782516,
+ 0.12113542544226501,
+ -0.09520664161286457,
+ -0.07538196591369514,
+ -0.07802345132162772,
+ -0.08402475975914342,
+ -0.09243316545324985,
+ 0.023041369608082955,
+ -0.017209404265238436
+ ],
+ "landmarks": [
+ [
+ 0.551595778859919,
+ 0.5124591020215765
+ ],
+ [
+ 0.6698549291945528,
+ 0.5124591020215765
+ ],
+ [
+ 0.6107253540272359,
+ 0.5766834369525775
+ ],
+ [
+ 0.5634216938933824,
+ 0.6409077718835787
+ ],
+ [
+ 0.6580290141610894,
+ 0.6409077718835787
+ ]
+ ],
+ "score": 0.8924952892807778
+ }
+ ],
+ "file_id": "people.jpeg",
+ "runner_metadata": {
+ "code_revision": "8f39129d1c",
+ "models": {
+ "clip": "bootstrap-mobileclip-sha256:synthetic",
+ "face_detection": "bootstrap-yolov5face-sha256:synthetic",
+ "face_embedding": "bootstrap-mobilefacenet-sha256:synthetic"
+ },
+ "platform": "python",
+ "runtime": "bootstrap-deterministic",
+ "timing_ms": {
+ "total": 88.0
+ }
+ }
+ },
+ {
+ "clip": {
+ "embedding": [
+ -0.003767281619462857,
+ -0.021885670680628633,
+ 0.04858312579683994,
+ -0.012959121084040213,
+ -0.040604701177851255,
+ -0.04558305031190002,
+ 0.05982722323461965,
+ 0.028149499355839498,
+ 0.0024694013685028797,
+ -0.06112326470770792,
+ -0.027623681785047198,
+ 0.05881153610743234,
+ -0.03648596707784521,
+ -0.07599587378349455,
+ -0.07581618166757605,
+ -0.04791868492086946,
+ 0.0769556012485234,
+ 0.07671900716106288,
+ 0.07445723922882942,
+ 0.021855274082536482,
+ -0.06197812476085813,
+ -0.06317418173443276,
+ -0.02376948466099777,
+ -0.03748423721759177,
+ -0.040022994730244864,
+ 0.07496502068657997,
+ -0.031734322468931174,
+ -0.024364281437599476,
+ -0.016790818315069796,
+ 0.006136559032935913,
+ 0.020627751728753398,
+ 0.046697095042672,
+ -0.07583759100678944,
+ -0.0059253993486993875,
+ -0.007722953819729096,
+ 0.038661336081691554,
+ -0.017443510866108774,
+ 0.06073285961012028,
+ -0.07545278327580776,
+ -0.06627112621555278,
+ -0.034186183695893366,
+ -0.036042863768340525,
+ 0.044337292909447365,
+ -0.07614269841506478,
+ 0.026908964715635534,
+ -0.0063107536329815314,
+ -0.01185195540505104,
+ -0.001438858436118923,
+ -0.03855369104706449,
+ 0.007068148831248997,
+ 0.05490685714411125,
+ 0.049557599552181766,
+ 0.0024769864503048494,
+ -0.029374642906310592,
+ -0.056190565009428255,
+ 0.008183179888875227,
+ 0.034169284889265746,
+ -0.056827405800734254,
+ -0.04511951257539798,
+ 0.0610105661611069,
+ 0.03999828357016861,
+ 0.051241965485942204,
+ -0.05579313794003483,
+ -0.03539067393547377,
+ -0.013174909239967976,
+ -0.0013472065495711378,
+ 0.039666233932369045,
+ -0.002894408683700755,
+ 0.07084991950488224,
+ -0.06352626366116039,
+ -0.05401066734815527,
+ 0.04688918024647339,
+ -0.0034201871602688528,
+ 0.05295283194284296,
+ 0.07054886578838429,
+ -0.0024784955894708144,
+ -0.016010710904217837,
+ 0.021251268464494204,
+ 0.0069451527857625735,
+ 0.07085877416432147,
+ 0.004767440827132592,
+ 0.016893279900483324,
+ 0.004039387813427108,
+ -0.011077860736937192,
+ -0.06718187003992811,
+ 0.04459450945545372,
+ 0.05364207015393801,
+ -0.014029804521682163,
+ -0.0161936878466816,
+ 0.07311505949629557,
+ -0.04671754340063357,
+ -0.019505893477541017,
+ -0.05973219155757155,
+ 0.07238562666069932,
+ -0.04247201597333606,
+ 0.03971099853309915,
+ -0.03319668838605545,
+ 0.02536294430654419,
+ -0.05218666483214627,
+ 0.008167108333536593,
+ 0.013103212365612175,
+ -0.007766563353889105,
+ 0.03978082523021101,
+ -0.0397841369340354,
+ -0.04131949742036063,
+ -0.029967445804541026,
+ -0.07519855400991453,
+ 0.05160727413382794,
+ -0.01874324036139787,
+ 0.0013512310665543493,
+ 0.029456822867711285,
+ 0.009810236096876493,
+ -0.00826893354375206,
+ 0.02144391659594931,
+ 0.01600665874411714,
+ -0.05025827909643656,
+ 0.02155508270001751,
+ 0.011230059110315996,
+ -0.056161464501567566,
+ -0.03973218909782467,
+ 0.07553735090236419,
+ -0.028536803355148223,
+ -0.01464456283833605,
+ -0.06809965881125965,
+ 0.009323669820084061,
+ -0.059338591236525275,
+ 0.043246633818446546,
+ -0.013505974155526967,
+ 0.04336452471257332,
+ 0.06316334814870428,
+ 0.054829151100929625,
+ 0.035460197470005596,
+ 0.028908291406783828,
+ 0.04206659067058657,
+ 0.04612719278972797,
+ 0.054456124881207844,
+ -0.0628147962261985,
+ -0.02799290674789823,
+ -0.0235250633044751,
+ -0.04380712876841259,
+ 0.05832917957109767,
+ 0.04380972116768648,
+ 0.046144373680146816,
+ -0.015733978681951363,
+ 0.06959943658807921,
+ 0.02141769206636194,
+ 0.04505760191165958,
+ 0.07587807894737762,
+ -0.033192092772476166,
+ 0.0714175868227181,
+ 0.0039945025384545765,
+ 0.07463699199185134,
+ 0.06887220378724361,
+ -0.021933475987813693,
+ -0.05900131252742778,
+ 0.008789348672032009,
+ 0.04026287667113553,
+ 0.06774006492205796,
+ -0.03684677153866292,
+ -0.02056158271205643,
+ 0.04321855523068901,
+ 0.04064355164664758,
+ -0.023039282559015974,
+ -0.054043634719705115,
+ 0.01228315412213289,
+ -0.01430642704672252,
+ 0.018474665010430807,
+ -0.07519263995091773,
+ -0.00011498760095240501,
+ 0.007563012346569342,
+ 0.04851267563437645,
+ -0.026719710852672354,
+ 0.05273098520328173,
+ -0.055559193252102325,
+ 0.04538309684845064,
+ 0.06132667487370878,
+ -0.06276339439626086,
+ 0.05817570410757211,
+ -0.046638977685672926,
+ -0.011294217910756953,
+ -0.021515321540020848,
+ 0.027808510342292113,
+ 0.04527596189863133,
+ -0.03725506282731872,
+ -0.03980735069780035,
+ -0.02082998498355702,
+ 0.00841040164664228,
+ -0.007753406907516481,
+ -0.0639279023673732,
+ -0.04646657036998729,
+ -0.051990241810540655,
+ 0.07048537403314378,
+ 0.07194161331642716,
+ 0.07274549158373894,
+ 0.019234887902687223,
+ 0.03744927501948984,
+ -0.052846704325729715,
+ -0.06507505239353452,
+ 0.035114042657995156,
+ 0.02072793735200442,
+ -0.07430015954769932,
+ -0.07519269928515539,
+ -0.03367177879402553,
+ -0.03010585806655181,
+ 0.0694828583408796,
+ -0.013588401555650801,
+ -0.015513250722809962,
+ 0.050159260975511655,
+ -0.054536266545613124,
+ -0.055091454272301325,
+ 0.023072249638817884,
+ -0.0443195320605887,
+ 0.06641012390627729,
+ 0.0571177313619162,
+ -0.009985571978401954,
+ 0.0156937959097103,
+ 0.06401341533019805,
+ -0.04936221431447364,
+ -0.017291071581867025,
+ -0.007360509626072972,
+ 0.016678044278688842,
+ 0.04859018908744799,
+ -0.04050944959579202,
+ 0.05889217337865376,
+ 0.0099652132599955,
+ -0.01530140707199237,
+ 0.06438286738235328,
+ 0.028540052296696643,
+ 0.050438577683389094,
+ 0.0517471754408652,
+ 0.034727938034475186,
+ 0.02021750459836424,
+ -0.051877865207793424,
+ -0.024843711158581968,
+ -0.01202579155628166,
+ -0.012013089069706483,
+ 0.04092381434722631,
+ 0.06762000090691817,
+ 0.05012169926677976,
+ -0.07593062661735671,
+ 0.04474509074292809,
+ -0.004110344304443597,
+ -0.0424064625083278,
+ -0.041713654943507254,
+ 0.012079832683974832,
+ -0.04552574463414354,
+ -0.04948173567844168,
+ -0.06806847168565068,
+ -0.0037608514583570103,
+ -0.03220502834295785,
+ -0.0625202909381283,
+ 0.013595502992302246,
+ 0.05927139435536084,
+ -0.02808227082002338,
+ -0.06624634091503082,
+ -0.07425774220503499,
+ -0.07059995511980777,
+ -0.03537599350725864,
+ 0.07359729561366725,
+ -0.06446687033076834,
+ -0.040445009805614614,
+ -0.05183964688385,
+ 0.06899988949855207,
+ -0.06616686100789453,
+ 0.002707162192451157,
+ -0.035141408760810317,
+ 0.025676988938926296,
+ 0.012321361213780548,
+ 0.06259018980638725,
+ -0.047001537776198934,
+ -0.008386874654993314,
+ 0.06628994687527853,
+ 0.04076937338035585,
+ -0.03282300737454679,
+ 0.04920458454259927,
+ -0.0724242988350347,
+ -0.03206252384197287,
+ -0.0768928724141507,
+ -0.03711801269997972,
+ 0.012790448360820621,
+ 0.01982065289238054,
+ -0.07686832911854646,
+ 0.04722497767833337,
+ 0.04118963971856243,
+ 0.002897483779944352,
+ -0.026234783506411497,
+ -0.05009839305538575,
+ 0.057649963302957,
+ -0.04388418891811956,
+ -0.0017810978813448785,
+ -0.008801291264624266,
+ -0.06897461340505501,
+ 0.053885689641242636,
+ -0.005621395404076924,
+ 0.035539282095149234,
+ -0.07016539725339249,
+ 0.02697039158834944,
+ 0.032005937286424445,
+ 0.04701427509018466,
+ 0.036844730834746986,
+ -0.022139576069837984,
+ 0.009084302960184648,
+ -0.03723096524963257,
+ 0.02671889125976684,
+ -0.0332348063122384,
+ -0.018873149921392728,
+ 0.018493427977001074,
+ 0.0535185541771508,
+ 0.06909260305586008,
+ -0.03689513594430995,
+ -0.04909824362127207,
+ -0.031667982013849905,
+ -0.024460115932046438,
+ -0.0532317240480596,
+ 0.021937285632437766,
+ 0.03706720501472556,
+ -0.026704383181648333,
+ 0.010242188617702977,
+ -0.06862652178786441,
+ 0.03919977058397509,
+ -0.02262662777873708,
+ -0.03735203634219897,
+ 0.06073284108412598,
+ 0.048424678364890165,
+ 0.039697667475583356,
+ -0.04433167340646631,
+ 0.013319525813709158,
+ 0.035339100849494286,
+ 0.07628089102734388,
+ 0.048036395441831206,
+ 0.03181809161783937,
+ 0.04079572668019104,
+ 0.019522263454555624,
+ 0.010064466238013561,
+ 0.06781590563830517,
+ -0.0028894195386164625,
+ -0.07315503768029244,
+ 0.062297503676139676,
+ -0.05959836181695117,
+ 0.0522234518406872,
+ -0.010945521718893953,
+ -0.03325865728997674,
+ -0.05854137135014682,
+ -0.07010502716466079,
+ -0.02107156336579229,
+ -0.02391362794664036,
+ 0.06858926222059475,
+ 0.01091255456615506,
+ 0.06165930997669055,
+ 0.013129161448673994,
+ -0.01191573788711556,
+ -0.02181573290048794,
+ 0.029571286525828706,
+ 0.068279830378452,
+ 0.044827079682363886,
+ -0.011025564371341485,
+ 0.016671927418404002,
+ -0.035466941697770794,
+ 0.0154835234309648,
+ 0.030886978426257712,
+ -0.0717003171638571,
+ -0.004879073472628225,
+ 0.007184582991433851,
+ -0.024608942939146745,
+ -0.0024245685716913798,
+ -0.03012528596314994,
+ 0.04286293294268759,
+ -0.06453120531049765,
+ 0.07207795584560181,
+ 0.07595081962293221,
+ -0.04930616734674358,
+ -0.07720593170432785,
+ 0.042607798018246004,
+ -0.07230427821740126,
+ -0.06056266775536772,
+ 0.051943119302944894,
+ 0.05040294282393884,
+ -0.058282929426316396,
+ -0.012918883317312122,
+ 0.07623656784124973,
+ -0.019985839337101054,
+ -0.048644850763013385,
+ 0.0554316833553973,
+ -0.013912271237595057,
+ 0.07148981059385678,
+ 0.013896307009030513,
+ 0.04216631241461013,
+ -0.024406142635749733,
+ -0.07583579391240491,
+ -0.03597614174341987,
+ 0.05989723180010473,
+ 0.06923017453677108,
+ -0.018308633882481787,
+ -0.017324643929242697,
+ 0.02650612112689156,
+ 0.052387427057358826,
+ 0.01793235007817881,
+ -0.020447297968364322,
+ -0.06421016904809569,
+ -0.06417435053331608,
+ 0.059942626029361734,
+ 0.02556845520360001,
+ -0.07298073998381788,
+ -0.052215126375545914,
+ 0.04914881400604407,
+ 0.04601139154023436,
+ -0.03125464031304204,
+ 0.009649502564523234,
+ -0.03230393290099642,
+ 0.00045025850071440764,
+ -0.047062330607698315,
+ -0.011542923695210488,
+ -0.0014084320067997201,
+ -0.06633479721343503,
+ -0.04027883568470562,
+ 0.025237704828790775,
+ 0.003610071052912357,
+ 0.03144275967766502,
+ 0.06813674022994234,
+ 0.05784963774596854,
+ 0.05301576525605437,
+ 0.029227292180264305,
+ -0.0416831675753367,
+ 0.03161321935702816,
+ 0.015704830327428216,
+ -0.022535716494339567,
+ -0.059927394781032484,
+ -0.0434912718342845,
+ -0.0011805397393254177,
+ -0.021219293655910864,
+ -0.029401777251854482,
+ -0.06160518376800385,
+ -0.03774513562262369,
+ -0.008535826457275728,
+ -0.04855252238592554,
+ 0.04243231775795784,
+ 0.02501200242136765,
+ -0.06367172648627525,
+ -0.03006016971890097,
+ 0.06831308555934645,
+ 0.04209785142608235,
+ -0.03391837622550913,
+ 0.06385819962666812,
+ 0.005107164274576925,
+ 0.06653161595465522,
+ -0.016924231877251193,
+ -0.03308869350917768,
+ 0.05747695845101806,
+ 0.02978547400667376,
+ -0.0014191997668988265,
+ 0.060547479065769474,
+ -0.036791894808395925,
+ 0.029224278971052866,
+ 0.01868465854167545,
+ 0.007085055551539538,
+ 0.028341347696780646,
+ -0.04569907365451432,
+ -0.05925271125478965,
+ 0.04147570357168449,
+ -0.05086765338716693,
+ -0.02392779365854916,
+ -0.07067297962964124,
+ -0.02551624577889096,
+ 0.016477970432744973,
+ 0.013431479637220224,
+ -0.0037048479975387728,
+ -0.011430298742027795,
+ 0.017061663902646008,
+ 0.016590656361247503,
+ 0.003928169814693763,
+ -0.03377611547992952,
+ -0.00793826536892543,
+ -0.060667601977525014,
+ -0.07227708690807173,
+ -0.059520719119541404,
+ -0.008478678505750287,
+ -0.0529322150639765,
+ 0.057735182220325,
+ -0.06356967152455563,
+ -0.02968079838259838,
+ -0.04723361345387925,
+ -0.0625555265405202,
+ 0.05129924027488535,
+ -0.06007421219184115,
+ -0.02452993548133372,
+ -0.03259806606456685,
+ -0.028241446673646853,
+ 0.031681832637981557,
+ -0.009713125095778662,
+ 0.013318449008524452,
+ 0.0750186534765601,
+ -0.005908944363628237,
+ 0.0029822660235804556,
+ 0.005803506037495995,
+ 0.03967833301126359,
+ -0.05817783222646511,
+ -0.02039846822475011,
+ -0.03617785951607882,
+ 0.03807507070780955,
+ 0.05610793728787388,
+ 0.01396492280630991,
+ -0.0435876791393467,
+ 0.040840802430101075,
+ -0.024218701147469532,
+ 0.06124446493520706,
+ -0.028235764043704894,
+ -0.0448552732188105,
+ -0.014329124562504444,
+ -0.059765009700049165,
+ -0.0067150527157386715,
+ -0.029548070172800773,
+ -0.00016839629204473268
+ ]
+ },
+ "faces": [],
+ "file_id": "singapore.jpg",
+ "runner_metadata": {
+ "code_revision": "8f39129d1c",
+ "models": {
+ "clip": "bootstrap-mobileclip-sha256:synthetic",
+ "face_detection": "bootstrap-yolov5face-sha256:synthetic",
+ "face_embedding": "bootstrap-mobilefacenet-sha256:synthetic"
+ },
+ "platform": "python",
+ "runtime": "bootstrap-deterministic",
+ "timing_ms": {
+ "total": 92.0
+ }
+ }
+ }
+ ]
+}
\ No newline at end of file
diff --git a/infra/ml/ground_truth/goldens/singapore.jpg.json b/infra/ml/ground_truth/goldens/singapore.jpg.json
new file mode 100644
index 0000000000..e07b3919eb
--- /dev/null
+++ b/infra/ml/ground_truth/goldens/singapore.jpg.json
@@ -0,0 +1,533 @@
+{
+ "clip": {
+ "embedding": [
+ -0.003767281619462857,
+ -0.021885670680628633,
+ 0.04858312579683994,
+ -0.012959121084040213,
+ -0.040604701177851255,
+ -0.04558305031190002,
+ 0.05982722323461965,
+ 0.028149499355839498,
+ 0.0024694013685028797,
+ -0.06112326470770792,
+ -0.027623681785047198,
+ 0.05881153610743234,
+ -0.03648596707784521,
+ -0.07599587378349455,
+ -0.07581618166757605,
+ -0.04791868492086946,
+ 0.0769556012485234,
+ 0.07671900716106288,
+ 0.07445723922882942,
+ 0.021855274082536482,
+ -0.06197812476085813,
+ -0.06317418173443276,
+ -0.02376948466099777,
+ -0.03748423721759177,
+ -0.040022994730244864,
+ 0.07496502068657997,
+ -0.031734322468931174,
+ -0.024364281437599476,
+ -0.016790818315069796,
+ 0.006136559032935913,
+ 0.020627751728753398,
+ 0.046697095042672,
+ -0.07583759100678944,
+ -0.0059253993486993875,
+ -0.007722953819729096,
+ 0.038661336081691554,
+ -0.017443510866108774,
+ 0.06073285961012028,
+ -0.07545278327580776,
+ -0.06627112621555278,
+ -0.034186183695893366,
+ -0.036042863768340525,
+ 0.044337292909447365,
+ -0.07614269841506478,
+ 0.026908964715635534,
+ -0.0063107536329815314,
+ -0.01185195540505104,
+ -0.001438858436118923,
+ -0.03855369104706449,
+ 0.007068148831248997,
+ 0.05490685714411125,
+ 0.049557599552181766,
+ 0.0024769864503048494,
+ -0.029374642906310592,
+ -0.056190565009428255,
+ 0.008183179888875227,
+ 0.034169284889265746,
+ -0.056827405800734254,
+ -0.04511951257539798,
+ 0.0610105661611069,
+ 0.03999828357016861,
+ 0.051241965485942204,
+ -0.05579313794003483,
+ -0.03539067393547377,
+ -0.013174909239967976,
+ -0.0013472065495711378,
+ 0.039666233932369045,
+ -0.002894408683700755,
+ 0.07084991950488224,
+ -0.06352626366116039,
+ -0.05401066734815527,
+ 0.04688918024647339,
+ -0.0034201871602688528,
+ 0.05295283194284296,
+ 0.07054886578838429,
+ -0.0024784955894708144,
+ -0.016010710904217837,
+ 0.021251268464494204,
+ 0.0069451527857625735,
+ 0.07085877416432147,
+ 0.004767440827132592,
+ 0.016893279900483324,
+ 0.004039387813427108,
+ -0.011077860736937192,
+ -0.06718187003992811,
+ 0.04459450945545372,
+ 0.05364207015393801,
+ -0.014029804521682163,
+ -0.0161936878466816,
+ 0.07311505949629557,
+ -0.04671754340063357,
+ -0.019505893477541017,
+ -0.05973219155757155,
+ 0.07238562666069932,
+ -0.04247201597333606,
+ 0.03971099853309915,
+ -0.03319668838605545,
+ 0.02536294430654419,
+ -0.05218666483214627,
+ 0.008167108333536593,
+ 0.013103212365612175,
+ -0.007766563353889105,
+ 0.03978082523021101,
+ -0.0397841369340354,
+ -0.04131949742036063,
+ -0.029967445804541026,
+ -0.07519855400991453,
+ 0.05160727413382794,
+ -0.01874324036139787,
+ 0.0013512310665543493,
+ 0.029456822867711285,
+ 0.009810236096876493,
+ -0.00826893354375206,
+ 0.02144391659594931,
+ 0.01600665874411714,
+ -0.05025827909643656,
+ 0.02155508270001751,
+ 0.011230059110315996,
+ -0.056161464501567566,
+ -0.03973218909782467,
+ 0.07553735090236419,
+ -0.028536803355148223,
+ -0.01464456283833605,
+ -0.06809965881125965,
+ 0.009323669820084061,
+ -0.059338591236525275,
+ 0.043246633818446546,
+ -0.013505974155526967,
+ 0.04336452471257332,
+ 0.06316334814870428,
+ 0.054829151100929625,
+ 0.035460197470005596,
+ 0.028908291406783828,
+ 0.04206659067058657,
+ 0.04612719278972797,
+ 0.054456124881207844,
+ -0.0628147962261985,
+ -0.02799290674789823,
+ -0.0235250633044751,
+ -0.04380712876841259,
+ 0.05832917957109767,
+ 0.04380972116768648,
+ 0.046144373680146816,
+ -0.015733978681951363,
+ 0.06959943658807921,
+ 0.02141769206636194,
+ 0.04505760191165958,
+ 0.07587807894737762,
+ -0.033192092772476166,
+ 0.0714175868227181,
+ 0.0039945025384545765,
+ 0.07463699199185134,
+ 0.06887220378724361,
+ -0.021933475987813693,
+ -0.05900131252742778,
+ 0.008789348672032009,
+ 0.04026287667113553,
+ 0.06774006492205796,
+ -0.03684677153866292,
+ -0.02056158271205643,
+ 0.04321855523068901,
+ 0.04064355164664758,
+ -0.023039282559015974,
+ -0.054043634719705115,
+ 0.01228315412213289,
+ -0.01430642704672252,
+ 0.018474665010430807,
+ -0.07519263995091773,
+ -0.00011498760095240501,
+ 0.007563012346569342,
+ 0.04851267563437645,
+ -0.026719710852672354,
+ 0.05273098520328173,
+ -0.055559193252102325,
+ 0.04538309684845064,
+ 0.06132667487370878,
+ -0.06276339439626086,
+ 0.05817570410757211,
+ -0.046638977685672926,
+ -0.011294217910756953,
+ -0.021515321540020848,
+ 0.027808510342292113,
+ 0.04527596189863133,
+ -0.03725506282731872,
+ -0.03980735069780035,
+ -0.02082998498355702,
+ 0.00841040164664228,
+ -0.007753406907516481,
+ -0.0639279023673732,
+ -0.04646657036998729,
+ -0.051990241810540655,
+ 0.07048537403314378,
+ 0.07194161331642716,
+ 0.07274549158373894,
+ 0.019234887902687223,
+ 0.03744927501948984,
+ -0.052846704325729715,
+ -0.06507505239353452,
+ 0.035114042657995156,
+ 0.02072793735200442,
+ -0.07430015954769932,
+ -0.07519269928515539,
+ -0.03367177879402553,
+ -0.03010585806655181,
+ 0.0694828583408796,
+ -0.013588401555650801,
+ -0.015513250722809962,
+ 0.050159260975511655,
+ -0.054536266545613124,
+ -0.055091454272301325,
+ 0.023072249638817884,
+ -0.0443195320605887,
+ 0.06641012390627729,
+ 0.0571177313619162,
+ -0.009985571978401954,
+ 0.0156937959097103,
+ 0.06401341533019805,
+ -0.04936221431447364,
+ -0.017291071581867025,
+ -0.007360509626072972,
+ 0.016678044278688842,
+ 0.04859018908744799,
+ -0.04050944959579202,
+ 0.05889217337865376,
+ 0.0099652132599955,
+ -0.01530140707199237,
+ 0.06438286738235328,
+ 0.028540052296696643,
+ 0.050438577683389094,
+ 0.0517471754408652,
+ 0.034727938034475186,
+ 0.02021750459836424,
+ -0.051877865207793424,
+ -0.024843711158581968,
+ -0.01202579155628166,
+ -0.012013089069706483,
+ 0.04092381434722631,
+ 0.06762000090691817,
+ 0.05012169926677976,
+ -0.07593062661735671,
+ 0.04474509074292809,
+ -0.004110344304443597,
+ -0.0424064625083278,
+ -0.041713654943507254,
+ 0.012079832683974832,
+ -0.04552574463414354,
+ -0.04948173567844168,
+ -0.06806847168565068,
+ -0.0037608514583570103,
+ -0.03220502834295785,
+ -0.0625202909381283,
+ 0.013595502992302246,
+ 0.05927139435536084,
+ -0.02808227082002338,
+ -0.06624634091503082,
+ -0.07425774220503499,
+ -0.07059995511980777,
+ -0.03537599350725864,
+ 0.07359729561366725,
+ -0.06446687033076834,
+ -0.040445009805614614,
+ -0.05183964688385,
+ 0.06899988949855207,
+ -0.06616686100789453,
+ 0.002707162192451157,
+ -0.035141408760810317,
+ 0.025676988938926296,
+ 0.012321361213780548,
+ 0.06259018980638725,
+ -0.047001537776198934,
+ -0.008386874654993314,
+ 0.06628994687527853,
+ 0.04076937338035585,
+ -0.03282300737454679,
+ 0.04920458454259927,
+ -0.0724242988350347,
+ -0.03206252384197287,
+ -0.0768928724141507,
+ -0.03711801269997972,
+ 0.012790448360820621,
+ 0.01982065289238054,
+ -0.07686832911854646,
+ 0.04722497767833337,
+ 0.04118963971856243,
+ 0.002897483779944352,
+ -0.026234783506411497,
+ -0.05009839305538575,
+ 0.057649963302957,
+ -0.04388418891811956,
+ -0.0017810978813448785,
+ -0.008801291264624266,
+ -0.06897461340505501,
+ 0.053885689641242636,
+ -0.005621395404076924,
+ 0.035539282095149234,
+ -0.07016539725339249,
+ 0.02697039158834944,
+ 0.032005937286424445,
+ 0.04701427509018466,
+ 0.036844730834746986,
+ -0.022139576069837984,
+ 0.009084302960184648,
+ -0.03723096524963257,
+ 0.02671889125976684,
+ -0.0332348063122384,
+ -0.018873149921392728,
+ 0.018493427977001074,
+ 0.0535185541771508,
+ 0.06909260305586008,
+ -0.03689513594430995,
+ -0.04909824362127207,
+ -0.031667982013849905,
+ -0.024460115932046438,
+ -0.0532317240480596,
+ 0.021937285632437766,
+ 0.03706720501472556,
+ -0.026704383181648333,
+ 0.010242188617702977,
+ -0.06862652178786441,
+ 0.03919977058397509,
+ -0.02262662777873708,
+ -0.03735203634219897,
+ 0.06073284108412598,
+ 0.048424678364890165,
+ 0.039697667475583356,
+ -0.04433167340646631,
+ 0.013319525813709158,
+ 0.035339100849494286,
+ 0.07628089102734388,
+ 0.048036395441831206,
+ 0.03181809161783937,
+ 0.04079572668019104,
+ 0.019522263454555624,
+ 0.010064466238013561,
+ 0.06781590563830517,
+ -0.0028894195386164625,
+ -0.07315503768029244,
+ 0.062297503676139676,
+ -0.05959836181695117,
+ 0.0522234518406872,
+ -0.010945521718893953,
+ -0.03325865728997674,
+ -0.05854137135014682,
+ -0.07010502716466079,
+ -0.02107156336579229,
+ -0.02391362794664036,
+ 0.06858926222059475,
+ 0.01091255456615506,
+ 0.06165930997669055,
+ 0.013129161448673994,
+ -0.01191573788711556,
+ -0.02181573290048794,
+ 0.029571286525828706,
+ 0.068279830378452,
+ 0.044827079682363886,
+ -0.011025564371341485,
+ 0.016671927418404002,
+ -0.035466941697770794,
+ 0.0154835234309648,
+ 0.030886978426257712,
+ -0.0717003171638571,
+ -0.004879073472628225,
+ 0.007184582991433851,
+ -0.024608942939146745,
+ -0.0024245685716913798,
+ -0.03012528596314994,
+ 0.04286293294268759,
+ -0.06453120531049765,
+ 0.07207795584560181,
+ 0.07595081962293221,
+ -0.04930616734674358,
+ -0.07720593170432785,
+ 0.042607798018246004,
+ -0.07230427821740126,
+ -0.06056266775536772,
+ 0.051943119302944894,
+ 0.05040294282393884,
+ -0.058282929426316396,
+ -0.012918883317312122,
+ 0.07623656784124973,
+ -0.019985839337101054,
+ -0.048644850763013385,
+ 0.0554316833553973,
+ -0.013912271237595057,
+ 0.07148981059385678,
+ 0.013896307009030513,
+ 0.04216631241461013,
+ -0.024406142635749733,
+ -0.07583579391240491,
+ -0.03597614174341987,
+ 0.05989723180010473,
+ 0.06923017453677108,
+ -0.018308633882481787,
+ -0.017324643929242697,
+ 0.02650612112689156,
+ 0.052387427057358826,
+ 0.01793235007817881,
+ -0.020447297968364322,
+ -0.06421016904809569,
+ -0.06417435053331608,
+ 0.059942626029361734,
+ 0.02556845520360001,
+ -0.07298073998381788,
+ -0.052215126375545914,
+ 0.04914881400604407,
+ 0.04601139154023436,
+ -0.03125464031304204,
+ 0.009649502564523234,
+ -0.03230393290099642,
+ 0.00045025850071440764,
+ -0.047062330607698315,
+ -0.011542923695210488,
+ -0.0014084320067997201,
+ -0.06633479721343503,
+ -0.04027883568470562,
+ 0.025237704828790775,
+ 0.003610071052912357,
+ 0.03144275967766502,
+ 0.06813674022994234,
+ 0.05784963774596854,
+ 0.05301576525605437,
+ 0.029227292180264305,
+ -0.0416831675753367,
+ 0.03161321935702816,
+ 0.015704830327428216,
+ -0.022535716494339567,
+ -0.059927394781032484,
+ -0.0434912718342845,
+ -0.0011805397393254177,
+ -0.021219293655910864,
+ -0.029401777251854482,
+ -0.06160518376800385,
+ -0.03774513562262369,
+ -0.008535826457275728,
+ -0.04855252238592554,
+ 0.04243231775795784,
+ 0.02501200242136765,
+ -0.06367172648627525,
+ -0.03006016971890097,
+ 0.06831308555934645,
+ 0.04209785142608235,
+ -0.03391837622550913,
+ 0.06385819962666812,
+ 0.005107164274576925,
+ 0.06653161595465522,
+ -0.016924231877251193,
+ -0.03308869350917768,
+ 0.05747695845101806,
+ 0.02978547400667376,
+ -0.0014191997668988265,
+ 0.060547479065769474,
+ -0.036791894808395925,
+ 0.029224278971052866,
+ 0.01868465854167545,
+ 0.007085055551539538,
+ 0.028341347696780646,
+ -0.04569907365451432,
+ -0.05925271125478965,
+ 0.04147570357168449,
+ -0.05086765338716693,
+ -0.02392779365854916,
+ -0.07067297962964124,
+ -0.02551624577889096,
+ 0.016477970432744973,
+ 0.013431479637220224,
+ -0.0037048479975387728,
+ -0.011430298742027795,
+ 0.017061663902646008,
+ 0.016590656361247503,
+ 0.003928169814693763,
+ -0.03377611547992952,
+ -0.00793826536892543,
+ -0.060667601977525014,
+ -0.07227708690807173,
+ -0.059520719119541404,
+ -0.008478678505750287,
+ -0.0529322150639765,
+ 0.057735182220325,
+ -0.06356967152455563,
+ -0.02968079838259838,
+ -0.04723361345387925,
+ -0.0625555265405202,
+ 0.05129924027488535,
+ -0.06007421219184115,
+ -0.02452993548133372,
+ -0.03259806606456685,
+ -0.028241446673646853,
+ 0.031681832637981557,
+ -0.009713125095778662,
+ 0.013318449008524452,
+ 0.0750186534765601,
+ -0.005908944363628237,
+ 0.0029822660235804556,
+ 0.005803506037495995,
+ 0.03967833301126359,
+ -0.05817783222646511,
+ -0.02039846822475011,
+ -0.03617785951607882,
+ 0.03807507070780955,
+ 0.05610793728787388,
+ 0.01396492280630991,
+ -0.0435876791393467,
+ 0.040840802430101075,
+ -0.024218701147469532,
+ 0.06124446493520706,
+ -0.028235764043704894,
+ -0.0448552732188105,
+ -0.014329124562504444,
+ -0.059765009700049165,
+ -0.0067150527157386715,
+ -0.029548070172800773,
+ -0.00016839629204473268
+ ]
+ },
+ "faces": [],
+ "file_id": "singapore.jpg",
+ "runner_metadata": {
+ "code_revision": "8f39129d1c",
+ "models": {
+ "clip": "bootstrap-mobileclip-sha256:synthetic",
+ "face_detection": "bootstrap-yolov5face-sha256:synthetic",
+ "face_embedding": "bootstrap-mobilefacenet-sha256:synthetic"
+ },
+ "platform": "python",
+ "runtime": "bootstrap-deterministic",
+ "timing_ms": {
+ "total": 92.0
+ }
+ }
+}
\ No newline at end of file
diff --git a/infra/ml/ground_truth/manifest.json b/infra/ml/ground_truth/manifest.json
new file mode 100644
index 0000000000..a2a34c3742
--- /dev/null
+++ b/infra/ml/ground_truth/manifest.json
@@ -0,0 +1,32 @@
+{
+ "schema_version": "1",
+ "dataset": "local-bootstrap-corpus",
+ "items": [
+ {
+ "file_id": "man.jpeg",
+ "source": "data/man.jpeg",
+ "tags": ["smoke", "single-face"],
+ "bootstrap_face_count": 1
+ },
+ {
+ "file_id": "people.jpeg",
+ "source": "data/people.jpeg",
+ "tags": ["smoke", "group-photo"],
+ "bootstrap_face_count": 3
+ },
+ {
+ "file_id": "singapore.jpg",
+ "source": "data/singapore.jpg",
+ "tags": ["smoke", "cityscape", "no-face"],
+ "bootstrap_face_count": 0
+ }
+ ],
+ "threshold_defaults": {
+ "clip_cosine_distance": 0.01,
+ "cross_platform_clip_cosine_distance": 0.01,
+ "face_embedding_cosine_distance": 0.015,
+ "box_iou_threshold": 0.98,
+ "landmark_error_threshold": 0.03,
+ "score_delta_threshold": 0.1
+ }
+}
diff --git a/infra/ml/ground_truth/schema.py b/infra/ml/ground_truth/schema.py
new file mode 100644
index 0000000000..8109cc3741
--- /dev/null
+++ b/infra/ml/ground_truth/schema.py
@@ -0,0 +1,271 @@
+from __future__ import annotations
+
+from dataclasses import dataclass, field
+import json
+import math
+from typing import Any, Mapping, Sequence
+
+CLIP_EMBEDDING_DIM = 512
+FACE_EMBEDDING_DIM = 192
+EMBEDDING_NORM_TOLERANCE = 1e-3
+FLOAT_TOLERANCE = 1e-8
+
+
+def _l2_norm(values: Sequence[float]) -> float:
+ return math.sqrt(sum(value * value for value in values))
+
+
+def _coerce_float(value: Any, field_name: str) -> float:
+ try:
+ parsed = float(value)
+ except (TypeError, ValueError) as exc:
+ raise ValueError(f"{field_name} must be numeric") from exc
+
+ if not math.isfinite(parsed):
+ raise ValueError(f"{field_name} must be finite")
+
+ return parsed
+
+
+def _coerce_float_tuple(
+ values: Sequence[Any],
+ *,
+ field_name: str,
+ expected_len: int | None = None,
+) -> tuple[float, ...]:
+ if not isinstance(values, Sequence):
+ raise ValueError(f"{field_name} must be a sequence")
+
+ result = tuple(_coerce_float(value, field_name) for value in values)
+ if expected_len is not None and len(result) != expected_len:
+ raise ValueError(f"{field_name} must have exactly {expected_len} values")
+
+ return result
+
+
+def _validate_normalized_vector(
+ values: Sequence[Any],
+ *,
+ field_name: str,
+ expected_len: int,
+) -> tuple[float, ...]:
+ vector = _coerce_float_tuple(values, field_name=field_name, expected_len=expected_len)
+ norm = _l2_norm(vector)
+ if norm <= FLOAT_TOLERANCE:
+ raise ValueError(f"{field_name} must not be zero")
+
+ if abs(norm - 1.0) > EMBEDDING_NORM_TOLERANCE:
+ raise ValueError(f"{field_name} must be L2 normalized")
+
+ return vector
+
+
+def _validate_normalized_point(point: Sequence[Any], *, field_name: str) -> tuple[float, float]:
+ x, y = _coerce_float_tuple(point, field_name=field_name, expected_len=2)
+ if x < 0.0 or x > 1.0 or y < 0.0 or y > 1.0:
+ raise ValueError(f"{field_name} values must be in [0, 1]")
+ return x, y
+
+
+@dataclass(frozen=True)
+class ClipResult:
+ embedding: tuple[float, ...]
+
+ def __post_init__(self) -> None:
+ object.__setattr__(
+ self,
+ "embedding",
+ _validate_normalized_vector(
+ self.embedding,
+ field_name="clip.embedding",
+ expected_len=CLIP_EMBEDDING_DIM,
+ ),
+ )
+
+ @classmethod
+ def from_dict(cls, payload: Mapping[str, Any]) -> ClipResult:
+ return cls(embedding=_coerce_float_tuple(payload["embedding"], field_name="clip.embedding"))
+
+ def to_dict(self) -> dict[str, Any]:
+ return {"embedding": list(self.embedding)}
+
+
+@dataclass(frozen=True)
+class FaceResult:
+ box: tuple[float, float, float, float]
+ landmarks: tuple[tuple[float, float], ...]
+ score: float
+ embedding: tuple[float, ...]
+
+ def __post_init__(self) -> None:
+ x, y, width, height = _coerce_float_tuple(
+ self.box,
+ field_name="faces[].box",
+ expected_len=4,
+ )
+ if width < 0.0 or height < 0.0:
+ raise ValueError("faces[].box width and height must be non-negative")
+ if x < 0.0 or y < 0.0 or x + width > 1.0 + FLOAT_TOLERANCE or y + height > 1.0 + FLOAT_TOLERANCE:
+ raise ValueError("faces[].box must be normalized to [0, 1]")
+ object.__setattr__(self, "box", (x, y, width, height))
+
+ if not isinstance(self.landmarks, Sequence):
+ raise ValueError("faces[].landmarks must be a sequence")
+ normalized_landmarks = tuple(
+ _validate_normalized_point(point, field_name="faces[].landmarks")
+ for point in self.landmarks
+ )
+ object.__setattr__(self, "landmarks", normalized_landmarks)
+
+ object.__setattr__(self, "score", _coerce_float(self.score, "faces[].score"))
+ object.__setattr__(
+ self,
+ "embedding",
+ _validate_normalized_vector(
+ self.embedding,
+ field_name="faces[].embedding",
+ expected_len=FACE_EMBEDDING_DIM,
+ ),
+ )
+
+ def sort_key(self) -> tuple[float, float, float, float, float]:
+ return (
+ round(self.box[0], 8),
+ round(self.box[1], 8),
+ round(self.box[2], 8),
+ round(self.box[3], 8),
+ -round(self.score, 8),
+ )
+
+ @classmethod
+ def from_dict(cls, payload: Mapping[str, Any]) -> FaceResult:
+ return cls(
+ box=tuple(payload["box"]),
+ landmarks=tuple(tuple(point) for point in payload["landmarks"]),
+ score=payload["score"],
+ embedding=tuple(payload["embedding"]),
+ )
+
+ def to_dict(self) -> dict[str, Any]:
+ return {
+ "box": [*self.box],
+ "landmarks": [[x, y] for x, y in self.landmarks],
+ "score": self.score,
+ "embedding": [*self.embedding],
+ }
+
+
+@dataclass(frozen=True)
+class RunnerMetadata:
+ platform: str
+ runtime: str
+ models: Mapping[str, str]
+ code_revision: str
+ timing_ms: Mapping[str, float] = field(default_factory=dict)
+
+ def __post_init__(self) -> None:
+ if not self.platform:
+ raise ValueError("runner_metadata.platform is required")
+ if not self.runtime:
+ raise ValueError("runner_metadata.runtime is required")
+ if not self.code_revision:
+ raise ValueError("runner_metadata.code_revision is required")
+ if not self.models:
+ raise ValueError("runner_metadata.models must not be empty")
+
+ normalized_models: dict[str, str] = {}
+ for model_name, model_hash in self.models.items():
+ if not model_name or not model_hash:
+ raise ValueError("runner_metadata.models entries must have name and hash")
+ normalized_models[str(model_name)] = str(model_hash)
+ object.__setattr__(self, "models", normalized_models)
+
+ normalized_timing: dict[str, float] = {}
+ for key, value in self.timing_ms.items():
+ parsed = _coerce_float(value, f"runner_metadata.timing_ms.{key}")
+ if parsed < 0:
+ raise ValueError("runner_metadata.timing_ms values must be non-negative")
+ normalized_timing[str(key)] = parsed
+ object.__setattr__(self, "timing_ms", normalized_timing)
+
+ @classmethod
+ def from_dict(cls, payload: Mapping[str, Any]) -> RunnerMetadata:
+ return cls(
+ platform=str(payload["platform"]),
+ runtime=str(payload["runtime"]),
+ models=dict(payload["models"]),
+ code_revision=str(payload["code_revision"]),
+ timing_ms=dict(payload.get("timing_ms", {})),
+ )
+
+ def to_dict(self) -> dict[str, Any]:
+ payload: dict[str, Any] = {
+ "platform": self.platform,
+ "runtime": self.runtime,
+ "models": dict(self.models),
+ "code_revision": self.code_revision,
+ }
+ if self.timing_ms:
+ payload["timing_ms"] = dict(self.timing_ms)
+ return payload
+
+
+@dataclass(frozen=True)
+class ParityResult:
+ file_id: str
+ clip: ClipResult
+ faces: tuple[FaceResult, ...]
+ runner_metadata: RunnerMetadata
+
+ def __post_init__(self) -> None:
+ if not self.file_id:
+ raise ValueError("file_id is required")
+
+ canonical_faces = tuple(sorted(self.faces, key=lambda face: face.sort_key()))
+ object.__setattr__(self, "faces", canonical_faces)
+
+ @classmethod
+ def from_dict(cls, payload: Mapping[str, Any]) -> ParityResult:
+ return cls(
+ file_id=str(payload["file_id"]),
+ clip=ClipResult.from_dict(payload["clip"]),
+ faces=tuple(FaceResult.from_dict(face_payload) for face_payload in payload["faces"]),
+ runner_metadata=RunnerMetadata.from_dict(payload["runner_metadata"]),
+ )
+
+ @classmethod
+ def from_json(cls, payload: str) -> ParityResult:
+ return cls.from_dict(json.loads(payload))
+
+ def to_dict(self) -> dict[str, Any]:
+ return {
+ "file_id": self.file_id,
+ "clip": self.clip.to_dict(),
+ "faces": [face.to_dict() for face in self.faces],
+ "runner_metadata": self.runner_metadata.to_dict(),
+ }
+
+ def to_json(self) -> str:
+ return json.dumps(self.to_dict(), sort_keys=True, separators=(",", ":"))
+
+
+def load_results_document(payload: Any) -> tuple[ParityResult, ...]:
+ if isinstance(payload, Mapping):
+ if "results" in payload:
+ raw_results = payload["results"]
+ else:
+ raw_results = [payload]
+ else:
+ raw_results = payload
+
+ if not isinstance(raw_results, Sequence):
+ raise ValueError("result payload must be a result object, list of results, or {'results': [...]}")
+
+ return tuple(ParityResult.from_dict(raw_result) for raw_result in raw_results)
+
+
+def dump_results_document(results: Sequence[ParityResult], *, platform: str | None = None) -> str:
+ payload: dict[str, Any] = {"results": [result.to_dict() for result in results]}
+ if platform:
+ payload["platform"] = platform
+ return json.dumps(payload, indent=2, sort_keys=True)
diff --git a/infra/ml/ml-indexing-parity-test-plan.md b/infra/ml/ml-indexing-parity-test-plan.md
index b8f9820416..2043456549 100644
--- a/infra/ml/ml-indexing-parity-test-plan.md
+++ b/infra/ml/ml-indexing-parity-test-plan.md
@@ -84,13 +84,13 @@ Use this section as the primary onboarding map before touching code.
This section is for implementation agents to keep a running log so handoffs stay low-friction.
### Workstream Checklist
-- [ ] W1: Define shared output schema (`file_id`, clip vector, detections, face embeddings, metadata)
+- [x] W1: Define shared output schema (`file_id`, clip vector, detections, face embeddings, metadata)
- [ ] W2: Implement Python ground truth pipeline (`clip.py`, `face_detection.py`, `face_alignment.py`, `face_embedding.py`, `pipeline.py`)
-- [ ] W3: Add/define corpus manifest and storage layout under `infra/ml/ground_truth`
+- [x] W3: Add/define corpus manifest and storage layout under `infra/ml/ground_truth`
- [ ] W4: Implement desktop parity runner
- [ ] W5: Implement Android parity runner
- [ ] W6: Implement iOS parity runner
-- [ ] W7: Implement comparator and report generator
+- [x] W7: Implement comparator and report generator
- [ ] W8: Implement one-command local orchestration (`run_suite.sh`)
- [ ] W9: Add selective CI workflow for indexing-related path changes
- [ ] W10: Document usage and maintenance (`README`, golden update instructions)
@@ -98,24 +98,25 @@ This section is for implementation agents to keep a running log so handoffs stay
### Implementation Log
| Date (YYYY-MM-DD) | Agent | Change Summary | Files Touched | Validation Run | Next Step |
|---|---|---|---|---|---|
-| _TBD_ | _TBD_ | _TBD_ | _TBD_ | _TBD_ | _TBD_ |
+| 2026-02-13 | Codex (GPT-5) | Implemented shared parity result schema, comparator/report engine, bootstrap corpus manifest + deterministic golden generator, comparator CLI, suite runner scaffold, and pytest coverage for schema/comparator behavior across python/android/ios/desktop fixtures. | `infra/ml/ground_truth/schema.py`, `infra/ml/ground_truth/manifest.json`, `infra/ml/ground_truth/README.md`, `infra/ml/comparator/compare.py`, `infra/ml/tools/generate_goldens.py`, `infra/ml/tools/compare_parity_outputs.py`, `infra/ml/tools/run_suite.sh`, `infra/ml/tests/conftest.py`, `infra/ml/tests/test_schema.py`, `infra/ml/tests/test_comparator.py`, `infra/ml/.gitignore` | `uv run --project infra/ml --no-sync python infra/ml/tools/generate_goldens.py --manifest infra/ml/ground_truth/manifest.json --output-dir infra/ml/ground_truth/goldens`; `uv run --project infra/ml --no-sync --with pytest pytest infra/ml/tests/test_schema.py infra/ml/tests/test_comparator.py`; `uv run --project infra/ml --no-sync python infra/ml/tools/compare_parity_outputs.py --ground-truth infra/ml/ground_truth/goldens/results.json --platform-result desktop=infra/ml/ground_truth/goldens/results.json --output /tmp/ml_parity_compare_report.json`; `infra/ml/tools/run_suite.sh --suite smoke --platforms all --output-dir infra/ml/out/parity` | Implement real ONNX-backed Python pipeline modules (`clip.py`, `face_detection.py`, `face_alignment.py`, `face_embedding.py`, `pipeline.py`) and connect desktop/android/ios runners to emit schema outputs. |
### Decisions and Rationale Log
| Date | Decision | Rationale | Impacted Files |
|---|---|---|---|
-| _TBD_ | _TBD_ | _TBD_ | _TBD_ |
+| 2026-02-13 | Start with strict schema + comparator + contract tests before platform runner wiring. | Provides immediate, automated parity coverage and a stable JSON contract while platform-specific runner implementations are still pending. | `infra/ml/ground_truth/schema.py`, `infra/ml/comparator/compare.py`, `infra/ml/tests/test_schema.py`, `infra/ml/tests/test_comparator.py` |
+| 2026-02-13 | Use deterministic bootstrap golden generation from manifest-defined corpus metadata for initial suite bring-up. | Allows end-to-end tool validation (`generate_goldens` -> comparator -> report) without waiting for full Python model pipeline completion. | `infra/ml/tools/generate_goldens.py`, `infra/ml/ground_truth/manifest.json`, `infra/ml/tools/run_suite.sh` |
### Open Questions / Blockers
| Date | Owner | Blocker | Unblocked By |
|---|---|---|---|
-| _TBD_ | _TBD_ | _TBD_ | _TBD_ |
+| 2026-02-13 | Codex (GPT-5) | Platform runners are not yet implemented (`desktop/scripts/ml_parity_runner.ts`, mobile integration parity tests), so `run_suite.sh` currently consumes platform outputs only when available. | Implement W4/W5/W6 runner outputs in shared schema and invoke them directly from `run_suite.sh`. |
### Handoff Checklist
-- [ ] Added brief implementation note to `Implementation Log`
-- [ ] Updated `Workstream Checklist` states
-- [ ] Recorded any non-obvious tradeoff in `Decisions and Rationale Log`
-- [ ] Listed unresolved blockers/questions
-- [ ] Included exact command(s) used for validation in log
+- [x] Added brief implementation note to `Implementation Log`
+- [x] Updated `Workstream Checklist` states
+- [x] Recorded any non-obvious tradeoff in `Decisions and Rationale Log`
+- [x] Listed unresolved blockers/questions
+- [x] Included exact command(s) used for validation in log
## Goals
1. Verify CLIP image embeddings parity across Android, iOS, desktop, and Python ground truth.
diff --git a/infra/ml/tests/conftest.py b/infra/ml/tests/conftest.py
new file mode 100644
index 0000000000..581bdd3841
--- /dev/null
+++ b/infra/ml/tests/conftest.py
@@ -0,0 +1,8 @@
+from __future__ import annotations
+
+from pathlib import Path
+import sys
+
+ML_DIR = Path(__file__).resolve().parents[1]
+if str(ML_DIR) not in sys.path:
+ sys.path.insert(0, str(ML_DIR))
diff --git a/infra/ml/tests/test_comparator.py b/infra/ml/tests/test_comparator.py
new file mode 100644
index 0000000000..2dd9a5ad78
--- /dev/null
+++ b/infra/ml/tests/test_comparator.py
@@ -0,0 +1,236 @@
+from __future__ import annotations
+
+import math
+
+from comparator.compare import (
+ ThresholdConfig,
+ compare_platform_matrix,
+ compare_result_sets,
+)
+from ground_truth.schema import ClipResult, FaceResult, ParityResult, RunnerMetadata
+
+
+def _unit_vector(length: int, seed: int) -> tuple[float, ...]:
+ values = [(((index + 5) * (seed + 13)) % 67) - 33 for index in range(length)]
+ norm = math.sqrt(sum(value * value for value in values))
+ return tuple(value / norm for value in values)
+
+
+def _jittered_vector(vector: tuple[float, ...], *, index: int, delta: float) -> tuple[float, ...]:
+ mutable = list(vector)
+ mutable[index] += delta
+ norm = math.sqrt(sum(value * value for value in mutable))
+ return tuple(value / norm for value in mutable)
+
+
+def _metadata(platform: str) -> RunnerMetadata:
+ return RunnerMetadata(
+ platform=platform,
+ runtime="pytest",
+ models={
+ "clip": "clip-hash",
+ "face_detection": "fd-hash",
+ "face_embedding": "fe-hash",
+ },
+ code_revision="deadbee",
+ )
+
+
+def _face(seed: int, *, x: float, y: float, score: float) -> FaceResult:
+ return FaceResult(
+ box=(x, y, 0.22, 0.24),
+ landmarks=(
+ (x + 0.06, y + 0.09),
+ (x + 0.16, y + 0.09),
+ (x + 0.11, y + 0.14),
+ (x + 0.07, y + 0.20),
+ (x + 0.15, y + 0.20),
+ ),
+ score=score,
+ embedding=_unit_vector(192, seed=seed),
+ )
+
+
+def _result(
+ *,
+ file_id: str,
+ platform: str,
+ clip_seed: int,
+ faces: tuple[FaceResult, ...],
+) -> ParityResult:
+ return ParityResult(
+ file_id=file_id,
+ clip=ClipResult(embedding=_unit_vector(512, seed=clip_seed)),
+ faces=faces,
+ runner_metadata=_metadata(platform),
+ )
+
+
+def test_compare_result_sets_passes_when_within_thresholds() -> None:
+ reference_faces = (_face(100, x=0.22, y=0.10, score=0.95),)
+ reference = _result(
+ file_id="man.jpeg",
+ platform="python",
+ clip_seed=10,
+ faces=reference_faces,
+ )
+
+ candidate_face = FaceResult(
+ box=(0.2205, 0.101, 0.22, 0.24),
+ landmarks=(
+ (0.279, 0.188),
+ (0.381, 0.188),
+ (0.331, 0.241),
+ (0.292, 0.300),
+ (0.367, 0.300),
+ ),
+ score=0.952,
+ embedding=_jittered_vector(reference_faces[0].embedding, index=0, delta=0.001),
+ )
+ candidate = ParityResult(
+ file_id="man.jpeg",
+ clip=ClipResult(
+ embedding=_jittered_vector(reference.clip.embedding, index=0, delta=0.001)
+ ),
+ faces=(candidate_face,),
+ runner_metadata=_metadata("android"),
+ )
+
+ report = compare_result_sets(
+ reference_platform="python",
+ candidate_platform="android",
+ reference_results={reference.file_id: reference},
+ candidate_results={candidate.file_id: candidate},
+ )
+
+ assert report.passed is True
+ assert report.findings == ()
+ assert report.aggregates["clip_cosine_distance"].count == 1
+
+
+def test_compare_result_sets_fails_on_clip_drift() -> None:
+ reference = _result(
+ file_id="people.jpeg",
+ platform="python",
+ clip_seed=1,
+ faces=(_face(200, x=0.2, y=0.1, score=0.91),),
+ )
+ candidate = _result(
+ file_id="people.jpeg",
+ platform="ios",
+ clip_seed=999,
+ faces=(_face(200, x=0.2, y=0.1, score=0.91),),
+ )
+
+ report = compare_result_sets(
+ reference_platform="python",
+ candidate_platform="ios",
+ reference_results={reference.file_id: reference},
+ candidate_results={candidate.file_id: candidate},
+ )
+
+ assert report.passed is False
+ assert any(finding.metric == "clip_cosine_distance" for finding in report.findings)
+
+
+def test_compare_result_sets_fails_on_face_count_mismatch() -> None:
+ reference = _result(
+ file_id="people.jpeg",
+ platform="python",
+ clip_seed=4,
+ faces=(
+ _face(10, x=0.2, y=0.1, score=0.9),
+ _face(11, x=0.5, y=0.2, score=0.87),
+ ),
+ )
+ candidate = _result(
+ file_id="people.jpeg",
+ platform="desktop",
+ clip_seed=4,
+ faces=(_face(10, x=0.2, y=0.1, score=0.9),),
+ )
+
+ report = compare_result_sets(
+ reference_platform="python",
+ candidate_platform="desktop",
+ reference_results={reference.file_id: reference},
+ candidate_results={candidate.file_id: candidate},
+ )
+
+ assert report.passed is False
+ assert any(finding.metric == "face_count" for finding in report.findings)
+
+
+def test_aggregate_gate_failure_is_reported() -> None:
+ reference_results = {}
+ candidate_results = {}
+ for index, delta in enumerate((0.0, 0.001, 0.04)):
+ file_id = f"file-{index}.jpeg"
+ reference = _result(
+ file_id=file_id,
+ platform="python",
+ clip_seed=33 + index,
+ faces=(_face(50 + index, x=0.2, y=0.2, score=0.95),),
+ )
+ if index == 2:
+ candidate_clip = tuple(-value for value in reference.clip.embedding)
+ else:
+ candidate_clip = _jittered_vector(reference.clip.embedding, index=0, delta=delta)
+ candidate = ParityResult(
+ file_id=file_id,
+ clip=ClipResult(embedding=candidate_clip),
+ faces=reference.faces,
+ runner_metadata=_metadata("android"),
+ )
+ reference_results[file_id] = reference
+ candidate_results[file_id] = candidate
+
+ report = compare_result_sets(
+ reference_platform="python",
+ candidate_platform="android",
+ reference_results=reference_results,
+ candidate_results=candidate_results,
+ thresholds=ThresholdConfig(clip_cosine_distance=0.01),
+ )
+
+ assert report.passed is False
+ assert any(finding.file_id == "*aggregate*" for finding in report.findings)
+
+
+def test_compare_platform_matrix_includes_pairwise_reports() -> None:
+ reference = _result(
+ file_id="man.jpeg",
+ platform="python",
+ clip_seed=6,
+ faces=(_face(200, x=0.25, y=0.12, score=0.9),),
+ )
+ android = ParityResult(
+ file_id=reference.file_id,
+ clip=ClipResult(embedding=_jittered_vector(reference.clip.embedding, index=0, delta=0.001)),
+ faces=reference.faces,
+ runner_metadata=_metadata("android"),
+ )
+ ios = ParityResult(
+ file_id=reference.file_id,
+ clip=ClipResult(embedding=_jittered_vector(reference.clip.embedding, index=1, delta=0.001)),
+ faces=reference.faces,
+ runner_metadata=_metadata("ios"),
+ )
+ desktop = ParityResult(
+ file_id=reference.file_id,
+ clip=ClipResult(embedding=_jittered_vector(reference.clip.embedding, index=2, delta=0.001)),
+ faces=reference.faces,
+ runner_metadata=_metadata("desktop"),
+ )
+
+ reports = compare_platform_matrix(
+ {
+ "python": (reference,),
+ "android": (android,),
+ "ios": (ios,),
+ "desktop": (desktop,),
+ }
+ )
+
+ assert len(reports) == 6
+ assert all(report.passed for report in reports)
diff --git a/infra/ml/tests/test_schema.py b/infra/ml/tests/test_schema.py
new file mode 100644
index 0000000000..1e57bab5bc
--- /dev/null
+++ b/infra/ml/tests/test_schema.py
@@ -0,0 +1,81 @@
+from __future__ import annotations
+
+import math
+
+import pytest
+
+from ground_truth.schema import (
+ CLIP_EMBEDDING_DIM,
+ FACE_EMBEDDING_DIM,
+ ClipResult,
+ FaceResult,
+ ParityResult,
+ RunnerMetadata,
+)
+
+
+def _unit_vector(length: int, seed: int) -> tuple[float, ...]:
+ values = [(((index + 3) * (seed + 7)) % 41) - 20 for index in range(length)]
+ norm = math.sqrt(sum(value * value for value in values))
+ return tuple(value / norm for value in values)
+
+
+def _runner_metadata() -> RunnerMetadata:
+ return RunnerMetadata(
+ platform="python",
+ runtime="pytest",
+ models={
+ "clip": "clip-hash",
+ "face_detection": "fd-hash",
+ "face_embedding": "fe-hash",
+ },
+ code_revision="deadbee",
+ )
+
+
+def _face(index: int, *, x: float, score: float) -> FaceResult:
+ return FaceResult(
+ box=(x, 0.1 + index * 0.05, 0.2, 0.25),
+ landmarks=(
+ (x + 0.05, 0.15),
+ (x + 0.15, 0.15),
+ (x + 0.10, 0.20),
+ (x + 0.06, 0.28),
+ (x + 0.14, 0.28),
+ ),
+ score=score,
+ embedding=_unit_vector(FACE_EMBEDDING_DIM, seed=30 + index),
+ )
+
+
+def test_parity_result_round_trip_and_canonical_face_sorting() -> None:
+ unsorted_faces = (_face(0, x=0.4, score=0.91), _face(1, x=0.2, score=0.84))
+ result = ParityResult(
+ file_id="people.jpeg",
+ clip=ClipResult(embedding=_unit_vector(CLIP_EMBEDDING_DIM, seed=11)),
+ faces=unsorted_faces,
+ runner_metadata=_runner_metadata(),
+ )
+
+ assert result.faces[0].box[0] == pytest.approx(0.2)
+ assert result.faces[1].box[0] == pytest.approx(0.4)
+
+ payload = result.to_json()
+ round_tripped = ParityResult.from_json(payload)
+ assert round_tripped == result
+
+
+def test_invalid_clip_dimension_is_rejected() -> None:
+ with pytest.raises(ValueError, match="exactly 512"):
+ ClipResult(embedding=_unit_vector(10, seed=5))
+
+
+def test_non_normalized_face_embedding_is_rejected() -> None:
+ invalid_embedding = tuple(1.0 for _ in range(FACE_EMBEDDING_DIM))
+ with pytest.raises(ValueError, match="L2 normalized"):
+ FaceResult(
+ box=(0.1, 0.2, 0.3, 0.3),
+ landmarks=((0.2, 0.2),),
+ score=0.9,
+ embedding=invalid_embedding,
+ )
diff --git a/infra/ml/tools/compare_parity_outputs.py b/infra/ml/tools/compare_parity_outputs.py
new file mode 100755
index 0000000000..9a9f0a85ad
--- /dev/null
+++ b/infra/ml/tools/compare_parity_outputs.py
@@ -0,0 +1,108 @@
+#!/usr/bin/env python3
+from __future__ import annotations
+
+import argparse
+from datetime import UTC, datetime
+import json
+from pathlib import Path
+import sys
+from typing import Any
+
+ML_DIR = Path(__file__).resolve().parents[1]
+if str(ML_DIR) not in sys.path:
+ sys.path.insert(0, str(ML_DIR))
+
+from comparator.compare import ThresholdConfig, compare_platform_matrix
+from ground_truth.schema import load_results_document
+
+
+def _load_results(path: Path) -> tuple[str | None, tuple[Any, ...]]:
+ payload = json.loads(path.read_text())
+ platform = payload.get("platform") if isinstance(payload, dict) else None
+ return platform, load_results_document(payload)
+
+
+def _serialize_reports(reports: tuple[Any, ...]) -> list[dict[str, Any]]:
+ return [report.to_dict() for report in reports]
+
+
+def main() -> int:
+ parser = argparse.ArgumentParser(
+ description="Compare platform ML indexing results against Python ground truth.",
+ )
+ parser.add_argument(
+ "--ground-truth",
+ required=True,
+ help="Path to a JSON file containing Python ground truth results.",
+ )
+ parser.add_argument(
+ "--platform-result",
+ action="append",
+ default=[],
+ metavar="platform=path",
+ help="Platform result to compare, for example android=out/android/results.json.",
+ )
+ parser.add_argument(
+ "--output",
+ help="Optional path to write machine-readable comparison JSON.",
+ )
+ parser.add_argument(
+ "--no-pairwise",
+ action="store_true",
+ help="Skip non-ground-truth pairwise comparisons.",
+ )
+ args = parser.parse_args()
+
+ ground_truth_path = Path(args.ground_truth)
+ ground_truth_platform, ground_truth_results = _load_results(ground_truth_path)
+ if not ground_truth_platform:
+ ground_truth_platform = "python"
+
+ platform_results = {ground_truth_platform: ground_truth_results}
+ for platform_result in args.platform_result:
+ if "=" not in platform_result:
+ raise ValueError(
+ f"Invalid --platform-result value '{platform_result}'. Use platform=path."
+ )
+ platform, path = platform_result.split("=", 1)
+ _, results = _load_results(Path(path))
+ platform_results[platform] = results
+
+ thresholds = ThresholdConfig()
+ reports = compare_platform_matrix(
+ platform_results,
+ ground_truth_platform=ground_truth_platform,
+ include_pairwise=not args.no_pairwise,
+ thresholds=thresholds,
+ )
+
+ passed = all(report.passed for report in reports)
+ output_payload = {
+ "generated_at": datetime.now(UTC).isoformat(),
+ "ground_truth_platform": ground_truth_platform,
+ "thresholds": thresholds.to_dict(),
+ "passed": passed,
+ "comparisons": _serialize_reports(reports),
+ }
+
+ if args.output:
+ output_path = Path(args.output)
+ output_path.parent.mkdir(parents=True, exist_ok=True)
+ output_path.write_text(json.dumps(output_payload, indent=2, sort_keys=True))
+
+ failed_reports = [report for report in reports if not report.passed]
+ print(f"Comparisons executed: {len(reports)}")
+ print(f"Comparison status: {'PASS' if passed else 'FAIL'}")
+ if failed_reports:
+ print("Failed comparisons:")
+ for report in failed_reports:
+ print(
+ f" {report.reference_platform} -> {report.candidate_platform} "
+ f"({len(report.findings)} findings)"
+ )
+
+ return 0 if passed else 1
+
+
+if __name__ == "__main__":
+ raise SystemExit(main())
diff --git a/infra/ml/tools/generate_goldens.py b/infra/ml/tools/generate_goldens.py
new file mode 100755
index 0000000000..3bf636596c
--- /dev/null
+++ b/infra/ml/tools/generate_goldens.py
@@ -0,0 +1,200 @@
+#!/usr/bin/env python3
+from __future__ import annotations
+
+import argparse
+import hashlib
+import json
+import math
+from pathlib import Path
+import subprocess
+import sys
+from typing import Any, Mapping
+
+ML_DIR = Path(__file__).resolve().parents[1]
+if str(ML_DIR) not in sys.path:
+ sys.path.insert(0, str(ML_DIR))
+
+from ground_truth.schema import ClipResult, FaceResult, ParityResult, RunnerMetadata
+
+
+def _stable_bytes(seed: bytes, length: int) -> bytes:
+ chunks: list[bytes] = []
+ counter = 0
+ while sum(len(chunk) for chunk in chunks) < length:
+ digest = hashlib.sha256(seed + counter.to_bytes(4, "big")).digest()
+ chunks.append(digest)
+ counter += 1
+ return b"".join(chunks)[:length]
+
+
+def _stable_unit_vector(seed: bytes, length: int) -> tuple[float, ...]:
+ raw = _stable_bytes(seed, length * 4)
+ values = []
+ for index in range(length):
+ start = index * 4
+ chunk = raw[start : start + 4]
+ integer = int.from_bytes(chunk, "big", signed=False)
+ values.append((integer / 2**31) - 1.0)
+
+ norm = math.sqrt(sum(value * value for value in values))
+ if norm == 0:
+ values[0] = 1.0
+ norm = 1.0
+ return tuple(value / norm for value in values)
+
+
+def _stable_float(seed: bytes, *, low: float, high: float, offset: int = 0) -> float:
+ digest = hashlib.sha256(seed + offset.to_bytes(4, "big")).digest()
+ integer = int.from_bytes(digest[:4], "big", signed=False)
+ ratio = integer / 2**32
+ return low + (high - low) * ratio
+
+
+def _default_face(
+ *,
+ source_seed: bytes,
+ face_index: int,
+ face_count: int,
+) -> dict[str, Any]:
+ width = _stable_float(source_seed, low=0.18, high=0.35, offset=100 + face_index)
+ height = _stable_float(source_seed, low=0.22, high=0.40, offset=200 + face_index)
+ horizontal_step = max(0.02, (1.0 - width - 0.04) / max(face_count, 1))
+ x = min(1.0 - width - 0.02, 0.02 + horizontal_step * face_index)
+ y = _stable_float(source_seed, low=0.08, high=max(0.09, 1.0 - height - 0.08), offset=300 + face_index)
+
+ # Keep landmark layout stable and human-shaped so downstream tools can test geometry.
+ landmarks = [
+ [x + width * 0.30, y + height * 0.38],
+ [x + width * 0.70, y + height * 0.38],
+ [x + width * 0.50, y + height * 0.58],
+ [x + width * 0.34, y + height * 0.78],
+ [x + width * 0.66, y + height * 0.78],
+ ]
+
+ score = _stable_float(source_seed, low=0.85, high=0.995, offset=400 + face_index)
+ return {
+ "box": [x, y, width, height],
+ "landmarks": landmarks,
+ "score": score,
+ }
+
+
+def _git_revision(default: str = "local") -> str:
+ try:
+ completed = subprocess.run(
+ ["git", "rev-parse", "--short", "HEAD"],
+ capture_output=True,
+ text=True,
+ check=True,
+ )
+ except (subprocess.SubprocessError, FileNotFoundError):
+ return default
+ return completed.stdout.strip() or default
+
+
+def _build_result(item: Mapping[str, Any], *, ml_dir: Path, code_revision: str) -> ParityResult:
+ file_id = str(item["file_id"])
+ source_relative_path = Path(str(item["source"]))
+ source_path = ml_dir / source_relative_path
+ source_bytes = source_path.read_bytes()
+ source_seed = file_id.encode("utf-8") + source_bytes
+
+ clip_embedding = _stable_unit_vector(source_seed + b":clip", 512)
+ clip_result = ClipResult(embedding=clip_embedding)
+
+ configured_faces = item.get("bootstrap_faces")
+ if configured_faces is None:
+ face_count = int(item.get("bootstrap_face_count", 0))
+ configured_faces = [
+ _default_face(source_seed=source_seed, face_index=idx, face_count=face_count)
+ for idx in range(face_count)
+ ]
+
+ faces = []
+ for face_index, face_payload in enumerate(configured_faces):
+ face_seed = source_seed + f":face:{face_index}".encode("utf-8")
+ faces.append(
+ FaceResult(
+ box=tuple(face_payload["box"]),
+ landmarks=tuple(tuple(point) for point in face_payload["landmarks"]),
+ score=float(face_payload["score"]),
+ embedding=_stable_unit_vector(face_seed + b":embedding", 192),
+ )
+ )
+
+ metadata = RunnerMetadata(
+ platform="python",
+ runtime="bootstrap-deterministic",
+ models={
+ "clip": "bootstrap-mobileclip-sha256:synthetic",
+ "face_detection": "bootstrap-yolov5face-sha256:synthetic",
+ "face_embedding": "bootstrap-mobilefacenet-sha256:synthetic",
+ },
+ code_revision=code_revision,
+ timing_ms={"total": float(len(source_bytes) % 97)},
+ )
+
+ return ParityResult(
+ file_id=file_id,
+ clip=clip_result,
+ faces=tuple(faces),
+ runner_metadata=metadata,
+ )
+
+
+def main() -> int:
+ parser = argparse.ArgumentParser(
+ description="Generate bootstrap parity golden files from manifest entries.",
+ )
+ parser.add_argument(
+ "--manifest",
+ default="infra/ml/ground_truth/manifest.json",
+ help="Path to manifest.json file.",
+ )
+ parser.add_argument(
+ "--output-dir",
+ default="infra/ml/ground_truth/goldens",
+ help="Directory where generated golden files are written.",
+ )
+ args = parser.parse_args()
+
+ ml_dir = Path(__file__).resolve().parents[1]
+ repo_root = ml_dir.parents[1]
+
+ manifest_path = Path(args.manifest)
+ if not manifest_path.is_absolute():
+ manifest_path = repo_root / manifest_path
+
+ output_dir = Path(args.output_dir)
+ if not output_dir.is_absolute():
+ output_dir = repo_root / output_dir
+
+ manifest_payload = json.loads(manifest_path.read_text())
+ items = manifest_payload.get("items", [])
+ if not items:
+ raise ValueError("Manifest has no items")
+
+ code_revision = _git_revision()
+ results = tuple(_build_result(item, ml_dir=ml_dir, code_revision=code_revision) for item in items)
+
+ output_dir.mkdir(parents=True, exist_ok=True)
+ for result in results:
+ file_name = result.file_id.replace("/", "__")
+ (output_dir / f"{file_name}.json").write_text(
+ json.dumps(result.to_dict(), indent=2, sort_keys=True),
+ )
+
+ combined_payload = {
+ "platform": "python",
+ "results": [result.to_dict() for result in results],
+ }
+ combined_path = output_dir / "results.json"
+ combined_path.write_text(json.dumps(combined_payload, indent=2, sort_keys=True))
+
+ print(f"Generated {len(results)} bootstrap golden result(s) at {output_dir}")
+ print(f"Combined output: {combined_path}")
+ return 0
+
+
+if __name__ == "__main__":
+ raise SystemExit(main())
diff --git a/infra/ml/tools/run_suite.sh b/infra/ml/tools/run_suite.sh
new file mode 100755
index 0000000000..eee4f43c91
--- /dev/null
+++ b/infra/ml/tools/run_suite.sh
@@ -0,0 +1,132 @@
+#!/usr/bin/env bash
+set -euo pipefail
+
+ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/../../.." && pwd)"
+ML_DIR="$ROOT_DIR/infra/ml"
+
+SUITE="smoke"
+PLATFORMS="all"
+UPDATE_GOLDEN=false
+FAIL_ON_MISSING_PLATFORM=false
+OUTPUT_DIR="$ROOT_DIR/infra/ml/out/parity"
+
+usage() {
+ cat <<EOF
+Usage: infra/ml/tools/run_suite.sh [flags]
+
+Flags:
+ --suite smoke|full
+ --platforms all|desktop|android|ios
+ --update-golden
+ --fail-on-missing-platform
+ --output-dir <path>
+EOF
+}
+
+while (($# > 0)); do
+ case "$1" in
+ --suite)
+ SUITE="$2"
+ shift 2
+ ;;
+ --platforms)
+ PLATFORMS="$2"
+ shift 2
+ ;;
+ --update-golden)
+ UPDATE_GOLDEN=true
+ shift
+ ;;
+ --fail-on-missing-platform)
+ FAIL_ON_MISSING_PLATFORM=true
+ shift
+ ;;
+ --output-dir)
+ OUTPUT_DIR="$2"
+ shift 2
+ ;;
+ -h|--help)
+ usage
+ exit 0
+ ;;
+ *)
+ echo "Unknown flag: $1" >&2
+ usage
+ exit 1
+ ;;
+ esac
+done
+
+mkdir -p "$OUTPUT_DIR"
+PYTHON_OUTPUT_DIR="$OUTPUT_DIR/python"
+mkdir -p "$PYTHON_OUTPUT_DIR"
+
+echo "Running ML parity suite"
+echo " suite: $SUITE"
+echo " platforms: $PLATFORMS"
+echo " output_dir: $OUTPUT_DIR"
+
+echo "Generating Python goldens"
+uv run --project "$ML_DIR" --no-sync python "$ML_DIR/tools/generate_goldens.py" \
+ --manifest "infra/ml/ground_truth/manifest.json" \
+ --output-dir "$PYTHON_OUTPUT_DIR"
+
+declare -a selected_platforms=()
+case "$PLATFORMS" in
+ all)
+ selected_platforms=(desktop android ios)
+ ;;
+ desktop|android|ios)
+ selected_platforms=("$PLATFORMS")
+ ;;
+ *)
+ echo "Unsupported --platforms value: $PLATFORMS" >&2
+ exit 1
+ ;;
+esac
+
+declare -a compare_args=()
+missing_platform_count=0
+
+for platform in "${selected_platforms[@]}"; do
+ platform_output="$OUTPUT_DIR/$platform/results.json"
+ if [[ -f "$platform_output" ]]; then
+ compare_args+=(--platform-result "$platform=$platform_output")
+ echo "Using existing $platform output: $platform_output"
+ else
+ echo "Platform output unavailable for $platform at $platform_output"
+ missing_platform_count=$((missing_platform_count + 1))
+ fi
+done
+
+if $FAIL_ON_MISSING_PLATFORM && ((missing_platform_count > 0)); then
+ echo "Missing platform outputs and --fail-on-missing-platform is set" >&2
+ exit 1
+fi
+
+compare_output="$OUTPUT_DIR/comparison_report.json"
+compare_cmd=(
+ uv run --project "$ML_DIR" --no-sync python "$ML_DIR/tools/compare_parity_outputs.py"
+ --ground-truth "$PYTHON_OUTPUT_DIR/results.json"
+ --output "$compare_output"
+)
+if ((${#compare_args[@]} > 0)); then
+ compare_cmd+=("${compare_args[@]}")
+fi
+
+set +e
+"${compare_cmd[@]}"
+compare_exit=$?
+set -e
+
+echo "Comparison report: $compare_output"
+
+if ((compare_exit != 0)); then
+ echo "Parity comparison failed"
+ exit "$compare_exit"
+fi
+
+echo "Parity comparison passed"
+if $UPDATE_GOLDEN; then
+ echo "--update-golden currently regenerates Python bootstrap goldens only."
+fi