Skip to content

armgit / ente

Public Imported from GitHub
0

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

[mob][photos] Rename

laurenspriem70bc65fc257d
diff --git a/mobile/lib/services/machine_learning/ml_computer.dart b/mobile/lib/services/machine_learning/ml_computer.dart
index 545ad70a37..9c4fabdd4f 100644
--- a/mobile/lib/services/machine_learning/ml_computer.dart
+++ b/mobile/lib/services/machine_learning/ml_computer.dart
@@ -20,7 +20,7 @@ enum MLComputerOperation {
runClipText,
}
-class MLComputerIsolate {
+class MLComputer {
final _logger = Logger('MLComputerIsolate');
final _initLock = Lock();
@@ -33,10 +33,9 @@ class MLComputerIsolate {
bool isSpawned = false;
// Singleton pattern
- MLComputerIsolate._privateConstructor();
- static final MLComputerIsolate instance =
- MLComputerIsolate._privateConstructor();
- factory MLComputerIsolate() => instance;
+ MLComputer._privateConstructor();
+ static final MLComputer instance = MLComputer._privateConstructor();
+ factory MLComputer() => instance;
Future<void> _init() async {
return _initLock.synchronized(() async {
diff --git a/mobile/lib/utils/face/face_box_crop.dart b/mobile/lib/utils/face/face_box_crop.dart
index eadc5834c3..197aa31f38 100644
--- a/mobile/lib/utils/face/face_box_crop.dart
+++ b/mobile/lib/utils/face/face_box_crop.dart
@@ -53,7 +53,7 @@ Future<Map<String, Uint8List>?> getFaceCrops(
faceBoxes.add(e.value);
}
final List<Uint8List> faceCrop =
- await MLComputerIsolate.instance.generateFaceThumbnails(
+ await MLComputer.instance.generateFaceThumbnails(
// await generateJpgFaceThumbnails(
imagePath,
faceBoxes,