Skip to content

Commit

Permalink
Update Dimensions
Browse files Browse the repository at this point in the history
Adapt dimensions to 1024 as outputed by @vladmandic/human

Signed-off-by: ghisch <168481965+ghisch@users.noreply.github.com>
  • Loading branch information
ghisch authored Dec 2, 2024
1 parent 2da49b9 commit 085b98c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Service/FaceClusterAnalyzer.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class FaceClusterAnalyzer {
public const MIN_DETECTION_SIZE = 0.03;
public const MIN_CLUSTER_SEPARATION = 0.35;
public const MAX_CLUSTER_EDGE_LENGTH = 0.5;
public const DIMENSIONS = 128;
public const DIMENSIONS = 1024;
public const MAX_OVERLAP_NEW_CLUSTER = 0.1;
public const MIN_OVERLAP_EXISTING_CLUSTER = 0.5;

Expand Down Expand Up @@ -186,7 +186,7 @@ public function calculateClusters(string $userId, int $batchSize = 0): void {
* @return list<float>
*/
public static function calculateCentroidOfDetections(array $detections): array {
// init 128 dimensional vector
// init 1024 dimensional vector
/** @var list<float> $sum */
$sum = [];
for ($i = 0; $i < self::DIMENSIONS; $i++) {
Expand Down

0 comments on commit 085b98c

Please sign in to comment.