diff --git a/web/apps/photos/src/services/machineLearning/faceService.ts b/web/apps/photos/src/services/machineLearning/faceService.ts index 4d8a417456f1f62a887ac18782393d9e188243c5..1dedadf151c933845ee03dfafa1f39af8cdfc68f 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 b9bc494413f4a7c02de7b1db0391bb4211c8292f..3357e21ccd4634245393d89b7e24c68d2f5bbfb3 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), );