Skip to content

armgit / ente

Public Imported from GitHub
0

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

Print scores

Manav Rathi29b5830e19a8
diff --git a/web/apps/photos/src/pages/cluster-debug.tsx b/web/apps/photos/src/pages/cluster-debug.tsx
index 23930f1f03..62d2e05df4 100644
--- a/web/apps/photos/src/pages/cluster-debug.tsx
+++ b/web/apps/photos/src/pages/cluster-debug.tsx
@@ -255,11 +255,13 @@ const FaceItem: React.FC<FaceItemProps> = ({ faceWF, clusterIDForFaceID }) => {
)}
<Stack direction="row" justifyContent="space-between">
<Typography variant="small" color="text.muted">
- {`${face.blur.toFixed(0)} blr`}
+ {`b ${face.blur.toFixed(0)} b`}
+ </Typography>
+ <Typography variant="small" color="text.muted">
+ {`s ${face.score.toFixed(2)}`}
</Typography>
-
<Typography variant="small" color="text.muted">
- {`cos ${cosineSimilarity.toFixed(2)}`}
+ {`c ${cosineSimilarity.toFixed(2)}`}
</Typography>
</Stack>
</FaceChip>
diff --git a/web/packages/new/photos/services/ml/cluster-new.ts b/web/packages/new/photos/services/ml/cluster-new.ts
index e2bf78eb35..e2149db180 100644
--- a/web/packages/new/photos/services/ml/cluster-new.ts
+++ b/web/packages/new/photos/services/ml/cluster-new.ts
@@ -355,7 +355,7 @@ export const clusterFacesHdb = async (faceIndexes: FaceIndex[]) => {
// TODO-Cluster ad-hoc filtering and slicing
const faces0 = [...enumerateFaces(faceIndexes)]
.filter((f) => f.blur > 50)
- .slice(0, 1000);
+ .slice(0, 6000);
// TODO-Cluster testing code, can be removed once done
const faces = Array(1)
.fill(0)