Face recognition
How naming people works​
Not released yet (comes after 1.7.0) The Faces page explains it once, above the faces; choose Got it to close the explanation. How naming people works in the page's ⋯ menu shows it again. It is remembered in this browser.
- Under Suggestions, choose Add a name where a group of faces has its name (at the top of the group's card), and type who it is. If there is no such group yet, choose the tag on a face under Not recognised yet. LibrePhotos shows the step that fits your faces.
- Choose Find more photos of these people (Find more photos on a phone). LibrePhotos looks for the same people in all your photos.
- Look through Suggestions. Choose the green check mark if the name is right, or the cross if it is not. On a phone, tap a face first.
The names up to 1.7.0​
Not released yet (comes after 1.7.0) The page says what it does in everyday words. Only the words changed: your names, suggestions and deleted faces are where they were, and links to the page still work.
| Up to 1.7.0 | Now |
|---|---|
| Inferred | Suggestions |
| Unknown, Unknown - Other | Not recognised yet |
| Labeled | Named |
| Unknown 001 | Unnamed person 1 |
| Train faces | Find more photos of these people |
| Label faces, Label as… | Who is this?, Say who this is… |
| Clusters, Classifications (in Filter) | Everyone, People you named |
| Confidence (in Filter) | How sure a suggestion must be |
| Face clusters (in Statistics) | Similar faces |
Open the Faces page​
The Faces page is where you name, check and clean up faces.
New in 1.6.0 Open it in any of these ways:
- On Albums › People, click the link in the line under the title. It reads N faces to name or check while suggestions wait for you, and Name people otherwise, and opens the Suggestions tab (narrowed to the group you are looking at, if any).
- On a person's page, open the â‹® (Person actions) and choose Check the faces. The Faces page opens on the Named tab with only that person's faces, and a chip with their name in the toolbar; remove the chip to see everyone's faces.
- Pin it to the sidebar: click Customize sidebar under the sidebar's pages and tick Faces. The pinned row shows how many faces wait for review.
- Press
Ctrl+K(Cmd+Kon macOS) and type "Name people".
On a phone, People is under the Albums tab at the bottom of the screen. Up to 1.5.x, the Faces page was opened with Manage Faces in the People page's menu.
Label a face​
To label a face, select it and click Say who this is… in the toolbar, or choose Say who this is… in the face's ⋮ menu. A dialog titled Who is this? will show up where you can either search for an already existing person or add a new person. We want to add a new person, so type the name into the Name field under New person and click Add person (the button stays disabled until you enter a name that does not already exist). Now the face is associated with the person.
Above the list of people, Recently named shows the last ten people you labelled faces as, each as a small face with the name under it. Click one to label the faces as that person without searching for the name. The section hides while you type a name. While you type, the people whose names match are listed with the most faces first, then by name; with nothing typed, the list is in name order. New in 1.5.0 Up to 1.4.0, matches stayed in name order.
The same face in a burst or duplicate group​
New in 1.5.0Burst frames, exposure brackets and duplicates are separate photos, so the same face is found once in every frame. When you label one of them, LibrePhotos also labels that face in the other photos of the same burst or bracket stack or duplicate group: the message then says, for example, "The same face on 4 almost identical photos has the name too", and its Undo takes all of them back.
Only a face that is clearly the same one is labelled along: one that has no name yet, at nearly the same place in the picture, and that looks nearly identical to the face you labelled. The other people in those frames, faces you already named or deleted, and a face you said is not that person (Not name) are left alone. A manual stack, and a duplicate group you dismissed as not duplicates, do not count. Sending a face to "Not recognised yet" only changes that face.
Writing face tags to your files​
By default, labelling a face only updates the LibrePhotos database — your image files are not touched.
If you enable Settings → People, things and search → Advanced → Write the names of people into your photo files, then every time you label a face LibrePhotos also writes the face's region and the person's name into the photo as XMP MWG-RS region tags. This makes your face data portable to other photo managers such as Lightroom, digiKam and XnView.
The switch only takes effect together with Settings → Photos → Advanced → Write edits to files, which decides where the tags go:
- Save to sidecar: the regions go into the photo's
.xmpsidecar file; the original image is left unchanged. - Save to media file: the regions are written into the original image file itself.
- Off (the default): nothing is written, and the switch is greyed out until you pick one of the other two.
New in 1.4.0 Up to 1.3.0, face tags were written into the original image file while synchronization was Off. If you had the switch on with synchronization Off, your originals may already carry face regions and person names; LibrePhotos does not remove them.
Change the label of a face​
To change a face to a new person, select it and click Say who this is… in the toolbar, or choose Say who this is… in its ⋮ menu. Search for the person you want it to change to and click on them. Now the face is associated with the new person.
Name a face from the photo itself​
You do not have to go through the Faces page. Open a photo and look at the People section of the sidebar: it shows every face found in that photo as a small tile with the name under it, including the faces nothing has named yet. Hovering a tile draws a box around that face on the photo, so you can tell which face a tile belongs to.
A face the clustering and classification have not matched to anyone is shown as Who is this?. Click the tile (or Name this face in its ⋮) to open the same Who is this? dialog the Faces page uses, and pick or create a person. Clicking a named face searches for that person. The ⋮ in the corner of each tile (shown when you point at the tile, always on a touch screen) holds the face's actions: Confirm as name for a name the classification guessed, Say who this is… to pick another person, Not name to reject the guess, and Delete face to remove a detection that is not a face at all. Delete face asks first, as it does on the Faces page (see Delete faces).
A row labelled Unnamed person 1 (or a similar number) is a face that clustering grouped together with others like it, without anybody naming the group. That label is the group's name, not a person's, so there is nothing to confirm and no Confirm as … item; name such a face with Say who this is….
Add a face the scan missed​
The detector does not find every face. Someone turned away from the camera, a child, a face behind a hat or sunglasses, a face too small or too blurred — none of those get a face record, so there is nothing to label and the person never appears on the photo.
Open the photo, then click the person-plus button (Add a face the scan missed) at the top of the People section of the sidebar. The photo dims and the pointer becomes a crosshair: drag a box around the face, and the Who is this? dialog opens so you can pick an existing person or type a new name. Press Escape, or use the Cancel button in the sidebar, to leave without adding anything.
New in 1.5.0 The box only has to be rough. While the People section says "Looking for the face in your box…", the face recognition service looks at that part of the photo on its own, enlarged, where it finds faces that are too small or too turned to be found in the whole photo. The face it finds is saved with its own, exact box, and with an encoding like any detected face, so it is grouped with that person's other faces; the message then says "The face was found in your box". Only a face whose middle is inside your box is taken. If there is no face in the box, the section says No face found in the box and offers Keep my box (the face is saved with your box and the name you chose, as before) or Draw again. When the face recognition service is off or not answering, your box is saved as you drew it. Up to 1.4.0, the box you drew was saved as it was.
A few things worth knowing:
- The face you add counts as your own labelling. It is stored exactly like a face you named on the Faces page, and classification trains on it, so adding a few faces the detector missed also helps it recognise that person elsewhere. It never starts a cluster of its own.
- It is encoded straight away by the face recognition service. If that service is unavailable, the face is still saved with its name — the next Find more photos of these people run gives it an embedding.
- You cannot draw a second face on top of one that already exists. If the box you drag lands on a face that is already recorded, LibrePhotos says so and asks you to label that face instead. A face you deleted does not block you, though: drawing a box there is you overruling the deletion.
- Zoom and pan are fine, rotation is not. You can zoom in to draw a box around a small face. While the photo is turned, the button is disabled — the box could not be lined up with the photo reliably — so turn it back upright first.
- Not released yet (comes after 1.7.0) A photo that changes while you draw is not labelled. If the file was replaced, or the photo rotated or edited (in another tab, for example) before the face was saved, LibrePhotos says that the picture changed. The photo is loaded again; draw the box once more on what you see now. Up to 1.7.0 the name was saved on the spot of the old picture.
- The photo needs a thumbnail. Boxes are measured against the photo's big thumbnail, so a photo that has not been fully processed yet cannot take a face.
If Settings → People, things and search → Advanced → Write the names of people into your photo files is enabled, a face you add by hand is written into the photo (or its sidecar) as an XMP region just like any other, so the work is portable to other photo managers.
Find more photos of the people you named​
If you click Find more photos of these people in the Faces page's toolbar (Find more photos on a phone), or the Find button on the Library page (Account menu > Library, under Faces & People), the system groups the faces that look alike and suggests a name for each face that looks like a person you named. A group nobody knows becomes an unnamed person, and you can give it a name.
New in 1.5.0 After uploads you do not have to: once at least 20 new faces (and 2% of all your faces) came in, LibrePhotos clusters and trains by itself, half an hour after your last upload, at most once an hour and not within 15 minutes of you labelling a face (see Find similar faces). Your names and labels stay as they are.
New in 1.5.0 Clustering only replaces its own groups ("Unnamed person 1" and the like). A person you named stays, even with no faces left: one you created by hand, or one whose faces you all moved to someone else, keeps its name and birth date. To get rid of such a person, delete them from their page. Up to 1.4.0, every clustering deleted the named people that had no faces, those of every user.
The Faces page has four tabs: Suggestions (the matches training produced), Not recognised yet (faces that were not matched, or that you rejected), Named (faces you have already named) and Deleted (faces you deleted, so you can restore them). To see the recommendations, go to the Suggestions tab. There you can see, for each face, the confidence of the match. By default the Faces page only shows matches it is at least 70% confident about. To lower this threshold and surface weaker recommendations, open Filter in the toolbar and change How sure a suggestion must be (it applies to both the Suggestions and Not recognised yet tabs). The same panel switches under Show between Everyone, which also shows groups of faces that look alike and have no name yet, and People you named.
New in 1.5.0 A person with a birth date is never suggested for a face on a photo taken more than a day before it: training suggests the next most likely person instead, or nobody. Photos without a date are not filtered, and you can still label any face by hand. Train again after setting a birth date to update the suggestions.
Each tab shows how many faces it holds. Hover over a tab to see how many people those faces belong to. The numbers follow the Sort and Filter settings, so they always match the faces on screen.
New in 1.5.0 The Faces page leaves out the faces of photos the photo lists leave out: photos in the trash, hidden photos and missing photos. They are not counted in the tabs either, and training does not use them. Restoring a photo from the trash brings its faces back. Up to 1.4.0, the Faces page still listed them, so the copies you moved to the trash from a duplicate group still had faces to label.
Answer many faces at once​
Not released yet (comes after 1.7.0) On the Suggestions tab, a person who has a name shows Select all N and Confirm all N next to the name. Both take every face of the group, also the ones further down that are not loaded yet: Select all N selects all of them, and Confirm all N confirms all of them as that person. Above 100 faces Confirm all asks first. While the faces load, a spinner shows next to the check box, or on the green button. A second click on the green button does nothing. A second click on the check box stops Select all, and so does any change to the selection before the faces arrive. A face that is already on its way, or that you answered while the faces loaded, is left out, so no face is answered twice. On a phone, or in a folded group, the buttons are smaller: a check box and a green button with the number. Up to 1.7.0 the group's check mark confirmed only the faces loaded so far, and the check box had no text.
Click a face to select it. To select every face from the last one you clicked up to another one, hold Shift and click the other face. A screen reader reads this hint with each face. While faces are selected, they get a blue tick and the toolbar shows labelled buttons:
- N selected with a cross clears the selection.
- Confirm N (green) confirms each selected face as the person of its own group. With faces of several people selected, the button's tooltip says who gets which faces, for example "5 as Anna, 1 as Peter", and each person gets their faces in one request. A selected face whose group has no name (such as "Unnamed person 1" or "Not recognised yet") is not confirmed as anybody: it stays selected, and the toolbar says how many such faces there are.
- Not this person sends the selected faces to "Not recognised yet". It is not there on the Not recognised yet tab, where the faces already are.
- Say who this is… opens Who is this? for the selected faces.
- Delete deletes them after you confirm.
With one face selected, the buttons ask about that face: Confirm as name, Not name, and Show photo.
On a phone or a narrow window, the selection buttons sit in a bar at the bottom of the screen, big enough for a thumb, and the bar also lists whose faces Confirm confirms.
Browse people​
New in 1.4.0Each group starts with a row that shows the person's face, their name and how many faces they have. The face is the cover from the People page; a cluster such as "Unnamed person 1" shows a plain person icon, since it is nobody yet. Not released yet (comes after 1.7.0) Up to 1.7.0 a cluster showed its first face there. Click the arrow next to the face to collapse the person: they shrink to a single tile with their face, name and face count, and collapsed people sit side by side. Collapse all groups in the toolbar's ⋯ (More actions) collapses every group at once, which turns the tab into a grid of people. A collapsed person loads none of their faces apart from the cover, so a large library opens faster this way. Click a tile to open that person's faces again. The Faces page remembers which people you collapsed, per tab.
Not released yet (comes after 1.7.0) Every group sits on a card of its own, so it is clear which faces belong to whom. Every card starts with the same name row: the face (or the person icon), the name over the face count, and the buttons on the right. A group whose faces fit on one line, and a folded group, is a card only as wide as its faces, and these cards sit side by side in rows; when a row only lacks a little to reach the right edge, its cards share out the rest, so the rows end evenly. A group with more faces than one line holds spreads over the full width. On a phone every row of cards reaches the right edge. Up to 1.7.0 the faces of an open group stood in pairs, small groups had their name and count on two lines, and a group of five to ten faces always took the full width.
Not released yet (comes after 1.7.0) While you scroll through a long group, its name row stays at the top of the list, with Select all, Confirm all and â‹®, until the end of the group pushes it away. Up to 1.7.0 the name row scrolled away with the first faces.
The Sort button in the toolbar (an icon on a phone) sets two orders. Under Sort by, Surest first or Date sorts the faces inside each group. Under Order people, A–Z sorts the people by name and Most faces puts the people with the most faces first. "Not recognised yet" always comes last. The letter scrubber on the right is only shown in A–Z order. Not released yet (comes after 1.7.0) It shows a name only while you point at it or drag it; while you just scroll, the name row at the top of the list says whose faces you are looking at. Up to 1.7.0 the name next to the scrubber could sit over another person's faces.
New in 1.5.0 The third order, Similar faces together, puts groups whose faces look alike next to each other. It starts with the group with the most faces and then always takes the group that looks most like the last one, so the clusters of one person ("Unnamed person 14", "Unnamed person 87") usually end up in a row on the Suggestions tab, often right after that person's name if they are already named. Label them in one pass, or select several groups' faces at once. Groups without a cluster (for example faces that only training suggested) come after the others, by name. A library with more than 3,000 groups keeps name order in this view.
New in 1.4.0 To label one circle of people at a time, open Filter and pick a group under Groups (it says All people until you pick one): the Named and Suggestions tabs then only show the people in that group, and the tab counts follow. Manage groups… under it renames, deletes and adds groups. The Not recognised yet tab has no people, so the field is hidden there.
Act on one face​
Not released yet (comes after 1.7.0) You can review faces one at a time, without selecting them first. Point at a face, or move to it with the Tab key, and its buttons appear:
- ✓ (bottom right, the green one) is Confirm as name: it confirms the face as the person of its group, in one click. It is only there on the Suggestions tab, in the groups of people that have a name: a cluster such as "Unnamed person 1" names nobody, so there is nothing to confirm.
- ✕ (bottom right, next to the ✓, red when you point at it) is Not name: it sends a wrongly matched face back to "Not recognised yet". In a cluster it reads Move to "Not recognised yet", and on the Named tab it takes a name back.
- The magnifier (top right) is Show photo: it opens the photo with this face boxed, see Check a face on its photo.
- ⋮ (top left) opens the face's menu with Say who this is…, Show photo and Delete face. A right click on the face opens it too.
The face you point at gets a blue ring, and the top and bottom edges darken a little so the buttons stand out; the face itself is not dimmed. The ✓ and ✕ are a little bigger than the magnifier and ⋮, since you use them most. After a short pause a tooltip below the face shows how sure the suggestion is and the photo's date, on one line, for example "89% sure · Mar 4, 2019" (only near the bottom of the window does it open above the face), so it never covers the group's name.
On the Not recognised yet tab, the tag button (Say who this is…) is shown in the bottom-right corner when you point at a face or move to it with the Tab key, and always on a touch screen. Up to 1.7.0 it was always shown. On the Deleted tab a face has Restore face and the magnifier. While faces are selected, a face keeps only the magnifier: the toolbar buttons act on the selection. A video's time stays in the bottom-left corner while the buttons are shown; where the time would touch them, as next to the ✓ and ✕ of a suggestion, it then shows only its ▶.
On a phone or tablet there is no pointing, so the small buttons are not drawn: tap a face to select it, and the bar at the bottom of the screen asks about it (Confirm as name, Not name, Show photo), with buttons big enough for a thumb. A tap that scrolls the page selects nothing. Up to 1.7.0 the ✓ and ⋮ buttons were always shown on a touch screen, and a long press opened the menu.
Up to 1.7.0 a face had a check-person button, and Not name was in its menu.
Keys on a face​
Not released yet (comes after 1.7.0) While a face has the keyboard focus:
| Key | What it does |
|---|---|
C | Confirm as the suggested person |
X | Not this person |
Space | Select or unselect the face (Shift+Space selects up to it) |
P or Enter | Show photo |
| Arrow keys | Go to the next face in that direction |
If the face is part of a selection, C and X answer for the whole selection. After an answer, the face is dimmed until the server has it, and C and X do nothing on it in the meantime; then the focus moves on to the next face. The selection buttons also leave out a face that is still dimmed. The keys do nothing while you type in a field, and the list of shortcuts (?) shows them too. Up to 1.7.0 Enter selected the face.
Check a face on its photo​
Not released yet (comes after 1.7.0) Show photo opens the photo viewer on that face. The rest of the photo is dimmed and the face has a coloured ring, so you can tell which face the question is about, also on a photo with several people; the ring follows the photo when you zoom in. The title at the top says which group the face is in and where, for example "Anna · 3 of 17" (a group without a name is called as on the page, "Unnamed person 7"). A bar at the bottom asks about exactly that face. Its first line says what it asks and where you are, for example "Is this Anna? · 3 of 17" ("Who is this?" for a face without a name, "Is this really Anna?" on the Named tab, "Give this face back to Anna?" on the Deleted tab). Under it are the face itself, with the same coloured ring as on the photo, and the buttons: Confirm as name and Not name on the Suggestions tab, Not name on the Named tab, Say who this is… on every tab but Deleted, and Restore face on the Deleted tab. C and X answer too.
After Confirm as name, Not name or Restore face the viewer stays open and shows the next face: the next one of the same group, then the first face of the next group. It passes over faces that are still loading and faces you already answered, and after the last face of the list it goes back to the nearest one before. When no face is left to answer, the viewer closes and the focus is on the next face of the page; when you close it yourself, the focus is on the face it showed last. Say who this is… closes the viewer and opens the naming dialog. The message with Undo shows over the viewer.
A face found in a later frame of a video opens with the video paused on the second the face was found, dimmed around the face like a photo. Press play and the ring fades out once the video has moved on a second; it comes back when you go back to that moment. A face on a video's first frame is marked during the video's first second.
The arrow keys and the thumbnails go from face to face of the list, not from photo to photo, so a photo with two faces in the list is shown twice, each time with its own face boxed. A face that someone answered in the meantime, or that left the list, says This face is answered already. instead of offering answers. Opening the viewer from a selection answers only the face shown and leaves the rest of the selection as it is.
The box is drawn on photos. A video shows the bar without a box, because the face may be in a later frame; deleted faces have no box either. On a phone, the bar is hidden while the details panel covers the photo.
"Not name" is remembered {#not-name-is-remembered}​
New in 1.5.0 When you send a face back with Not name (or Not this person in the toolbar, or Remove from this person on a person's photos), LibrePhotos remembers that the face is not that person. Find more photos of these people never suggests them for that face again; it may suggest someone else, or leave the face in "Not recognised yet". The message after Not name says so, for example "Anna won't be suggested for this face again". To take it back, click Undo in that message, or label the face as that person yourself. When you merge Anna into another person, the face is not suggested as the merged person either. Up to 1.4.0, the next training often suggested the same person again.
A face you acted on fades out and leaves the group once the list has refreshed.
New in 1.4.0 A face whose thumbnail is missing (faces from old versions, or a thumbnail that could not be saved) shows a grey person icon instead of the face. It is a face like any other: you can select it, label it, open its photo with Show photo to see who it is, or delete it. The next face scan (see Re-scan faces) cuts its thumbnail from the photo again.
Delete faces​
Sometimes the face recognition might find a face that is not actually a face. To remove it, select the face and click Delete in the toolbar, or choose Delete face in the face's ⋮ menu; a confirmation dialog appears first. The face is then hidden everywhere in LibrePhotos — it disappears from the Faces page, from the person's face list and from the photo's face list — and it is no longer used for training, clustering or classification. Note that hiding a face does not free disk space: the cropped face image and its embedding are kept, so the same region is not detected again on a later scan, and so the face can be restored.
New in 1.5.0 Up to 1.4.0, deleted faces were still grouped by clustering, so a painting or a pattern you deleted could still merge or split the clusters of real faces.
If Write the names of people into your photo files is on, deleting faces also takes them out of the files: each affected photo's face regions are written again from the faces it has left, in a background job, and the deleted person's name is removed from the photo's keywords. Deleting the last face of a photo clears its regions, including ones another photo manager such as digiKam wrote and LibrePhotos imported: the media file loses XMP-mwg-rs:RegionInfo, and with Save to sidecar the sidecar gets an empty region list, which hides the regions still stored in the original. A name you also added to the photo as a tag stays a keyword. Only XMP MWG regions are changed: Microsoft Photo regions (XMP-MP:RegionInfo) and digiKam's People/… entries in XMP-digiKam:TagsList stay in the file. New in 1.4.0 Up to 1.3.0, deleting a face left its region and name in the file.
A face that was saved twice on the same photo (two overlapping boxes, for example from an old scan and from face regions read from the file) can be cleaned up for the whole instance by an admin with Remove duplicate faces.
Undo a face action​
New in 1.4.0The message that confirms a delete, a label (Say who this is…, Confirm as name, Confirm N, Confirm all N) or a wrong match (Not name, Not this person) has an Undo button. Not released yet (comes after 1.7.0) The same goes for C and X and the answers in the photo viewer. It stays for 8 seconds, longer while you point at it. Undo puts the faces back exactly as they were: deleted faces come back to their person, and labelled faces go back to the tab they came from, with the suggestion they had (a face you confirmed on the Suggestions tab is a suggestion on the Suggestions tab again). When you act on several faces one after the other, the message adds them up, and its Undo takes back all of them.
Not released yet (comes after 1.7.0) The 8 seconds start again with every face the message adds up, and the message stays while its Undo button has the keyboard focus. Undo leaves a face alone that you (or someone in another tab) labelled again since: when you label five faces as Anna, correct one of them to Ben and then undo Anna, Ben keeps his face, and a message says "1 face was named again since and stays as it is". When one of the faces cannot be put back, LibrePhotos says so and still puts back the others. Up to 1.7.0, the 8 seconds counted from the first face, Undo replaced newer labels too, and it stopped at the first face that failed.
Restore deleted faces​
The Deleted tab lists every face you deleted, grouped by the person each face had; deleted faces that had no person are under "Not recognised yet". To bring faces back:
- select them and click Restore N faces in the toolbar,
- click the restore button next to a person's name to restore all of that person's faces, or
- point at a face and click its Restore face button.
A restored face goes back to its person (or to the unknown faces), counts for that person again and is found by search under their name. If Write the names of people into your photo files is on, the face's region and the person's name are written to the photo again.
Re-scan faces​
Re-scan faces looks through all your photos again and adds any face it finds that does not already have a face record. This will take a while, because it has to look up all the photos again.
New in 1.7.0 A face scan works through your photos in batches of 64, so several background workers can look at them at once. When the last batch is done, Generate Face Embeddings and then Find Similar Faces run once, and only if no such job of yours is already queued or running. When you cancel the scan, or it fails because the face service cannot be reached, neither runs. Up to 1.6.0 one worker looked at every photo in turn.
New in 1.4.0 Every face scan, the one after a photo scan as well as Re-scan faces, first gives each face whose thumbnail is missing a new one, cut from the photo where the face was found. A face whose photo has no thumbnail keeps the grey person icon until the photo has one.
A re-scan will not bring back faces you removed with the delete face action. Deleting a face marks it as deleted but keeps its region on record, and the re-scan skips any newly detected face that overlaps an existing record — including deleted ones. To get a deleted face back, restore it from the Deleted tab (see Restore deleted faces).
Detect faces again in some photos or a folder​
New in 1.4.0Re-scan faces on the Library page looks at every photo, which takes hours on a large library. To look at a few photos or one folder only:
- Some photos: select them, open the â‹® (Photo actions) and choose Detect faces again in the Files group (up to 1,000 photos). In the photo viewer it is in the â‹® after the rotate buttons, and on a photo's page under More.
- A folder: on the folder's page (open it from Folders), open the â‹® (Folder actions) and choose Detect faces again in this folder. It covers the folder and its subfolders and asks first, saying how many photos that is.
New in 1.5.0 For a single photo (from the photo viewer or the photo's page), the photo's People section follows the scan: it says "Looking for faces again…" while the scan runs, then marks the faces it found with New, or says No new face found. The scan uses the same detector as before, so a face it missed stays missed: use Draw the face there to draw a box around it (see Add a face the scan missed).
It works like Re-scan faces for those photos: faces already found and named stay as they are, and a face you deleted is not found again; restore it from the Deleted tab instead. The other photos are not touched, and the next face scan after a photo scan still looks at every photo whose faces have not been looked for yet. Only your own photos can be scanned, and a folder must be inside your scan directory or upload folder.
Not released yet (comes after 1.7.0) Rotating a photo moves the face boxes with it. Up to 1.7.0 the boxes stayed where they were before the rotation, so on a photo turned by a quarter they were drawn next to the faces. The update does not move those: Rescan faces finds the face again in its place, and you can delete the box beside it.
Workflow​
After the first scan finished, go to the Faces page. Label a couple of faces per person. Then choose Find more photos of these people. Check the suggestions, confirm the right ones, and choose it again. You will get the best results if all the persons in the pictures are known and when every label has at least a couple of faces.
Pipeline​
Face Detection​
Faces are detected with InsightFace. Its detector (SCRFD) finds the faces in each photo and returns a bounding box for every face it sees. This replaced the older dlib detectors, so there is no longer a separate hog / cnn choice — a single detector is used for everyone.
Photos that already carry XMP RegionInfo face regions in the file or its XMP sidecar, for example ones written by digiKam, Lightroom or XnView, are read first. Any region marked Type="Face" with usable coordinates is taken as-is, and if the region carries a Name, the matching person is created and the face is labelled automatically. The InsightFace detector then still looks at the photo, because other photo managers usually store regions only for the faces someone tagged there. A detected face that overlaps a region is the same face: it is not added again, and it gives that face its ArcFace embedding. Every other detected face is added as usual. Regions without an overlapping detection get their embedding during the next train or re-scan, so clustering and classification work on them normally.
New in 1.7.0 A photo whose file is no longer known, for example one whose file was removed while the face scan ran, gets the faces the detector finds in its thumbnail; its face regions are not read. Up to 1.6.0 such a photo failed the face scan and was tried again on every run.
New in 1.5.0 The detector saves every face it finds unless you set a Leave out small faces size under Settings → People, things and search → Advanced: faces lower than that share of the photo's shorter side are then skipped on new scans. Face regions from the file are always kept.
Faces in videos​
New in 1.5.0 A video is not read only on its first frame, the one its thumbnail shows. The face scan also reads up to 8 frames spread from 5% to 95% of the video (one per second at most, so a short clip gets fewer) and looks for faces in each. A person seen in several frames gets one face for the video, the largest one found: a face that looks like a face the video already has (its first frame's, or one an earlier scan found) is the same person and is not added again. The video then shows up in that person's album once the face is labelled or recognised. Videos shorter than 2 seconds, or whose length the scan could not read, are read on their first frame only, as before.
Up to 1.4.0, only the first frame of a video was read. After updating, the next face scan (after a photo scan, or Scan faces on the Library page) reads the other frames of every video once; the faces the videos have already stay as they are. Reading the frames costs a few seconds per video, and at most two minutes for a long one. To scan videos on their first frame only, turn off Faces in videos under Face detection in the Features card (see Feature Toggles).
Open a video where a face appears​
New in 1.5.0 A face found in a later frame shows its time in the video, for example â–¶ 0:42, in the corner of its thumbnail on the Faces page. Opening the photo from that face (Show photo) starts the video a second before that moment, and a note over the video says so for a few seconds: "Started at 0:42, where Anna appears", with a Play from start button. On a person's page, a video where the person appears later shows that time in the corner of its tile and opens there too. Not released yet (comes after 1.7.0) From the Faces page the video now opens paused on the face's own second, with the face marked (see Check a face on its photo), and Play from start plays it from 0:00. A video opened anywhere else, from the timeline or an album, starts at 0:00 as before.
In the People list of the sidebar, a face from a later frame has a time button next to its name: click it to play the video from there. If the video is being converted while it plays (see Seeking in videos), the player cannot jump ahead; the note then says where the face is and that the video can only play from the start.
A face from a later frame has its thumbnail and embedding from the scan, since the frame itself is not kept: Find more photos of these people does not encode it again, a thumbnail that went missing is not cut again, and Write the names of people into your photo files does not write it into the video as a face region, because its box is in another frame than the one other apps would show.
New in 1.4.0 Up to 1.3.0, a photo with even one face region was not given to the detector at all, so the other people in it were never found, not even by Re-scan faces. Run Re-scan faces once after updating to find them.
New in 1.4.0 Up to 1.3.0, the face regions of a HEIC or AVIF photo whose EXIF Orientation disagrees with the file's own rotation (for example one turned with Save to media file in an earlier version) were read from, and written to, the wrong part of the photo.
Face Quality​
At the moment no matter, which detection methods we use, there will be face detected, which are not actually faces. The user has to manually delete these faces. In the future, we will have a new classifier, which determines if it is a face and how likely it is a face.
Face Recognition​
Creates a 512-dimension ArcFace embedding for each detected face, which is what makes faces comparable to one another. You can choose which model is used in Admin area → Site settings → Face recognition model: smaller packs (like the default buffalo_sc) are faster and lighter, while larger packs (buffalo_l, antelopev2) are more accurate but use more memory.
Changing the model only affects faces that do not yet have an embedding. Faces that were already encoded keep the embedding produced by the previous model: Find more photos of these people re-encodes only faces that have no embedding yet, and Re-scan faces skips faces that overlap ones already stored. Embeddings from different InsightFace packs are not comparable even though they are all 512-dimensional, so until every face is re-encoded, clustering and classification will mix two embedding spaces. To fully switch packs today you have to delete the affected faces and re-scan them.
Older versions of LibrePhotos used dlib with 128-dimension encodings. When you upgrade to the ArcFace engine, those old encodings and the existing face clusters are cleared automatically because they are not compatible with the new 512-dimension embeddings. Just run Find more photos of these people / Re-scan faces once and your faces will be re-encoded with the new model.
Face Clustering​
Clustering solves the issue of a system, which has no labelled persons yet. Users can get clusters they can name instead of going through a lot of faces and naming them. Clustering is stable, which means that you will get the same clusters out, when you put the same data in. Labels are not fed into the clustering algorithm itself — the encodings are grouped the same way no matter which faces you have already named. They do change the clusters that come out of it, though: any group that contains at least one labelled face is split into one cluster per labelled person, instead of producing a new unknown cluster for you to name.
If you want to change how the grouping itself is done, add images, delete wrong faces, or change the clustering settings under Settings → People, things and search → Advanced:
- Faces that make a group (default Auto) — the smallest group the algorithm will treat as a cluster. Auto also applies when the stored value is 0 or 1, and grows from 2 to 4, 8 and 16 as your library passes 1,000, 10,000 and 100,000 encoded faces.
- How strict the groups are (default 1) — how conservative clustering is; a higher value is more conservative and leaves more faces unclustered.
- Join groups that look like the same person (default 0.95, shown as "Normal") — how readily nearby clusters are merged; a higher value merges more clusters together. Clustering compares face encodings scaled to length 1, so two faces are 0 to 2 apart and two photos of one person about 0.9. Small to Very high (0.9 to 1.05) merge more and more of one person's clusters; Very high can also put look-alikes, such as siblings, into one cluster.
Steps which could be done to improve clustering are combining very similar faces from e.g. a serial recording or photo shoot, to prevent from too many small images to be clustered.
Face Cluster Merging​
We could train a classifier to merge faces, based on previous merge decisions, which could improve the clusters even more.
Face Classification​
Classification matches unknown faces against already known persons. Unlike clustering (which groups all faces from scratch), classification respects your previous labelling input and only tries to match faces to people you've already identified. This makes it much more accurate for large datasets where most persons are already known. You can filter between cluster and classification results on the Faces page (Everyone or People you named in its Filter), and see the label probability for each inferred face. Classification probabilities are saved alongside clustering probabilities, so you can compare both approaches.