Counting Bug
Nobody has claimed this yet.
- Dominant language
- Jupyter Notebook
- Stars
- 9.7k
- Forks
- 1.5k
- PR merge metrics
- No merged PRs in 30d
Description
Search before asking
- I have searched the Roboflow Notebooks issues and found no similar bug report.
Notebook name
how-to-detect-and-count-objects-in-polygon-zone
Bug
File "C:\PycharmProjects\yolocount\test.py", line 81, in
zada()
File "C:\PycharmProjects\yolocount\test.py", line 62, in zada
labels = [
^
File "C:\PycharmProjects\yolocount\test.py", line 63, in
f"{model.names[int(class_id)]} {confidence:0.2f}"
TypeError: unsupported format string passed to NoneType.format
Environment
python 3.9.0
Minimal Reproducible Example
No response
Additional
No response
Are you willing to submit a PR?
- Yes I'd like to help by submitting a PR!
Contributor 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.
Research direction
Start with the how-to-detect-and-count-objects-in-polygon-zone notebook and the reported test.py traceback, especially lines 62-63, using Python 3.9. Reproduce the counting path and determine why the label formatting raises a TypeError; done means the notebook completes counting without that error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- jupyter-notebook, python
- Domain
- computer-vision, machine-learning
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100