π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
derived
Manav Rathi6967d1235ed1
diff --git a/web/packages/new/photos/services/ml/embedding.ts b/web/packages/new/photos/services/ml/embedding.tsindex 2c96f43152..c0adb2cdb9 100644--- a/web/packages/new/photos/services/ml/embedding.ts+++ b/web/packages/new/photos/services/ml/embedding.ts@@ -10,29 +10,26 @@ import { type RemoteCLIPIndex } from "./clip";import { type RemoteFaceIndex } from "./face";/**- * [Note: Derived embeddings and other metadata]+ * [Note: Derived embeddings model]*- * The APIs they deal with derived data started in a ML context, and would store- * embeddings generated by particular models. Thus the API endpoints use the- * name "embedding", and are parameterized by a "model" enum.+ * The API endpoints related to embeddings and are parameterized by a "model"+ * enum. This is a bit of misnomer, since the contents of the payload are not+ * just the raw embeddings themselves, but also additional data generated by the+ * ML model.*- * Next step in the evolution was that instead of just storing the embedding,- * the code also started storing various additional data generated by the ML- * model. For example, the face indexing process generates multiple face- * embeddings per file, each with an associated detection box. So instead of- * storing just a singular embedding, the data that got stored was this entire- * face index structure containing multiple embeddings and associated data.+ * For example, the face indexing process generates multiple face embeddings per+ * file, each with an associated detection box. So instead of storing just a+ * singular embedding, the data is an entire face index structure containing+ * multiple embeddings and associated data.** Further down, it was realized that the fan out caused on remote when trying- * to fetch all derived data - both ML ("clip", "face") and non-ML ("exif") -- * was problematic, and also their raw JSON was unnecessarily big. To deal with- * these better, we now have a single "derived" model type, whose data is a- * gzipped map of the form:+ * to fetch both CLIP and face embeddings was problematic, and also that their+ * raw JSON was unnecessarily big. To deal with these better, we now have a+ * single "derived" model type, whose data is a gzipped map of the form:** {* "face": ... the face indexing result ...* "clip": ... the CLIP indexing result ...- * "exif": ... the Exif extracted from the file ...* ... more in the future ...* }*/