* [Feature] Support MsDeformAttnForward with cambricon MLU backend
* [Feature] Support MsDeformAttnForward with cambricon MLU backend
* [Feature] Support MsDeformAttnForward with cambricon MLU backend
* [Feature] Support MsDeformAttnForward with cambricon MLU backend
* [Feature] Support MsDeformAttnForward with cambricon MLU backend
* [Feature] Support MsDeformAttnForward with cambricon MLU backend
* [Feature] Support ms with cambricon MLU backend
* [Feature] Support msdeformattn_1104 with cambricon MLU backend
* [Feature] Support ms with cambricon MLU backend
* [Feature] Support MsDeformAttn_1108 with cambricon MLU backend
* [Feature] Support MsDeformAttn_1108 with cambricon MLU backend
* [Feature] Support MsDeformAttn_1108 with cambricon MLU backend
* [Feature] Support MsDeformAttn with cambricon MLU backend
* [Feature] Support MsDeformAttn with cambricon MLU backend
* [Feature] Support MsDeformAttn with cambricon MLU backend
* [Feature] Support MsDeformAttn with cambricon MLU backend
* [Feature] Support MsDeformAttn with cambricon MLU backend
* [Feature] Support MsDeformAttn with cambricon MLU backend
* [Feature] Support MsDeformAttn with cambricon MLU backend
* [Feature] Support MsDeformAttn with cambricon MLU backend
* [Feature] Support MsDeformAttn with cambricon MLU backend
* [Feature] Support MsDeformAttn with cambricon MLU backend
* Revert "[Feature] Support MsDeformAttn with cambricon MLU backend"
This reverts commit 27963cccc86d240852a40a2c1510147a3e9f269f.
* [Feature] Support MsdeformAttn with cambricon MLU backend
* [Feature] Support MsDeformAttn with cambricon MLU backend
* [Feature] Support MsdeformAttn with cambricon MLU backend
Co-authored-by: zhangshaopeng <wicky-zheng@outlook.com>
Co-authored-by: wicky-zheng <root@notebook-mmcv-290m8-torch1-6-y0yv66-notebook-0.notebook-mmcv-290m8-torch1-6-y0yv66.ns-ad8b689a0ecd41fcb4469c803dcd539d.svc.cluster.local>
* [Feature] Support RoipointPool3d with cambricon MLU backend
* [Feature] Support RoipointPool3d with cambricon MLU backend
* [Feature] Support RoipointPool3d with cambricon MLU backend
* [Feature] Support RoipointPool3d with cambricon MLU backend
* [Feature] Support RoipointPool3d with cambricon MLU backend
* [Feature] Support DeformRoiPool with cambricon MLU backend
* [Fix] Remove use of std library
* [Fix] Correct the error information
* [Refactor] Refactor test deform_roi_pool code
* [Fix] Fix judgment error
* [Fix] Modify the large tensor check
Co-authored-by: budefei <budefei@cambricon.com>
* support different border_mode in imrotate
* fix docstring
* small fix
* reorder the border_mode arg in imrotate
* fix lint
* polish docstring
* polish docstring
* [Feature] Support setting start epoch and interval epoch for PAVI Logger Hook
* [Feature] Update the coding style as the maintainer wish
* fix: default integer division or modulo by zero
* fix: runner.epoch is less than start and use self.get_epoch instead of runner.epoch
* feat: support for iter-based runner and fix the step bug
* feat: iter based hook
* feat: fix bug and coding style
* fix: coding style
* fix: coding style
* fix: graph may add in evaluation
* support prroipooling
* fix build bug
* fix bug of precision
* fix lint
* add ut
* add license and citation
* polish op and add type hint
* refactor ut
* add docstring for prroipool
* polish code
* format cu and cuh code
* fix format
* fix format
* fix typo
Co-authored-by: zhouzaida <zhouzaida@163.com>
Co-authored-by: Zaida Zhou <58739961+zhouzaida@users.noreply.github.com>
* [Feature] Add support for MPS
* fix import error
* update ut
* fix error
* trigger CI
* use a unique basename for test file modules
* avoid bc-breaking
* Add torch_meshgrid_ij wrapper due to PyTorch change
* Update torch_meshgrid name/doc/version implementation
* Make imports local
* add ut
* ignore ut when torch is not available
Co-authored-by: zhouzaida <zhouzaida@163.com>
* Fix batched_nms for rotated box.
Add type hint for nms.py
* Add test
* doc string
* revert symbolic hint
* fix max_coordinate
* add comment
* rename type
* fix typo docstring
* [Feature] Support Psamask with cambricon MLU backend
* [Fix] refine the format according to lint check
* Replace std:max/min with conditional operators
* [Fix] Format head files
* [Fix] Fix the problem that the instance cannot reuse when overwriting the file client.
* Remove _overridden_backends and _overridden_prefixes, and pop the old instance when overwriting the file client.
* add unittest
* fix prefix error
* modify clear_backend to overridden_backend
* Delete redundant comments.
* Fix the bug met in using nasfpn
Fix the bug met in using nasfpn which is mentioned at https://github.com/open-mmlab/mmdetection/issues/5987.
Avoid the strong restrictions of _resize function in BaseMergeCell:
1. When Downsampling the feature map, the feature map's shape must be divisible by the target size. We pad zero around feature map before max_pool2d opt to make it always divisible. (line 102 ~ 107)
2. Considering the different downsampling scale of H and W, shape[-2] and shape[-1] are involed in the definition of kernel_size. (line 110)
* Update merge_cells.py
check flake8 & isort
* Update merge_cells.py
* Update merge_cells.py
yapf
* Update mmcv/ops/merge_cells.py
X_pad rename to padding_x
Co-authored-by: Mashiro <57566630+HAOCHENYE@users.noreply.github.com>
* Update merge_cells.py
format the code style after renameing the X_pad to padding_x
* Update test_merge_cells.py
Mainly test the downsampling resize in BaseMergeCell. The smaller target size is set to (14, 7), the classical feature map's size in the last few stages of the backbone, which will product different downsampling scales in different dims.
* Update test_merge_cells.py
add "# Copyright (c) OpenMMLab. All rights reserved."
* Update merge_cells.py
format the variable name
* Update test_merge_cells.py
Testing divisible and indivisible situations simultaneously
* Update mmcv/ops/merge_cells.py
fix the bug when h is indivisible and w is divisible, the pad_w will be padded unreasonable.
Co-authored-by: Zaida Zhou <58739961+zhouzaida@users.noreply.github.com>
* Update mmcv/ops/merge_cells.py
fix the bug when w is indivisible and h is divisible, the pad_h will be padded unreasonable.
Co-authored-by: Zaida Zhou <58739961+zhouzaida@users.noreply.github.com>
* fix undefined error
* Update merge_cells.py
make pad_h, pad_w more readable
* Update test_merge_cells.py
use @pytest.mark.parametrize instead of 'for' methor
* Update merge_cells.py
* Update test_merge_cells.py
isort
* Update merge_cells.py
isort
Co-authored-by: Mashiro <57566630+HAOCHENYE@users.noreply.github.com>
Co-authored-by: Zaida Zhou <58739961+zhouzaida@users.noreply.github.com>