Issue: #9329
A new entry `seg_suffix` is added for CustomDataset.__init__()
but missing in `self_coco = CocoDataset` in function `evaluate()`,
`mmdet/datasets/cityscapes.py`.
Signed-off-by: Shengjiang QUAN <qsj287068067@126.com>
Signed-off-by: Shengjiang QUAN <qsj287068067@126.com>
* Bug fix: https://github.com/open-mmlab/mmdetection/issues/8131
* The better solution from chhluo
* https://github.com/open-mmlab/mmdetection/pull/8136
since we changed the filtering type from mask to indexes, we can no longer use ```keep.any()``` to check, because it does not work at index zero.
But we can use
```
if keep.size == 0:
if self.keep_empty:
return None
```
* add a unit test for filtering PolygonMasks
* W293 blank line contains whitespace
Co-authored-by: Wenwei Zhang <40779233+ZwwWayne@users.noreply.github.com>
Co-authored-by: m.stepanov <m.stepanov@redmadrobot.com>
* Mask2Former/MaskFormer instance only training/eval
* obsolete config names
* if cond is None fix
* white space
* fix tests
* yapf formatting fix
* semantic_seg None docstring
* original config names
* pan/ins unit test
* show_result comment
* pan/ins head unit test
* redundant test
* inherit configs
* correct gpu #
* revert version
* BaseDetector.show_result comment
* revert more versions
* clarify comment
* clarify comment
* add FilterAnnotations to data pipeline
* more complete Returns docstring
* use pytest.mark.parametrize decorator
* fix docstring formatting
* lint
* Include instances passing mask area test
* Make FilterAnnotations generic for masks or bboxes
* Duplicate assertion
* Add pad config
* Less hard coded padding setting
* Clarify test arguments
* Additional inst_seg configs
* delete configs
* Include original dev branch configs
* Fix indent
* fix lint error from merge conflict
* Update .pre-commit-config.yaml
* Rename mask2former_r50_lsj_8x2_50e_coco.py to mask2former_r50_lsj_8x2_50e_coco-panoptic.py
* Update and rename mask2former_r101_lsj_8x2_50e_coco.py to mask2former_r101_lsj_8x2_50e_coco-panoptic.py
* Update and rename mask2former_swin-b-p4-w12-384-in21k_lsj_8x2_50e_coco.py to mask2former_swin-b-p4-w12-384-in21k_lsj_8x2_50e_coco-panoptic.py
* Update and rename mask2former_swin-b-p4-w12-384_lsj_8x2_50e_coco.py to mask2former_swin-b-p4-w12-384_lsj_8x2_50e_coco-panoptic.py
* Update and rename mask2former_swin-l-p4-w12-384-in21k_lsj_16x1_100e_coco.py to mask2former_swin-l-p4-w12-384-in21k_lsj_16x1_100e_coco-panoptic.py
* Update and rename mask2former_swin-s-p4-w7-224_lsj_8x2_50e_coco.py to mask2former_swin-s-p4-w7-224_lsj_8x2_50e_coco-panoptic.py
* Update and rename mask2former_swin-t-p4-w7-224_lsj_8x2_50e_coco.py to mask2former_swin-t-p4-w7-224_lsj_8x2_50e_coco-panoptic.py
* Create mask2former_r50_lsj_8x2_50e_coco.py
* Create mask2former_r101_lsj_8x2_50e_coco.py
* Create mask2former_swin-s-p4-w7-224_lsj_8x2_50e_coco.py
* Create mask2former_swin-t-p4-w7-224_lsj_8x2_50e_coco.py
* Update test_forward.py
* remove gt_sem_seg
Co-authored-by: Cedric Luo <luochunhua1996@outlook.com>
* [Feature] Support Class Aware Sampler
* minor fix
* minor fix
* rename get_label_dict to get_index_dict
* fix cas logic
* minor fix
* minor fix
* minor fix
* minor fix
* minor fix
* Testing pre-commit hooks
* Added base code in transforms
* Added Simple Copy Paste working version
* Added checks to simple copy paste
* refactor simplecopypaste and provide some configs
* remove lvis-api in .gitignore
* refactor simplecopypaste and use resize/flip/pad in load_pipeline
* pre-commit
* add README.md for simplecopypaste
* add some unit tests
* rename some variables
* add a blend_fn
* add some unit tests
* add some comments
* delete blend_fn
* simplify some commits
Co-authored-by: Sudarshan Kamath <sudarshan.kamath97@gmail.com>
* fix the bug that mix_results may be None
* confirm results is not None
* fix a bug
* refine commits
* refine some commits and add a RuntimeError
* fix
* refine some commits
update doc
update doc format
deepcopy pixel_decoder cfg
move mask_pseudo_sampler cfg to config file
move part of postprocess from head to detector
fix bug in postprocessing
move class setting from head to config file
remove if else
move mask2bbox to mask/util
update docstring
update docstring in result2json
fix bug
update class_weight
add maskformer_fusion_head
add maskformer fusion head
update
add cfg for filter_low_score
update maskformer
update class_weight
update config
update unit test
rename param
update comments in config
rename variable, rm arg, update unit tests
update mask2bbox
add unit test for mask2bbox
replace unsqueeze(1) and squeeze(1)
add unit test for maskformer_fusion_head
update docstrings
update docstring
delete \
remove modification to ce loss
update docstring
update docstring
update docstring of ce loss
update unit test
update docstring
update docstring
update docstring
rename
rename
add msdeformattn pixel decoder
maskformer refactor
add strides in config
remove redundant code
remove redundant code
update unit test
update config
update
update comments
rename function and replace condition
rename
add message for proposal_fast when instance segmentation evaluation
set cocoGt as arg
update comments
update comments
update docstring and rename
add unit test
update docstring
add assert for instance eval
* [Feature] support openimage group of eval
* [Feature] support openimage group of eval
* support openimage dataset
* support openimage challenge dataset
* fully support OpenImages-V6 and OpenImages Challenge 2019
* Fix some logic error
* update config file
* fix get data_infos error
* fully support OpenImages evaluation
* update OpenImages config files
* [Feature] support OpenImages datasets
* fix bug
* support load image metas from pipeline
* fix bug
* fix get classes logic error
* update code
* support get image metas
* support openimags
* support collect image metas
* support Open Images
* fix openimages logic
* minor fix
* add a new function to compute openimages tpfp
* minor fix
* fix ci error
* minor fix
* fix indication
* minor fix
* fix returns
* fix returns
* fix returns
* fix returns
* fix returns
* minor fix
* update readme
* support loading image level labels and fix some logic
* minor fix
* minor fix
* add class names
* minor fix
* minor fix
* minor fix
* add openimages test unit
* minor fix
* minor fix
* fix test unit
* minor fix
* fix logic error
* minor fix
* fully support openimages
* minor fix
* fix docstring
* fix docstrings in readthedocs
* update get image metas script
* label_description_file -> label_file
* update openimages readme
* fix test unit
* fix test unit
* minor fix
* update readme file
* Update get_image_metas.py
* fix oid testunit to avoid some error in windows
* minor fix to avoid some error in windows
* minor fix
* add comments in oid test unit
* minor fix
* [Feature] support openimage group of eval
* [Feature] support openimage group of eval
* support openimage dataset
* support openimage challenge dataset
* fully support OpenImages-V6 and OpenImages Challenge 2019
* Fix some logic error
* update config file
* fix get data_infos error
* fully support OpenImages evaluation
* update OpenImages config files
* [Feature] support OpenImages datasets
* fix bug
* support load image metas from pipeline
* fix bug
* fix get classes logic error
* update code
* support get image metas
* support openimags
* support collect image metas
* support Open Images
* fix openimages logic
* minor fix
* add a new function to compute openimages tpfp
* minor fix
* fix ci error
* minor fix
* fix indication
* minor fix
* fix returns
* fix returns
* fix returns
* fix returns
* fix returns
* minor fix
* update readme
* support loading image level labels and fix some logic
* minor fix
* minor fix
* add class names
* minor fix
* minor fix
* minor fix
* add openimages test unit
* minor fix
* minor fix
* fix test unit
* minor fix
* fix logic error
* minor fix
* fully support openimages
* minor fix
* fix docstring
* fix docstrings in readthedocs
* update get image metas script
* label_description_file -> label_file
* update openimages readme
* fix test unit
* fix test unit
* minor fix
* update readme file
* Update get_image_metas.py
* First commit of v2
* split the functions
* Support to show panoptic result
* temp
* Support to show gt
* support show gt
* fix lint
* Support to browse datasets
* Fix unit tests
* Fix findContours
* fix comments
* Fix pre-commit
* fix lint
* Add the type of an argument
* upgrade isort to v5.10.1
* replace known_standard_library with extra_standard_library
* upgrade isort to v5.10.1
replace known_standard_library with extra_standard_library
* imports order changes
* Update visualization
* Fix a help text mistake
* short function docs
* Fix for iosrt
* Back to master
* Check by pre-commit
* Update dataset_warppers palette
* Custom colors for visualizaton
* Update visualization in image_demo.py
* align palette with panopticapi
* delete palette from checkpoint meta
* Use tuple to represent color
* Update visualization
* Modify image_demo.py
* Check test error
* Check test error
* Fix error for empty case
* Delete redundant functions
* Check visualization
* Add default case
* Fix bug
* Fix bugs
* Add unit tests
* Change coments
* Avoid break using positional arguments.
* Add copyright
* Modify comments
* fix lint
Co-authored-by: Guangchen Lin <347630870@qq.com>
* support 'bbox_clip_border' for the augmentations of YOLOX
* update based on 1-st comments
* add comments
* fix typos
* rename remove_ouside_bboxes to find_inside_bboxes
* move comments to docstring
* Fix aug test error when the number of prediction bboxes is 0 (#6398)
* Fix aug test error when the number of prediction bboxes is 0
* test
* test
* fix lint
* Support custom pin_memory and persistent_workers
* fix comment
* fix docstr
* remove pin_memory
* first version
* Replace with our api
* Add copyright
* Move the runtime error to multi_core interface
* Add docstring
* Fix comments
* Add comments
* Add unit test for pq_compute_single_core