AOSSIE-Org / AOSSIE-Org/PictoPy

Feat:Backend Image Processing Blocks the Single-Worker ProcessPoolExecutor

Abierto
#1,183 2 comentarios 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
Python
Estrellas
283
Forks
679
Merge medio
7 d 2 h
PR fusionados (30 d)
3

Descripción

### Describe the feature

Heavy processing tasks like AI tagging + face detection + face clustering are all submitted to this single worker. If a user adds a large folder, every subsequent request (sync, AI tagging enable) is queued behind it.Additionally, in
images.py #L105-L137, images are processed one-by-one in a loop — no batching or parallelism.

### Add ScreenShots

Proposed Fix:
--Increase max_workers or use a proper async task queue (e.g., Celery, RQ, or even asyncio.to_thread)
--Implement batch inference for YOLO/FaceNet instead of per-image model invocations
--Add progress reporting (SSE or WebSocket) to the frontend

### Record

- [x] I agree to follow this project's Code of Conduct
- [x] I want to work on this issue

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.