Troubleshooting Face Recognition¶
You are welcome to ask for help in our community chat. Sponsors receive direct technical support via email. Before submitting a support request, please go through the checklists below.
Faces are recognized in three stages — detection, embedding, and clustering — so a problem usually belongs to one of them. AI Models > Face Recognition explains how they work and lists the available config options.
First Checks¶
Start here whatever the symptom, as this rules out the most common causes in one step:
- Run
photoprism faces statusin a terminal. It reports the model in use, the options actually in force, and why clustering is waiting when no clusters are forming - Note which build you are running: it is shown as Build in the footer of any Settings page, or run
photoprism --version - Watch the service logs while you reproduce the problem, and raise the log level if nothing stands out
- Make sure face recognition has not been switched off with
PHOTOPRISM_DISABLE_FACES
Tagging Is Slow¶
Naming faces should feel immediate. When it does not, first find out where the time goes, then work through the matching group:
- Update to the latest release and try again — the People view is improved regularly
- Open your browser's developer tools, switch to the Network tab, then click a face and save a name. This tells you whether the delay is in the browser or in a server request, which have completely different causes
- Check the logs for rate limit errors while you are editing faces — they look like slowness in the UI, but are not
If the server requests are slow:
- Use MariaDB instead of SQLite for larger libraries, and review its performance notes
- Put the storage folder and the database on an SSD rather than an HDD
- Verify the server has enough memory, and add swap if it does not
- Check the CPU is not saturated, and note that older hardware is slower at this than at anything else PhotoPrism does
- Wait until indexing or import has finished, since the background worker competes with them
If only the browser is slow:
- Try another browser, and disable extensions that modify pages
- Look for errors in the Console tab
No Faces Found¶
- Confirm a detector is active with
photoprism faces status, and thatPHOTOPRISM_DISABLE_FACESis unset - Run
photoprism faces indexto detect faces in pictures that were indexed earlier - Lower
PHOTOPRISM_FACE_SIZEif the faces you expect are small, and see Small Faces in Group Pictures - Rotate pictures that are not displayed upright and index them again, as rotated faces are often not detected at all
- Note that recognition is less reliable for young children
No People Shown¶
Faces have been detected, but People stays empty:
- Run
photoprism faces statusto see why clustering is waiting - Run
photoprism faces update --forceso a pass runs at the current settings instead of waiting for enough new faces - Review
PHOTOPRISM_FACE_CLUSTER_SIZE, which is the minimum size a face must have to help form a new person - After a model upgrade, run
photoprism faces indexbeforephotoprism faces update --force - Check that the background worker runs regularly
Wrong Grouping¶
Different people are grouped together, or one person appears several times:
- Upgrade an older library to the current model, which separates people noticeably better — see Upgrading an Existing Library
- Change a distance threshold relative to the value your model resolves to, never by carrying a number over from another model
- Run
photoprism faces audit --fixto resolve inconsistencies - Check whether the pictures show rotated faces or children
- See Photos With All Faces Assigned Appear Under "New Faces" when stacked pictures are involved
Lost Assignments¶
Names disappear, revert, or the logs mention ambiguous subjects:
- Wait until saving has finished before assigning the next face, and avoid editing people in several browser tabs at once
- Avoid running more than one instance against the same database, and do not change database content directly
- Run
photoprism faces audit --fix, as described under Inconsistent Face Assignments
Missing XMP Names¶
Names stored in sidecar files or embedded metadata do not appear:
- Make sure ExifTool is installed
- Update to the latest release, since metadata support is extended regularly
- Index the affected pictures again, using a complete rescan if a normal run changes nothing
- Compare what your files contain with the fields we read, listed in Adobe XMP
Starting Over¶
When a library is in a state that is quicker to rebuild than to repair:
-
photoprism faces resetremoves automatic clusters and matches, keeping the names you assigned -
photoprism faces reset --allalso removes the names, keeping the markers -
photoprism faces reset --forceremoves the markers as well, so faces must be detected again withphotoprism faces index