Skip to content

armgit / ente

Public Imported from GitHub
0

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

Move

Manav Rathid8f707841842
diff --git a/web/apps/photos/src/services/machineLearning/laplacianBlurDetectionService.ts b/web/apps/photos/src/services/face/detect-blur.ts
similarity index 98%
rename from web/apps/photos/src/services/machineLearning/laplacianBlurDetectionService.ts
rename to web/apps/photos/src/services/face/detect-blur.ts
index d4c35c97f1..2c6083d6e0 100644
--- a/web/apps/photos/src/services/machineLearning/laplacianBlurDetectionService.ts
+++ b/web/apps/photos/src/services/face/detect-blur.ts
@@ -1,6 +1,6 @@
import { Face } from "services/face/types";
import { createGrayscaleIntMatrixFromNormalized2List } from "utils/image";
-import { mobileFaceNetFaceSize } from "./mobileFaceNetEmbeddingService";
+import { mobileFaceNetFaceSize } from "../machineLearning/mobileFaceNetEmbeddingService";
/**
* Laplacian blur detection.
diff --git a/web/apps/photos/src/services/machineLearning/faceService.ts b/web/apps/photos/src/services/machineLearning/faceService.ts
index 73e3f4c6e4..843d2106ab 100644
--- a/web/apps/photos/src/services/machineLearning/faceService.ts
+++ b/web/apps/photos/src/services/machineLearning/faceService.ts
@@ -10,6 +10,7 @@ import {
type FaceAlignment,
} from "services/face/types";
import { imageBitmapToBlob, warpAffineFloat32List } from "utils/image";
+import { detectBlur } from "../face/detect-blur";
import { clusterFaces } from "../face/cluster";
import { getFaceCrop } from "../face/crop";
import {
@@ -18,7 +19,6 @@ import {
getFaceId,
getLocalFile,
} from "../face/image";
-import { detectBlur } from "./laplacianBlurDetectionService";
class FaceService {
async syncFileFaceDetections(