Compute time more accurately
This commit is contained in:
parent
d1aa0d2b06
commit
58ff6aeaaf
1 changed files with 2 additions and 2 deletions
|
@ -175,13 +175,13 @@ class SemanticSearchService {
|
|||
if (!hasLoaded) {
|
||||
return;
|
||||
}
|
||||
_logger.info("Running clip over " + files.length.toString() + " items");
|
||||
final List<String> filePaths = [];
|
||||
|
||||
final startTime = DateTime.now();
|
||||
for (final file in files) {
|
||||
filePaths.add((await getThumbnailFile(file))!.path);
|
||||
}
|
||||
_logger.info("Running clip over " + files.length.toString() + " items");
|
||||
final startTime = DateTime.now();
|
||||
final List<List<double>> imageEmbeddings = [];
|
||||
if (filePaths.length == 1) {
|
||||
final result = await _computer.compute(
|
||||
|
|
Loading…
Add table
Reference in a new issue