facerecognition icon indicating copy to clipboard operation
facerecognition copied to clipboard

Reset clustering takes hours and seems to be stuck

Open blackmore190 opened this issue 1 year ago • 3 comments

I try tuning the parameters to reduce false positives in a person cluster. So I wanted to reset the clustering to recluster with new parameters after that.

The command I used: occ face:reset --clustering

But it hangs for hours now, there was a back question if i am sure but after that nithing else happened.

Can I recluster without resetting?

Thanks for your help!

blackmore190 avatar Nov 13 '24 21:11 blackmore190

At the moment you cannot recluster without resetting.

Two Options...

Option 1: For testing create a user with a few pictures. Reset only this user. with occ:face:reset -u [uid] < i think it was so. I cannot check it at the moment. Then recluster

Option2: Let do the recluster in the original background-job. occ:face:backgroundjob -t 900 (or what you want in seconds) and run this job as much as needed in your crontab.

Oski19831 avatar Nov 15 '24 10:11 Oski19831

So when I change parameters the backgroundjob reclusters automatically? Or how is option 2 ment?

blackmore190 avatar Nov 18 '24 13:11 blackmore190

The normal way is to use a cronjob to cluster your faces. On Debian-Based Systems use sudo -u www-data crontab -e There u can add the line like */30 * * * * php -f /var/www/nextcloud/occ face:background_job -t 900

The result is that every 30 Minutes the Crontab executes the background-taks for 15 Minutes so often until all faces are reclusterd. you must edit the path to your nextcloud-directory. If you use Docker you must do this in the container.

Oski19831 avatar Nov 18 '24 14:11 Oski19831