Commit Graph

1487 Commits

Author SHA1 Message Date
ashilkn
522d1da0e9 [mob][photos] Fix file bottom bar not disappearing when in fullscreen 2024-06-25 13:09:24 +05:30
Ashil
f67dc4893f [mob][photos] Cache results for Magic section (only visible to internal users) (#2282)
## Description

- Use cached results for magic section so that it does't anymore have to
wait for ML framework to be initialised and doesn't have to re-compute
results every time, which means faster loading of the search tab.
- For internal users, all results in
[here](https://discover.ente.io/v1.json) will show up.
- For non-internal users, once available, results will be limited to 4.
- 4 random prompts are selected from
[here](https://discover.ente.io/v1.json) with non-empty results and are
cached.
- The cache updates when the data updates
[here](https://discover.ente.io/v1.json) (checks size to compare) or in
3 days since the last update.
2024-06-25 12:33:39 +05:30
Neeraj Gupta
2f327b1929 [mobile] New translations (#2278)
New translations from
[Crowdin](https://crowdin.com/project/ente-photos-app)
2024-06-25 12:00:54 +05:30
ashilkn
6736ad73ec [mob][photos] Fix build failing 2024-06-25 10:51:19 +05:30
ashilkn
75dcf18d75 [mob][photos] Minor UI fix 2024-06-25 10:15:16 +05:30
ashilkn
e722024f8f [mob][photos] Catch any exceptions or errors when getting results for magic section and return an empty list to avoid showing a blank search tab 2024-06-25 10:13:43 +05:30
ashilkn
fcb79907cf [mob][photos] Remove code that was for handling edge cases when magic section was depending on newly computed results every time instead of using cache 2024-06-25 09:51:25 +05:30
ashilkn
35b42d4743 [mob][photos] clean up 2024-06-25 09:43:50 +05:30
ashilkn
8fae7719b5 [mob][photos] Update magic cache every 3 days 2024-06-25 09:31:24 +05:30
Crowdin Bot
c7f3390e59 New Crowdin translations by GitHub Action 2024-06-25 01:59:59 +00:00
laurenspriem
33ab69e2d8 Merge branch 'main' into face_cleanup 2024-06-24 17:50:16 +05:30
laurenspriem
b95e93778b [mob][photos] old code 2024-06-24 17:35:41 +05:30
laurenspriem
160f279464 [mob][photos] Remove old face crop widget 2024-06-24 17:33:35 +05:30
ashilkn
69bd1c8670 Merge branch 'main' into cache_magic_section 2024-06-24 17:31:58 +05:30
ashilkn
b21fe76b3f [mob][photos] Save magic cache to local path instead of saving it in shared preferences 2024-06-24 17:30:33 +05:30
laurenspriem
6ea449bd83 [mob][photos] Move ml exceptions 2024-06-24 17:29:21 +05:30
ashilkn
b99b2d1381 [mob][photos] Remove commented out code that was used before using data from magic cache 2024-06-24 16:55:36 +05:30
ashilkn
84f2c6d102 [mob][photos] Show 4 instead of 6 magic results in magic section for non-internal users 2024-06-24 16:53:20 +05:30
ashilkn
908e37f56f [mob][photos] Update MagicCache every 3 days 2024-06-24 16:48:25 +05:30
ashilkn
9cb4420bbf [mob][photos] Show magic section in search tab from cached results 2024-06-24 15:43:56 +05:30
ashilkn
98c444fab9 [mob][photos] Make methods private 2024-06-24 15:43:16 +05:30
ashilkn
815a730d59 [mob][photos] Schedule update magic cache in 10 seconds if remote asset has changed 2024-06-24 15:29:56 +05:30
ashilkn
11666eeb33 [mob][photos] Write function that selected 4 prompts from list of prompts at random and returns them as MagicCache objects 2024-06-24 15:28:31 +05:30
laurenspriem
47128ab52d [mob][photos] Store local empty clip result on errors 2024-06-24 15:04:01 +05:30
laurenspriem
ef0396983b [mob][photos] Remove unused method 2024-06-24 10:59:57 +05:30
ashilkn
f5873d2ade [mob][photos] MagicCache model and MagicCacheService 2024-06-24 10:19:36 +05:30
ashilkn
adb358ba5c [mob][photos] Write function in RemoteAssetService that returns the asset when given a remote path if it's different from the existing local copy of asset. Else return null 2024-06-24 10:11:18 +05:30
Neeraj Gupta
b2f13c4b3d [photos] Fix late init error 2024-06-23 13:12:13 +05:30
Neeraj Gupta
a3ce66b87f [photos] Bump version 2024-06-23 13:11:16 +05:30
Neeraj Gupta
f30d1fe45f [photos] Skip sending handled error to sentry 2024-06-23 13:10:49 +05:30
Neeraj Gupta
f8d1851311 [mob] Fix range error in getUploadedFiles 2024-06-23 12:24:44 +05:30
laurenspriem
716f5f1be2 [mob][photos] Cleanup face DB 2024-06-22 18:38:10 +05:30
laurenspriem
a0d8dd9b9e [mob][photos] Cleanup face models 2024-06-22 18:30:55 +05:30
laurenspriem
897245d6c1 [mob][photos] Cleanup alignment 2024-06-22 18:23:53 +05:30
laurenspriem
99e4d098e3 [mob][photos] Cleanup detection 2024-06-22 18:20:53 +05:30
laurenspriem
b276344f1e [mob][photos] Cleanup face result 2024-06-22 18:17:38 +05:30
laurenspriem
87e2a32d49 [mob][photos] Remove old mlVersions 2024-06-22 13:54:42 +05:30
laurenspriem
af11ff21f4 [mob][photos] Cleanup exceptions 2024-06-22 13:02:23 +05:30
laurenspriem
aab7e39ab3 [mob][photos] Cleanup feedback 2024-06-22 12:53:35 +05:30
laurenspriem
7c535adff1 [mob][photos] Make blur detection static method 2024-06-22 00:36:07 +05:30
laurenspriem
c8effce8fc [mob][photos] More cleanup 2024-06-22 00:33:26 +05:30
laurenspriem
2855181de9 [mob][photos] Cleanup face embedding service 2024-06-22 00:31:56 +05:30
laurenspriem
25515c4403 [mob][photos] Cleanup detections 2024-06-22 00:27:38 +05:30
Neeraj Gupta
f8f43b8ab7 Bump version 2024-06-21 14:18:20 +05:30
Neeraj Gupta
933ab3ac2c Upgrade onnx dependency 2024-06-20 15:48:43 +05:30
laurenspriem
950d6a9622 [mob][photos] Rename 2024-06-19 18:11:01 +05:30
laurenspriem
e2da01dd5b [mob][photos] Simplify SimilarityTransform 2024-06-19 18:06:24 +05:30
laurenspriem
6954c960d8 [mob][photos] Remove redundant clustering code 2024-06-19 17:46:25 +05:30
laurenspriem
0c790e64f8 [mob][photos] Rename arcface 2024-06-19 17:43:22 +05:30
Neeraj Gupta
477bc4ca92 [mob] Reduce error severity (#2224)
## Description

## Tests
2024-06-19 17:22:11 +05:30