π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Include coco_class in pet_body_id to prevent species collision
Amrithesh Kakkoth Ente186bc65abf22
diff --git a/mobile/apps/photos/rust/src/api/ml_indexing_api.rs b/mobile/apps/photos/rust/src/api/ml_indexing_api.rsindex 993779ecd6..f5eb5b1377 100644--- a/mobile/apps/photos/rust/src/api/ml_indexing_api.rs+++ b/mobile/apps/photos/rust/src/api/ml_indexing_api.rs@@ -227,10 +227,14 @@ fn analyze_image_rust_inner(req: AnalyzeImageRequest) -> MlResult<AnalyzeImageRelet mut body_results: Vec<crate::ml::types::PetBodyResult> = body_detections.into_iter()- .map(|det| crate::ml::types::PetBodyResult {- pet_body_id: crate::ml::types::to_face_id(req.file_id, det.box_xyxy),- detection: det,- body_embedding: Vec::new(),+ .map(|det| {+ let base_id = crate::ml::types::to_face_id(req.file_id, det.box_xyxy);+ let pet_body_id = format!("{base_id}_c{}", det.coco_class);+ crate::ml::types::PetBodyResult {+ pet_body_id,+ detection: det,+ body_embedding: Vec::new(),+ }}).collect();if !body_results.is_empty() {