Commit Graph

836 Commits (e621e08d541634fd286ce0d314c3a05f4ead7e73)
 

Author SHA1 Message Date
Eugene Liu e621e08d54
Add DCN and Modulated DCN CPU implementation ()
* 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 ()
* [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 () 2021-08-27 16:23:57 +08:00
Zaida Zhou 7540cf73ac
bump version to v1.3.12 () 2021-08-24 10:50:49 +08:00
densechen 642b48f1f2
RunnerConstructor ()
* 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 ()
* 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 ()
* 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 () 2021-08-23 14:28:01 +08:00
Haian Huang(深度眸) f022d57702
Add Chinese Documentation of runner ()
* 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 ()
* 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 () 2021-08-23 11:19:23 +08:00
Ma Zerun 357b0dfb36
[WIP] continue PR ()
* Add gradient cumulative optimizer

fixes 

* 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" ()
* 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 ()
* 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 ()
* 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 () 2021-08-23 10:35:22 +08:00
Zaida Zhou aa64ee6a7c
[Docs] Use myst parser ()
* add myst-parser extension for sphinx

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

* fix typo
2021-08-19 10:04:54 +08:00
lizz 81777d1213
Use more cpus in building ()
* 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 ()
* [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 ()
* [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 () 2021-08-16 15:57:13 +08:00
Zaida Zhou 54907a3922
fix typo, close () 2021-08-12 16:59:39 +08:00
Zaida Zhou d48020bd78
bump version to v1.3.11 () 2021-08-11 23:21:08 +08:00
Zaida Zhou 846d3a4ac6
[Fix] Fix the bug that the training log and evaluating log are mixed ()
* [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 ()
* 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 () 2021-08-11 15:59:49 +08:00
Haodong Duan 93418560d8
[Fix] Do not depend on setuptools>=52 ()
* use packaging instead

* update

* update

* update

* update
2021-08-10 16:17:59 +08:00
Zaida Zhou dfb48c87ae
[Refactor] Refactor the directory of csrc ()
* [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
Zaida Zhou 9fa5de8b9b
[Enhancement] Speed up mmcv import ()
* [Enhancement] Speed import mmcv

* fix missing parse_version

* fix circle dependency

* rename
2021-08-10 15:08:00 +08:00
Miao Zheng 94a677de3f
[Docs] Add PR document ()
* [Docs] Add PR document

* format

* idx modify

* revise according to comments

* add blank line

* grammar

* insert blank line after title

* revise according to comments

* revise according to comments

* typo

* resize image3

* lint

* del print

* fix lint

* del unused

Co-authored-by: zhouzaida <zhouzaida@163.com>
2021-08-09 22:29:21 +08:00
Jerry Jiarui XU c47c9196d0
[Docs] Add header for files ()
* [Docs] Add header for files

* change to OpenMMLab

* add headers for .cpp, .cu, .h, .cuh

* replace Open-MMLab with OpenMMLab
2021-08-08 22:10:55 +08:00
Zaida Zhou 04daea425b
Output pdf and epub formats for readthedocsfix typo () 2021-08-03 11:18:01 +08:00
Zaida Zhou 285a052ab7
fix typo () 2021-08-02 09:56:52 +08:00
Shilong Zhang eaebb30637
fix dcn forward and backward when batchsize is larger than im2col_step () 2021-08-01 20:06:09 +08:00
Zaida Zhou 571e3e5fc7
[Fix] Fix CI of deploy () 2021-07-28 09:25:42 +08:00
Zaida Zhou 88d8c9ef1d
bump version to v1.3.10 () 2021-07-23 21:23:08 +08:00
ddonatien 0a375614ca
Prevent kernal_normalizer to change mask dtype () 2021-07-23 21:08:58 +08:00
Shilong Zhang 17fa6670eb
[Features] Add logger for initialization of parameters ()
* 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 ()
* 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 ()
* 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 () 2021-07-20 18:33:27 +08:00
Zaida Zhou 74626ecea3
[Fix] Fix example ()
* [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 ()
* [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 ()
* 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 ()
* 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 ()
* 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 ()
* 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