[Refactor] refactor get_subset_by_classes in dataloader for training with empty-GT images (#3695)
* Add regression test and test data
* Add fix for empty gt images
* Trigger CI build
* refactor get_subset_by_classes
* reformat and fix docstring
* [refactor]: move get_subset_by_classes to _filter_imgs
* make img_ids consistent
* resolve comments
* simplify logics
* add warning
* add warning
* add warning
Co-authored-by:
mmeendez8 <miguelmndez@gmail.com>
Showing
- mmdet/datasets/cityscapes.py 13 additions, 1 deletionmmdet/datasets/cityscapes.py
- mmdet/datasets/coco.py 14 additions, 26 deletionsmmdet/datasets/coco.py
- mmdet/datasets/custom.py 14 additions, 12 deletionsmmdet/datasets/custom.py
- mmdet/datasets/xml_style.py 20 additions, 16 deletionsmmdet/datasets/xml_style.py
- tests/data/coco_sample.json 77 additions, 0 deletionstests/data/coco_sample.json
- tests/test_data/test_dataset.py 37 additions, 6 deletionstests/test_data/test_dataset.py
tests/data/coco_sample.json
0 → 100644
Please register or sign in to comment