This commit is contained in:
Manav Rathi
2024-09-03 17:36:21 +05:30
parent 96ee1e3ed2
commit 0329c40265
2 changed files with 3 additions and 3 deletions

View File

@@ -11,7 +11,7 @@ import {
type FaceF32,
type OnClusteringProgress,
} from "@/new/photos/services/ml/cluster";
import { faceDirection, type Face } from "@/new/photos/services/ml/face";
import { faceDirection } from "@/new/photos/services/ml/face";
import type { EnteFile } from "@/new/photos/types/file";
import {
FlexWrapper,
@@ -68,7 +68,7 @@ export default function ClusterDebug() {
minBlur: 10,
minScore: 0.8,
minClusterSize: 2,
joinThreshold: 0.7,
joinThreshold: 0.6,
earlyExitThreshold: 0.9,
batchSize: 10000,
offsetIncrement: 7500,

View File

@@ -250,7 +250,7 @@ export const clusterFaces = (
for (let offset = 0; offset < faces.length; offset += offsetIncrement) {
const it = Date.now();
const batch = faces.slice(offset, batchSize);
const batch = faces.slice(offset, offset + batchSize);
log.info(`[batch] processing ${offset} to ${offset + batch.length}`);
const oldState = {