mirror of
https://github.com/ente-io/ente.git
synced 2025-08-08 07:28:26 +00:00
[mob][photos] Remove computer for clip for now
This commit is contained in:
parent
d7e1b737d8
commit
21483eacb4
@ -71,14 +71,10 @@ class ONNX extends MLFramework {
|
||||
Future<List<double>> getImageEmbedding(String imagePath) async {
|
||||
try {
|
||||
final startTime = DateTime.now();
|
||||
final result = await _computer.compute(
|
||||
_clipImage.inferByImage,
|
||||
param: {
|
||||
"imagePath": imagePath,
|
||||
"address": _imageEncoderAddress,
|
||||
},
|
||||
taskName: "createImageEmbedding",
|
||||
) as List<double>;
|
||||
final result = await _clipImage.inferByImage({ // TODO: add computer back later
|
||||
"imagePath": imagePath,
|
||||
"address": _imageEncoderAddress,
|
||||
});
|
||||
final endTime = DateTime.now();
|
||||
_logger.info(
|
||||
"createImageEmbedding took: ${(endTime.millisecondsSinceEpoch - startTime.millisecondsSinceEpoch)}ms",
|
||||
|
Loading…
x
Reference in New Issue
Block a user