141 Commits

Author SHA1 Message Date
Neeraj Gupta
137a5cd772 Switch to flagService for mlConsent 2025-03-03 14:58:54 +05:30
Neeraj Gupta
2cade6f271 [mob] Refactor 2025-01-29 17:13:21 +05:30
Neeraj Gupta
c64af87e33 [mob] Refactor 2025-01-29 13:52:12 +05:30
Neeraj Gupta
69661b0d30 [mob] Put clip queries in same db class 2025-01-27 16:27:20 +05:30
ashilkn
bdc80c8f97 Merge branch 'main' into hierarchical_search 2024-11-05 22:31:42 +05:30
Neeraj Gupta
27dd13324e
ML Lite (#3838)
## Description

- Adds an option to not index files locally on mobile
- Uses the global ML flag for consent

## Tests

Tested in debug mode on my Pixel 8.
2024-10-25 11:18:36 +05:30
ashilkn
1c3bdb6d69 Merge branch 'main' into hierarchical_search 2024-10-25 09:58:37 +05:30
laurenspriem
1bf6b56f96 [mob][photos] Switch ML flags 2024-10-24 17:06:33 +05:30
ashilkn
5e56ec21b7 [mob][photos] Use better name for function 2024-10-23 21:39:11 +05:30
laurenspriem
3a8ec51674 [mob][photos] Revert onnx preprocessing 2024-10-23 17:05:13 +05:30
Neeraj Gupta
df863d1602 [mob] Log when clip embeddings are read from DB 2024-10-21 15:10:34 +05:30
Laurens Priem
b9dd0bc3b7
ONNX changes (#3654)
## Description

- Quantized the CLIP text encoder
- Moved preprocessing and postprocessing of face detection inside the
model
- Optimised the ONNX models more wherever possible
- Created a place in infra for ML version control of sorts

## Tests

Have tested the changes on mobile, but not on desktop. Please carefully
review the changes on desktop, especially regarding the face detection
post-processing, more specifically the image (re-)size correction.
2024-10-11 10:02:11 +05:30
laurenspriem
7dd9d8aef3 [mob][photos] new clip works 2024-09-25 22:58:23 +05:30
laurenspriem
53c19bc64e [mob][photos] Temp disable custom plugin 2024-09-25 14:40:40 +05:30
laurenspriem
bd232c151a [mob][photos] Test for iOS 2024-09-25 14:34:25 +05:30
Neeraj Gupta
9c1f744f73 [mob] Switch to list for maintaining order 2024-09-18 11:42:54 +05:30
Neeraj Gupta
bf65faef33 [mob] Log query in debug mode only 2024-09-17 16:22:27 +05:30
Neeraj Gupta
29503a077d [mob] Optimize cache update 2024-09-17 16:18:42 +05:30
Neeraj Gupta
785cac2c70 [mob] Define modal for remote prompt 2024-09-17 15:03:30 +05:30
laurenspriem
9b743d7afe [mob][photos] Stop using ByteData directly 2024-09-06 13:51:01 +02:00
Laurens Priem
0cef11266a
Clip vector (#3117)
## Description

Use SIMD for magic search
2024-09-04 03:51:14 +02:00
laurenspriem
0cad88f1ab [mob][photos] Remove duplicate code 2024-09-03 21:07:13 +02:00
laurenspriem
1b7f8ff648 [mob][photos] Less ambiguous naming 2024-09-03 21:04:30 +02:00
laurenspriem
7097cb335d [mob][photos] Improve magic search speed using simd 2024-09-03 18:48:16 +02:00
laurenspriem
4abd131b8a [mob][photos] Remove redundant logging 2024-09-03 13:21:50 +02:00
laurenspriem
9dadb92d8d [mob][photos] Last logging todos 2024-09-03 12:49:45 +02:00
laurenspriem
ab636232ff [mob][photos] Cleaner logging 2024-09-03 12:04:35 +02:00
laurenspriem
a9bc6502cb [mob][photos] proper logging in ML indexing isolate 2024-08-30 13:58:46 +02:00
laurenspriem
91646a809b [mob][photos] Actual logging in ML Computer 2024-08-30 12:07:06 +02:00
Neeraj Gupta
b0379e8945 [mob] Fix missing magic search 2024-08-27 16:24:03 +05:30
laurenspriem
e98e8833e6 [mob][photos] Clip logs 2024-08-26 16:15:49 +02:00
Neeraj Gupta
0d63a3073b [mob]Release tensors to avoid OOM error 2024-08-22 17:15:19 +05:30
Neeraj Gupta
a1b447c5c8 [mob] Rename 2024-08-21 23:14:28 +05:30
Neeraj Gupta
3f3f3202af [mob] Clean up 2024-08-21 14:21:25 +05:30
Neeraj Gupta
268eeab094 [mob] Avoid refreshing cache unless search is initiated 2024-08-21 14:15:58 +05:30
Neeraj Gupta
dae5c1a0b8 [mob] Lint fi 2024-08-20 15:49:31 +05:30
Neeraj Gupta
7a197124ea [mob] Log when magicSearch is disabled 2024-08-20 15:49:01 +05:30
Neeraj Gupta
0cacc88918 Merge branch 'clip_face_integration' of https://github.com/ente-io/auth into clip_face_integration 2024-08-20 14:45:27 +05:30
Neeraj Gupta
dfe329eef9 [mob] Minor refactor 2024-08-20 14:38:26 +05:30
laurenspriem
8c8d81c40e [mob][photos] ML settings add indicator for wifi pause 2024-08-20 11:05:51 +02:00
Neeraj Gupta
38d866148f Reduce delay in loading model 2024-08-19 15:01:54 +05:30
Neeraj Gupta
aaebef5b22 [mob] Show score if query contains score threshold 2024-08-19 14:18:45 +05:30
Neeraj Gupta
329f320720 Update min score for magic search 2024-08-16 18:21:28 +05:30
Neeraj Gupta
b6d5ebc5b4 rename 2024-08-16 17:23:38 +05:30
Neeraj Gupta
2cf8bd14f9 rename 2024-08-16 17:12:00 +05:30
Neeraj Gupta
78fc2aec88 [mob] Fix model path for progress 2024-08-16 15:05:02 +05:30
Neeraj Gupta
0c20be98d7 [mob] Allow injecting score threshold in query 2024-08-14 15:37:29 +05:30
Neeraj Gupta
bfec2ff2be [mob] Use single db for ml data 2024-08-14 14:22:02 +05:30
Neeraj Gupta
bd53c4a2f3 Switch to mobileclip 2024-08-12 20:43:16 +05:30
laurenspriem
3abf215f8c [mob][photos] Simplify ClipImage 2024-07-26 13:47:48 +02:00