Prune
This commit is contained in:
parent
a18566ff86
commit
85562806a3
2 changed files with 0 additions and 16 deletions
|
@ -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),
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue