This commit is contained in:
Manav Rathi 2024-05-18 07:07:48 +05:30
parent a18566ff86
commit 85562806a3
No known key found for this signature in database
2 changed files with 0 additions and 16 deletions
web/apps/photos/src/services/face

View file

@ -43,10 +43,6 @@ const runFaceClustering = async (
syncContext.mlLibraryData.faceClusteringResults = await clusterFaces(
allFaces.map((f) => Array.from(f.embedding)),
);
syncContext.mlLibraryData.faceClusteringMethod = {
value: "Hdbscan",
version: 1,
};
log.info(
"[MLService] Got face clustering results: ",
JSON.stringify(syncContext.mlLibraryData.faceClusteringResults),

View file

@ -33,22 +33,11 @@ export interface NearestCluster {
export declare type Landmark = Point;
export declare type ImageType = "Original" | "Preview";
export declare type BlurDetectionMethod = "Laplacian";
export declare type ClusteringMethod = "Hdbscan" | "Dbscan";
export class AlignedBox {
box: Box;
rotation: number;
}
export interface Versioned<T> {
value: T;
version: number;
}
export interface FaceDetection {
// box and landmarks is relative to image dimentions stored at mlFileData
box: Box;
@ -139,7 +128,6 @@ export interface MLSyncFileContext {
}
export interface MLLibraryData {
faceClusteringMethod?: Versioned<ClusteringMethod>;
faceClusteringResults?: ClusterFacesResult;
faceClustersWithNoise?: FacesClustersWithNoise;
}