Open eacunha opened 2 months ago
Have you changed any of your machine learning settings at all?
no, at least not that I know of... how can this be changed?
These are the settings there, I don't recall changing anything:
Those seem like just the defaults, so I really have no idea why it would have done this. @mertalev any ideas?
That's super weird. What do the bounding boxes for these faces (or "faces") look like? You can open an image's info panel and hover over the person to see it.
Did you change the thumbnail settings? Can you post it?
When I mouse over this "person", it detects the face of the genshin character:
.. or the "face" of the duck:
or a potato:
Did you change the thumbnail settings? Can you post it?
I think I have not changed that either, here it is:
Could you run a few SQL queries for me and share the output for each?
select * from pg_vector_index_stat;
select count(*) from asset_faces;
select count(*) from face_search;
with
embeddings as (
select "originalFileName", embedding
from
assets
inner join asset_faces
on assets.id = asset_faces."assetId"
inner join face_search
on asset_faces.id = face_search."faceId"
where
assets."originalFileName" in ('20220408091020.png', '20211030_115938.jpg', '20230306_123821.jpg')
)
select this."originalFileName" image1, other."originalFileName" image2, this.embedding <=> other.embedding distance
from embeddings this, embeddings other;
Could you run a few SQL queries for me and share the output for each?
select * from pg_vector_index_stat;
select count(*) from asset_faces;
select count(*) from face_search;
with embeddings as ( select "originalFileName", embedding from assets inner join asset_faces on assets.id = asset_faces."assetId" inner join face_search on asset_faces.id = face_search."faceId" where assets."originalFileName" in ('20220408091020.png', '20211030_115938.jpg', '20230306_123821.jpg') ) select this."originalFileName" image1, other."originalFileName" image2, this.embedding <=> other.embedding distance from embeddings this, embeddings other;
can you help me how/where exactly I can do that?
You can run docker exec -it immich_postgres psql --dbname=immich --username=<DB_USERNAME>
to connect to the database via the container directly, where <DB_USERNAME>
is the value from your .env file. Then, you can just paste in a query and hit enter.
I have the same issue unfortunately. At least it happens just a couple of times in the people section so i just hide the 'fake' person detected
immich=# select * from pg_vector_index_stat;
tablerelid | indexrelid | tablename | indexname | idx_status | idx_indexing | idx_tuples | idx_sealed | idx_growing | idx_write | idx_size | idx_options
------------+------------+--------------+------------+------------+--------------+------------+------------+-------------+-----------+-----------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
17319 | 17331 | smart_search | clip_index | NORMAL | t | 130483 | {130413} | {70} | 0 | 285602760 | {"vector":{"dimensions":512,"distance":"Cos","kind":"F32"},"segment":{"max_growing_segment_size":20000,"max_sealed_segment_size":1000000},"optimizing":{"sealing_secs":60,"sealing_size":1,"optimizing_threads":2},"indexing":{"hnsw":{"m":16,"ef_construction":300,"quantization":{"trivial":{}}}}}
17551 | 17575 | face_search | face_index | NORMAL | f | 116850 | {116752} | {} | 98 | 257665816 | {"vector":{"dimensions":512,"distance":"Cos","kind":"F32"},"segment":{"max_growing_segment_size":20000,"max_sealed_segment_size":1000000},"optimizing":{"sealing_secs":60,"sealing_size":1,"optimizing_threads":2},"indexing":{"hnsw":{"m":16,"ef_construction":300,"quantization":{"trivial":{}}}}}
(2 rows)
90480 (1 row)
90480 (1 row)
immich=# with embeddings as ( select "originalFileName", embedding from assets inner join asset_faces on assets.id = asset_faces."assetId" inner join face_search on asset_faces.id = face_search."faceId" where assets."originalFileName" in ('20220408091020.png', '20211030_115938.jpg', '20230306_123821.jpg') ) select this."originalFileName" image1, other."originalFileName" image2, this.embedding <=> other.embedding distance from embeddings this, embeddings other; image1 | image2 | distance ---------------------+---------------------+------------ 20211030_115938.jpg | 20211030_115938.jpg | 0 20211030_115938.jpg | 20220408091020.png | 0.7072995 20211030_115938.jpg | 20230306_123821.jpg | 0.68505836 20220408091020.png | 20211030_115938.jpg | 0.7072995 20220408091020.png | 20220408091020.png | 0 20220408091020.png | 20230306_123821.jpg | 0.7904459 20230306_123821.jpg | 20211030_115938.jpg | 0.68505836 20230306_123821.jpg | 20220408091020.png | 0.7904459 20230306_123821.jpg | 20230306_123821.jpg | 0 (9 rows)
The bug
Immich recognized about 200 photos from completely different things, people, landscapes, foods, game screenshots (completely unrelated photos) as being one person in face recognition. See attached images below, it makes it very obvious to understand the issue.
And here are some of the photos that were associated with this "person":
As can be easily seen, the first is a dog with black background, the second is a screenshot from Genshin Impact, the third is a group of people on a grass, the forth is a completely unrelated group of people on the snow, the fifth is some birds in the rain and the last is some foods in a pan. 100% unrelated photos. It should not have bundled these photos as one person.
Any way I can "delete" this person?
The OS that Immich Server is running on
Raspberry Pi OS 64 bit latest version
Version of Immich Server
v1.113.1
Version of Immich Mobile App
N/A
Platform with the issue
Your docker-compose.yml content
Your .env content
Reproduction steps
I think it might be difficult to reproduce, but once it happens it can be observed by:
Relevant log output
No response
Additional information
If you need help to debug this I am available to jump on discord to share the screen/do what is needed to help : )