Commit Graph

802 Commits (04daea425bcb0a104d8b4acbbc16bd31304cf168)
 

Author SHA1 Message Date
Zaida Zhou 04daea425b
Output pdf and epub formats for readthedocsfix typo (#1237) 2021-08-03 11:18:01 +08:00
Zaida Zhou 285a052ab7
fix typo (#1233) 2021-08-02 09:56:52 +08:00
Shilong Zhang eaebb30637
fix dcn forward and backward when batchsize is larger than im2col_step (#1212) 2021-08-01 20:06:09 +08:00
Zaida Zhou 571e3e5fc7
[Fix] Fix CI of deploy (#1220) 2021-07-28 09:25:42 +08:00
Zaida Zhou 88d8c9ef1d
bump version to v1.3.10 (#1214) 2021-07-23 21:23:08 +08:00
ddonatien 0a375614ca
Prevent kernal_normalizer to change mask dtype (#1210) 2021-07-23 21:08:58 +08:00
Shilong Zhang 17fa6670eb
[Features] Add logger for initialization of parameters (#1150)
* add logger for init

* change init_info of oevrload init_weight

* add judgement for params_init_info

* add delete comments for params_init_info

* add docstr and more comments

* add docstr and more comments

* resolve comments

* dump to a file

* add unitest

* fix unitest

* fix unitest

* write to ori log

* fix typo

* resolve commnets
2021-07-23 21:07:54 +08:00
Haodong Duan ef48a47389
[Improvement] Improve digit_version & use it for version_checking (#1185)
* improve digit_version & use it for version_checking

* more testing for digit_version

* setuptools >= 50 is needed

* fix CI

* add debuging log

* >= to ==

* fix lint

* remove

* add failure case

* replace

* fix

* consider TORCH_VERSION == 'parrots'

* add unittest

* digit_version do not deal with the case if 'parrots' in version name.
2021-07-23 21:03:33 +08:00
Jintao Lin c06be0d58a
Add TERMINOLOGY.md (#895)
* add TERMINOLOGY.md

* Update TERMINOLOGY.md

* Update TERMINOLOGY.md

* update
2021-07-22 10:01:51 +08:00
Qizhu Li 261618f4a4
Resolves the duplicate logs issue (#1164) 2021-07-20 18:33:27 +08:00
Zaida Zhou 74626ecea3
[Fix] Fix example (#1074)
* [Fix] Fix example

* rename Net to Model

* support training without gpu in example

* modify according to comment

* replace data path with relative path
2021-07-20 17:18:52 +08:00
Zaida Zhou 3040299bb5
[Docs] Update readme and docs (#1190)
* [Docs] Update readme and docs

* add Chinese introduction

* fix table error
2021-07-20 17:18:28 +08:00
Gu Wang 025ee9f5e6
[Feature] Add flat cosine lr updater (#1066)
* add flat cosine lr updater

* add test

* add doc

* update doc

* reformat

* update unittest

* update test flat cos

* remove momentum hook test

* update test

* change assert to ValueError

* fix unittest

* add by_epoch=True unittest

* change to start_percent

* change to start_percent in test
2021-07-20 17:16:50 +08:00
007gzs f860d0edea
[Fix] Fix floor/ceil error in deform_attn for windows (#1037)
* windows build doc

* fix floor ceil

* fix lint

* change floor/ceil to floorf/ceilf

* Update build.md

* recover onnx and parrots

* fix clang-lint

Co-authored-by: WRH <12756472+wangruohui@users.noreply.github.com>
2021-07-20 17:15:41 +08:00
Rui Xu faf6c6cd8e
[Enhancement] Revise the interface of upfirdn2d function (#1195)
* revise the interface of upfirdn2d function

* adopt to_2tuple
2021-07-20 17:12:02 +08:00
q.yao 5f9e6b610b
[Feature] Add ONNX export support to torch.roll (#1194)
* add torch.roll to onnx

* remove skip test

* add support to torch<170

* add dim=0 for torch==1.9.0

* update fixture function name, add comment in roll symbolic
2021-07-20 16:54:04 +08:00
Ma Zerun 366c628a85
[Fix] Fix potential interger overflow in `imequalize`. (#1198)
* Fix potential interger overflow in `imequalize`.

* Modify imequalize unit test image size to generate potential integer
overflow.
2021-07-14 21:03:06 +08:00
Ma Zerun 6659c38dd5
[Feature] Add `is_tracing` to wrap `torch.jit.is_tracing` in different versions. (#1187)
* Add `is_tracing` to wrap `torch.jit.is_tracing` in different versions.

* Remame `is_tracing` to `is_jit_tracing`

* Ignore `is_jit_tracing` tests in CI.
2021-07-13 14:42:50 +08:00
Junjun2016 c3ddcf9d38
[Fix] Fix typos (#1196)
* fix typos

* fix typos
2021-07-13 14:31:26 +08:00
Ma Zerun a5684b0de2
[Feature]: Support custom hooks in IterBasedRunner. (#1193) 2021-07-13 14:09:56 +08:00
Ye Liu 44e19ff68c
[Feature]: Register CrissCrossAttention into plugin layers (#1189) 2021-07-13 14:08:57 +08:00
Zaida Zhou 96c4b70ccb
bump version to v1.3.9 (#1188) 2021-07-09 21:39:40 +08:00
qjqfl 07d681ac00
[Feature]: support tensorrt custom plugin `MMCVCornerPool` (#1179) 2021-07-09 21:07:38 +08:00
Y_Xuan 2dc0a219c1
[Feature] Porting mmcv for hip (#1022)
* porting mmcv for hip

* add nvcc

* fix format

* fix format

* fix bug for carafe

* fix test_utils because rocm_torch not allow set torch.backends.cudnn.benchmark to false

* add LOOSEVERSION

* fix format

* fix format of version

* fix code format

* test for yaml

* fix bug for citest

* fix bug for how to get torch._version_ at setup.py
2021-07-09 21:02:10 +08:00
Zaida Zhou db580dda8d
[Docs] Build Chinese docs (#1073)
* Remove _build directroy in docs_zh_CN

* Change utils title to Chinese

* Translate documents

* Translate documents

* Use symbolic link to avoid repeated images

* Use symbolic link to avoid repeated images

* fix readme.md

* update copyright

* refactor docs

* rename title to Chinese
2021-07-07 13:10:04 +08:00
Zaida Zhou 0cbe5f4c84
[Fix] Fix sphinx compile error (#1176)
* [Docs] Fix sphinx version

* [Docs] Remove sphinx_markdown_tables

* update readme link

* add sphinx_rtd_theme package
2021-07-07 13:09:04 +08:00
RangiLyu 31b8829de8
Add pretrained mmdet/mobilenet_v2 (#1177) 2021-07-07 09:10:15 +08:00
Zaida Zhou 23d7fc83cb
add CI for pt1.8 pt1.9 (#1141)
* add ci for pt1.8 pt1.9

* remove cp command

* change cuda verison

* fix typo

* fix ci

* fix typo
2021-07-06 15:40:56 +08:00
Zaida Zhou 4a9f83467c
[Fix] Fix unittest in pt1.9 (#1146)
* fix test.txt

* fix unittest in pt1.9

* fix checkpoint filename error

* add comment

* fix unittest

* fix onnxruntime version
2021-07-03 20:47:22 +08:00
Zaida Zhou 6c63621a86
[Docs] Fix typo (#1166) 2021-07-03 16:05:31 +08:00
Zaida Zhou 66cefaffa3
[Docs] Refactor docs (#1102)
* [Docs] Refactor documentation

* [Docs] Refactor documentation

* refactor docs

* refactor docs

* set sphinx==3.1.2

* fix typo

* modify according to comment

* modify according to comment

* modify according to comment

* [Docs] delete unnecessary file

* fix title

* rename

* rename
2021-07-02 20:53:00 +08:00
Zaida Zhou cdcbc03c98
add citation in readme.md (#1160) 2021-07-02 16:44:39 +08:00
Haodong Duan 7e285d359f
[Fix] Fix saconv (#1147)
* fix saconv

* update

* update

* fix

* use LooseVersion
2021-07-02 10:38:01 +08:00
Antonio Lanza b035fe9171
Change dict update order (#1108)
* Change dict update order

* Change dict() with {}

* Added comments with PR link

* Fixed comments according to Lint Job
2021-06-29 22:11:21 +08:00
Haodong Duan 1d5ee6e09a
use LooseVersion for version checking (#1158) 2021-06-29 21:33:08 +08:00
achaiah 21845db455
[Fix]: fix missing check of directory in scandir (#1110)
* Missing check for dir in the 'else' clause

Fixing issue when recursively scanning directories with filenames starting with '.'  Without this fix, the `if not entry.name.startswith('.') and entry.is_file()` logic falls through to the `else` clause which in the current code base will error out as it encounters '.' files (e.g. .DS_Store)

* Updated code per comments

* fixing indentation

* fix indenterror and add comment

* remove .DS_Store and add .file

Co-authored-by: zhouzaida <zhouzaida@163.com>
2021-06-29 21:31:00 +08:00
Zaida Zhou 76d9bf1efb
[Docs] Fix error when cv2 is mocked (#1152) 2021-06-28 17:31:36 +08:00
Jerry Jiarui XU 797ef57e15
[Fix] Fix SyncBN build in PyTorch 1.9 (#1138)
* [Fix] Fix SyncBN build in PyTorch 1.9

* fixed parrots SyncBN
2021-06-27 19:10:00 +08:00
Zaida Zhou db097bd1e9
bump version to v1.3.8 (#1148) 2021-06-25 22:43:10 +08:00
Ma Zerun 1b15f02220
support print hooks before running. (#1123)
* support print using hooks before running.

* Support to print hook trigger stages.

* Print stage-wise hook infos. And make `stages` as class attribute of
`Hook`

* Add util function `is_method_overriden` and use it in
`Hook.get_trigger_stages`.

* Add unit tests.

* Move `is_method_overriden` to `mmcv/utils/misc.py`

* Improve hook info text.

* Add base_class argument type assertion, and fix some typos.

* Remove `get_trigger_stages` to `get_triggered_stages`

* Use f-string.
2021-06-25 20:49:24 +08:00
Tong Gao 227e7a73b8
Support image reading while ignoring EXIF orientation info (#1091)
* Support image reading while ignoring EXIF orientation info

Add unit test for ignore_orientation flags in imread()

* add documentation for imread

* Add test cases
2021-06-25 20:46:13 +08:00
pc 94818ad136
update ca_forward_kernel (#1144) 2021-06-25 16:14:26 +08:00
q.yao 7b150fab34
[Feature] Optimize the PyTorch CUDA implementation for Criss Cross Attention (#1143)
* optimize criss cross attention

* optimize criss cross attention

* optimize criss cross attention

* fix lint

* fix ci, remove useless variable

* better ca_forward_kernel

Co-authored-by: wondervictor <victorchanchina@gmail.com>
2021-06-25 15:25:19 +08:00
Ma Zerun 6fe3722510
Refine default hooks and custom hooks priority rank. (#1120)
* Refine default hooks and custom hooks priority rank.

* Add unit tests for custom hooks with string priority.

* Use priority `ABOVE_NORMAL` and `BELOW_NORMAL` instead of `HIGHER` and
`LOWER`.

And add unit tests for custom hook with the same priority as
default hooks.
2021-06-25 15:07:32 +08:00
lizz d9effbd1d0
Support variables in base files for configs (#1083)
* Support variables in base files for configs

Signed-off-by: lizz <lizz@sensetime.com>

* Test json and yaml as well

Signed-off-by: lizz <lizz@sensetime.com>

* Add test for recusive base

Signed-off-by: lizz <lizz@sensetime.com>

* Test misleading values

Signed-off-by: lizz <lizz@sensetime.com>

* Improve comments

Signed-off-by: lizz <lizz@sensetime.com>

* Add doc

Signed-off-by: lizz <lizz@sensetime.com>

* Improve doc

Signed-off-by: lizz <lizz@sensetime.com>

* More tests

Signed-off-by: lizz <lizz@sensetime.com>

* Harder test case

Signed-off-by: lizz <lizz@sensetime.com>

* use BASE_KEY instead of base

Signed-off-by: lizz <lizz@sensetime.com>
2021-06-25 14:30:58 +08:00
fjfzlzj eb08835fa2
[Fix] Fix the permission denied error on windows. (#1077)
* Fix the permission denied error on windows.

* Format code.

* Using a cleaner way.

* Update config.py

use os.unlink instead of unlink

* change  unlink to remove

* add notes for new implementation

* Fix typo

Co-authored-by: WRH <12756472+wangruohui@users.noreply.github.com>
Co-authored-by: Wenwei Zhang <40779233+ZwwWayne@users.noreply.github.com>
2021-06-24 22:27:30 +08:00
Yining Li 560719da41
EvalHook uses case-insensitive key indicator matching and configurabl… (#1076)
* EvalHook uses case-insensitive key indicator matching and configurable test functions

* * fix docstring

* * move test_fn import into __init__
* configurable greater/less keys

* * update unittest
* update DistEvalHook

* fix comments and remove debug code

* support single greater/less key
2021-06-24 22:08:48 +08:00
Junjun2016 49a1d347bb
[Enhancement] Support resize or rescale to multiple (#1121)
* add resize or rescale to multiple

* add imresize_to_multiple function in mmcv.image

* fix docstring

* use to_2tuple
2021-06-24 21:21:51 +08:00
pc 303aa7f117
fix parrots cpu compile bug (#1129) 2021-06-24 21:16:53 +08:00
Jintao Lin 9c26a1049e
empty tensor inference backward compatible (#1131)
* empty tensor inference backward continity

* update

* add 3d
2021-06-24 17:04:03 +08:00