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 摘要。