π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
[mob][photos] Cleanup temp clip in ImageIsolate
laurenspriem552d6dfb301c
diff --git a/mobile/lib/utils/image_isolate.dart b/mobile/lib/utils/image_isolate.dartindex e5850dba29..9ebad2bb94 100644--- a/mobile/lib/utils/image_isolate.dart+++ b/mobile/lib/utils/image_isolate.dart@@ -6,13 +6,11 @@ import 'dart:typed_data' show Uint8List;import "package:dart_ui_isolate/dart_ui_isolate.dart";import "package:logging/logging.dart";import "package:photos/face/model/box.dart";-import "package:photos/services/machine_learning/semantic_search/frameworks/onnx/onnx_image_encoder.dart";import "package:photos/utils/image_ml_util.dart";import "package:synchronized/synchronized.dart";enum ImageOperation {generateFaceThumbnails,- clip,}class ImageIsolate {@@ -90,15 +88,6 @@ class ImageIsolate {faceBoxes,);sendPort.send(List.from(results));- case ImageOperation.clip:- final imagePath = args['imagePath'] as String;- final address = args['address'] as int;- final result = await OnnxImageEncoder.inferByImage({- 'imagePath': imagePath,- 'address': address,- });- sendPort.send(List.from(result));- break;}} catch (e, stackTrace) {sendPort@@ -186,17 +175,4 @@ class ImageIsolate {),).then((value) => value.cast<Uint8List>());}-- // TODO: remove this later to have clip indexing combined with faces- Future<List<double>> inferClipImageEmbedding(String imagePath, int encoderAddress) async {- return await _runInIsolate(- (- ImageOperation.clip,- {- 'imagePath': imagePath,- 'address': encoderAddress,- },- ),- ).then((value) => value.cast<double>());- }}