From 41aeb63465b98b418140a0187b3c4e7ea6d9ec76 Mon Sep 17 00:00:00 2001 From: Manav Rathi Date: Fri, 19 Apr 2024 15:02:09 +0530 Subject: [PATCH] Fix lint issues unrelated to this PR, come from https://github.com/ente-io/ente/pull/1479 --- web/apps/photos/src/services/machineLearning/faceService.ts | 6 ++++-- .../machineLearning/laplacianBlurDetectionService.ts | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/web/apps/photos/src/services/machineLearning/faceService.ts b/web/apps/photos/src/services/machineLearning/faceService.ts index 4d8a41745..1dedadf15 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 b9bc49441..3357e21cc 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), );