New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Face testing #566
base: master
Are you sure you want to change the base?
Face testing #566
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #566 +/- ##
==========================================
- Coverage 39.46% 39.44% -0.03%
==========================================
Files 138 138
Lines 4487 4490 +3
Branches 567 567
==========================================
Hits 1771 1771
- Misses 2541 2545 +4
+ Partials 175 174 -1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Awesome looks great after a quick skim of the changes. I really like the idea of using DBScan to cluster the faces first. I noticed that you have forked two Go projects ( Do you think you'll be changing the the way face groups are managed (move, merge, detach, etc.). Because I am working on adding faces to the sidebar, and if you want to make changes, I'd rather wait until this is merged to implement that. |
Thank you! I'm not sure how easy it would be to implement a similar system for when faces are first scanned in (e.g. per album), but I think that's something to consider at a later date.
For
Generally no - although I might like to change the way this currently works, I don't think I'll have time to get round to it at the moment. The main thing I'm trying to add (inspired by favourites in photos) is the ability to hide faces - although it would be good to see those faces directly in the sidebar anyway, so I don't think there will be any conflicts! |
Sounds good!
I think it makes very good sense to cluster faces on a per album basis when an album is scanned the first time, as often the same people appear multiple times in the same album and it would still mean that the scanner doesn't have to scan the entire library before it can start doing face recognition. And we would simply have to move the recogniser out of the for-loop and pass the photoview/api/scanner/scanner_album.go Lines 142 to 151 in a0e73aa
But as you say, it's fine to do that in another pull request, as this is already a big patch.
That's fine, I'd appreciate if you sent a pull-request to see if they would accept it upstream. If not let's go with your fork. |
Just popping back in to say I haven't completely abandoned this - unfortunately work and other commitments have put this on the back seat for now (and most likely until the end of the month unfortunately :( ). I'll see if I can tidy up the code I have already, a smaller commit to solve the two linked issues might be more manageable than trying to fix everything in one go! |
Thank you for letting me know. That's completeley fine, take the time you need. As the face recognition part of the API has barely any testing, I'd really like some more tests on that moving forward. I think that it will be very natural to add simultaneously with fixing #255 - to verify that the fix(es) do indeed work. |
This closes #551, along with #255. Definitely a work in progress - no tests yet, and not all functionality added.
#255 - clusters unrecognised faces, then attempt to match them. Although this is a significant departure from the current setup of scanning for matches on a face-by-face basis, it avoids incorrect matches accumulating as part of recognised faces.
Will explain the changes once I've finished ironing out all the bugs!