-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
feat(web/server): Face thumbnail selection #3081
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Ignored Deployment
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you merge this new endpoint into the already existing update person endpoint?
"type": "string", | ||
"description": "Person name." | ||
}, | ||
"featureFaceAssetId": { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What about primary asset id? This id is also used for matching against right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the asset to crop the face of the person from
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unless I am mistaken the API doesn't ever reference asset_face, AssetFaceEntity, or faces ever. That is an implementation detail. All the external client knows is that a person has a thumbnail and then can update it with an asset id. Personally, I think calling it something with "face" makes me think you are referring to the asset face table and that seems like an implementation detail.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It does here
immich/server/src/infra/repositories/person.repository.ts
Lines 80 to 82 in f21b9ac
async getFaceById({ personId, assetId }: AssetFaceId): Promise<AssetFaceEntity | null> { | |
return this.assetFaceRepository.findOneBy({ assetId, personId }); | |
} |
This PR adds the ability to choose a different thumbnail for a person's face.
This mechanism requires the user to run the
Detect faces
job again for all data.