AOSSIE-Org / AOSSIE-Org/PictoPy

BUG: face data persists after source folder is removed

Aperta
#569 3 commenti 0 reazioni 1 assegnatario Rivendicata da @DecodeX15 Vedi su GitHub
backend bug
Lingua principale
Python
Stelle
283
Fork
679
Merge medio
7g 2h
PR unite (30g)
3

Descrizione

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?

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.