AOSSIE-Org / AOSSIE-Org/PictoPy

BUG: face data persists after source folder is removed

未關閉
#569 3 則留言 0 個 reaction 已指派 1 人 已被 @DecodeX15 認領 在 GitHub 檢視
backend bug
主要語言
Python
星號
283
分支
679
平均合併
7 天 2 小時
30 天內合併 PR
3

描述

There is an issue where face data remains in the system even after the folder containing the source photos has been deleted. This creates "orphaned" face entries that are not linked to any existing file, causing data inconsistency.

Current Behavior:

A user adds a folder of photos.
The model processes the photos and correctly tracks the faces within them.
The user then removes the source folder.
The face data from the deleted photos remains in the database/system, but it is no longer associated with a valid photo, appearing as an entry with "zero faces" or invalid links.

Expected Behavior:

When a folder is deleted, all face data associated with the photos in that folder should also be deleted from the system.
The face tracking data should always be synchronized with the existing photo library, ensuring that every tracked face corresponds to a photo that is currently in a folder.

see the video

https://github.com/user-attachments/assets/d3bbc532-0477-4315-9d34-6068ccc088d1

### Record

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

### Checklist before Submitting

- [ ] Have you updated docs for it?
- [ ] Have you added unit tests?
- [ ] Have you made sure unit tests pass?
- [x] Have you made sure code formatting is correct?
- [ ] Do Your changes passes all tests?

貢獻指南

開啟貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。