Print scores

This commit is contained in:
Manav Rathi
2024-08-29 19:31:24 +05:30
parent 3d95212023
commit 29b5830e19
2 changed files with 6 additions and 4 deletions

View File

@@ -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">
{`cos ${cosineSimilarity.toFixed(2)}`}
{`s ${face.score.toFixed(2)}`}
</Typography>
<Typography variant="small" color="text.muted">
{`c ${cosineSimilarity.toFixed(2)}`}
</Typography>
</Stack>
</FaceChip>

View File

@@ -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)