Cannot rerun Facial Recognition
I have a problem that a lot of users seem to have - children getting older. I tried to experiment with the facial recognition settings and found a value that was better but still not the best, so I wanted to optimize it a bit more, but the job cannot be run again. When clicking on
ALL
in the RECOGNIZE FACES
job overview it says that it started, but in the logs these show up and nothing more happens:
(I hope this is not a duplicate, but I could not find anything here... 🥴)19 Replies
Hmm
@DR7 do you think this is related to the recent feature of running facial thumbnail?
sorry, I forgot to mention, this problem happens in 1.78.0 and I also had it with 1.76.1
1.76.1 didn't have facial thumbnail regeneration
the error occurs when clicking this button

and I'm adjusting these settings

not sure if this has something to do with thumbnail regeneration 🤷
(why is it doing a select of 24728 rows with an IN? 😮 )
@darookee how many faces do you have in your library? I'm guessing more than 20k?
@Alex could it be that a previous recognition with too low score parameters created a lot of faces, and there is a query somewhere that is not optimized for a large number of rows in the person table?
Yes, I had the min detection score set lower than default for a few tests. I'm not sure how many faces there are, though. the error message ends with
...$90261, $90262, $90263, $90264)
😬
so maybe clearing out the faces table would 'solve' this?as a workaround, probably, you can try. Let's see what Alex thinks
ok!
i just looked at the stats, I guess with 114k pictures there is a possibility to have at leas 25k faces... 😬

eheh
@darookee could you provide a larger log please? Maybe there is some stacktrace that can help us pinpoint the issue
jup
there may be duplicte lines - i copied it from the terminal because redirecting logs from
docker compose logs
does not work for me, for some reason... 🤷(i probably could have skipped all those postgres lines... sorry 😬)
do you remember how low you went? it can find a lot of faces in every image if it's set close enough to 0
I think I had the 'min detection score' set to 0.5 or 0.6, but the I had the max recognition distance set to 0.3 at some point. a huge part of these 114k photos are two kids growing up, they were detected as the same person at a very young age even with 0.5, so I went lower 😬
that detection score is fine, but 0.3 for recognition distance is really strict so it'll separate the same person many times. it's a quirk of the current facial clustering we hope to improve. it's because we do recognition on the fly as images are processed, so we don't have the full picture (no pun intended) of how the faces should be clustered into people.
got the same now, and thinking the new setting will help alot, did you figure it out OP?
I didn't bother with it (as i'm the only user currently, i'm on my way to transition everyone in the family over from google photos) for quite some time. and after the 1.79 update the whole database was rebuilt and rescanned (because i switched from the 'external import' thing to the external libraries) and the error didn't come up again. i currently have the detection score set to 0.8 and the minimum distance to 0.4 and was satisfied with the result.