Skip to content

armgit / ente

Public Imported from GitHub
0

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

Remove unused types

Manav Rathi8b46606a2eb4
diff --git a/web/apps/photos/src/services/ml/types.ts b/web/apps/photos/src/services/ml/types.ts
index 1c95717f50..c3d5f34a1d 100644
--- a/web/apps/photos/src/services/ml/types.ts
+++ b/web/apps/photos/src/services/ml/types.ts
@@ -334,41 +334,3 @@ export interface ClipEmbedding {
embedding: Float32Array;
model: "ggml-clip" | "onnx-clip";
}
-
-/// [`x`] and [y] are the coordinates of the top left corner of the box, so the minimim values
-/// [width] and [height] are the width and height of the box.
-/// All values are in absolute pixels relative to the original image size.
-export interface CenterBox {
- x: number;
- y: number;
- height: number;
- width: number;
-}
-
-export interface DetectionPoint {
- x: number;
- y: number;
-}
-
-export interface Detection {
- box: CenterBox;
- landmarks: DetectionPoint[];
-}
-
-export interface FileMLFace {
- id: string;
- confidence: number;
- blur: number;
- embedding: Float32Array;
- detection: Detection;
-}
-
-export interface FileML {
- fileID: number;
- clip?: ClipEmbedding;
- faces: Face[];
- height: number;
- width: number;
- version: number;
- error?: string;
-}