Commit graph

1518 commits

Author SHA1 Message Date
Manav Rathi 41c87efc5a
Use the union 2024-05-23 13:07:33 +05:30
Manav Rathi 171af35d85
Reword 2024-05-23 13:06:27 +05:30
Manav Rathi 99f47dc1ae
Move into the function 2024-05-23 13:03:31 +05:30
Manav Rathi 26436f116f
Nonopt 2024-05-23 12:58:47 +05:30
Manav Rathi 14655e5633
Fix 2024-05-23 12:47:29 +05:30
Manav Rathi 51dc8d1de6
Rearrange 2024-05-23 12:40:35 +05:30
Manav Rathi 51568e6c56
non optional 2024-05-23 12:20:04 +05:30
Manav Rathi d2743f4121
Unclass 2024-05-23 12:16:02 +05:30
Manav Rathi 2504046e26
Move 2024-05-23 12:11:11 +05:30
Manav Rathi a104f36561
Inline 2024-05-23 12:06:54 +05:30
Manav Rathi b26afdcf2e
Inline 2024-05-23 11:43:35 +05:30
Manav Rathi bf707ae02d
Inline 2024-05-23 11:37:55 +05:30
Manav Rathi 68648d2f6c
Remove nesting 2024-05-23 11:35:44 +05:30
Manav Rathi 3b89471b87
Use a standard converter 2024-05-23 10:17:11 +05:30
Manav Rathi 8a2117f9d4
Chunk 2024-05-23 10:09:47 +05:30
Manav Rathi 132ddd3648
Rework the video chunk decryptor stream logic
When running on Ubuntu 24 arm64 in the desktop app (didn't test on web0, trying
to open certain videos fails with:

> [rndr] [error] Failed to process file stream: TypeError: Failed to execute
  'enqueue' on 'ReadableStreamDefaultController': Cannot enqueue a chunk into a
  closed readable stream

While not specifically fixing that issue, I'm first rewriting this to use the
more normal (recommended?) approach of implementing a pull instead of doing
everything in start. Maybe that fixes the issue, otherwise at least one less
ghost for me to worry about.
2024-05-23 09:51:29 +05:30
Manav Rathi a086f36433
Fix type 2024-05-21 19:38:42 +05:30
Manav Rathi 4cb49c0b4a
Fix warning about required key 2024-05-21 19:31:52 +05:30
Manav Rathi 334587474f
Inline 2024-05-21 19:20:50 +05:30
Manav Rathi 0d52737c49
Inline 2024-05-21 19:18:54 +05:30
Manav Rathi d4dc080231
Inline 2024-05-21 19:14:50 +05:30
Manav Rathi f8d35c3dcf
Inline 2024-05-21 19:10:29 +05:30
Manav Rathi c20b9fa5fa
Rename 2024-05-21 19:07:04 +05:30
Manav Rathi 6a8fa727a9
Inline 2024-05-21 19:06:30 +05:30
Manav Rathi 7712a8bd10
Inline 2024-05-21 18:45:53 +05:30
Manav Rathi 4feb8fd1f1
Inline 2024-05-21 18:44:36 +05:30
Manav Rathi 994876911a
Inline 2024-05-21 18:42:42 +05:30
Manav Rathi d6398bd8fc
Inline 2024-05-21 18:39:42 +05:30
Manav Rathi 43064b617a
Inline 2024-05-21 18:36:26 +05:30
Manav Rathi 789783a370
Inline 2024-05-21 18:34:06 +05:30
Manav Rathi 9db1197c19
Inline 2024-05-21 18:33:08 +05:30
Manav Rathi 56a71c2cd8
Inline 2024-05-21 18:31:55 +05:30
Manav Rathi 9e26b81adf
We don't need them 2024-05-21 16:03:47 +05:30
Manav Rathi 94cc26aead
xMin, yMin to x, y in the remote format 2024-05-21 15:51:55 +05:30
Manav Rathi 2d5894c5d6
Convert point and box to regular objects 2024-05-21 14:28:33 +05:30
Manav Rathi 1a376a1a9b
Update deps 2024-05-21 11:52:01 +05:30
Manav Rathi 6e82964bf2
Post rebase 2024-05-21 11:50:13 +05:30
Manav Rathi fdd5ffd45c
Rename 2024-05-21 11:48:07 +05:30
Manav Rathi ccb5c48c7d
Comment 2024-05-21 11:46:49 +05:30
Manav Rathi 074d315c9f
We need both 2024-05-21 11:46:48 +05:30
Manav Rathi b8734fcc6c
Add TODO 2024-05-21 11:46:27 +05:30
Manav Rathi a8229f325d
Document and move 2024-05-21 11:46:27 +05:30
Manav Rathi 5768edb3a5
Thank you Laurens! 2024-05-21 11:46:27 +05:30
Manav Rathi 8bc80d2821
Merge 2024-05-21 11:46:26 +05:30
Manav Rathi 825f5ff88d
Inline 2024-05-21 11:45:56 +05:30
Manav Rathi 5aee42d59d
Remove calculation 2024-05-21 11:45:56 +05:30
Manav Rathi c8be764f35
Remove unused rotation 2024-05-21 11:45:55 +05:30
Manav Rathi 4e2f7c95e3
[web][photos] solve TODOs (#1790)
## Description

- Removed redundant rotation parameter in cropping
- Reviewed TODO regarding dependency: no changes
- Included proper Non-Max Suppression for filtering faces, same as on
Mobile
2024-05-21 11:42:26 +05:30
laurenspriem 56cd3a9949 [web][photos] Rename cropWithRotation to cropImage 2024-05-21 11:39:46 +05:30
laurenspriem ae5496f306 [web][photos] solve TODOs 2024-05-21 11:35:07 +05:30
Crowdin Bot ffe54f591c New Crowdin translations by GitHub Action 2024-05-21 01:40:33 +00:00
Manav Rathi 0877d9c788
[web] Don't sync CLIP emeddings in the web app 2024-05-20 20:59:05 +05:30
Manav Rathi cb86ab84f3
Send user agent 2024-05-20 14:28:27 +05:30
Manav Rathi 69b4fde936
Update TODOs based on discussion 2024-05-20 13:57:52 +05:30
Manav Rathi c2edac6192
Fix error I observed in logs
> TypeError: Cannot read properties of undefined (reading 'method')
2024-05-20 11:43:10 +05:30
Manav Rathi d7bd0f0200
[desktop] Fix ML put error 2024-05-20 11:33:43 +05:30
Manav Rathi 10934b08a8
Handle first search on app start 2024-05-20 10:39:11 +05:30
Manav Rathi 34a8bdcf47
Remove unnecessary rounding 2024-05-20 10:15:41 +05:30
Manav Rathi 20dcf3e473
Annotate 2024-05-20 10:04:33 +05:30
Manav Rathi e97225fa10
Remove 2024-05-20 09:57:42 +05:30
Manav Rathi a3aa3755c6
[desktop] Clarify that existing indexed people will not show
These auto complete suggestions and the list of people in the photo details are
not shown when ML search is disabled, and it is disabled for non-internal users,
so updated the description.
2024-05-20 09:45:55 +05:30
Manav Rathi 97b964fd6c
[web] Fix race condition in initialization of search worker
During app init, two worker instances would get created in some cases and two
getInstances raced because of the await. This was causing the search results to
be empty until the page is reloaded (since the files array was empty in the
worker that got assigned, but the files would get set to the other worker
instance that lost the race).
2024-05-19 20:21:37 +05:30
Manav Rathi e5a96222b9
Use 2024-05-19 19:14:48 +05:30
Manav Rathi 5c92bc5b89
Reduce scope 2024-05-19 19:08:07 +05:30
Manav Rathi f692638ede
Try to find a split point 2024-05-19 19:03:25 +05:30
Manav Rathi c2e42266a6
Remove unused 2024-05-19 18:57:35 +05:30
Manav Rathi 2db8c779b4
Convert to function (in preparation of declassing) 2024-05-19 18:56:42 +05:30
Manav Rathi 2d9831bc59
Move 2024-05-19 18:15:56 +05:30
Manav Rathi b026d861ff
Relative 2024-05-19 18:10:13 +05:30
Manav Rathi d9ba96b928
lf 2024-05-19 17:58:37 +05:30
Manav Rathi ffcf015e1c
lf 2024-05-19 16:58:24 +05:30
Manav Rathi b71b6142c5
Tweak 2024-05-19 16:57:19 +05:30
Manav Rathi 568e470752
Inline 2024-05-19 16:51:07 +05:30
Manav Rathi faf415277e
Trim 2024-05-19 16:46:01 +05:30
Manav Rathi bfc81b1ab6
Inline 2024-05-19 16:44:19 +05:30
Manav Rathi d99c10c15e
Inline 2024-05-19 16:41:42 +05:30
Manav Rathi d39cf15f26
Prune 2024-05-19 16:31:43 +05:30
Manav Rathi 37abeac87b
Comment out 2024-05-19 15:36:37 +05:30
Manav Rathi 7f5c951910
Split 2024-05-19 15:34:43 +05:30
Manav Rathi 87c7999370
Reduce API surface for migration 2024-05-19 15:21:45 +05:30
Manav Rathi ee894a668c
Reduce distance to server type 2024-05-19 13:23:08 +05:30
Manav Rathi 6b5788539b
Move out 2024-05-19 13:17:58 +05:30
Manav Rathi 9346ce3255
Prune 2024-05-19 13:12:27 +05:30
Manav Rathi 40dfeb5bca
Tweak 2024-05-19 12:57:47 +05:30
Manav Rathi 2e46f993f0
Remove duplicate alignment calculation 2024-05-19 12:50:31 +05:30
Manav Rathi ded2402483
Rearrange 2024-05-19 12:43:24 +05:30
Manav Rathi 393a8f11dd
Rearrange 2024-05-19 12:28:54 +05:30
Manav Rathi 82485ef9a1
Tweak 2024-05-19 12:24:17 +05:30
Manav Rathi b36d3befe0
Split 2024-05-19 12:10:53 +05:30
Manav Rathi e6ed6b4916
Tinker 2024-05-19 12:06:59 +05:30
Manav Rathi 6427c09f52
Don't let face crop save failures abort the entire indexing 2024-05-19 11:59:03 +05:30
Manav Rathi 9abc22ade5
Remove unused 2024-05-19 11:57:13 +05:30
Manav Rathi 1466ece701
Cache the caches 2024-05-19 11:54:00 +05:30
Manav Rathi 99ed1bc9af
Show saved crops 2024-05-19 07:18:18 +05:30
Manav Rathi 3ade7b797e
Fix duplicate check 2024-05-18 20:50:35 +05:30
Manav Rathi 93c498b0f4
Remove unused context 2024-05-18 20:39:57 +05:30
Manav Rathi 6849041735
Tweak 2024-05-18 20:26:20 +05:30
Manav Rathi a4494f5c6a
Tweak 2024-05-18 20:23:31 +05:30
Manav Rathi 97adb89494
Tweak 2024-05-18 20:18:39 +05:30
Manav Rathi fe8ff0a12a
Remove redundant 2024-05-18 20:16:00 +05:30
Manav Rathi 8975546294
Simplify 2024-05-18 20:13:43 +05:30
Manav Rathi acd3568dc6
Tinker 2024-05-18 20:06:29 +05:30
Manav Rathi 3b6760c65e
Remove unused blazeflaze landmarks 2024-05-18 19:55:51 +05:30
Manav Rathi 6304d90b52
Inline 2024-05-18 19:50:13 +05:30
Manav Rathi 410b6e7d3e
Tinker 2024-05-18 19:41:34 +05:30
Manav Rathi a161203d0b
Inline 2024-05-18 19:32:34 +05:30
Manav Rathi c8623bab12
Cleanup 2024-05-18 17:42:27 +05:30
Manav Rathi aa76448747
Shorten 2024-05-18 17:32:42 +05:30
Manav Rathi 139370c997
Shorten 2024-05-18 17:31:39 +05:30
Manav Rathi 4d5ba47be4
Sugar 2024-05-18 17:27:41 +05:30
Manav Rathi 3f18fb84a1
Rearrange 2024-05-18 17:20:42 +05:30
Manav Rathi 39a75430a5
Inline 2024-05-18 17:19:29 +05:30
Manav Rathi c557e4a7a5
Inline 2024-05-18 16:56:18 +05:30
Manav Rathi a2e7231c37
Prune 2024-05-18 16:52:54 +05:30
Manav Rathi 9ba028b79d
Isolate 2024-05-18 16:52:25 +05:30
Manav Rathi 8f43c3d712
Simplify 2024-05-18 16:19:55 +05:30
Manav Rathi 76cfae12a5
Point of use 2024-05-18 16:02:27 +05:30
Manav Rathi b29436e160
Prune 2024-05-18 16:00:07 +05:30
Manav Rathi bcbd805404
Inline 2024-05-18 15:58:41 +05:30
Manav Rathi 433d0e81fc
Prune 2024-05-18 15:57:36 +05:30
Manav Rathi bef7574c29
Trim 2024-05-18 15:53:10 +05:30
Manav Rathi 772215eddc
Rearrange 2024-05-18 10:59:18 +05:30
Manav Rathi e13f59606f
Inline 2024-05-18 10:56:19 +05:30
Manav Rathi 4840214d89
Rearrange 2024-05-18 10:51:31 +05:30
Manav Rathi b3b79c2b90
Rearrange 2024-05-18 10:48:09 +05:30
Manav Rathi f25b4b37d0
Site of use 2024-05-18 10:46:34 +05:30
Manav Rathi 8a5bffc3e9
Remove unused 2024-05-18 10:43:44 +05:30
Manav Rathi 2791eeb270
Remove unused 2024-05-18 10:42:39 +05:30
Manav Rathi bd3bdf64c2
Tweak 2024-05-18 10:40:49 +05:30
Manav Rathi 56aaad62be
Tweak 2024-05-18 10:33:32 +05:30
Manav Rathi 88f9186be0
Split 2024-05-18 10:25:35 +05:30
Manav Rathi 9fa828e384
Restrict 2024-05-18 10:23:50 +05:30
Manav Rathi 42d767cac3
Shorten 2024-05-18 10:18:09 +05:30
Manav Rathi 17d78f23bb
Shorten 2024-05-18 10:14:15 +05:30
Manav Rathi 246d44648b
Reify 2024-05-18 10:11:16 +05:30
Manav Rathi 33d3428222
Move 2024-05-18 10:07:39 +05:30
Manav Rathi 295717ac2f
Simplify 2024-05-18 09:59:53 +05:30
Manav Rathi 9808dce44d
Pretty 2024-05-18 09:56:20 +05:30
Manav Rathi fb81a59d4b
Site of use 2024-05-18 09:51:42 +05:30
Manav Rathi 0188749692
Prune 2024-05-18 09:21:17 +05:30
Manav Rathi 46ad045ed4
Merge 2024-05-18 09:19:14 +05:30
Manav Rathi 58193c0d7f
Remove unused exports 2024-05-18 09:18:32 +05:30
Manav Rathi 87f60149e1
Remove DB dependency from indexer 2024-05-18 09:16:53 +05:30
Manav Rathi ae70eb33dd
Inline 2024-05-18 09:13:48 +05:30
Manav Rathi e224ad19d3
Separate 2024-05-18 09:12:49 +05:30
Manav Rathi f9346c56e9
Inline 2024-05-18 09:02:59 +05:30
Manav Rathi e15460684d
Inline 2024-05-18 08:51:57 +05:30
Manav Rathi 93cdf73a66
Inline 2024-05-18 08:50:48 +05:30
Manav Rathi eaadc54184
Inline 2024-05-18 08:48:37 +05:30
Manav Rathi 5eb21fafbe
Extract indexer 2024-05-18 08:43:01 +05:30