Skip to content

armgit / ente

Public Imported from GitHub
0

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

Logging unexpected embeddings

laurenspriem3717a156d351
diff --git a/mobile/apps/photos/lib/db/ml/db.dart b/mobile/apps/photos/lib/db/ml/db.dart
index 7aee958b6f..3d40190df4 100644
--- a/mobile/apps/photos/lib/db/ml/db.dart
+++ b/mobile/apps/photos/lib/db/ml/db.dart
@@ -1323,6 +1323,9 @@ class MLDataDB with SqlDbBase implements IMLDataDB<int> {
embeddings.add(Float32List.view(result[embeddingColumn].buffer));
} else {
weirdCount++;
+ _logger.warning(
+ "Weird clip embedding length ${embedding.length} for fileID ${result[fileIDColumn]}, skipping",
+ );
}
}
_logger.info(