AOSSIE-Org / AOSSIE-Org/PictoPy

BUG: Face clusters show fewer photos than face search for the same person

Đang mở
#1,164 3 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Python
Star
283
Fork
679
Merge trung bình
7 ngày 2 giờ
Pull request đã merge (30 ngày)
3

Mô tả

### Is there an existing issue for this?

- [x] I have searched the existing issues

### What happened?

## What happened?
After AI tagging completes, Face Collections (People view) show very few photos for a person,
while face search returns many more photos for the same person.

Example from my local setup:
- AI Tagging → Face Collections → Person 5eb9 shows **3 photos**
- Home → Face search using the same person returns **13 photos**

This is confusing from a user perspective since both features appear to answer the same question:
"Show me all photos of this person."

---

## How to reproduce
1. Add a folder with many photos of the same person
2. Enable AI tagging and wait for it to complete
3. Go to AI Tagging → Face Collections
4. Click a person cluster and note the photo count
5. Use Home search with a photo of the same person
6. Observe that search returns significantly more photos than the cluster view

---

## Expected behaviour
Face Collections and face search should be consistent, or the UI should clearly explain
why results differ.

---

## Actual behaviour
Face Collections show only a small subset of photos, while face search returns many more
for the same person.

---

## Technical analysis (initial one)
From tracing the backend pipeline:
- Face clustering uses DBSCAN with stricter similarity thresholds and may exclude faces as noise
- Face search compares raw embeddings with a looser threshold and ignores clusters entirely
- Some faces remain unclustered but still appear in search results

- [x] I agree to follow this project's Code of Conduct

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.