π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Remove unused clustering method
Manav Rathi1856e344db3d
diff --git a/web/apps/photos/package.json b/web/apps/photos/package.jsonindex ac658c0ea5..a200c8ef74 100644--- a/web/apps/photos/package.json+++ b/web/apps/photos/package.json@@ -16,7 +16,6 @@"chrono-node": "^2.2.6","date-fns": "^2","debounce": "^2.0.0",- "density-clustering": "^1.3.0","eventemitter3": "^4.0.7","exifr": "^7.1.3","fast-srp-hap": "^2.0.4",diff --git a/web/apps/photos/src/services/machineLearning/machineLearningService.ts b/web/apps/photos/src/services/machineLearning/machineLearningService.tsindex 2ebd14efeb..94fae01d2a 100644--- a/web/apps/photos/src/services/machineLearning/machineLearningService.ts+++ b/web/apps/photos/src/services/machineLearning/machineLearningService.ts@@ -40,7 +40,6 @@ import { EnteFile } from "types/file";import { isInternalUserForML } from "utils/user";import arcfaceAlignmentService from "./arcfaceAlignmentService";import arcfaceCropService from "./arcfaceCropService";-import dbscanClusteringService from "./dbscanClusteringService";import FaceService from "./faceService";import hdbscanClusteringService from "./hdbscanClusteringService";import laplacianBlurDetectionService from "./laplacianBlurDetectionService";@@ -175,9 +174,6 @@ export class MLFactory {if (method === "Hdbscan") {return hdbscanClusteringService;}- if (method === "Dbscan") {- return dbscanClusteringService;- }throw Error("Unknon clustering method: " + method);}diff --git a/web/docs/dependencies.md b/web/docs/dependencies.mdindex 062ffeb72c..bd14b25b68 100644--- a/web/docs/dependencies.md+++ b/web/docs/dependencies.md@@ -174,3 +174,6 @@ some cases.- [sanitize-filename](https://github.com/parshap/node-sanitize-filename) isfor converting arbitrary strings into strings that are suitable for beingused as filenames.++- [hdbscan](https://github.com/shaileshpandit/hdbscan-js) is used for face+ clustering.diff --git a/web/yarn.lock b/web/yarn.lockindex 12c2d5d2b4..a18a0a0dc8 100644--- a/web/yarn.lock+++ b/web/yarn.lock@@ -1896,11 +1896,6 @@ delayed-stream@~1.0.0:resolved "https://registry.yarnpkg.com/delayed-stream/-/delayed-stream-1.0.0.tgz#df3ae199acadfb7d440aaae0b29e2272b24ec619"integrity sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==-density-clustering@^1.3.0:- version "1.3.0"- resolved "https://registry.yarnpkg.com/density-clustering/-/density-clustering-1.3.0.tgz#dc9f59c8f0ab97e1624ac64930fd3194817dcac5"- integrity sha512-icpmBubVTwLnsaor9qH/4tG5+7+f61VcqMN3V3pm9sxxSCt2Jcs0zWOgwZW9ARJYaKD3FumIgHiMOcIMRRAzFQ==-dequal@^2.0.3:version "2.0.3"resolved "https://registry.yarnpkg.com/dequal/-/dequal-2.0.3.tgz#2644214f1997d39ed0ee0ece72335490a7ac67be"