Text Report Misses Last Class
See original GitHub issueThis is a minor issue, but the text report that DetVisGUI.py produces during initialization misses the last class in the list. For example when I run DetVisGUI.py on my custom dataset that has 3 object classes (as shown by “Total Category”) I get:
==============[ COCO json info ]==============
Total Annotations: 216
Total Image : 172
Annotated Image : 172
Total Category : 3
----------------------------
class | count
----------------------------
human | 86
vehicle | 130
That result is missing the animal class in my case.
The source of the error is within the parse_jason function, line 112 of DetVisGUI.py in the mmDetection branch:
112 category_count = [0 for _ in range(max_category_id)]
Corrected to:
112 category_count = [0 for _ in range(max_category_id + 1)]
Shows all the classes and their counts:
==============[ COCO json info ]==============
Total Annotations: 216
Total Image : 172
Annotated Image : 172
Total Category : 3
----------------------------
class | count
----------------------------
human | 86
vehicle | 59
animal | 71
Thanks for the cool tool!
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Using Timely Text Messages To Curb Missed Assignments ...
In a study, automated text messages to parents reduced absences and the number of F's earned by high school students.
Read more >Parent Alert! Your Child Just Skipped Class - NPR
In a study, automated text messages to parents reduced absences and the number of F's earned by high school students.
Read more >WHAT! Missing Assignments & Progress Reports for Google ...
Alice will go over some features of Google Classroom on how you can get information about your students progress. While Google Classroom is ......
Read more >15 Good Excuses to Miss Class without Being Caught Lying
Good excuses to miss class are like strong armor; they guarantee your protection even when the stakes are high.
Read more >When I open a Powerpoint File in Classroom, text shows but ...
We had no issues with this last year and it worked fine. Workaround is to save as a PDF and the pictures show...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hello, this error is caused by line 142 ~ 144 :
I fixed this error by change these lines to
You can test it on your dataset and if this issue is solved, please close this issue. If there are any errors, please let me know. Thank you.
Sorry for late reply. I guess that they use 0 for the background class by default, but depending on the object detection code you use, you could also use -1 for the background class.