Commit graph

25321 commits

Author SHA1 Message Date
Manav Rathi d3eb85be8d
Split 2024-04-11 13:17:56 +05:30
Manav Rathi bbdbad5891
[web] Remove tensorflow, and then some (#1411)
Remove all ML code that is not in the immediate release path. We will
resurrect if/when we reintroduce object and text detection, for now we
prune in an attempt to get the face detection release out to completion.
2024-04-11 12:48:47 +05:30
Manav Rathi 6d769773cc
tsc 2024-04-11 12:42:18 +05:30
Manav Rathi d0ffb83d90
Restore 2024-04-11 12:40:49 +05:30
Manav Rathi 6091ad9cfd
Remove search UI integration 2024-04-11 12:36:37 +05:30
Manav Rathi 4fff855070
lint-fix 2024-04-11 12:31:42 +05:30
Manav Rathi e52d17dcfc
Last tf 2024-04-11 12:30:07 +05:30
Manav Rathi 485a1e0be4
Remove unused code that required tensorflow 2024-04-11 12:29:06 +05:30
Manav Rathi da5edc610f
Remove more tf 2024-04-11 12:24:03 +05:30
Manav Rathi 1f8ebc0bca
Inline 2024-04-11 12:22:09 +05:30
Manav Rathi e57e44c139
Inline 2024-04-11 12:14:59 +05:30
Manav Rathi 6ba5852876
Prune 2024-04-11 12:10:02 +05:30
Manav Rathi 38e9e901f6
Inline 2024-04-11 12:06:50 +05:30
Manav Rathi 79a975a281
Remove various unused util methods 2024-04-11 12:05:09 +05:30
Manav Rathi ce566f522d
Prune 2024-04-11 11:59:36 +05:30
Manav Rathi d2e7925c63
Prune 2024-04-11 11:47:07 +05:30
Manav Rathi 006ea085fe
Prune 2024-04-11 11:43:05 +05:30
Manav Rathi 03df858dcc
Remove ssdMobileNetV2 2024-04-11 11:23:23 +05:30
Manav Rathi da3b58661a
Remove blazeface 2024-04-11 11:21:19 +05:30
Manav Rathi e6905577c6
Remove blazeface-back 2024-04-11 11:17:15 +05:30
Manav Rathi e7902c5d83
Remove more tf 2024-04-11 11:15:15 +05:30
Manav Rathi 3182d67ca1
Remove tf utils 2024-04-11 11:13:52 +05:30
Manav Rathi 1ad5cb83f9
Remove object detection related code 2024-04-11 11:09:32 +05:30
Manav Rathi 24a4c73351
[server] Reduce noise from error logs (#1409)
## Description

## Tests
2024-04-11 10:56:00 +05:30
Neeraj Gupta 339d728774 [server] Handle no user err gracefully 2024-04-11 10:29:39 +05:30
Neeraj Gupta fa195af971 [server]Change log level to warning 2024-04-11 10:26:19 +05:30
Neeraj Gupta ed69de9875 [server]Log invalid password at warn level 2024-04-11 10:21:56 +05:30
Manav Rathi 6079ebbc05
[docs] Enteception (#1408)
Add FAQ about storing Ente 2FA in Ente Auth.
2024-04-11 09:28:16 +05:30
Manav Rathi 17f84398b7
Enteception 2024-04-11 09:26:45 +05:30
Manav Rathi 26c528f359
yarn pretty 2024-04-11 09:03:51 +05:30
Manav Rathi b6e1c4d3da
Inline 2024-04-10 21:36:43 +05:30
Manav Rathi 0ee416c91b
git rm -r apps/photos/public/js/{tesseract,tfjs,tflite} 2024-04-10 21:32:22 +05:30
Manav Rathi 3e8d88caf2
git rm -r apps/photos/public/models 2024-04-10 21:31:06 +05:30
Manav Rathi 52342a23cb
Remove tensorflow packages
yarn workspace photos remove "@tensorflow-models/coco-ssd" "@tensorflow/tfjs-backend-cpu" "@tensorflow/tfjs-backend-webgl" "@tensorflow/tfjs-converter" "@tensorflow/tfjs-core" "@tensorflow/tfjs-tflite"
2024-04-10 21:29:23 +05:30
Manav Rathi f6c47138e1
Addedfaq-v1 (#1404) 2024-04-10 21:13:51 +05:30
Manav Rathi 549ad77ac6
[desktop] Various improvements (#1407)
- Restore macOS icon
- Remove unnecessary require
- Spruce dependencies docs
- Use standard import for jpeg-js
- Rearrange files
- Import onnxruntime with TypeScript types
2024-04-10 21:13:01 +05:30
Manav Rathi 500022d4b9
Import onnxruntime with TypeScript types
Refs:
- https://github.com/microsoft/onnxruntime/issues/17979
2024-04-10 21:01:30 +05:30
Manav Rathi 2da9565dcb
Rearrange files 2024-04-10 20:44:52 +05:30
Manav Rathi 8f8d93d11e
Use standard import for jpeg-js 2024-04-10 20:36:46 +05:30
Manav Rathi 008b6d5186
Spruce dependencies docs 2024-04-10 20:36:46 +05:30
Manav Rathi d913cbeae5
Remove unnecessary require 2024-04-10 20:32:32 +05:30
Manav Rathi 11451efffd
Restore macOS icon
git checkout 42679bc9daa4108681683079f4cb1f2832f4578c~ -- build/icon.icns
2024-04-10 20:32:32 +05:30
Manav Rathi 66c06c7601
[desktop] Build ARM64 variant of Windows (#1405)
Fixes https://github.com/ente-io/ente/issues/1374

A customer reported that the app fails to run on Windows ARM. The error
is coming when trying to load ONNX.

ONNX runtime supports Windows ARM, e.g. see
-
https://www.jsdelivr.com/package/npm/onnxruntime-node?tab=files&path=bin%2Fnapi-v3%2Fwin32
- https://github.com/microsoft/onnxruntime/issues/18078

The issue then seems to be that we're not actually building for Windows
ARM. I'm not sure about this (don't have a Windows ARM machine at hand),
but my theory is that since we don't ask Electron Builder to build for
win arm64, it doesn't copy the corresponding ONNX binary into the
generated bundle.

Other refs:
- https://www.electron.build/cli.html
2024-04-10 19:34:35 +05:30
Manav Rathi ecf40a70cf
[desktop] Build ARM64 variant of Windows
Fixes https://github.com/ente-io/ente/issues/1374

A customer reported that the app fails to run on Windows ARM. The error is
coming when trying to load ONNX.

ONNX runtime supports Windows ARM, e.g. see
- https://www.jsdelivr.com/package/npm/onnxruntime-node?tab=files&path=bin%2Fnapi-v3%2Fwin32
- https://github.com/microsoft/onnxruntime/issues/18078

The issue then seems to be that we're not actually building for Windows ARM. I'm
not sure about this (don't have a Windows ARM machine at hand), but my theory is
that since we don't ask Electron Builder to build for win arm64, it doesn't copy
the corresponding ONNX binary into the generated bundle.

Other refs:
- https://www.electron.build/cli.html
2024-04-10 19:33:37 +05:30
Manav Rathi 4a69e9260c
[web] Import the scaffolding to sync face embeddings from web_face_v2 (#1402)
This PR cherry picks Neeraj's ML related changes from the web_face_v2
branch.

Similar to https://github.com/ente-io/ente/pull/1399, this gets us one
step closer to integrating ONNX-YOLO with our desktop app. But it is not
currently in a usable state (The web app's functionality remains
untouched).
2024-04-10 16:53:48 +05:30
Manav Rathi 18937581a5
Lint fixes 2024-04-10 16:41:26 +05:30
Neeraj Gupta eefac7fd01
[web] Import the scaffolding to sync face embeddings from web_face_v2
This PR cherry picks Neeraj's ML related changes from the web_face_v2 branch.

Similar to https://github.com/ente-io/ente/pull/1399, this gets us one step
closer to integrating ONNX-YOLO with our desktop app. But it is not currently in
a usable state (The web app's functionality remains untouched).
2024-04-10 16:38:12 +05:30
Manav Rathi 334fd61ea3
[desktop] Code tweaks (#1401)
- Remove top level wrapper
- Document the tray icon
- Update to the new product name where possible
2024-04-10 16:30:54 +05:30
Ashil 3542c8eeff
[Mobile][Photos] Bump up version to 0.8.78 (#1400) 2024-04-10 16:10:54 +05:30
Manav Rathi c73c674ee4
Update to the new product name where possible
(without breaking auto-updates)
2024-04-10 16:07:25 +05:30