Skip to content

armgit / ente

Public Imported from GitHub
0

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

Fix lint issues

Manav Rathi41aeb63465b9
diff --git a/web/apps/photos/src/services/machineLearning/faceService.ts b/web/apps/photos/src/services/machineLearning/faceService.ts
index 4d8a417456..1dedadf151 100644
--- a/web/apps/photos/src/services/machineLearning/faceService.ts
+++ b/web/apps/photos/src/services/machineLearning/faceService.ts
@@ -144,8 +144,10 @@ class FaceService {
syncContext.faceEmbeddingService.faceSize,
imageBitmap,
);
- const blurValues =
- syncContext.blurDetectionService.detectBlur(faceImages, newMlFile.faces);
+ const blurValues = syncContext.blurDetectionService.detectBlur(
+ faceImages,
+ newMlFile.faces,
+ );
newMlFile.faces.forEach((f, i) => (f.blurValue = blurValues[i]));
imageBitmap.close();
diff --git a/web/apps/photos/src/services/machineLearning/laplacianBlurDetectionService.ts b/web/apps/photos/src/services/machineLearning/laplacianBlurDetectionService.ts
index b9bc494413..3357e21ccd 100644
--- a/web/apps/photos/src/services/machineLearning/laplacianBlurDetectionService.ts
+++ b/web/apps/photos/src/services/machineLearning/laplacianBlurDetectionService.ts
@@ -80,7 +80,7 @@ class LaplacianBlurDetectionService implements BlurDetectionService {
// Create a new matrix with extra padding
const paddedImage: number[][] = Array.from(
- { length: paddedNumRows},
+ { length: paddedNumRows },
() => new Array(paddedNumCols).fill(0),
);