Skip to content

armgit / ente

Public Imported from GitHub
0

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

Migration for existing configs

Manav Rathi33e3265db635
diff --git a/web/apps/photos/src/types/machineLearning/index.ts b/web/apps/photos/src/types/machineLearning/index.ts
index 436585bbae..d0c902333c 100644
--- a/web/apps/photos/src/types/machineLearning/index.ts
+++ b/web/apps/photos/src/types/machineLearning/index.ts
@@ -45,16 +45,13 @@ export declare type Landmark = Point;
export declare type ImageType = "Original" | "Preview";
-export declare type FaceDetectionMethod = "FaceApiSSD" | "YoloFace";
+export declare type FaceDetectionMethod = "YoloFace";
export declare type FaceCropMethod = "ArcFace";
-export declare type FaceAlignmentMethod =
- | "ArcFace"
- | "FaceApiDlib"
- | "RotatedFaceApiDlib";
+export declare type FaceAlignmentMethod = "ArcFace";
-export declare type FaceEmbeddingMethod = "MobileFaceNet" | "FaceApiDlib";
+export declare type FaceEmbeddingMethod = "MobileFaceNet";
export declare type BlurDetectionMethod = "Laplacian";
diff --git a/web/apps/photos/src/utils/storage/mlIDbStorage.ts b/web/apps/photos/src/utils/storage/mlIDbStorage.ts
index d7e24cbe80..bba71c4ff5 100644
--- a/web/apps/photos/src/utils/storage/mlIDbStorage.ts
+++ b/web/apps/photos/src/utils/storage/mlIDbStorage.ts
@@ -124,6 +124,9 @@ class MLIDbStorage {
.add(DEFAULT_ML_SEARCH_CONFIG, ML_SEARCH_CONFIG_NAME);
}
if (oldVersion < 4) {
+ db.deleteObjectStore("configs");
+ db.createObjectStore("configs");
+
db.deleteObjectStore("things");
}