Skip to content

People: Face clusters missing after renaming and merging #3414

Description

@pjft

1. What is not working as documented?

Renaming/merging face clusters can make faces no longer show up on Recognized people faces.

2. How can we reproduce it?

Steps to reproduce the behavior:

  1. Go to 'New' faces
  2. Label people clusters, for instance "Manuel".
  3. Mistakenly label one with "man" (had lots of clusters and was searching by name. Pressed "enter" assuming it would select "Manuel", but instead created a new cluster "man").
  4. Click the "man" cluster label in that same screen, and rename it to "Manuel".

The "Manuel" cluster doesn't add these new clustered faces to it, and total stays the same.

Log messages are unexpected:

2023-05-17 22:18:20 INFO subject: person Manuel flagged as missing
2023-05-17 22:18:16 INFO changes successfully saved
2023-05-17 22:18:15 INFO subject: added person man

I expected "man" to be flagged as missing, not "Manuel".

Afterwards, I renamed "Manuel" to "man", to see if it changed anything, and then back to Manuel, to see if it'd absorb the old photos.

3. What behavior do you expect?

The "Manuel" cluster adds the new clustered faces to it, showing up in the faces total. Also, "Manuel" shows up in the autocomplete suggestions.

4. What could be the cause of your problem?

Potentially incorrectly flagging person as missing.

I tried both faces audit --fix and faces optimize, but nothing changed. I have a backup, and I suppose I could go directly to the database and try to fix things, but I'd rather not in case I break anything else.

5. Can you provide us with example files for testing, error logs, or screenshots?

This was when I made the mistake. I added "man", and then renamed to "Manuel". "Manuel" is flagged as missing, though it shouldn't have - there were already plenty of faces with that correct label:

2023-05-17 22:18:20 INFO subject: person Manuel flagged as missing
2023-05-17 22:18:16 INFO changes successfully saved
2023-05-17 22:18:15 INFO subject: added person man

Afterwards, whenever I try to add Manuel or man (to see if I could fix it?), I just get these:

-- adding man:

2023-05-17 23:32:14 INFO subject: person Manuel flagged as missing
2023-05-17 23:32:14 INFO subject: restoring person man

-- adding Manuel:

2023-05-17 23:31:27 INFO changes successfully saved
2023-05-17 23:31:26 INFO subject: person man flagged as missing
2023-05-17 23:31:26 INFO subject: restoring person Manuel

6. Which software versions do you use?

(a) PhotoPrism Architecture & Build Number: ARM64
(b) Database Type & Version: MariaDB
(c) Operating System Types & Versions: Linux Debian
(d) Browser Types & Versions: Chrome
(e) Ad Blockers, Browser Plugins, and/or Firewall Software? Yes.

Build 230514-0b780defb

7. On what kind of device is PhotoPrism installed?

(a) Device / Processor Type: Raspberry Pi 4
(b) Physical Memory & Swap Space in GB: 8GB
(c) Storage Type: HDD
(d) Anything else that might be helpful to know? Not much.

Metadata

Metadata

Assignees

Labels

releasedAvailable in a stable releasetestedChanges have been tested successfully

Type

No type

Projects

Status
Release 🌈

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions