Commit Graph

1036 Commits (bdabdffcf95757f2c25b7c1be15dae02d54c34ea)
 

Author SHA1 Message Date
Jiazhen Wang bdabdffcf9
[Fix] Fix deform_conv inconsistent pybind (#1781) 2022-03-15 11:15:15 +08:00
Mashiro 2eb0a10d5a
[Feature] Add worker_init_fn (#1788)
* add worker_init_fn

* "Fix as comment"

* Fix format

Co-authored-by: Zaida Zhou <58739961+zhouzaida@users.noreply.github.com>
2022-03-15 11:14:06 +08:00
Vinay Kumar e8cf961324
[Docs] minor typo fix in docs/en/understand_mmcv/ (#1798)
minor typo fix in `docs/en/understand_mmcv/data_process.md`
2022-03-14 10:10:53 +08:00
Vinay Kumar 5b7a167c98
[Docs] Fix typo in docs/en/understand_mmcv/cnn.md (#1799)
Fixed typo in `docs/en/understand_mmcv/cnn.md`. The `BaseModule` class implements `init_weights()` not `init_weight()`
2022-03-14 10:07:23 +08:00
Vinay Kumar 5c5a8e0355
[Docs] Fix minor typo in docs/en/config.md (#1797)
* minor typo

minor typing bug. replaced `deprecated.py` to `deprecated_cfg.py`

* fixing the typo

as per the example, the directory name is `converters` not `converter`.
2022-03-13 09:22:41 +08:00
Tong Gao 00b003da23
[Docs] Fix a wrong example in DefaultOptimizerConstructor (#1795) 2022-03-12 00:21:22 +08:00
Alex Yang c4b02566cf
Add .owners.yml to dispatch daily issue (#1775)
* Add .owners.yml to mark daily issue shift

* Update .owners.yml

fix end of file
2022-03-09 17:40:38 +08:00
Wenhao Wu 76e870f17c
[Fix] Fix bugs in Voxelization op (#1746)
* Fix bugs in  Voxelization op

* fix comments

* fix lint

* add comments
2022-03-07 21:08:36 +08:00
Wenhao Wu 09b64a60b0
[Fix] Fix bugs in DynamicScatter op (#1748)
* Fix bugs in DynamicScatter op

* recover unittest

* add a comment as a reminder

* compatible to torch with lower version
2022-03-07 21:02:38 +08:00
WRH 0394990a47
Include spconv header files in the sdist package (#1766)
* include spconv/**.h in MANIFEST.in

* add more headers

* fix

* build from sdist in cpu runner

* remove original copy of src code in ci

Co-authored-by: wangruohui <wangruohui@local>
2022-03-07 11:07:40 +08:00
Tan SU d69d985abd
[Fix] Fix ProfilerHook when using IterBasedRunner (#1755) 2022-03-06 20:13:32 +08:00
Xiangxu-0103 466a6c829c
[Fix] fix deconv_flops_counter_hooker (#1760)
* fix deconv_flops_counter

* Update generalized_attention.py
2022-03-03 20:01:39 +08:00
XiwuChen ea64b5127c
fix typo in conv.py (#1759)
Fix typo in conv.py.
2022-03-03 10:40:40 +08:00
saurbhc 34f227efbd
[Feature] Add SegmindLoggerHook (#1650)
* add SegmindLoggerHook

* update linting for segmind.py

* ran pre-commit

* add test_segmind_hook

- add SegmindLoggerHook import in:
  mmcv/runner/__init__.py
  mmcv/runner/hooks/__init__.py
  mmcv/runner/hooks/logger/__init__.py

* update test_segmind_hook

- Add Docstring to SegmindLoggerHook
- Use get_loggable_tags(...)

* update test_hooks.py & segmind.py

- mmcv/runner/hooks/logger/segmind.py
  moved docs from __init__ to class ...
  update ImportError line-indentation
  remove unwanted method
- tests/test_runner/test_hooks.py
  update assert_called_with only on hook.segmind_mlflow_log

* Update tests/test_runner/test_hooks.py

disable yapf on test_hooks.py imports

Co-authored-by: Zaida Zhou <58739961+zhouzaida@users.noreply.github.com>

* Update mmcv/runner/hooks/logger/segmind.py

Update SegmindLoggerHook docstring

Co-authored-by: Jiazhen Wang <47851024+teamwong111@users.noreply.github.com>

* update before_run method in segmind.py

removed un-used statements

* updated imports in SegmindLoggerHook

* update SegmindLoggerHook

- code cleanup

* update SegmindLoggerHook

- add interval parameter in __init__ method

* update SegmindLoggerHook

- more arguments passes to __init__ method
  - interval
  - ignore_last
  - reset_flag
  - by_epoch

* Update mmcv/runner/hooks/logger/segmind.py

Co-authored-by: Mashiro <57566630+HAOCHENYE@users.noreply.github.com>

* Update mmcv/runner/hooks/logger/segmind.py

Co-authored-by: Mashiro <57566630+HAOCHENYE@users.noreply.github.com>

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>
2022-03-03 10:01:46 +08:00
Wenhao Wu 4e77382034
support fp16 training with gather_points op (#1758) 2022-03-02 17:55:13 +08:00
q.yao fd3a1a16ea
Add deprecate warning of deployment (#1750) 2022-03-01 15:07:07 +08:00
Mashiro a0127e1712
[Enhancement] Reorganizing OpenMMLab projects in readme (#1744)
* Reorganizing OpenMMLab projects in readme

* Update README.md

* Reorganizing OpenMMLab projects in readme

Reorganizing OpenMMLab projects in readme

* fix typo

* fix typo

Co-authored-by: Zaida Zhou <58739961+zhouzaida@users.noreply.github.com>
2022-02-25 10:51:23 +08:00
Zaida Zhou 6e9ce18323
Add copyright pre-commit-hook (#1742)
* first commit

* Add copyright pre-commit-hook
2022-02-24 09:24:25 +08:00
Zaida Zhou 0a8e67f753
bump version to v1.4.6 (#1738) 2022-02-22 19:34:20 +08:00
makifozkanoglu 3a3514a54d
fixing save checkpoint for best metric (#1694)
* fixing save checkpoint for  best metric

* fixing save checkpoint for  best metric v2

* Update mmcv/runner/hooks/evaluation.py

Co-authored-by: Zaida Zhou <58739961+zhouzaida@users.noreply.github.com>

* update for lint error

* fixing lint error

* fix lint

Co-authored-by: Zaida Zhou <58739961+zhouzaida@users.noreply.github.com>
2022-02-22 16:02:45 +08:00
Zaida Zhou 6d440e0e0c
[Fix] Remove unused header files (#1653)
* first commit

* [Fix] Remove two unused header files
2022-02-22 15:58:16 +08:00
Zaida Zhou e7f049afa1
Add mmrotate link in README.md (#1733)
* Add mmrotate link in README.md

* Add mmrotate link in docs

* fix isort
2022-02-20 11:42:33 +08:00
Hakjin Lee b83bdb0cbe
[Refactor] Refactor the interface for RoIAlignRotated (#1662)
* fix interface for RoIAlignRotated

* Add a unit test for RoIAlignRotated

* Make a unit test for RoIAlignRotated concise

* fix interface for RoIAlignRotated

* Refactor ext_module.nms_rotated

* Lint cpp files
2022-02-18 16:59:33 +08:00
Jiazhen Wang fccb10917d
Imporve the docstring of imfrombytes and fix a deprecation-warning (#1731) 2022-02-18 16:54:19 +08:00
Wenhao Wu c1de4c9bbf
[Feature] Add spconv ops from mmdet3d (#1581)
* add ops (spconv) of mmdet3d

* fix typo

* refactor code

* resolve comments in #1452

* fix compile error

* fix bugs

* fix bug

* transform from 'types.h' to 'extension.h'

* fix bug

* transform from 'types.h' to 'extension.h' in parrots

* add extension.h in pybind.cpp

* add unittest

* Recover code

* (1) Remove prettyprint.h
(2) Switch `T` to `scalar_t`
(3) Remove useless lines
(4) Refine example in docstring of sparse_modules.py

* (1) rename from `cu.h` to `cuh`
(2) remove useless files
(3) move cpu files to `pytorch/cpu`

* reorganize files

* Add docstring for sparse_functional.py

* use dispatcher

* remove template

* use dispatch in cuda ops

* resolve Segmentation fault

* remove useless files

* fix lint

* fix lint

* fix lint

* fix unittest in test_build_layers.py

* add tensorview into include_dirs when compiling

* recover all deleted files

* fix lint and comments

* recover setup.py

* replace tv::GPU as tv::TorchGPU & support device guard

* fix lint

Co-authored-by: hdc <hudingchang.vendor@sensetime.com>
Co-authored-by: grimoire <yaoqian@sensetime.com>
2022-02-18 15:53:10 +08:00
Ma Zerun 33c83b5afa
Support deepcopy for Config (#1658)
* Support deepcopy for Config

* Iterate the `__dict__` of Config directly.

* Use __new__ to avoid unnecessary initialization.

* Improve according to comments
2022-02-16 22:51:08 +08:00
Ren Tianhe 5de2b130d3
[Docs] Fix typo in registry.md (#1717) 2022-02-14 10:44:18 +08:00
Zaida Zhou e36332e67d
Bump version to v1.4.5 (#1716) 2022-02-12 17:05:11 +08:00
Hakjin Lee b10eaedd38
[Fix] batched nms for nms_rotated (#1688)
* Fix batched_nms to support nms_rotated

* Update test code for batched_nms with nms_rotated

* Edit indexing the score in nms

* Use -1 indexing for batched_nms
2022-02-12 14:45:39 +08:00
RangiLyu 62c1b7f68b
[Enhance] Use PyTorch HSwish implementation. (#1709)
* [Enhance] Use PyTorch HSwish implementation.

* fix conv test

* upgrade version

* add version comments
2022-02-12 14:34:35 +08:00
Jamie 6e2b1067ba
[Docs] Add cuDNN installation in tensorrt_plugin.md (#1711)
* Update tensorrt_plugin.md

* Update tensorrt_plugin.md

* Update tensorrt_plugin.md

* Update tensorrt_plugin.md
2022-02-12 12:51:08 +08:00
Zaida Zhou dd82ab1497
Upgrade the version of isort (#1705)
* Upgrade the version of isort

* sort the order of importing modules
2022-02-09 21:29:21 +08:00
Yue Zhou b0b30d0c5c
fix bug (#1702) 2022-02-09 14:00:12 +08:00
Hakjin Lee 7df4ebedb3
[Fix] Fix the mismatch torch version of MlflowLoggerHook(#1680)
* [Fix] mlflow logger error

* [Update] mlflow hook test arguments

* Replace torch.__version__ with mmcv.TORCH_VERSION

* update test code
2022-02-07 23:14:46 +08:00
Mashiro 26aba2f533
[Fix] Fix an incorrect assignment in the BaseTransformerLayer (#1670)
* fix BaseTransformerLayer

* Add BaseTransformerLayer unit test without ffn_cfg embed_dims

* Optimize code logic
2022-01-28 23:43:53 +08:00
Hakjin Lee 26c095dc11
[Fix] Fix the undefined name error (#1695) 2022-01-27 20:11:32 +08:00
Zaida Zhou 1231ef1cfe
bump version to v1.4.4 (#1686) 2022-01-24 21:21:50 +08:00
Zaida Zhou 9dedc44555
[Fix] Fix the cast_tensor_type (#1639)
* [Fix] Fix the cast_tensor_type when the type of inputs is not the same as src_type

* Add note

* improve comments
2022-01-24 21:21:37 +08:00
Mashiro 580e374eae
Add decay to CyclicLrUpdater (#1655)
* Add decay to cyclic LR

* Simplify tests

* Fix error in tests

* fix cyclic lr

* add weight decay CyclicLrUpdate test

* Update mmcv/runner/hooks/lr_updater.py

update docstring

Co-authored-by: Zaida Zhou <58739961+zhouzaida@users.noreply.github.com>

* update CyclicLrUpdater unit test

* add comments to CyclicLrUpdaterHook

* fix CyclicLrUpdater. Support peak_lr decay when target[0] < 1

* add momentum decay to CyclicMomentumUpdater

* update momentum unit test

* Fix CyclicMomentum comment

Fix CyclicMomentum comment

Co-authored-by: Dmytro Panchenko <panchenkodmytry@gmail.com>
Co-authored-by: Zaida Zhou <58739961+zhouzaida@users.noreply.github.com>
2022-01-24 19:34:25 +08:00
bilibilee 0448fcf906
fix the scatter when input is cpu (#1621)
* fix the scatter when input is cpu

* Update _functions.py

Add spaces to comply with the code specification

* add unittests

* add a blank line

* fix unittet

Co-authored-by: zhouzaida <zhouzaida@163.com>
2022-01-24 19:17:10 +08:00
Jiazhen Wang b8d78336a7
[Fix] Align HSigmoid with pytorch official implementation(#1622)
* [Fix] align hsigmoid with pytorch official

* [Fix] add warnings for Hsigmoid

* [Fix] fix format

* [Fix] add unittest

* [Fix] fix docstring
2022-01-20 14:25:10 +08:00
Zaida Zhou b6e1ab7e83
add wechat qrcode (#1669) 2022-01-19 22:35:36 +08:00
Jiazhen Wang 83df7c4b00
[Fix] Fix LoggerHooks docstring (#1664)
* [Fix] fix loggerhooks docstring

* [Fix] fix some details

* [Fix] fix docstring

* [Fix] fix docstring

* [Fix] fix docstring

* [Fix] add docstring
2022-01-19 16:10:20 +08:00
imyhxy 37121bf4f4
[Fix] Fix the bug of momentum updater with warmup policy (#1626)
* fix momentum updater typo bug

* Add unit test for 'constant', 'linear' and 'exp' momentum warmup policy
2022-01-18 17:33:07 +08:00
zhanggefan 88d802ce4f
[Fix] Fix the invalid cuda memory access when training s2anet (#1660) 2022-01-18 15:00:17 +08:00
pc b04ad69d1b
[Feature] Add 6 rotated detection ops in parrots (#1665)
* add active_rotated_filter, convex_iou, min_area_polygons, points_in_polygons, riroi_align_roteted, rotated_feature_align in parrots

* fix lint

* fix lint
2022-01-17 20:59:26 +08:00
Zaida Zhou 86ed509a8b
Add OpenMMLab website and platform links (#1666) 2022-01-13 16:40:12 +08:00
Zaida Zhou 71f32244df
[Enhancement] Remove some warning logs of compilation (#1649)
* first commit

* [Enhancement] Remove some warning logs of compilation

* delete a comment
2022-01-13 14:29:06 +08:00
Zaida Zhou 227037fcd3
[Fix] Fix the unit test of correlation op (#1659) 2022-01-13 14:27:50 +08:00
Zaida Zhou ccdc61c087
[Fix] Fix the compilation error on windows (#1657) 2022-01-11 12:55:07 +08:00