π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
[mob][photos] Show intermediate clustering results
laurenspriem86f96a571326
diff --git a/mobile/lib/face/db.dart b/mobile/lib/face/db.dartindex 626a25114d..17055234bd 100644--- a/mobile/lib/face/db.dart+++ b/mobile/lib/face/db.dart@@ -669,14 +669,6 @@ class FaceMLDataDB {return maps.first['count'] as int;}- Future<int> getClusteredFaceCount() async {- final db = await instance.asyncDB;- final List<Map<String, dynamic>> maps = await db.getAll(- 'SELECT COUNT(DISTINCT $fcFaceId) as count FROM $faceClustersTable',- );- return maps.first['count'] as int;- }-Future<int> getClusteredFileCount() async {final db = await instance.asyncDB;final List<Map<String, dynamic>> maps = await db.getAll(diff --git a/mobile/lib/services/search_service.dart b/mobile/lib/services/search_service.dartindex 1ff73dbc89..d15eddb718 100644--- a/mobile/lib/services/search_service.dart+++ b/mobile/lib/services/search_service.dart@@ -754,15 +754,6 @@ class SearchService {Future<List<GenericSearchResult>> getAllFace(int? limit) async {try {- // Don't return anything if clustering is not nearly complete yet- final foundFaces = await FaceMLDataDB.instance.getTotalFaceCount();- final clusteredFaces =- await FaceMLDataDB.instance.getClusteredFaceCount();- final clusteringDoneRatio = clusteredFaces / foundFaces;- if (clusteringDoneRatio < 0.9) {- return [];- }-debugPrint("getting faces");final Map<int, Set<int>> fileIdToClusterID =await FaceMLDataDB.instance.getFileIdToClusterIds();