* [Feature]: Add cache to random func in data transform
* [Fix]: Fix lint
* [Fix]: Fix cache decorate problem
* [Refactor]: Initialize Resize with config
* [Refactor]: Move other resize config into Resize config
* [Fix]: Scale can not be None in RandomResize
* [Fix]: Change semantic seg to gt seg map
* [Fix]: Delete unnecessary assert
* [Fix]: Fix docstring
* [Fix]: Add double quot to Resize in config
* [Fix]: Fix the return type
* [Fix]: Improve docstring
* [Fix]: Specify the order of width and height for ratio range
* [Fix]: Specify resize order
Co-authored-by: Your <you@example.com>
* [Refactor]: New commit of Part2 of data transform
* [Fix]: Fix lint
* [Fix]: Change flip reisze to prefix
* [Refactor]: Delete redundant code in ToTensor
* [Fix]:optional
* [Fix]: Change the discription of RandomFlip
* [Refactor]: Change flip_with_flip_direction to flip_on_direction
Co-authored-by: Your <you@example.com>
* Add data transfrom docs
* Convert all Chinese paragraph in oneline to prevent some rendering bug
in Chrome/Edge. (It looks well in Firefox :/)
* Update docs
* Update docs
* Imporve docs according to comments
* Imporve docs according comments
* [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
* Fix
* Fix
* fix type hint
* minor fix
* remove some type hints of functions or methods
* minor fix
* Apply suggestions from code review
* minor fix
* minor refinement
Co-authored-by: HAOCHENYE <21724054@zju.edu.cn>
Co-authored-by: Zaida Zhou <58739961+zhouzaida@users.noreply.github.com>
Co-authored-by: zhouzaida <zhouzaida@163.com>
* [Enhance] Add type hints in /ops:
`fused_bias_leakyrelu.py`, 'gather_points.py`, `group_points.py`.
There is no need to add type hints in `furthest_point_sample.py` and
`info.py`.
As for `focal_loss.py`, please see #1994.
* Modidied the default value of a variable.
* [Enhance] Add type hints in:
`knn.py`, `masked_conv.py`, `merge_cells.py`, `min_area_polygons.py`,
`modulated_deform_conv.py`, multi_scale_deform_attn.py`.
* Fix typehint.
* Fixed typehint.
* remove type hints of symbolic
* add no_type_check to ignore mypy check for method
Co-authored-by: Zaida Zhou <58739961+zhouzaida@users.noreply.github.com>
* 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
* Add typehint in mmcv/cnn/utils/*
* Update mmcv/cnn/utils/flops_counter.py
Co-authored-by: Zaida Zhou <58739961+zhouzaida@users.noreply.github.com>
* Update mmcv/cnn/utils/weight_init.py
Co-authored-by: Zaida Zhou <58739961+zhouzaida@users.noreply.github.com>
* Fix bugs
* Fix
* Fix2
* Update mmcv/cnn/utils/weight_init.py
Co-authored-by: Zaida Zhou <58739961+zhouzaida@users.noreply.github.com>
* Update mmcv/cnn/utils/flops_counter.py
Co-authored-by: Zaida Zhou <58739961+zhouzaida@users.noreply.github.com>
* Update mmcv/cnn/utils/weight_init.py
Co-authored-by: Zaida Zhou <58739961+zhouzaida@users.noreply.github.com>
* Update mmcv/cnn/utils/weight_init.py
Co-authored-by: Zaida Zhou <58739961+zhouzaida@users.noreply.github.com>
* Fix
* minor fix
* line is too long.
* Update mmcv/cnn/utils/weight_init.py
Co-authored-by: Jiazhen Wang <47851024+teamwong111@users.noreply.github.com>
* Fix
* Update mmcv/cnn/utils/weight_init.py
* fix default value of float type hint
* fix default value of float type hint
* fix default value of float type hint
* fix default value of float type hint
* fix default value of float type hint
* fix default value of float type hint
* fix default value of float type hint
* Fix
* minor refinement
* replace list with tuple for input
Co-authored-by: Zaida Zhou <58739961+zhouzaida@users.noreply.github.com>
Co-authored-by: Jiazhen Wang <47851024+teamwong111@users.noreply.github.com>
Co-authored-by: Mashiro <57566630+HAOCHENYE@users.noreply.github.com>
Co-authored-by: zhouzaida <zhouzaida@163.com>