Commit graph

363 commits

Author SHA1 Message Date
Manav Rathi
6cd795e29c
Create alternate code path 2024-04-13 07:19:28 +05:30
Manav Rathi
3499e47c88
Tweak 2024-04-13 06:47:43 +05:30
Manav Rathi
5ff01c40d8
poc implementation 2024-04-12 21:29:05 +05:30
Manav Rathi
295c0aa82e
Splinter 2024-04-12 21:12:37 +05:30
Manav Rathi
871a0e83cf
Fix 2024-04-12 20:59:15 +05:30
Manav Rathi
a56cf55ffa
Remove indirection 2024-04-12 20:58:00 +05:30
Manav Rathi
b056cf7f56
Move to newer shared package 2024-04-12 20:55:07 +05:30
Manav Rathi
a2a8be3b19
Scaffold the split 2024-04-12 20:52:33 +05:30
Manav Rathi
41472eb87d
Document and structure more 2024-04-12 20:24:48 +05:30
Manav Rathi
c691ad2ac1
Document the plan 2024-04-12 20:11:44 +05:30
Manav Rathi
36f9ca2004
Remove unused param 2024-04-12 19:53:23 +05:30
Manav Rathi
65c7cd2c05
[web] Various changes, moving towards fixing desktop caching (#1424)
The overall aim was to get the caching layer trimmed down to a point
where we can plug in OPFS into it for desktop. This PR doesn't have that
specific change, but it's just me gradually changing things, working
towards that.
2024-04-12 16:28:59 +05:30
Manav Rathi
b36175a779
user 2024-04-12 15:40:24 +05:30
Manav Rathi
c83dc87d5d
Inline the factory 2024-04-12 14:45:03 +05:30
Manav Rathi
495ff99874
Replace enum with TS type 2024-04-12 14:41:33 +05:30
Manav Rathi
cd3ff6f878
Delete is not needed outside 2024-04-12 14:32:50 +05:30
Manav Rathi
b447dedf83
Cache limit is usused 2024-04-12 14:26:41 +05:30
Manav Rathi
bdadc839e0
Remove firefox specific workaround
In a quick (but possibly incomplete) test I wasn't able to reproduce this in an
incognito window. Throwing the error from here has a potential for breaking
things though, I'll try to verify this as I go through the flows individually.
2024-04-12 14:23:56 +05:30
Crowdin Bot
ac534cf163 New Crowdin translations by GitHub Action 2024-04-12 01:37:37 +00:00
Manav Rathi
7fa9e924eb
Consolidate 2024-04-11 20:57:54 +05:30
Manav Rathi
320db9f8b7
Fix the putEmbeddings API calls for now 2024-04-11 16:22:38 +05:30
Manav Rathi
ff66a2f44c
The ML code runs in workers 2024-04-11 15:27:02 +05:30
Manav Rathi
a1d6ef43b4
Roundtrip 2024-04-11 14:37:44 +05:30
Manav Rathi
a88f551b6a
WIP IPC API 2024-04-11 13:58:52 +05:30
Manav Rathi
6fc82ff062
[web] Import ONNX-YOLO face changes from the web_face branch (#1399)
Laurens has made the relevant changes to get ONNX-YOLO face detection
working in a manner where the generated embeddings are the same as what
get generated by the corresponding ML stack in the mobile client.

This PR cherry picks his ML related changes from the branch he was
working in, but leaves out the surrounding scaffolding (We cannot merge
that branch directly because it relies on wasm that we don't need and
don't want to commit to main).

At this point this functionality is correct but not usable - the next
step will be to tie this to the ONNX runtime that we already have on the
Node.js layer of our desktop app.

**Tests**

- yarn dev + smoke test
- yarn build + smoke test
- yarn lint
2024-04-10 15:36:03 +05:30
laurenspriem
3eb95bd822
Import ONNX-YOLO face changes from the web_face branch
Laurens has made the relevant changes to get ONNX-YOLO face detection working in
a manner where the generated embeddings are the same as what get generated by
the corresponding ML stack in the mobile client.

This commit cherry picks his ML related changes from the branch he was working
in, but leaves out the surrounding scaffolding (We cannot merge that branch
directly because it relies on wasm that we don't need and don't want to commit
to main).

At this point this functionality is correct but not usable - the next step will
be to tie this to the ONNX runtime that we already have on the Node.js layer of
our desktop app.
2024-04-10 14:41:59 +05:30
Manav Rathi
e0fe018f34
Log on unhandled errors and promise rejections
Test code:

    useEffect(() => {
        setTimeout(() => testFunctionSync(), 5000);
    }, []);

    useEffect(() => {
        testFunction();
    }, []);

    const testFunctionSync = () => {
        console.log("sleeping not");
        // sleep(2000);
        console.log("woke up not");
        throw new Error("Handle me");
    };

    const testFunction = async () => {
        console.log("sleeping");
        sleep(2000);
        console.log("woke up");
        throw new Error("Handle me");
    };

Refs:
- https://developer.mozilla.org/en-US/docs/Web/API/Window/unhandledrejection_event
- https://github.com/megahertz/electron-log/blob/master/src/renderer/lib/RendererErrorHandler.js
2024-04-10 13:05:00 +05:30
Manav Rathi
af79f4f0c9
Audit app update functions 2024-04-10 12:32:43 +05:30
Manav Rathi
3c7277a0b1
onMainWindowFocus 2024-04-10 11:16:21 +05:30
Manav Rathi
170aef9b30
Rename 2024-04-10 11:06:18 +05:30
Manav Rathi
8bcf77b7f7
IPC keys 2024-04-10 11:03:36 +05:30
Manav Rathi
18606b2358
IPC cleanup 2024-04-10 10:18:06 +05:30
Manav Rathi
a813de5617
Only ONNX, web 2024-04-09 20:53:08 +05:30
Manav Rathi
b76b57d07e
Bye GGML web 2024-04-09 20:07:11 +05:30
Manav Rathi
544e6be3fd
Document 2024-04-09 15:38:59 +05:30
Manav Rathi
4f76cfb912
[web] New translations (#1380)
New translations from
[Crowdin](https://crowdin.com/project/ente-photos-web)
2024-04-09 13:23:39 +05:30
Manav Rathi
b0fbd68d27
Fix errors 2024-04-09 13:13:37 +05:30
Manav Rathi
9127c48787
Remove duplicate files 2024-04-09 12:45:37 +05:30
Manav Rathi
5edca461f7
Final touches 2024-04-09 12:39:37 +05:30
Manav Rathi
4aa3d68e36
Wrap the assertion 2024-04-09 12:36:25 +05:30
Manav Rathi
56ce5c0b0e
More transition 2024-04-09 12:17:33 +05:30
Manav Rathi
d441418b5b
Remove deprecated loggers 2024-04-09 12:06:46 +05:30
Manav Rathi
0d0e20f7c4
More manual tweaks 2024-04-09 11:58:44 +05:30
Manav Rathi
1dc8f4617e
log.error regex replacement
- logError\(e, (".+")\);
- log.error($1, e);

+ a whole bunch of manual tweakings
2024-04-09 11:32:34 +05:30
Manav Rathi
72dea7eca6
Start using it 2024-04-09 09:53:28 +05:30
Manav Rathi
54a973c457
Expose on the globalThis
Note that the filename of the .d.ts has to be different from any existing file!
https://stackoverflow.com/questions/59728371/typescript-d-ts-file-not-recognized
2024-04-09 09:37:43 +05:30
Crowdin Bot
7dee92f44e New Crowdin translations by GitHub Action 2024-04-09 01:37:23 +00:00
Manav Rathi
59bda25be2
Fix log entry format 2024-04-08 21:00:05 +05:30
Manav Rathi
92a3650696
Dedup comlink 2024-04-08 20:53:27 +05:30
Manav Rathi
a1c9ceae6b
Add temporary gateways 2024-04-08 20:47:47 +05:30