Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support TTA of ATSS, FCOS, YOLOv3 #3844

Merged
merged 2 commits into from
Oct 1, 2020

Conversation

shinya7y
Copy link
Contributor

This PR enables dense_test_mixins.py to process score_factors for NMS.

ATSS (model)

0.394 0.576 0.428 0.236 0.429 0.503  # img_scale=(1333, 800),
0.391 0.575 0.424 0.258 0.426 0.471  # img_scale=(1600, 960),
0.404 0.583 0.440 0.260 0.438 0.499  # img_scale=[(1333, 800), (1600, 960)],
0.398 0.580 0.433 0.247 0.435 0.510  # img_scale=(1333, 800), flip=True,

FCOS (model)

0.386 0.572 0.417 0.224 0.424 0.502  # img_scale=(1333, 800),
0.389 0.578 0.420 0.249 0.427 0.479  # img_scale=(1600, 960),
0.399 0.585 0.434 0.250 0.438 0.500  # img_scale=[(1333, 800), (1600, 960)],
0.393 0.579 0.427 0.232 0.432 0.506  # img_scale=(1333, 800), flip=True,

YOLOv3 (model)

0.335 0.563 0.352 0.196 0.364 0.436  # img_scale=(608, 608),
0.333 0.568 0.342 0.218 0.370 0.407  # img_scale=(736, 736),
0.350 0.584 0.369 0.220 0.384 0.440  # img_scale=[(608, 608), (736, 736)],
0.343 0.576 0.358 0.204 0.377 0.442  # img_scale=(608, 608), flip=True,

@codecov
Copy link

codecov bot commented Sep 26, 2020

Codecov Report

Merging #3844 into master will decrease coverage by 0.01%.
The diff coverage is 36.84%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #3844      +/-   ##
==========================================
- Coverage   62.48%   62.46%   -0.02%     
==========================================
  Files         219      219              
  Lines       16256    16269      +13     
  Branches     2753     2759       +6     
==========================================
+ Hits        10157    10162       +5     
- Misses       5603     5610       +7     
- Partials      496      497       +1     
Flag Coverage Δ
#unittests 62.46% <36.84%> (-0.02%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
mmdet/models/dense_heads/anchor_free_head.py 75.59% <ø> (-0.38%) ⬇️
mmdet/models/dense_heads/atss_head.py 28.20% <0.00%> (-0.25%) ⬇️
mmdet/models/dense_heads/dense_test_mixins.py 13.63% <0.00%> (-1.37%) ⬇️
mmdet/models/dense_heads/fovea_head.py 30.12% <0.00%> (ø)
mmdet/models/dense_heads/fsaf_head.py 15.68% <0.00%> (+0.10%) ⬆️
mmdet/models/dense_heads/gfl_head.py 27.39% <0.00%> (ø)
mmdet/models/dense_heads/guided_anchor_head.py 24.78% <ø> (-0.43%) ⬇️
mmdet/models/dense_heads/reppoints_head.py 22.16% <0.00%> (ø)
mmdet/models/dense_heads/sabl_retina_head.py 30.41% <0.00%> (-0.29%) ⬇️
mmdet/models/roi_heads/bbox_heads/sabl_head.py 77.61% <16.66%> (-1.40%) ⬇️
... and 12 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d460a53...9307e83. Read the comment docs.

Comment on lines +73 to +74
if len(bbox_outputs) >= 3:
aug_factors.append(bbox_outputs[2])
Copy link
Collaborator

@xvjiarui xvjiarui Sep 29, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We may add some comments about it, e.g. which detector on what condition will return this factor, like FCOS.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have added a comment.

@xvjiarui
Copy link
Collaborator

Hi @shinya7y
Thanks for your valuable contribution. The code looks good to me in general, except for the comment.
I am approving this right now. And you may kindly adjust according to the comment.

@hellock hellock merged commit 5b18b94 into open-mmlab:master Oct 1, 2020
ZwwWayne added a commit that referenced this pull request Oct 19, 2020
* Add doc of modify loss (#3777)

* add doc of modify loss

* minor fix

* change name

* improve the function of simple_test_bboxes (#3853)

* update

* fix lint error

* add bbox_pred_split in sabl_head

* fix lint error

* fix yapf

* fix build error

* fix yapf

* Clean background_labels in the dense heads (#3221)

* Clean background_labels in the dense heads

* clean format

* Reformat

* Fix CI bug

* fix fsaf and the comments

* fix newly added heads

* fix yolact

* complete comments

* fix rpn transforming bug in two stage networks (#3754)

* fix rpn transforming bug in two_stage

* [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>

* Fix nonzero in NMS for PyTorch 1.6.0 (#3867)

* Support TTA of ATSS, FCOS, YOLOv3 (#3844)

* Support TTA of ATSS, FCOS, YOLOv3

* Add comment

* [Docs] Fix typo in docs/tutorials/new_dataset.md (#3876)

* [Docs] Remove duplicate content in docs/config.md (#3875)

* [Enhance]: Convert mask to bool before using it as img's index for robustness and speedup (#3870)

* Convert mask to bool before using it as img's index

* lint

* Rewrite code in more concise way

* Fix typo in bbox_flip (#3886)

* fix the API change bug of PAA (#3883)

* fix cv2 import error of ligGL.so.1 (#3891)

* [enhance]: Improve documentation of modules and dataset customization (#3821)

* update tutorials for changing training settings

* update

* Update details of hook

* resolve comments

* reformat

* Update module documentations

* add notes for classes specification

* support to use pytorch 1.6 in docker (#3905)

* support to use pytorch 1.6 in docker

* update mmcv requirement

* update docs

* Add missing notes in data customization (#3906)

* [Fix]: fix mask rcnn training stuck problem when there is no positive rois (#3713)

* Fix mask rcnn stuck problem when there is no positive rois

* support non pos inference in cascade methods, link CU-49tawu

* print mmcv version in CI

* use mmcv repo to check wrappers

* change cpu build

* upgrade mmcv requirements and change ci back

* use pre-built whl in CI

* Bump to v2.5.0 (#3879)

* bump to v2.5.0

* update PR

* resolve comments

* clean unnecessary modification

* update bc breaking

* rephrase bc-breaking

* rephrase

* Added `generate_inputs_and_wrap_model` function for pytorch2onnx (#3857)

* added `generate_inputs_and_wrap_model` function for pytorch2onnx

* undo debugging changes

* added model.cpu().eval()

* refactored onnx

* fix verify

* move `generate_inputs_and_wrap_model` into mmdet.core.export

* use `generate_inputs_and_wrap_model` in tools/pytorch2onnx.py

* typo (#3917)

* Edit mmdet.core.export docstring (#3912)

* edit mmdet.core.export docstring

* update doctest

* fix small bugs

* supports for HungarianMatchAssigner, add bbox_cxcywh_to_xyxy and bbox_xyxy_to_cxcywh for bbox transform

* format box-wise related giou calculating as a function and implement it in iou2d_calculater.py

* supports for BboxGIoU2D and re-implements giou_loss using bbox_gious

* remove unnecessary

* reformat

* reformat docstring

* reformat

* rename

* supports for giou calculating in BboxOverlaps2D, and re-implements giou_loss using bbox_overlaps

* fix sabl validating bug in cascade_rcnn (#3913)

* reformat

* move giou related unit test from test_losses.py to test_iou2d_calculator.py

* reformat

* Avoid division by zero in PAA head when num_pos=0

* [Fix]: Avoid division by zero in PAA head when num_pos=0 (#3938)

* explicitly add mode in giou_loss

* Add supports for giou calculation in BboxOverlaps2D, and re-implements giou_loss using bbox_overlaps (#3936)

* supports for BboxGIoU2D and re-implements giou_loss using bbox_gious

* remove unnecessary

* reformat

* reformat docstring

* reformat

* rename

* supports for giou calculating in BboxOverlaps2D, and re-implements giou_loss using bbox_overlaps

* reformat

* move giou related unit test from test_losses.py to test_iou2d_calculator.py

* reformat

* Avoid division by zero in PAA head when num_pos=0

* explicitly add mode in giou_loss

* Add supports for giou calculation in BboxOverlaps2D, and add iou_calculator in hungarian_assigner

* rename hungarian_match_assigner as hungarian_assigner

* fix init

* reformat docstring

* Avoid division by zero in PAA head when num_pos=0

* fix cpu (#3948)

* add mode for iou_calculator and make giou cost as a default case

* make mode as a param in iou_calculator

* reformat docsting

* make iou_mode outside of iou_calculator

Co-authored-by: Cao Yuhang <yhcao6@gmail.com>
Co-authored-by: yuzhj <31239926+yuzhj@users.noreply.github.com>
Co-authored-by: Wenwei Zhang <40779233+ZwwWayne@users.noreply.github.com>
Co-authored-by: mmeendez8 <miguelmndez@gmail.com>
Co-authored-by: Yosuke Shinya <42844407+shinya7y@users.noreply.github.com>
Co-authored-by: LabMemNo003 <LabMemNo003@gmail.com>
Co-authored-by: Ye Liu <yeliudev@outlook.com>
Co-authored-by: aboettcher <aboettcher@users.noreply.github.com>
Co-authored-by: Ryan Li <xlide@connect.ust.hk>
Co-authored-by: Jiangmiao Pang <pangjiangmiao@gmail.com>
ZwwWayne added a commit that referenced this pull request Nov 29, 2020
* supports for DETR transformer

* unit test with small data to avoid out of memory in CI

* use batch size 1 for unit test to avoid out of memory

* move transformer into utils folder and use more small data for unit test

* reformat docstring

* add more detailed docstring

* reforamt

* reformat and add build_transformer (#3866)

* Supports for DETR position embedding (#3850)

* supports for DETR position embedding

* reformat docstring

* reformat

* move transformer_head folder into utils

* remove unnecessary comments

* reformat

* reformat

* reformat docstring

* reformat

* add optional for default parameters

* add comments for unit test

* avoid inplace in MultiheadAttention and add optional add_residual for FFN

* Supports for DETR inference (#3941)

* fix forward in FFN

* supports detr inference mode with batchsize 1

* add docstring for DETR in detr.py

* reformat and add doctest for TransformerHead

* reformat, and move the mask construction from simple_test in detr.py to the forward process of transformer_head

* rename detr_r50_1x_coco as detr_r50_8x4_1x_coco in config

* reformat

* mask input_img_shape in img_meta as a general modification of base_detector forward_test

* reformat

* Supports for DETR hungarian matcher. (#3929)

* Add doc of modify loss (#3777)

* add doc of modify loss

* minor fix

* change name

* improve the function of simple_test_bboxes (#3853)

* update

* fix lint error

* add bbox_pred_split in sabl_head

* fix lint error

* fix yapf

* fix build error

* fix yapf

* Clean background_labels in the dense heads (#3221)

* Clean background_labels in the dense heads

* clean format

* Reformat

* Fix CI bug

* fix fsaf and the comments

* fix newly added heads

* fix yolact

* complete comments

* fix rpn transforming bug in two stage networks (#3754)

* fix rpn transforming bug in two_stage

* [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>

* Fix nonzero in NMS for PyTorch 1.6.0 (#3867)

* Support TTA of ATSS, FCOS, YOLOv3 (#3844)

* Support TTA of ATSS, FCOS, YOLOv3

* Add comment

* [Docs] Fix typo in docs/tutorials/new_dataset.md (#3876)

* [Docs] Remove duplicate content in docs/config.md (#3875)

* [Enhance]: Convert mask to bool before using it as img's index for robustness and speedup (#3870)

* Convert mask to bool before using it as img's index

* lint

* Rewrite code in more concise way

* Fix typo in bbox_flip (#3886)

* fix the API change bug of PAA (#3883)

* fix cv2 import error of ligGL.so.1 (#3891)

* [enhance]: Improve documentation of modules and dataset customization (#3821)

* update tutorials for changing training settings

* update

* Update details of hook

* resolve comments

* reformat

* Update module documentations

* add notes for classes specification

* support to use pytorch 1.6 in docker (#3905)

* support to use pytorch 1.6 in docker

* update mmcv requirement

* update docs

* Add missing notes in data customization (#3906)

* [Fix]: fix mask rcnn training stuck problem when there is no positive rois (#3713)

* Fix mask rcnn stuck problem when there is no positive rois

* support non pos inference in cascade methods, link CU-49tawu

* print mmcv version in CI

* use mmcv repo to check wrappers

* change cpu build

* upgrade mmcv requirements and change ci back

* use pre-built whl in CI

* Bump to v2.5.0 (#3879)

* bump to v2.5.0

* update PR

* resolve comments

* clean unnecessary modification

* update bc breaking

* rephrase bc-breaking

* rephrase

* Added `generate_inputs_and_wrap_model` function for pytorch2onnx (#3857)

* added `generate_inputs_and_wrap_model` function for pytorch2onnx

* undo debugging changes

* added model.cpu().eval()

* refactored onnx

* fix verify

* move `generate_inputs_and_wrap_model` into mmdet.core.export

* use `generate_inputs_and_wrap_model` in tools/pytorch2onnx.py

* typo (#3917)

* Edit mmdet.core.export docstring (#3912)

* edit mmdet.core.export docstring

* update doctest

* fix small bugs

* supports for HungarianMatchAssigner, add bbox_cxcywh_to_xyxy and bbox_xyxy_to_cxcywh for bbox transform

* format box-wise related giou calculating as a function and implement it in iou2d_calculater.py

* supports for BboxGIoU2D and re-implements giou_loss using bbox_gious

* remove unnecessary

* reformat

* reformat docstring

* reformat

* rename

* supports for giou calculating in BboxOverlaps2D, and re-implements giou_loss using bbox_overlaps

* fix sabl validating bug in cascade_rcnn (#3913)

* reformat

* move giou related unit test from test_losses.py to test_iou2d_calculator.py

* reformat

* Avoid division by zero in PAA head when num_pos=0

* [Fix]: Avoid division by zero in PAA head when num_pos=0 (#3938)

* explicitly add mode in giou_loss

* Add supports for giou calculation in BboxOverlaps2D, and re-implements giou_loss using bbox_overlaps (#3936)

* supports for BboxGIoU2D and re-implements giou_loss using bbox_gious

* remove unnecessary

* reformat

* reformat docstring

* reformat

* rename

* supports for giou calculating in BboxOverlaps2D, and re-implements giou_loss using bbox_overlaps

* reformat

* move giou related unit test from test_losses.py to test_iou2d_calculator.py

* reformat

* Avoid division by zero in PAA head when num_pos=0

* explicitly add mode in giou_loss

* Add supports for giou calculation in BboxOverlaps2D, and add iou_calculator in hungarian_assigner

* rename hungarian_match_assigner as hungarian_assigner

* fix init

* reformat docstring

* Avoid division by zero in PAA head when num_pos=0

* fix cpu (#3948)

* add mode for iou_calculator and make giou cost as a default case

* make mode as a param in iou_calculator

* reformat docsting

* make iou_mode outside of iou_calculator

Co-authored-by: Cao Yuhang <yhcao6@gmail.com>
Co-authored-by: yuzhj <31239926+yuzhj@users.noreply.github.com>
Co-authored-by: Wenwei Zhang <40779233+ZwwWayne@users.noreply.github.com>
Co-authored-by: mmeendez8 <miguelmndez@gmail.com>
Co-authored-by: Yosuke Shinya <42844407+shinya7y@users.noreply.github.com>
Co-authored-by: LabMemNo003 <LabMemNo003@gmail.com>
Co-authored-by: Ye Liu <yeliudev@outlook.com>
Co-authored-by: aboettcher <aboettcher@users.noreply.github.com>
Co-authored-by: Ryan Li <xlide@connect.ust.hk>
Co-authored-by: Jiangmiao Pang <pangjiangmiao@gmail.com>

* Re-implements RandomCrop to support different crop_type (#4093)

* re-implements RandomCrop to support different crop_type

* add assertion for relative related crop_type

* reformat, and add image shape assertion for unit test

* reformat

* Supports for DETR training mode in process. (#3963)

* add input_img_shape in img_meta, and supports training mode toy

* toy commit

* toy commit

* re-organize and support for detr training mode

* add unit test for detr training, testing, and transformer_head

* add more unit test for transformer

* reformat

* remove unnecessary

* use small transformer model for unit test

* reformat docstring

* reformat

* reformat

* Supports DETR e150 config (#4197)

* rename e300 config as e150 config

* reformat

* add comments on override option in Resize

* add comments on override option in Resize

* position embeddingto positional encoding

* fix unit tests

* fix registry name bug

* rename file

Co-authored-by: v-qjqs <qjliqiaofei@gmail.com>
Co-authored-by: Qiaofei Li <34116221+v-qjqs@users.noreply.github.com>
Co-authored-by: Cao Yuhang <yhcao6@gmail.com>
Co-authored-by: yuzhj <31239926+yuzhj@users.noreply.github.com>
Co-authored-by: mmeendez8 <miguelmndez@gmail.com>
Co-authored-by: Yosuke Shinya <42844407+shinya7y@users.noreply.github.com>
Co-authored-by: LabMemNo003 <LabMemNo003@gmail.com>
Co-authored-by: Ye Liu <yeliudev@outlook.com>
Co-authored-by: aboettcher <aboettcher@users.noreply.github.com>
Co-authored-by: Ryan Li <xlide@connect.ust.hk>
Co-authored-by: Jiangmiao Pang <pangjiangmiao@gmail.com>
ZwwWayne added a commit that referenced this pull request Nov 29, 2020
* supports for DETR transformer

* unit test with small data to avoid out of memory in CI

* use batch size 1 for unit test to avoid out of memory

* move transformer into utils folder and use more small data for unit test

* reformat docstring

* add more detailed docstring

* reforamt

* reformat and add build_transformer (#3866)

* Supports for DETR position embedding (#3850)

* supports for DETR position embedding

* reformat docstring

* reformat

* move transformer_head folder into utils

* remove unnecessary comments

* reformat

* reformat

* reformat docstring

* reformat

* add optional for default parameters

* add comments for unit test

* avoid inplace in MultiheadAttention and add optional add_residual for FFN

* Supports for DETR inference (#3941)

* fix forward in FFN

* supports detr inference mode with batchsize 1

* add docstring for DETR in detr.py

* reformat and add doctest for TransformerHead

* reformat, and move the mask construction from simple_test in detr.py to the forward process of transformer_head

* rename detr_r50_1x_coco as detr_r50_8x4_1x_coco in config

* reformat

* mask input_img_shape in img_meta as a general modification of base_detector forward_test

* reformat

* Supports for DETR hungarian matcher. (#3929)

* Add doc of modify loss (#3777)

* add doc of modify loss

* minor fix

* change name

* improve the function of simple_test_bboxes (#3853)

* update

* fix lint error

* add bbox_pred_split in sabl_head

* fix lint error

* fix yapf

* fix build error

* fix yapf

* Clean background_labels in the dense heads (#3221)

* Clean background_labels in the dense heads

* clean format

* Reformat

* Fix CI bug

* fix fsaf and the comments

* fix newly added heads

* fix yolact

* complete comments

* fix rpn transforming bug in two stage networks (#3754)

* fix rpn transforming bug in two_stage

* [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>

* Fix nonzero in NMS for PyTorch 1.6.0 (#3867)

* Support TTA of ATSS, FCOS, YOLOv3 (#3844)

* Support TTA of ATSS, FCOS, YOLOv3

* Add comment

* [Docs] Fix typo in docs/tutorials/new_dataset.md (#3876)

* [Docs] Remove duplicate content in docs/config.md (#3875)

* [Enhance]: Convert mask to bool before using it as img's index for robustness and speedup (#3870)

* Convert mask to bool before using it as img's index

* lint

* Rewrite code in more concise way

* Fix typo in bbox_flip (#3886)

* fix the API change bug of PAA (#3883)

* fix cv2 import error of ligGL.so.1 (#3891)

* [enhance]: Improve documentation of modules and dataset customization (#3821)

* update tutorials for changing training settings

* update

* Update details of hook

* resolve comments

* reformat

* Update module documentations

* add notes for classes specification

* support to use pytorch 1.6 in docker (#3905)

* support to use pytorch 1.6 in docker

* update mmcv requirement

* update docs

* Add missing notes in data customization (#3906)

* [Fix]: fix mask rcnn training stuck problem when there is no positive rois (#3713)

* Fix mask rcnn stuck problem when there is no positive rois

* support non pos inference in cascade methods, link CU-49tawu

* print mmcv version in CI

* use mmcv repo to check wrappers

* change cpu build

* upgrade mmcv requirements and change ci back

* use pre-built whl in CI

* Bump to v2.5.0 (#3879)

* bump to v2.5.0

* update PR

* resolve comments

* clean unnecessary modification

* update bc breaking

* rephrase bc-breaking

* rephrase

* Added `generate_inputs_and_wrap_model` function for pytorch2onnx (#3857)

* added `generate_inputs_and_wrap_model` function for pytorch2onnx

* undo debugging changes

* added model.cpu().eval()

* refactored onnx

* fix verify

* move `generate_inputs_and_wrap_model` into mmdet.core.export

* use `generate_inputs_and_wrap_model` in tools/pytorch2onnx.py

* typo (#3917)

* Edit mmdet.core.export docstring (#3912)

* edit mmdet.core.export docstring

* update doctest

* fix small bugs

* supports for HungarianMatchAssigner, add bbox_cxcywh_to_xyxy and bbox_xyxy_to_cxcywh for bbox transform

* format box-wise related giou calculating as a function and implement it in iou2d_calculater.py

* supports for BboxGIoU2D and re-implements giou_loss using bbox_gious

* remove unnecessary

* reformat

* reformat docstring

* reformat

* rename

* supports for giou calculating in BboxOverlaps2D, and re-implements giou_loss using bbox_overlaps

* fix sabl validating bug in cascade_rcnn (#3913)

* reformat

* move giou related unit test from test_losses.py to test_iou2d_calculator.py

* reformat

* Avoid division by zero in PAA head when num_pos=0

* [Fix]: Avoid division by zero in PAA head when num_pos=0 (#3938)

* explicitly add mode in giou_loss

* Add supports for giou calculation in BboxOverlaps2D, and re-implements giou_loss using bbox_overlaps (#3936)

* supports for BboxGIoU2D and re-implements giou_loss using bbox_gious

* remove unnecessary

* reformat

* reformat docstring

* reformat

* rename

* supports for giou calculating in BboxOverlaps2D, and re-implements giou_loss using bbox_overlaps

* reformat

* move giou related unit test from test_losses.py to test_iou2d_calculator.py

* reformat

* Avoid division by zero in PAA head when num_pos=0

* explicitly add mode in giou_loss

* Add supports for giou calculation in BboxOverlaps2D, and add iou_calculator in hungarian_assigner

* rename hungarian_match_assigner as hungarian_assigner

* fix init

* reformat docstring

* Avoid division by zero in PAA head when num_pos=0

* fix cpu (#3948)

* add mode for iou_calculator and make giou cost as a default case

* make mode as a param in iou_calculator

* reformat docsting

* make iou_mode outside of iou_calculator

Co-authored-by: Cao Yuhang <yhcao6@gmail.com>
Co-authored-by: yuzhj <31239926+yuzhj@users.noreply.github.com>
Co-authored-by: Wenwei Zhang <40779233+ZwwWayne@users.noreply.github.com>
Co-authored-by: mmeendez8 <miguelmndez@gmail.com>
Co-authored-by: Yosuke Shinya <42844407+shinya7y@users.noreply.github.com>
Co-authored-by: LabMemNo003 <LabMemNo003@gmail.com>
Co-authored-by: Ye Liu <yeliudev@outlook.com>
Co-authored-by: aboettcher <aboettcher@users.noreply.github.com>
Co-authored-by: Ryan Li <xlide@connect.ust.hk>
Co-authored-by: Jiangmiao Pang <pangjiangmiao@gmail.com>

* Re-implements RandomCrop to support different crop_type (#4093)

* re-implements RandomCrop to support different crop_type

* add assertion for relative related crop_type

* reformat, and add image shape assertion for unit test

* reformat

* Supports for DETR training mode in process. (#3963)

* add input_img_shape in img_meta, and supports training mode toy

* toy commit

* toy commit

* re-organize and support for detr training mode

* add unit test for detr training, testing, and transformer_head

* add more unit test for transformer

* reformat

* remove unnecessary

* use small transformer model for unit test

* reformat docstring

* reformat

* reformat

* Supports DETR e150 config (#4197)

* rename e300 config as e150 config

* reformat

* add comments on override option in Resize

* add comments on override option in Resize

* position embeddingto positional encoding

* fix unit tests

* fix registry name bug

* rename file

* remove unnecessary

Co-authored-by: ZwwWayne <wayne.zw@outlook.com>
Co-authored-by: Cao Yuhang <yhcao6@gmail.com>
Co-authored-by: yuzhj <31239926+yuzhj@users.noreply.github.com>
Co-authored-by: Wenwei Zhang <40779233+ZwwWayne@users.noreply.github.com>
Co-authored-by: mmeendez8 <miguelmndez@gmail.com>
Co-authored-by: Yosuke Shinya <42844407+shinya7y@users.noreply.github.com>
Co-authored-by: LabMemNo003 <LabMemNo003@gmail.com>
Co-authored-by: Ye Liu <yeliudev@outlook.com>
Co-authored-by: aboettcher <aboettcher@users.noreply.github.com>
Co-authored-by: Ryan Li <xlide@connect.ust.hk>
Co-authored-by: Jiangmiao Pang <pangjiangmiao@gmail.com>
mattdawkins added a commit to VIAME/mmdetection that referenced this pull request Dec 3, 2020
* tag 'v2.5.0': (102 commits)
  Bump to v2.5.0 (open-mmlab#3879)
  [Fix]: fix mask rcnn training stuck problem when there is no positive rois (open-mmlab#3713)
  Add missing notes in data customization (open-mmlab#3906)
  support to use pytorch 1.6 in docker (open-mmlab#3905)
  [enhance]: Improve documentation of modules and dataset customization (open-mmlab#3821)
  fix cv2 import error of ligGL.so.1 (open-mmlab#3891)
  fix the API change bug of PAA (open-mmlab#3883)
  Fix typo in bbox_flip (open-mmlab#3886)
  [Enhance]: Convert mask to bool before using it as img's index for robustness and speedup (open-mmlab#3870)
  [Docs] Remove duplicate content in docs/config.md (open-mmlab#3875)
  [Docs] Fix typo in docs/tutorials/new_dataset.md (open-mmlab#3876)
  Support TTA of ATSS, FCOS, YOLOv3 (open-mmlab#3844)
  Fix nonzero in NMS for PyTorch 1.6.0 (open-mmlab#3867)
  [Refactor] refactor get_subset_by_classes in dataloader for training with empty-GT images (open-mmlab#3695)
  fix rpn transforming bug in two stage networks (open-mmlab#3754)
  Clean background_labels in the dense heads (open-mmlab#3221)
  improve the function of simple_test_bboxes (open-mmlab#3853)
  Add doc of modify loss (open-mmlab#3777)
  fix sabl validating bug (open-mmlab#3849)
  YOLACT (open-mmlab#3456)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants