Skip to content

armgit / ente

Public Imported from GitHub
0

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

UI 3

Manav Rathi5395ca5caf21
diff --git a/web/apps/photos/src/pages/cluster-debug.tsx b/web/apps/photos/src/pages/cluster-debug.tsx
index 75722d4a87..e5f8148fbc 100644
--- a/web/apps/photos/src/pages/cluster-debug.tsx
+++ b/web/apps/photos/src/pages/cluster-debug.tsx
@@ -74,7 +74,7 @@ export default function ClusterDebug() {
earlyExitThreshold: 0.9,
batchSize: 10000,
offsetIncrement: 7500,
- filterBadFaces: true,
+ badFaceHeuristics: true,
},
onSubmit: (values) =>
cluster(
@@ -86,7 +86,7 @@ export default function ClusterDebug() {
earlyExitThreshold: toFloat(values.earlyExitThreshold),
batchSize: toFloat(values.batchSize),
offsetIncrement: toFloat(values.offsetIncrement),
- filterBadFaces: values.filterBadFaces,
+ badFaceHeuristics: values.badFaceHeuristics,
},
(progress: ClusteringProgress) =>
onProgressRef.current?.(progress),
@@ -235,12 +235,17 @@ const MemoizedForm = memo(
<FormControlLabel
control={
<Checkbox
- name={"filterBadFaces"}
- checked={values.filterBadFaces}
+ name={"badFaceHeuristics"}
+ checked={values.badFaceHeuristics}
+ size="small"
onChange={handleChange}
/>
}
- label="filterBadFaces"
+ label={
+ <Typography color="text.secondary">
+ Bad face heuristics
+ </Typography>
+ }
/>
<Button
color="secondary"
diff --git a/web/packages/new/photos/services/ml/cluster.ts b/web/packages/new/photos/services/ml/cluster.ts
index cf635c75b5..18a9b52151 100644
--- a/web/packages/new/photos/services/ml/cluster.ts
+++ b/web/packages/new/photos/services/ml/cluster.ts
@@ -121,7 +121,7 @@ export interface ClusteringOpts {
earlyExitThreshold: number;
batchSize: number;
offsetIncrement: number;
- filterBadFaces: boolean;
+ badFaceHeuristics: boolean;
}
export interface ClusteringProgress {