Commit graph

248 commits

Author SHA1 Message Date
laurenspriem b2a2078045 [mob][photos] Moving more methods to sqlite async 2024-04-25 17:06:40 +05:30
laurenspriem 3828fa328e [mob][photos] Increase conservative clustering threshold slightly 2024-04-25 16:41:23 +05:30
laurenspriem 52a7f2753e [mob][photos] Tiny change 2024-04-25 16:15:04 +05:30
laurenspriem 43cbfbfa33 [mob][photos] Automatically reject overlapping suggestions 2024-04-25 16:13:29 +05:30
laurenspriem 7b8816a4bf [mob][photos] Higher conservative clustering threshold 2024-04-25 10:54:49 +05:30
laurenspriem 7e00a470aa [mob][photos] Lower both hard and soft blur thresholds 2024-04-25 10:54:19 +05:30
laurenspriem 1ae4482fe5 [mob][photos] Always check big clusters first for suggestions 2024-04-25 10:53:42 +05:30
laurenspriem 6f6f976dec [mob][photos] Fix bug 2024-04-24 18:33:00 +05:30
laurenspriem 72ff6e2cf3 [mob][photos] Tiny change 2024-04-24 17:07:28 +05:30
laurenspriem e0fbb2620b [mob][photos] Correct suggestion logic again 2024-04-24 17:06:35 +05:30
laurenspriem 462d1d4854 [mob][photos] Use cosineDistanceSIMD 2024-04-24 16:37:39 +05:30
laurenspriem 05a4e9f90b [mob][photos] Remove redundant logging 2024-04-24 16:31:36 +05:30
laurenspriem 3806ee3232 [mob][photos] Use SIMD in sorting suggestions too 2024-04-24 16:19:10 +05:30
laurenspriem e829f7b62f [mob][photos] Use vectors everywhere in cluster suggestion 2024-04-24 16:01:03 +05:30
laurenspriem 4b6641d7d8 [mob][photos] Speed up suggestion calculation 2024-04-24 15:46:00 +05:30
laurenspriem 093f48fb63 [mob][photos] Sort found suggestions based on distance 2024-04-24 11:24:25 +05:30
laurenspriem 759c8aa404 [mob][photos] Extra check in sorting suggestions 2024-04-24 10:01:07 +05:30
laurenspriem c80208e754 [mob][photos] Fix in sorting suggestions 2024-04-24 09:53:42 +05:30
laurenspriem 7097ce3cf4 [mob][photos] Faster DB call when sorting suggestions 2024-04-24 09:06:20 +05:30
laurenspriem efb1170b44 [mob][photos] unawait network call when accepting suggestion 2024-04-24 08:39:45 +05:30
laurenspriem 7312633e02 [mob][photos] Only sort big suggestions 2024-04-23 14:26:30 +05:30
laurenspriem 3786c9def9 [mob][photos] Suggestions change parameters 2024-04-23 13:37:53 +05:30
laurenspriem 6fe8dc7c66 [mob][photos] Check big and medium clusters first for suggestions 2024-04-23 12:18:19 +05:30
laurenspriem 6a0a9bad1e [mob][photos] Clustering time logs 2024-04-23 09:56:46 +05:30
laurenspriem fa466d715f [mob][photos] Improve suggestions by improving speed and preferring big clusters 2024-04-22 16:40:31 +05:30
Neeraj Gupta cc682a0a09 Merge branch 'mobile_face' of https://github.com/ente-io/auth into mobile_face 2024-04-20 16:01:08 +05:30
Neeraj Gupta 864f8444d5 Merge branch 'main' into mobile_face 2024-04-20 15:59:36 +05:30
Neeraj Gupta 04a381fa51 [mob][photos] Use 100 as batchSize for copy 2024-04-20 15:44:43 +05:30
Neeraj Gupta 3e5648dae4
[mob][photos][internal] Enable fav + add to album action for shared files (#1484)
## Description


https://github.com/ente-io/ente/assets/254676/7ec2f82a-d0d1-4dbe-8836-87d1ffd793f6


## Tests

- [x] Hide Shared Item on Home Page If user has copied it.
- [x] Keep the fav state on the UI
- [x] Client side hash based dedupe works for copied items. Items are
linked to existing item instead of uploading duplicate entries
2024-04-20 15:33:54 +05:30
Neeraj Gupta 72ddbbdf79 [mob][photos] Add assert to ensure copy is enabled for internal users 2024-04-20 15:21:26 +05:30
laurenspriem edf99385dc [mob][photos] Precompute cluster summaries incrementally during clustering 2024-04-20 14:38:46 +05:30
laurenspriem cde17441d6 [mob][photos] Forgot one import 2024-04-20 13:35:53 +05:30
laurenspriem 4ac295e1e2 [mob][photos] Remove ClusterResult old deprecated code 2024-04-20 13:35:02 +05:30
laurenspriem a0502886b6 [mob] Minimum size argument for getting all cluster summaries 2024-04-20 13:26:47 +05:30
laurenspriem 7be1b63822 [mob] Clean up linear clustering method 2024-04-20 12:24:20 +05:30
Neeraj Gupta e2aae744be [mob][photos] Fix ownerID for copied items 2024-04-20 11:30:40 +05:30
Ashil c4c513a1d7
[mob][photos] Use sqlite_async instead of sqlite3 (#1489)
## Description

Using both `sqlite_async` and `sqlite3` for querying at the same time
was throwing this error:
`error: SqliteException(5): while executing, database is locked,
database is locked (code 5)`

So, have used `sqlite_async` everywhere.

## Tests

- [x] Tested all changes
2024-04-19 16:56:40 +05:30
Neeraj Gupta fc5705dd7b [mob][photos] Add additional check for fileType 2024-04-19 16:46:42 +05:30
Neeraj Gupta 01822b760d [mob][photos] Dedupe using hash before copying 2024-04-19 16:45:29 +05:30
laurenspriem 4095b14589 [mob] Conservative threshold for combination of low score and blur 2024-04-19 15:57:11 +05:30
Neeraj Gupta f55fd36579 [mob][photos] Fix: Pass copy of EnteFile to avoid modification in original 2024-04-19 15:54:49 +05:30
laurenspriem a92081e703 [mob] Only analyze clustering in debugMode 2024-04-19 15:20:29 +05:30
laurenspriem f3f85e81ca [mob] Rename constant 2024-04-19 15:08:10 +05:30
laurenspriem ecc1bc9980 [mob] Use more conservative cluster threshold for sideways faces 2024-04-19 14:58:52 +05:30
Neeraj Gupta 136f53b581 [mob][photos] Fix: Remove fav action on shared photos 2024-04-19 14:53:41 +05:30
Neeraj Gupta 3788fdda6f [mob][photos]Fix: Show fav icon on shared photos 2024-04-19 14:15:33 +05:30
Neeraj Gupta 7f879aaf57 [mob][photos] Hide incoming file from home screen is saved 2024-04-19 13:34:44 +05:30
Neeraj Gupta 398e66a0eb [mob][photos] Lint fix 2024-04-19 12:36:28 +05:30
laurenspriem a9ca8a4a24 [mob] Better handling of cluster update 2024-04-19 12:19:10 +05:30
laurenspriem ab0a99cf76 [mob] Make sure cluster page is updated after file removal 2024-04-19 11:42:39 +05:30