AOSSIE-Org / AOSSIE-Org/PictoPy
BUG: AI tagging hangs indefinitely when an image fails to load, blocking subsequent tagging jobs
- 主要语言
- Python
- 星标
- 284
- 派生
- 680
- 平均合并
- 7 天 5 小时
- 30 天内合并 PR
- 4
描述
### Is there an existing issue for this?
- [x] I have searched the existing issues
### What happened?
## Description
While AI tagging, if the backend encounters an image that it cannot load (cv2.imread() returns None), the entire AI-tagging job stops instead of skipping the image. The folder remains in the "processing" state indefinitely, and any following queued folder also remain pending until the ai tagging process of the folder that has problematic image, is turned off. Still we need to restart the subsequent folder's ai tagging.
### What backend logs:-
Failed to load image: -path-
Error processing untagged images: object of type 'NoneType' has no len()
problematic image:-
properties: -
format: JPEG
resolution: 616 x 920
size: 79kb
### Current behavior
https://github.com/user-attachments/assets/95be7292-6dce-4393-8641-b4f79dc12696
### Expected behavior
- If an image cannot be loaded, log the error.
- Skip the problematic image.
- Continue processing the remaining images.
- Continue processing later queued folders.
### Record
- [x] I agree to follow this project's Code of Conduct
贡献指南
调研方向
Start at the backend AI-tagging path that calls cv2.imread() and produces the reported load and NoneType errors. Trace how one failed image affects the current folder's processing state and the queued folders, then use the existing AI-tagging tests or reproduce with the reported image. Done means the failure is logged, that image is skipped, remaining images are processed, and later folders continue.
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- opencv, python
- 领域
- backend, computer-vision, machine-learning
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 冷清
- 描述清晰度
- 基本清楚
- 新手友好度
- 52/100