π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
[mob] Add logs for cluster feedback suggestions
Neeraj Gupta6c287775d476
diff --git a/mobile/lib/services/machine_learning/face_ml/feedback/cluster_feedback.dart b/mobile/lib/services/machine_learning/face_ml/feedback/cluster_feedback.dartindex 6a6fc28c0c..dfb6675b4b 100644--- a/mobile/lib/services/machine_learning/face_ml/feedback/cluster_feedback.dart+++ b/mobile/lib/services/machine_learning/face_ml/feedback/cluster_feedback.dart@@ -79,7 +79,7 @@ class ClusterFeedbackService {final personClusters = await faceMlDb.getPersonClusterIDs(p.remoteID);dev.log('existing clusters for ${p.attr.name} are $personClusters',- name: "ClusterFeedbackService",+ name: "getSuggestionsUsingMedian",);// Get and update the cluster summary to get the avg (centroid) and count@@ -353,6 +353,9 @@ class ClusterFeedbackService {Set<int> ignoredClusters,) async {final faceMlDb = FaceMLDataDB.instance;+ _logger.info(+ 'start getUpdateClusterAvg for ${allClusterIdsToCountMap.length} clusters',+ );final Map<int, (Uint8List, int)> clusterToSummary =await faceMlDb.clusterSummaryAll();@@ -389,6 +392,7 @@ class ClusterFeedbackService {if (updatesForClusterSummary.isNotEmpty) {await faceMlDb.clusterSummaryUpdate(updatesForClusterSummary);}+ _logger.info('end getUpdateClusterAvg for ${clusterAvg.length} clusters');return clusterAvg;}diff --git a/mobile/lib/ui/settings/debug/face_debug_section_widget.dart b/mobile/lib/ui/settings/debug/face_debug_section_widget.dartindex 4ee93b004c..f50c8d91d8 100644--- a/mobile/lib/ui/settings/debug/face_debug_section_widget.dart+++ b/mobile/lib/ui/settings/debug/face_debug_section_widget.dart@@ -206,7 +206,7 @@ class _FaceDebugSectionWidgetState extends State<FaceDebugSectionWidget> {if (kDebugMode)MenuItemWidget(captionedTextWidget: const CaptionedTextWidget(- title: "Pull Embeddings From Local",+ title: "Compute suggestions",),pressedColor: getEnteColorScheme(context).fillFaint,trailingIcon: Icons.chevron_right_outlined,diff --git a/mobile/lib/ui/viewer/people/person_cluster_suggestion.dart b/mobile/lib/ui/viewer/people/person_cluster_suggestion.dartindex 1bbcb4390b..26da744d6e 100644--- a/mobile/lib/ui/viewer/people/person_cluster_suggestion.dart+++ b/mobile/lib/ui/viewer/people/person_cluster_suggestion.dart@@ -37,8 +37,6 @@ class _PersonClustersState extends State<PersonReviewClusterSuggestion> {super.initState();// Initialize the future in initState_fetchClusterSuggestions();- // futureClusterSuggestions = ClusterFeedbackService.instance- // .getClusterFilesForPersonID(widget.person);}@override