Commit Graph

147 Commits (b326a219a77066ebd8607df3e6e15f73882a1400)

Author SHA1 Message Date
Zaida Zhou b326a219a7
[Docs] Replace markdownlint with mdformat for avoiding installing ruby (#1936)
* Use mdformat pre-commit hook

* allows consecutive numbering

* improve .mdformat.toml

* test mdformat

* format markdown

* minor fix

* fix codespecll

* fix circleci

* add linkify-it-py dependency for cicleci

* add comments

* replace flake8 url

* add mdformat-myst dependency

* remove mdformat-myst dependency

* update contributing.md
2022-05-16 20:47:56 +08:00
Zaida Zhou fb9af9f36f
[Docs] Fix heading anchor in documentation (#1945) 2022-05-09 22:53:17 +08:00
Zaida Zhou 8b4dcf1dfb
[Docs] Include several files in index.rts (#1939) 2022-05-07 16:26:18 +08:00
Wencheng Wu a3a078eefb
[Enhancement] Support registering function (#1858)
* [Enhance] Support register function.

* fix unittest error

* add docs and unittest of register function

* modify the docs

* fix version to 1.5.1

* Update docs/zh_cn/understand_mmcv/registry.md

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

* Update docs/en/understand_mmcv/registry.md

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

* refine the docs

* modify module_class to module

Co-authored-by: Zaida Zhou <58739961+zhouzaida@users.noreply.github.com>
2022-05-02 18:31:41 +08:00
Hu Di 4efec73269
[Docs] Add IPU installation documentation (#1904)
* add doc for mmcv installation

* Update docs/en/get_started/build.md

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

Co-authored-by: Zaida Zhou <58739961+zhouzaida@users.noreply.github.com>
2022-04-28 14:59:27 +08:00
Alex Yang 4fb59b9830
[Docs] Update qq_group_qr_code (#1899) 2022-04-21 11:35:12 +08:00
Danila Rukhovich aee596d523
[Enhance] Differentiable rotated IoU (#1854)
* diff_iou_rotated is working

* add test; fix lint

* fix lint for test

* disable cpu build

* refactor files structure

* fix comments

* remove extra .repeat()

* add comment

* fix j-1 bug; update doc

* fix clang lint

* update docstrings

* fix comments

* fix comments
2022-04-15 15:40:07 +08:00
Sharpiless 969e2af866
[Feature] Support for linearly learning rate decay (#1627)
* update support for linearly learning rate decay

* Fix LinearAnnealingLrUpdaterHook, update LinearAnnealingMomentumUpdaterHook, add unit test

add docstring

add docstring

update linear lr momentum schedule test

fix ci

Fix CI

* add lr and momentum hook to runner and hooks package

add lr and momentum hook to runner and hooks package

* replace multi_optimziers with multi_optimizers

Co-authored-by: HAOCHENYE <21724054@zju.edu.cn>
Co-authored-by: Mashiro <57566630+HAOCHENYE@users.noreply.github.com>
2022-03-31 09:39:40 +08:00
Zaida Zhou 5b5d0c15bc
[Docs] Add more Windows information in README (#1829)
* [Docs] Add more windows information in README

* minor fix

* rename MacOS to macOS
2022-03-23 23:41:51 +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
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 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
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
Ren Tianhe 5de2b130d3
[Docs] Fix typo in registry.md (#1717) 2022-02-14 10:44:18 +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 b6e1ab7e83
add wechat qrcode (#1669) 2022-01-19 22:35:36 +08:00
Yue Zhou 594ff3c0d3
[Feature] Add convex IoU CUDA op for rotated detection. (#1610)
* add convex iou

* fix lint

* add convex_iou

* fix convex_iou

* add convex_giou

* fix bug

* fix lint

* fix bug

* Update

* update

* add kernel loop

* fix bug.

* fix polygen typo

* simplify reverse

* Update convex_iou_cuda_kernel.cuh

* Update mmcv/ops/convex_iou.py

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

* Update mmcv/ops/convex_iou.py

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

* add   AT_DISPATCH_FLOATING_TYPES_AND_HALF

* fix lint

* fix lint

* Resolving conflicts

Co-authored-by: Zaida Zhou <58739961+zhouzaida@users.noreply.github.com>
2022-01-10 20:43:12 +08:00
Yue Zhou 9acc892a44
[Feature] Add active rotated filter op for rotated detection. (#1598)
* add  active_rotated_filter

* fix lint

* fix lint

* renaming nRotation and nOrientation

* Update active_rotated_filter_cuda_kernel.cuh

* Update active_rotated_filter_cuda.cu

* fix bug

* fix lint

* Update test_active_rotated_filter.py

* fix lint

* Update active_rotated_filter_cuda_kernel.cuh

* renaming

* Update mmcv/ops/active_rotated_filter.py

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

* Update mmcv/ops/active_rotated_filter.py

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

* Update mmcv/ops/active_rotated_filter.py

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

* Update mmcv/ops/active_rotated_filter.py

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

* Update mmcv/ops/active_rotated_filter.py

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

* Update mmcv/ops/active_rotated_filter.py

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

* fix lint

* Resolving conflicts

* fix lint.

* Update __init__.py

* Update mmcv/ops/csrc/pytorch/cuda/active_rotated_filter_cuda.cu

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

* Update active_rotated_filter.cpp

* fix lint

* Update mmcv/ops/csrc/pytorch/cpu/active_rotated_filter.cpp

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

* Update mmcv/ops/csrc/pytorch/cpu/active_rotated_filter.cpp

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

* Update active_rotated_filter.py

Co-authored-by: Zaida Zhou <58739961+zhouzaida@users.noreply.github.com>
2022-01-10 17:35:20 +08:00
Zaida Zhou ff83e502a3
[Docs] Add the link of mmdeploy (#1638) 2022-01-10 16:26:37 +08:00
Yue Zhou 51b40c332a
[Feature] Add min_area_polygons CUDA op for rotated detection. (#1611)
* init

* Update pybind.cpp

* Update min_area_polygons_cuda.cuh

* Update cudabind.cpp

* fix bug

* Create test_min_area_polygons.py

* add test

* update

* Update min_area_polygons_cuda.cuh

* fix bugs.

* Update min_area_polygons_cuda.cuh

* Update min_area_polygons.py

* Update min_area_polygons_cuda.cuh

* merge these 4 nested loops

* add AT_DISPATCH_FLOATING_TYPES_AND_HALF

* fix lint

* Resolving conflicts
2022-01-10 11:00:50 +08:00
Jiazhen Wang d30e37d4d5
[Refactor] refactor requirements (#1536)
* [Improve] build using ninja

* [Refactor] refactor requirements

* [Improve] imporve docs

* [Fix] fix file name
2021-12-29 23:15:11 +08:00
Zaida Zhou d68119c1fe
[Docs] Add the link of mmrazor (#1612)
* Add the link of mmrazor

* Add the link of mmrazor
2021-12-24 15:31:49 +08:00
zhouyue 304efbb650
[Feature] Add points_in_polygons CUDA op for rotated detection. (#1600) 2021-12-24 10:56:48 +08:00
zhouyue 0bcbeadb53
[Feature] Add RiRoIAlignRotated CUDA op for rotated detection. (#1599) 2021-12-24 00:30:34 +08:00
zhouyue 2475dc3452
[Feature] Add feature refine CUDA op for rotated detection. (#1603)
* re PR

* replace all the feature_refine with rotated_feature_align

* replace all the FR with RotatedFeatureAlign

* Update mmcv/ops/rotated_feature_align.py

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

* Update mmcv/ops/rotated_feature_align.py

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

* fix lint

* Update mmcv/ops/csrc/pytorch/cuda/rotated_feature_align_cuda.cu

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

* Update mmcv/ops/csrc/pytorch/cuda/cudabind.cpp

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

* Update mmcv/ops/csrc/pytorch/cuda/rotated_feature_align_cuda.cu

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

* Update mmcv/ops/csrc/pytorch/cuda/rotated_feature_align_cuda.cu

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

* Update mmcv/ops/csrc/pytorch/cuda/rotated_feature_align_cuda.cu

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

* fix lint

* Update cudabind.cpp

* Update cudabind.cpp

* fix bug in test. & add backward test

* fix lint

Co-authored-by: Zaida Zhou <58739961+zhouzaida@users.noreply.github.com>
2021-12-23 17:38:58 +08:00
Crimson f367d621c6
Update runner.md (#1591) 2021-12-22 10:53:06 +08:00
Zaida Zhou e4b5348ebf
[Docs] Refactor the structure of documentation (#1580)
* [Docs] Refactor the structure of documentation

* [Docs] Refactor the structure of documentation

* fix symlink

* fix link

* fix typo

* polish docstring

* fix docstring
2021-12-15 17:01:09 +08:00
Zaida Zhou 81f032edc5
[Docs] Update FAQ (#1481)
* [Docs] Update FAQ

* update faq

* polish the description

* update faq

* update faq

* improve the faq

* improve the faq

* improve the faq
2021-12-14 13:19:18 +08:00
Zaida Zhou 519b4ec028
[Docs] Use shared menu (#1574) 2021-12-12 12:13:08 +08:00
Zaida Zhou 53c1b2fe91
[Docs] Improve the style of pr.md (#1567)
* [Docs] Improve the style of pr.md

* fix symlink

* improve style

* fix format
2021-12-09 11:03:08 +08:00
Zaida Zhou 44e7eee835
[Docs] Add the link of mmhuman3d (#1561)
* Add the link of mmhuman3d

* fix typo

* add link of mim

* add link of mim in docs

* improve the table format
2021-12-07 14:32:44 +08:00
Zaida Zhou 9b227ecfc0
[Fix] Remove outdated code in docs/conf.py (#1560) 2021-12-06 17:19:56 +08:00
Luting Wang 56e9f73c58
[Feature] Add ModuleDict inherited from BaseModule and ModuleDict (#1542)
* improve: add module dict

* Update __init__.py

* docs: add module dict zh

* docs: add module dict

* Update test_basemodule.py

* Update __init__.py

* lint

* lint

* docs

* docs

* Update base_module.py

* lint
2021-12-06 11:56:12 +08:00
RunningLeon 72182747a1
[Doc]: Fix deploy doc (#1512)
* update title

* fix deploy docs in for readthedocs

* reformat table

* resolve comments
2021-12-03 15:12:40 +08:00
Zaida Zhou d4d6ea09e3
[Docs] Add mmfewshot link (#1528) 2021-11-26 20:48:55 +08:00
q.yao 230f9a3b80
Refactor csrc with device dispatcher (#1463)
* Add device registry for pytorch ops

* add declaration of CheckDeviceConsistency

* fix for torch130

* assert with torch check

* Refactor ops with dispatch

* update rest ops

* faster install

* update compatibility

* update compatibility, rename parameter

* move cpu implement to pytorch/cpu

* update ops/csrc/README.md

* fix rocm support

* update cn document

* update docs

* list instead of map
2021-11-23 21:59:53 +08:00
Zaida Zhou ef8ba75202
[Docs] Add the url of pre-built packages built with cuda 11.3 (#1489) 2021-11-23 21:36:18 +08:00
Zaida Zhou 144f1e129e
[Docs] Add a script to check the installation of mmcv-full (#1474)
* [Docs] Add a script to verify the installation of mmcv-full

* polish documentation

* polish documentation

* print the running and compiling environments

* rename scripts to .dev_scripts

* polish readme
2021-11-23 18:42:41 +08:00
古月闻星 e85c43ab87
[Doc]: Fix grammatical error (#1516) 2021-11-23 18:32:36 +08:00
Zaida Zhou 2f023453d6
[Docs] Add the link and introduction of mmflow in README (#1506)
* [Docs] Add the link and introduction of mmflow in README

* remove a blank line

* fix link
2021-11-22 10:20:27 +08:00
Zaida Zhou add157cc73
bump version to v1.3.17 (#1473)
* bump version to v1.3.17

* add a document to record the previous versions of PyTorch built for mmcv-full

* polish readme
2021-11-10 21:02:40 +08:00
Wenwei Zhang f81cf0f702
[Docs]: Add ops definition (#1434)
* [Improve] improve checkpoint loading log (#1446)

* add first version

* remove syncbn

* remove unused ops

* update input names

* remove empty line

* update index.rst

* resolve comments

* fix type

* Update mmcv_ops_definition.md

Co-authored-by: WangJiaZhen <47851024+teamwong111@users.noreply.github.com>
Co-authored-by: maningsheng <mnsheng@yeah.net>
Co-authored-by: Zaida Zhou <58739961+zhouzaida@users.noreply.github.com>
2021-11-10 19:07:12 +08:00
zhouzaida e22740b1d6 add note 2021-11-04 14:39:59 +08:00
zhouzaida d57026b7fc Update the table of pre-built packages in readme 2021-11-04 14:39:59 +08:00
Zaida Zhou fd6eab697d
[Docs] Add mmcv itself in the docs list (#1441)
* Add mmcv itself in the docs list

* modify link of docs
2021-11-02 20:59:26 +08:00
Zaida Zhou 5b5b47fc87
[Feature] Loading objects from different backends and dumping objects to different backends (#1330)
* [Feature] Choose storage backend by the prefix of filepath

* refactor FileClient and add unittest

* support loading from different backends

* polish docstring

* fix unittet

* rename attribute str_like_obj to is_str_like_obj

* add infer_client method

* add check_exist method

* rename var client to file_client

* polish docstring

* add join_paths method

* remove join_paths and add _format_path

* enhance unittest

* refactor unittest

* singleton pattern

* fix test_clientio.py

* deprecate CephBackend

* enhance docstring

* refactor unittest for petrel

* refactor unittest for disk backend

* update io.md

* add concat_paths method

* improve docstring

* improve docstring

* add isdir and copyfile for file backend

* delete copyfile and add get_local_path

* remove isdir method of petrel

* fix typo

* add comment and polish docstring

* polish docstring

* rename _path_mapping to _map_path

* polish docstring and fix typo

* refactor get_local_path

* add list_dir_or_file for FileClient

* add list_dir_or_file for PetrelBackend

* fix windows ci

* Add return docstring

* polish docstring

* fix typo

* fix typo

* deprecate the conversion from Path to str

* add docs for loading checkpoints with FileClient

* refactor map_path

* add _ensure_methods to ensure methods have been implemented

* fix list_dir_or_file

* rename _ensure_method_implemented to has_method
2021-10-23 20:51:44 +08:00
dingchang 75cae78c55
[Feature] Add group points ops from mmdet3d (#1415)
* add op (group points) and its related ops (ball query and knn) in mmdet3d

* refactor code

* fix typo

* refactor code

* fix typo

* refactor code

* make input contiguous

Co-authored-by: zhouzaida <zhouzaida@163.com>
2021-10-23 14:01:31 +08:00