Commit Graph

855 Commits (be945648c4a9f01fc519814b1b0e8b4ada77c8b7)
 

Author SHA1 Message Date
Zaida Zhou be945648c4
bump version to v1.3.14 (#1364) 2021-09-23 21:27:33 +08:00
Miao Zheng 324e9f18ff
[Features] Load optical flow data from bytes (#1362)
* [Features] Load optical flow data from bytes

* docstring

* revise base on comments

* compression test data

* compression test data

* docstring

* minors
2021-09-23 21:25:59 +08:00
Miao Zheng b92ea0b5df
[Feature] Add Correlation CUDA op (#1361) 2021-09-23 21:08:41 +08:00
dingchang f3dfc4135b
[Feature] Add ballquery op from mmdet3d (#1332) 2021-09-23 21:08:00 +08:00
Wenwei Zhang 4e101e0b75
[Feature]: Support empty tensor in MMSyncBN (#1205)
* [Feature]: support empty tensor in MMSyncBN

* refine code

* resolve comments

* clean unnecessary comments

* fix inaccurate statistics when empty tensor

* resolve comments and add docstrings

* update unit tests

* rephrase, ready for merge
2021-09-23 17:10:38 +08:00
pc b6eb3822ad
add contour_expand and pixel_group in parrots (#1323) 2021-09-23 11:42:19 +08:00
Zaida Zhou 4bab29241a
[Docs] Translate visualization documentation (#1350) 2021-09-21 13:55:19 +08:00
Zaida Zhou fb02e81a12
[Docs] Translate ops documentation (#1349) 2021-09-21 13:54:37 +08:00
Zaida Zhou 1216e5fe7f
[Docs] Use PyTorch sphinx theme (#1321)
* [Docs] Use PyTorch sphinx theme

* add sphinx-copybutton

* add twitter and zhihu link

* remove shpinx_rtd_theme from doc.xtx

* update docs.txt

* update conf.py
2021-09-14 16:35:41 +08:00
AluminiumOxide 6434d0d7e2
[Docs] Translate understand_mmcv about registry.md and fix config.md (#1204)
* Add Chinese translation of config.md.

* Add Chinese translation of registry.md and fix config.md

* Update config.md

* Update registry.md

* Update config.md

* Update config.md

* Update registry.md

* Update config.md

* fix format

* polish translation

* polish translation

* polish translation

Co-authored-by: zhouzaida <zhouzaida@163.com>
2021-09-13 13:16:19 +08:00
Zaida Zhou b4bfeb53c5
bump version to v1.3.13 (#1327) 2021-09-09 23:48:27 +08:00
Leojc 2a3d2d4a35
Reimplement cc_attention using pure pytorch (#1201)
* Reimplement cc_attention using pure pytorch

* fix: avoid BC-Breaking

* delete cc_attention related cpp and cuda files

* delete cc_attention related lines in pybind.cpp

* make out Tensor contiguous.

* remove unneeded lines.

* Update mmcv/ops/cc_attention.py

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

* Update TestCrissCrossAttention

* passing pre-commit

* Update docstring of CrissCrossAttention

* Update docstring of CrissCrossAttention

* Update mmcv/ops/cc_attention.py

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

* [docs]polish the docstring

* [Docs] Polish the docstring

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

Co-authored-by: Zaida Zhou <58739961+zhouzaida@users.noreply.github.com>
2021-09-09 21:53:45 +08:00
Tong Gao 642d281823
[Feature] Add revert_sync_batchnorm (#1253)
* [Feature] Add revert_sync_batchnorm

* support mmsyncbn (to be tested)

* Test passed

* Update docstring, rename the test file

* remove test_sync_bn

* add comment

* add mmcv.ops check

* Add a comment

* Add notes and relax test req

Co-authored-by: gaotongxiao <gaotongxiao@gmail.con>
2021-09-08 10:59:39 +08:00
young 99088c81a8
[Fix] Restrict the warning message (#1267)
* restrict the warning message

* and an important keyword in warning description

* a more elegant way of condition

* link format code too long

* fix the stupid spelling mistake

* Use issubclass to restrict warning message.

* maybe this version is more elegant.

* conv + bias + norm warning pytest

* 'created' a warning, hahaha

* isort and yapf format revision

* isort and yapf format revision

* flake8 fail issue

* I have to right this way in order to solve the conflicts between yapf and flake8, sigh...

* fixed test bug

* Add ruby windows installer source.

* Simplified the code and remove ruby source from CONTRIBUTING.md

* use _BatchNorm to simplify the code

* bug fix and add instanceNorm case into warning

* change the warning message to make it more clear

* fix unit test
2021-09-07 19:45:14 +08:00
Zaida Zhou eed9cced8e
[Enhancement] Enhance the output of exception (#1309) 2021-09-07 19:35:53 +08:00
EricKani 4f4eb27514
translation of faq.md (#1251) 2021-09-07 18:20:28 +08:00
Ma Zerun f5c28a6e08
[Fix] Fix missing `state_dict._metadata` when saving and loading checkpoints. (#1294)
* Fix missing `state_dict._metadata` when saving & loading checkpoints.

* Add unit tests.

* Fix default value and variable names in unit tests.
2021-09-07 17:53:33 +08:00
Wei Ji 9016fef560
Fix typo on pip install mmcv-full torch1.9 cpu (#1313)
* Fix typo on pip install mmcv-full torch1.9 cpu

* 修改 pip install mmcv-full torch1.9 cpu 的错别字

* Fix typos in installation.md

Point to https://download.openmmlab.com/mmcv/dist/cpu/torch1.9.0/index.html
2021-09-07 17:32:11 +08:00
Zaida Zhou d3b0572408
Add citation (#1303) 2021-09-01 19:20:01 +08:00
Eugene Liu e621e08d54
Add DCN and Modulated DCN CPU implementation (#1278)
* DCN cpu version

* add modulated dcn cpu version

* move deform_conv_shape_check to deform conv utils

* add inline to deform_conv_shape_check

* add tests

* run linter

* add newline at file end

* run pre-commit against modulated deform conv cpp

* update saconv test

* run clang-format

* remove cuda device inline

* refactor dcn cuda/cpu functions

* remove DCN util

* remove DCN util hpp from all included files

* Addressing PR comment by refactoring modulated-DCN

* fix lint in cpp files
2021-08-29 20:48:31 +08:00
Zaida Zhou 5617ad72d0
[Feature] Add python3.9 in CI (#1291)
* [Feature] Add python3.9 in CI

* fix dependencies for compiling onnx
2021-08-27 16:25:30 +08:00
Zaida Zhou 14f55e6fae
[Docs] Fix sphinx version (#1301) 2021-08-27 16:23:57 +08:00
Zaida Zhou 7540cf73ac
bump version to v1.3.12 (#1297) 2021-08-24 10:50:49 +08:00
densechen 642b48f1f2
RunnerConstructor (#1296)
* runner constructor

* import runner at `__init__`

* fix yapf

* fix

* fix yapf

* better write

* add using example

* add common

* fix lint

* refactor format

Co-authored-by: Zaida Zhou <58739961+zhouzaida@users.noreply.github.com>
2021-08-24 10:11:58 +08:00
Wenwei Zhang 979a355d2a
[Feature] Add windows CI (#1023)
* add windows CI

* clean versions

* only allow pt1.7 on windows

* fix windows install issue

* add win cpu

* fix win command

* clean unnecessary command

* resolve turbojpeg & tempfile on win

* replace os.readlink with os.path.realpath

* fix windows ci

* close file before removing it

* fix windows ci

* fix symlink on windows

* fix windows ci

* fix windows ci

* fix windows ci

* fix windows ci

* fix windows ci

* fix windows ci

* fix windows ci

* fix windows ci

* fix windows ci

* modify according to comment

Co-authored-by: zhouzaida <zhouzaida@163.com>
2021-08-24 10:07:31 +08:00
q.yao 8aab4f2595
[Fix] Update requirement of ONNX Runtime (#1290)
* update requirements of onnxruntime

* update document

* use python setup.py instead of pip install
2021-08-23 23:31:23 +08:00
pc ea3e9789bf
fix parrots op bug (#1289) 2021-08-23 14:28:01 +08:00
Haian Huang(深度眸) f022d57702
Add Chinese Documentation of runner (#1202)
* Add Chinese Documentation of runner

* Fix error

* Fix lint

* update

* update comment
2021-08-23 14:25:24 +08:00
Paige Wang 1790e9f265
add modulated_deform_conv in onnxruntime support (#1281)
* add modulated_deform_conv in onnxruntime support

* Add docs descriptions

* Add gpu test in test_onnx.py

* code format

* remove new usage and move if outside for loop

* use memset when bias is nullptr
2021-08-23 11:22:24 +08:00
Zaida Zhou 77cb5786ed
[Fix] Remove dumplicate files in csrc (#1284) 2021-08-23 11:19:23 +08:00
Ma Zerun 357b0dfb36
[WIP] continue PR #784 (#1221)
* Add gradient cumulative optimizer

fixes #190

* Update optimizer.py

* Update optimizer.py

* fix loss scale improperly in last equivalent_iter

* Add `GradientCumulativeOptimizerHook` in `__init__.py`.

* Add docstring of `GradientCumulativeOptimizerHook`.

* Add type check, BN warning and resume warning. And fix typo, lint the
code.

* Add unit test

* Update docstring example.

* Change GradientCumulativeOptimizerHook `__init__` arguments.

* Add GradientCumulativeOptimzierHook unit tests with IterBasedRunner.

* Add GradientCumulativeFp16OptimizerHook.

* Add unit tests of GradientCumulativeFp16OptimizerHook

* Use '!=' instead of '>' to determine resume

Co-authored-by: Zhiyuan Chen <this@zyc.ai>
2021-08-23 11:18:36 +08:00
jiang1997 9f0cc5a6e4
[WIP] Apply to translate "docs_zh_CN/understand_mmcv/utils.md" (#1232)
* Copy utils.md from docs

* Add Chinese translation of docs_zh_CN/understand_mmcv/utils.md

* recommit with pre-commit hook

* polish

* Update docs_zh_CN/understand_mmcv/utils.md

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

* Update docs_zh_CN/understand_mmcv/utils.md

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

* fix path of image

* set priority when build html

Co-authored-by: Zaida Zhou <58739961+zhouzaida@users.noreply.github.com>
Co-authored-by: zhouzaida <zhouzaida@163.com>
2021-08-23 11:12:17 +08:00
Wenwei Zhang 3168ffa204
[Enhance]: update pr template (#1228)
* update pr template

* reformat

* update according to comments

* resolve comments
2021-08-23 10:37:03 +08:00
Yining Li 4d9b43debd
Support deprecation info in Config (#1275)
* Support deprecation checking in Config

* add unittest for config deprecation

* support reference link in deprecation info

* add doc

* Update config.md
2021-08-23 10:36:37 +08:00
Zaida Zhou be1be02027
Show supported python versions in README (#1286) 2021-08-23 10:35:22 +08:00
Zaida Zhou aa64ee6a7c
[Docs] Use myst parser (#1287)
* add myst-parser extension for sphinx

* make note style more beautiful
2021-08-22 09:44:51 +08:00
Zaida Zhou 259ea5f63f
fix typo (#1285) 2021-08-21 11:48:40 +08:00
shlrao ac0d8398bf
fix nms implentation of cpu (#1244) 2021-08-19 11:12:33 +08:00
Zaida Zhou 9c58d9e750
Fix typo (#1280)
* fix typo

* fix typo
2021-08-19 10:04:54 +08:00
lizz 81777d1213
Use more cpus in building (#1046)
* Use more cpus in building

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

* Add psutil to requirements

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

* fix

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

* fix

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

* Hope faster

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

* fix macos

Signed-off-by: lizz <lizz@sensetime.com>
2021-08-18 19:37:18 +08:00
Zaida Zhou 9679ce8c99
[Docs] Remove the _static in docs_zh_CN (#1277)
* [Docs] Remove _static in docs_zh_CN

* fix html_static_path

* fix shpinx warning
2021-08-17 21:16:18 +08:00
Zaida Zhou 8d2d781225
[Docs] Fix pdf build (#1266)
* [Fix] Fix pdf error when building docs

* fix docs

* fix pdf

* fix pdf

* fix pdf
2021-08-17 16:03:55 +08:00
q.yao 44edcdd91f
add onnx namespace for custom ops (#1254) 2021-08-16 15:57:13 +08:00
Zaida Zhou 54907a3922
fix typo, close #1260 (#1263) 2021-08-12 16:59:39 +08:00
Zaida Zhou d48020bd78
bump version to v1.3.11 (#1259) 2021-08-11 23:21:08 +08:00
Zaida Zhou 846d3a4ac6
[Fix] Fix the bug that the training log and evaluating log are mixed (#1252)
* [Fix] Fix the bug that training log and evaluating log are mixed

* [Fix] Fix the bug that training log and evaluating log are mixed

* fix comment

* fix import error

* refactor

* refactor

* refactor

* clear log_buffer before evaluation

* fix error

* add unittest
2021-08-11 22:41:21 +08:00
Shilong Zhang 18c64d5fb0
Fix potential bugs of basemodule when record the initilization information (#1217)
* 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

* fix call initweights twice in topmost module

* fix the potential bug of recursive import

* fix unitest

* fix potiential bugs

* remove unneccesary change

* add more unitest

* fix add param in initweights

* add more comments

* raise error

* add more detail assert error
2021-08-11 22:05:44 +08:00
Zaida Zhou b5a4bbd000
[Fix] Remove model.pth (#1255) 2021-08-11 15:59:49 +08:00
Haodong Duan 93418560d8
[Fix] Do not depend on setuptools>=52 (#1235)
* use packaging instead

* update

* update

* update

* update
2021-08-10 16:17:59 +08:00
Zaida Zhou dfb48c87ae
[Refactor] Refactor the directory of csrc (#1206)
* [Refactor] Refactor the csrc directory

* update MANIFEST.in

* fix hip

* add csrc readme

* trailing whitespace

* fix syntax error in setup.py

* add compatibility docs

* move parrots_cudawarpfunction.cuh to common/cuda

* fix grammar, update directory tree

* fix MANIFEST.in

* Add new structre of csrc in compatibility.md

* Add original structre of csrc in compatibility.md

* fix typo

* remove TODO

* modify according to comment

* format

Co-authored-by: grimoire <yaoqian@sensetime.com>
2021-08-10 15:09:19 +08:00