Closed eygraber closed 11 months ago
Did you re-assign faces ?
I did with one of them, but I'm not 100% sure of the other (although given the circumstances I probably did)
If you re-assigned the face which is the feature photo of the edited person, yes it's supposed to change the feature photo. You don't want two people having the same feature photo
I'm not sure I understand. This is what happened
It means the Person B faceAssetId
was set to null :thinking: When was that person created ? If it was a long time ago, I think one release mentioned to re-generate the feature photos to avoid this issue.
Person B was probably created a couple of months ago. I searched the release notes for "feature photo" and only found two mentions; when the ability to change them was added and something related to websockets. I'd appreciate any more info if someone has :pray:
Yeah I noticed the same with following scenario: person wrongfully identified as person „A“, when reassigned to person „B“, the feature photo for „B“ changes to a presumably random one. This process did not alter the feature photo for person „A“ and was not the feature photo for person „A“. Could reproduce this multiple times. Hope this helps! Awesome feature by the way! Thanks so much for the effort @martabal ! 🤩
Edit: Should have read more carefully. The feature photos of the persons in question were set around August. So yeah could be that I missed the release notes saying to re-generate feature photos or plainly ignored that recommendation. Sadly I wasn't able to find it anymore either. I definitely re-ran the generate thumbnails job at some point, though, if that's what it's about. I think that was when the directory layout was changed to subfolders for thumbs.
@martabal sorry if I misunderstood, but is there anything we can do to prevent this from happening?
We used to set a feature photo and not track what asset it came from. With the recent changes a feature photo has to have a reference back to the asset it came from, otherwise we'll lose it and pick a random one. This is just a problem with how the implementation was originally built and it should not happen on a regular basis.
Anything I can do to prevent it from happening further, or I just have to deal with it as it happens?
You can set the feature photo with the "Change feature" option on the person page, it will fix the issue. But there's no easy way to know which person has their faceAssetId
set to null, you'll have to check in the database yourself
Got it thanks! Seems like this could be closed then?
This is still happening on v1.91.4 for people that shouldn't have faceAssetId == null
(i.e. I've already set their feature photo recently).
It seems to happen after reassigning a face to that person; is this something that https://github.com/immich-app/immich/pull/5796 addresses, or is there something else going on?
This has nothing to do with this.
Can you make sure you don't have people with faceAssetId set to null with SELECT * FROM "person" WHERE "faceAssetId" IS NULL
I checked and I have 86 with faceAssetId != null
and 255 with faceAssetId == null
(this is only for people that have a name; there's 12k more that don't have a name).
For the ones that are null, I've definitely set a feature photo for them recently.
Also finding that some newly created people have a null faceAssetId
. Can this be re-opened, or should I file a new issue?
The bug
The feature photos that I set for people are no longer there. Instead there is a different photo from that person being used. It's not for all people, and it didn't seem to happen right after updating, but only after using the website for a little bit.
The OS that Immich Server is running on
Ubuntu 22.04
Version of Immich Server
v1.90.0
Version of Immich Mobile App
v1.90.0
Platform with the issue
Your docker-compose.yml content
Your .env content
Reproduction steps
Additional information
No response