-
Notifications
You must be signed in to change notification settings - Fork 211
Conversation
Codecov Report
@@ Coverage Diff @@
## master #56 +/- ##
==========================================
- Coverage 86.66% 86.56% -0.10%
==========================================
Files 45 47 +2
Lines 1372 1526 +154
==========================================
+ Hits 1189 1321 +132
- Misses 183 205 +22
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
Great work! do you know if there are any small datasets we could use to test? |
Hi, ultralytics provided a small coco datasets named EDIT: |
@zhiqwang Thank you, will look into it! |
Hi @kaushikb11, I upload the whole folder containing images here for easy of use. The COCO format file are also in this folder. |
@zhiqwang Could you update |
Hi @kaushikb11 okay, I'll reupload the label file soon. EDIT: Done, you can redownload the https://github.com/zhiqwang/yolov5-rt-stack/releases/download/v0.3.0/coco128.zip. |
@zhiqwang: The annotations don't seem to be right. The categories are out of bounds. FOr eg., you could check |
Hi @kaushikb11, Sorry, and I'll double check it! |
Hi @kaushikb11
CLASSES = [
'N/A', 'person', 'bicycle', 'car', 'motorcycle', 'airplane', 'bus',
'train', 'truck', 'boat', 'traffic light', 'fire hydrant', 'N/A',
'stop sign', 'parking meter', 'bench', 'bird', 'cat', 'dog', 'horse',
'sheep', 'cow', 'elephant', 'bear', 'zebra', 'giraffe', 'N/A', 'backpack',
'umbrella', 'N/A', 'N/A', 'handbag', 'tie', 'suitcase', 'frisbee', 'skis',
'snowboard', 'sports ball', 'kite', 'baseball bat', 'baseball glove',
'skateboard', 'surfboard', 'tennis racket', 'bottle', 'N/A', 'wine glass',
'cup', 'fork', 'knife', 'spoon', 'bowl', 'banana', 'apple', 'sandwich',
'orange', 'broccoli', 'carrot', 'hot dog', 'pizza', 'donut', 'cake',
'chair', 'couch', 'potted plant', 'bed', 'N/A', 'dining table', 'N/A',
'N/A', 'toilet', 'N/A', 'tv', 'laptop', 'mouse', 'remote', 'keyboard',
'cell phone', 'microwave', 'oven', 'toaster', 'sink', 'refrigerator', 'N/A',
'book', 'clock', 'vase', 'scissors', 'teddy bear', 'hair drier',
'toothbrush'
] So the total number of classes is 91 here. |
Hi @kaushikb11 One option here to solve the category inconsistent problem is through the category mapping like: json_category_id_to_contiguous_id = {
v: i for i, v in enumerate(example_coco.getCatIds())
} Thoughts? |
@zhiqwang I have handled the case, we wouldn’t want to change the category mapping. Thanks! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, just one question. Do you think we could add some tests here? Would be great to get code coverage > 90%
5204570
to
4193afb
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome work there ! You aced it !
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@kaushikb11 looking good already. just pointing out some things hat should be adressed. The collate thing is the only blocker from my side :)
def collate(self, samples: Any) -> Any: | ||
if not isinstance(samples, Tensor): | ||
elem = samples[0] | ||
if isinstance(elem, container_abcs.Sequence): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shoudn't you use typing.Sequence
?
Nice work! Can you please add docs here too? |
Where should we add it? Also will do a follow up PR for docs. Better for review. |
Co-authored-by: Carlos Mocholí <[email protected]>
@kaushikb11 @Borda @edenlightning can we add docs for this? |
@williamFalcon On it! |
What does this PR do?
Add support for detection
Before submitting
PR review
Anyone in the community is free to review the PR once the tests have passed.
If we didn't discuss your PR in Github issues there's a high chance it will not be merged.
Did you have fun?
Make sure you had fun coding 🙃