Migration for existing configs
This commit is contained in:
parent
f5bf776848
commit
33e3265db6
2 changed files with 6 additions and 6 deletions
|
@ -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";
|
||||
|
||||
|
|
|
@ -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");
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue