Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Deprecate TFLite preprocessing methods

laurenspriemdb4b1a87675a
diff --git a/mobile/lib/utils/image_ml_isolate.dart b/mobile/lib/utils/image_ml_isolate.dart
index 9427d800fe..89a0431b55 100644
--- a/mobile/lib/utils/image_ml_isolate.dart
+++ b/mobile/lib/utils/image_ml_isolate.dart
@@ -403,6 +403,7 @@ class ImageMlIsolate {
/// Returns a list of [Num3DInputMatrix] images, one for each face.
///
/// Uses [preprocessToMobileFaceNetInput] inside the isolate.
+ @Deprecated("Old method used in TensorFlow Lite")
Future<
(
List<Num3DInputMatrix>,
diff --git a/mobile/lib/utils/image_ml_util.dart b/mobile/lib/utils/image_ml_util.dart
index b3e6e2dfc8..20a2b1dc03 100644
--- a/mobile/lib/utils/image_ml_util.dart
+++ b/mobile/lib/utils/image_ml_util.dart
@@ -729,6 +729,7 @@ Future<List<Uint8List>> preprocessFaceAlignToUint8List(
/// Preprocesses [imageData] based on [faceLandmarks] to align the faces in the images
///
/// Returns a list of [Num3DInputMatrix] images, one for each face, ready for MobileFaceNet inference
+@Deprecated("Old method used in TensorFlow Lite")
Future<
(
List<Num3DInputMatrix>,