π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Remove no-longer used hdbscan code
Manav Rathi5d6ac29d71cc
diff --git a/web/apps/photos/package.json b/web/apps/photos/package.jsonindex f7a6b93f09..59f3c3b7dd 100644--- a/web/apps/photos/package.json+++ b/web/apps/photos/package.json@@ -17,7 +17,6 @@"exifreader": "^4","fast-srp-hap": "^2.0.4","ffmpeg-wasm": "file:./thirdparty/ffmpeg-wasm",- "hdbscan": "0.0.1-alpha.5","leaflet": "^1.9.4","leaflet-defaulticon-compatibility": "^0.1.1","localforage": "^1.9.0",diff --git a/web/docs/dependencies.md b/web/docs/dependencies.mdindex 7451f802bb..b8e13fe8c7 100644--- a/web/docs/dependencies.md+++ b/web/docs/dependencies.md@@ -209,9 +209,6 @@ For more details, see [translations.md](translations.md).> provides affine transforms, while `matrix` is for performing computations> on matrices, say inverting them or performing their decomposition.-- [hdbscan](https://github.com/shaileshpandit/hdbscan-js) is used for face- clustering.-## Auth app specific- [otpauth](https://github.com/hectorm/otpauth) is used for the generation ofdiff --git a/web/packages/new/photos/services/ml/cluster-hdb.ts b/web/packages/new/photos/services/ml/cluster-hdb.tsdeleted file mode 100644index 3ecda4b5bc..0000000000--- a/web/packages/new/photos/services/ml/cluster-hdb.ts+++ /dev/null@@ -1,35 +0,0 @@-import { Hdbscan, type DebugInfo } from "hdbscan";--/**- * Each "cluster" is a list of indexes of the embeddings belonging to that- * particular cluster.- */-export type EmbeddingCluster = number[];--export interface ClusterHdbscanResult {- clusters: EmbeddingCluster[];- noise: number[];- debugInfo?: DebugInfo;-}--/**- * Cluster the given {@link embeddings} using hdbscan.- */-export const clusterHdbscan = (- embeddings: number[][],-): ClusterHdbscanResult => {- const hdbscan = new Hdbscan({- input: embeddings,- minClusterSize: 3,- minSamples: 5,- clusterSelectionEpsilon: 0.6,- clusterSelectionMethod: "leaf",- debug: false,- });-- return {- clusters: hdbscan.getClusters(),- noise: hdbscan.getNoise(),- debugInfo: hdbscan.getDebugInfo(),- };-};diff --git a/web/yarn.lock b/web/yarn.lockindex eb8911c489..2d6425cb67 100644--- a/web/yarn.lock+++ b/web/yarn.lock@@ -2671,13 +2671,6 @@ hasown@^2.0.0, hasown@^2.0.1, hasown@^2.0.2:dependencies:function-bind "^1.1.2"- version "0.0.1-alpha.5"- resolved "https://registry.yarnpkg.com/hdbscan/-/hdbscan-0.0.1-alpha.5.tgz#8b0cd45243fa60d2fe83e31f1e8bc939ff374c0d"- integrity sha512-Jv92UaFFRAMcK8GKhyxlSGvkf5pf9Y9HpmRQyyWfWop5nm2zs2NmgGG3wOCYo5zy1AeZFtVJjgbpaPjR0IsR/Q==- dependencies:- kd-tree-javascript "^1.0.3"-heic-convert@^2.1.0:version "2.1.0"resolved "https://registry.yarnpkg.com/heic-convert/-/heic-convert-2.1.0.tgz#7f764529e37591ae263ef49582d1d0c13491526e"@@ -3121,11 +3114,6 @@ jszip@^3.10.1:readable-stream "~2.3.6"setimmediate "^1.0.5"-kd-tree-javascript@^1.0.3:- version "1.0.3"- resolved "https://registry.yarnpkg.com/kd-tree-javascript/-/kd-tree-javascript-1.0.3.tgz#ab5239ed44e347e10065590fd479e947bedff96c"- integrity sha512-7oSugmaxTCJFqey11rlTSEQD3hGDnRgROMj9MEREvDGV8SlIFwN7x3jJRyFoi+mjO0+4wuSuaDLS1reNQHP7uA==-keyv@^4.5.3:version "4.5.4"resolved "https://registry.yarnpkg.com/keyv/-/keyv-4.5.4.tgz#a879a99e29452f942439f2a405e3af8b31d4de93"