BUG: YOLO incorrectly labels Toothbrush (Class ID 79) detections as Unknown
Maintainers usually reply within 6 days
Nobody has claimed this yet.
Assessment
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Newbie friendliness
- 86/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- python
- Domain
- computer-vision
Research direction
The issue identifies backend/app/utils/YOLO.py and YOLO_util_draw_detections(). Read that function and run the failing unit test described in the issue with class ID 79 and confidence 0.90. Done means the visualization labels this detection toothbrush 90% instead of unknown 90%.
Written by the indexing model from the issue text.
Description
Is there an existing issue for this?
- I have searched the existing issues
What happened?
Bug Description
The YOLO detection visualization incorrectly labels the last COCO class,
"toothbrush" (class ID 79), as "unknown".
The issue is in backend/app/utils/YOLO.py, inside the
YOLO_util_draw_detections() function.
Root Cause
The current condition is:
if score < confidence_threshold or class_id >= len(class_names) - 1:
Since class_names contains 80 classes (indices 0–79), this condition
incorrectly treats class ID 79 as invalid.
Expected Behavior
Class ID 79 should be recognized as "toothbrush".
Actual Behavior
Class ID 79 is displayed as "unknown".
Impact
The issue causes incorrect object labels in the detection visualization for the last category in the COCO class list.
Testing
I reproduced the issue using a unit test with:
- Class ID: 79
- Confidence score: 0.90
Expected output: toothbrush 90%
Actual output: unknown 90%
The test fails with the current implementation.
Record
- I agree to follow this project's Code of Conduct
- Dominant language
- Python
- Stars
- 313
- Forks
- 755
- Avg merge
- 6d 36m
- Merged PRs (30d)
- 8
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from AOSSIE-Org/PictoPy
-
enhancement possible-duplicate
Difficulty 1/5 1-3 hours Newbie friendliness 78/100
AOSSIE-Org/PictoPy#1715 · 2 comments ·
Maintainers usually reply within 6 days
-
BUG: /folders/all-folders takes over a second when folders contain both images and videosPossibly taken @Saurabhyadav0 claimed this 1 day ago. Openbug enhancement possible-duplicate
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
AOSSIE-Org/PictoPy#1708 · 3 comments ·
Maintainers usually reply within 6 days
-
Add unit tests for personUtils.tsPossibly taken @mystic-fae claimed this today. Openenhancement
Difficulty 1/5 1-3 hours Newbie friendliness 62/100
AOSSIE-Org/PictoPy#1707 · 3 comments ·
Maintainers usually reply within 6 days
-
bug possible-duplicate
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
AOSSIE-Org/PictoPy#1702 · 2 comments ·
Maintainers usually reply within 6 days
-
BUG: Share page returns HTTP 500 when the unlock cookie contains a non-ASCII characterMay be free again @swastiksharma45 claimed this 7 days ago, and no pull request is open. Openbug
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
AOSSIE-Org/PictoPy#1696 · 6 comments ·
Maintainers usually reply within 6 days
All issues in AOSSIE-Org/PictoPy
Similar issues
-
add entry to blockOpen
Difficulty 1/5 Under an hour Newbie friendliness 65/100
StevenBlack/hosts#3299 ·
-
`garak --report` overwrites the input report when its name has no ".report"Possibly taken @0z5a claimed this today. Openneeds-triage
Difficulty 2/5 Half a day Newbie friendliness 72/100
Maintainers usually reply within 2 days
-
plot_graph crashes when a mesh node has no m2m edgePossibly taken @tygvi claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
mllam/neural-lam#883 · 1 comment ·
Maintainers usually reply within 2 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
future-agi/future-agi#4092 · 1 comment ·
Maintainers usually reply within 1 day
-
transcript analytics: a text whose only protected spans the prose pass redacts is withheld wholeOpen
Difficulty 1/5 Under an hour Newbie friendliness 82/100
WingedGuardian/GENesis-AGI#4641 ·
Maintainers usually reply within 1 day