From 25435dd69384d0f70b4cb6803a533b9d1b8ff287 Mon Sep 17 00:00:00 2001 From: Manav Rathi Date: Thu, 16 May 2024 19:31:05 +0530 Subject: [PATCH] [web] Disable clustering --- .../services/machineLearning/machineLearningService.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/web/apps/photos/src/services/machineLearning/machineLearningService.ts b/web/apps/photos/src/services/machineLearning/machineLearningService.ts index 9f3739892..43e0459ce 100644 --- a/web/apps/photos/src/services/machineLearning/machineLearningService.ts +++ b/web/apps/photos/src/services/machineLearning/machineLearningService.ts @@ -166,13 +166,19 @@ class MachineLearningService { await this.syncFiles(syncContext); } + // TODO-ML(MR): Forced disable clustering. It doesn't currently work, + // need to finalize it before we move out of beta. + // + // > Error: Failed to execute 'transferToImageBitmap' on + // > 'OffscreenCanvas': ImageBitmap construction failed + /* if ( syncContext.outOfSyncFiles.length <= 0 || - // TODO-ML(MR): Forced disable. (syncContext.nSyncedFiles === batchSize && Math.random() < 0) ) { await this.syncIndex(syncContext); } + */ const mlSyncResult: MLSyncResult = { nOutOfSyncFiles: syncContext.outOfSyncFiles.length,