π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Cleanup
Manav Rathi3db91d203490
diff --git a/web/apps/photos/src/services/face/types.ts b/web/apps/photos/src/services/face/types.tsindex 44b3321f69..40aa29aee8 100644--- a/web/apps/photos/src/services/face/types.ts+++ b/web/apps/photos/src/services/face/types.ts@@ -198,8 +198,6 @@ export interface MLSyncContext {token: string;userID: number;- faceCropService: FaceCropService;-localFilesMap: Map<number, EnteFile>;outOfSyncFiles: EnteFile[];nSyncedFiles: number;@@ -238,15 +236,6 @@ export interface MLLibraryData {export declare type MLIndex = "files" | "people";-export interface FaceCropService {- method: Versioned<FaceCropMethod>;-- getFaceCrop(- imageBitmap: ImageBitmap,- face: FaceDetection,- ): Promise<FaceCrop>;-}-export interface MachineLearningWorker {closeLocalSyncContext(): Promise<void>;diff --git a/web/apps/photos/src/services/machineLearning/faceService.ts b/web/apps/photos/src/services/machineLearning/faceService.tsindex 80bda398aa..74d7f7f246 100644--- a/web/apps/photos/src/services/machineLearning/faceService.ts+++ b/web/apps/photos/src/services/machineLearning/faceService.ts@@ -58,7 +58,10 @@ class FaceService {) {const { newMlFile } = fileContext;const imageBitmap = await fetchImageBitmapForContext(fileContext);- newMlFile.faceCropMethod = syncContext.faceCropService.method;+ newMlFile.faceCropMethod = {+ value: "ArcFace",+ version: 1,+ };for (const face of newMlFile.faces) {await this.saveFaceCrop(imageBitmap, face);diff --git a/web/apps/photos/src/services/machineLearning/machineLearningService.ts b/web/apps/photos/src/services/machineLearning/machineLearningService.tsindex 8e5c7b103b..9ff1e1e249 100644--- a/web/apps/photos/src/services/machineLearning/machineLearningService.ts+++ b/web/apps/photos/src/services/machineLearning/machineLearningService.ts@@ -13,7 +13,6 @@ import { putEmbedding } from "services/embeddingService";import mlIDbStorage, { ML_SEARCH_CONFIG_NAME } from "services/face/db";import {Face,- FaceCropService,FaceDetection,Landmark,MLLibraryData,@@ -106,8 +105,6 @@ export class LocalMLSyncContext implements MLSyncContext {public token: string;public userID: number;- public faceCropService: FaceCropService;-public localFilesMap: Map<number, EnteFile>;public outOfSyncFiles: EnteFile[];public nSyncedFiles: number;