Duplicateservice missing 'embedding' for all assets even though they do exist #15722
Unanswered
SuperSnackman
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I installed Immich in a docker using the script on https://immich.app/docs/install/script/
I upload a view similar images
When I run the DuplicateDetection job my log is filled with these messages:
immich_server | [Nest] 7 - 01/27/2025, 2:26:25 PM DEBUG [Microservices:DuplicateService] Asset 9cd5a855-eb14-4e11-a872-9ae336488d25 is missing embedding
immich_server | [Nest] 7 - 01/27/2025, 2:26:25 PM DEBUG [Microservices:DuplicateService] Asset a00c9888-0f01-43c8-9321-1533b2cdb756 is missing embedding
immich_server | [Nest] 7 - 01/27/2025, 2:26:25 PM DEBUG [Microservices:DuplicateService] Asset 51417e35-2b1e-4821-88db-2c80b822e4ca is missing embedding
immich_server | [Nest] 7 - 01/27/2025, 2:26:25 PM DEBUG [Microservices:DuplicateService] Asset 34ed1d2b-8a6a-4579-b5ed-f4f8d6d3ab4c is missing embedding
immich_server | [Nest] 7 - 01/27/2025, 2:26:25 PM DEBUG [Microservices:DuplicateService] Asset 9ac27305-3f8f-44f9-97a5-6e4235be7274 is missing embedding
I tried debugging it. I have a lot of C# experience, but little to none experience with Node/TS. So if I say dumb thing, sorry not sorry!
All my assets have an embedding in the database (SmartSearch table).
I changed some source to dump the asset when this message is created (https://github.com/immich-app/immich/blob/main/server/src/services/duplicate.service.ts#L72)
My log now shows:
SS: undefined
Embedding: undefined
Asset: correct (long arrary with numbers). So it looks like the embedding is a direct property on the asset, and not within the property smartSearch.
Then I changed the source to create the SmartSearch property on the fly and set the embedding of the asset within that property.
if (asset.embedding)
{
asset.smartSearch = { embedding: asset.embedding };
}
After that everything works as intended!
Are more people experiencing this problem?
Beta Was this translation helpful? Give feedback.
All reactions