diff --git a/lib/Service/FaceClusterAnalyzer.php b/lib/Service/FaceClusterAnalyzer.php index f4d51d98..b7edc52b 100644 --- a/lib/Service/FaceClusterAnalyzer.php +++ b/lib/Service/FaceClusterAnalyzer.php @@ -44,6 +44,10 @@ public function setMinDatasetSize(int $minSize) : void { public function calculateClusters(string $userId, int $batchSize = 0): void { $this->logger->debug('ClusterDebug: Retrieving face detections for user ' . $userId); + if ($batchSize === 0) { + ini_set('memory_limit', -1); + } + $unclusteredDetections = $this->faceDetections->findUnclusteredByUserId($userId, $batchSize); $unclusteredDetections = array_values(array_filter($unclusteredDetections, fn ($detection) =>