From 74f8f7aaf367b04b808fd503c5dc2b3363459d49 Mon Sep 17 00:00:00 2001 From: laurenspriem Date: Wed, 10 Apr 2024 17:36:34 +0530 Subject: [PATCH] [mob] Remove debug option --- .../debug/face_debug_section_widget.dart | 38 ------------------- 1 file changed, 38 deletions(-) diff --git a/mobile/lib/ui/settings/debug/face_debug_section_widget.dart b/mobile/lib/ui/settings/debug/face_debug_section_widget.dart index 70e7195a9..824050aa7 100644 --- a/mobile/lib/ui/settings/debug/face_debug_section_widget.dart +++ b/mobile/lib/ui/settings/debug/face_debug_section_widget.dart @@ -10,9 +10,7 @@ import "package:photos/face/db.dart"; import "package:photos/face/model/person.dart"; import "package:photos/services/machine_learning/face_ml/face_filtering/face_filtering_constants.dart"; import 'package:photos/services/machine_learning/face_ml/face_ml_service.dart'; -import 'package:photos/services/machine_learning/face_ml/feedback/cluster_feedback.dart'; import "package:photos/services/machine_learning/face_ml/person/person_service.dart"; -// import "package:photos/services/search_service.dart"; import 'package:photos/theme/ente_theme.dart'; import 'package:photos/ui/components/captioned_text_widget.dart'; import 'package:photos/ui/components/expandable_menu_item_widget.dart'; @@ -279,42 +277,6 @@ class _FaceDebugSectionWidgetState extends State { }, ), if (kDebugMode) sectionOptionSpacing, - if (kDebugMode) - MenuItemWidget( - captionedTextWidget: const CaptionedTextWidget( - title: "Compute suggestions", - ), - pressedColor: getEnteColorScheme(context).fillFaint, - trailingIcon: Icons.chevron_right_outlined, - trailingIconIsMuted: true, - onTap: () async { - try { - final List persons = - await PersonService.instance.getPersons(); - final EnteWatch w = EnteWatch('feedback')..start(); - for (final PersonEntity p in persons) { - await ClusterFeedbackService.instance - .getSuggestionsUsingMean(p); - w.logAndReset('suggestion calculated for ${p.data.name}'); - } - w.log("done with feedback"); - showShortToast(context, "done avg"); - // await FaceMLDataDB.instance.bulkInsertFaces([]); - // final EnteWatch watch = EnteWatch("face_time")..start(); - - // final results = await downloadZip(); - // watch.logAndReset('downloaded and de-serialized'); - // await FaceMLDataDB.instance.bulkInsertFaces(results); - // watch.logAndReset('inserted in to db'); - // showShortToast(context, "Got ${results.length} results"); - } catch (e, s) { - _logger.warning('download failed ', e, s); - await showGenericErrorDialog(context: context, error: e); - } - // _showKeyAttributesDialog(context); - }, - ), - if (kDebugMode) sectionOptionSpacing, if (kDebugMode) MenuItemWidget( captionedTextWidget: FutureBuilder>(