Commit Graph

1313 Commits (126077df5ebd73f7d8f7233c9b4c1606d1489e9c)
 

Author SHA1 Message Date
mahxn0 126077df5e
[Feature] Make voxelization operator support the mlu290 platform (#2652)
* [Feature]: Make voxelization operator support the mlu290 platform.

* [Feature]: Make voxelization operator support the mlu290 platform.

* [Feature]: Make voxelization operator support the mlu290 platform.

---------

Co-authored-by: maxiangjun <maxiangjun@cambricon.com>
2023-03-10 11:21:43 +08:00
liuhw 745985937a
[Feature] Add the support of voxelization op for ascend device (#2613)
* update

* update
2023-03-03 20:07:36 +08:00
BinZheng 5f122293bf
[Enhancement] ms_deform_attn performance optimization (#2616)
* ms_opt_v2

* ms_opt_v2_1

* optimize MultiScaleDeformableAttention ops for MLU

* ms_opt_v2_1

* [Feature] ms_deform_attn performance optimization V2

* [Feature] ms_deform_attn performance optimization V2

* [Feature] ms_deform_attn performance optimization V2

* [Feature] ms_deform_attn performance optimization V2

* [Feature] ms_deform_attn performance optimization V2

* [Feature] ms_deform_attn performance optimization V2

* [Feature] ms_deform_attn performance optimization V2

---------

Co-authored-by: dongchengwei <dongchengwei@cambricon.com>
2023-03-03 11:18:19 +08:00
jayggh ec63932333
[Enhance] The argument scale of fused_bias_leakyrelu should be greater than 0 (#2623)
* Add verification for scale, when scale less than 0

* Update mmcv/ops/fused_bias_leakyrelu.py

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

* Update fused_bias_leakyrelu.py

* Update fused_bias_leakyrelu.py

---------

Co-authored-by: Zaida Zhou <58739961+zhouzaida@users.noreply.github.com>
2023-02-27 19:03:46 +08:00
BainOuO 4adddfddf0
Fix the paper link error in the docstring (#2618) 2023-02-27 14:53:24 +08:00
Hakjin Lee 8e8ab22686
[Enhancement] Support MultiScaleDeformableAttention with AMP (#2541)
* [Enhance] Support FP16 for MSDeformAttn

* [Fix] Data type mismatch

* Update mmcv/ops/multi_scale_deform_attn.py

* Add UT

Author:    nijkah <nijkah@gmail.com>

* Add cuda available condition

---------

Co-authored-by: Zaida Zhou <58739961+zhouzaida@users.noreply.github.com>
2023-02-17 19:27:14 +08:00
Hakjin Lee cb94ffb672
[Fix] Fix a typo in the docstring of MSDeformAttn (#2599) 2023-02-13 16:59:25 +08:00
liuhw 5a61e534ea
[Feature] Add Ascend support for bbox_overlaps (#2580)
* Add support for Ascend devices with bbox_overlaps

* ...

* ...
2023-02-06 18:33:16 +08:00
xinliang123 615d28176a
[Feature] Add Ascend support for RoIPoolGrad op (#2569)
* add roipoolgrad adapter

* amend
2023-02-06 18:29:59 +08:00
Zaida Zhou 04e8727adf
Remove unused files (#2586) 2023-02-06 12:50:07 +08:00
Zaida Zhou 18e8f32fff
Refactor the issue templates (#2585)
* Refactor the issue template

* fix links

* fix
2023-02-06 11:51:23 +08:00
liuduanhui 46ea829b67
[Fix] Fix tensor descriptor setting in MLU ball_query. (#2579) 2023-02-02 21:44:42 +08:00
Allan Zelener 497c2df495
[Fix] Add missing contiguous calls for nms_rotated (#2547)
Addresses issue https://github.com/open-mmlab/mmcv/issues/2542

For nms_rotated_cuda only adds contiguous call to dets_sorted which is accessed directly.
For nms_rotated_cpu the implementation now matches what's in the detectron2 repo.
2023-02-01 14:44:56 +08:00
bdf 87768b7f2d
[Docs] Steps to compile mmcv-full on MLU machine (#2571)
* [Docs] Steps to compile mmcv-full on MLU machine

* [Docs] Adjust paragraph order

* Update docs/zh_cn/get_started/build.md

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

* Update docs/zh_cn/get_started/build.md

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

* Update docs/en/get_started/build.md

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

* Update docs/en/get_started/build.md

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

* [Docs] Modify the format

---------

Co-authored-by: budefei <budefei@cambricon.com>
Co-authored-by: Zaida Zhou <58739961+zhouzaida@users.noreply.github.com>
2023-01-31 19:40:07 +08:00
Daojiang 98766f4def
[Docs] Refine the docstring of EvalHook (#2576)
* 📃 docs(hooks): EvalHook comments

Refine the EvalHook comments

* Refine comments EvalHook

Update mmcv/runner/hooks/evaluation.py

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

* 📃 docs(Hooks): update Eval Hook

Slove line too long

---------

Co-authored-by: Zaida Zhou <58739961+zhouzaida@users.noreply.github.com>
2023-01-31 17:31:03 +08:00
tripleMu 7e063e3e61
Use official isort (#2574) 2023-01-31 12:59:35 +08:00
enemy1205 422816e45c
[Feature] Add C++ implementation for bbox_overlaps (#2477)
* add ops bbox_overlaps

* format code

* Return the pytorch version

* Intermediate modification

* Solve problems in parameter passing

* revise bug

* "add test case"
2023-01-31 00:04:35 +08:00
Zaida Zhou db391c50a3
[Fix] Upgrade the version of isort to fix lint error (#2572) 2023-01-30 15:41:55 +08:00
ckirchhoff 54ed0ed869
[Feature] Add support for Ascend devices with nms_rotated (#2550)
* [Feature]: add nms_rotated npu adaptater code

* [BugFix]: modify param in nms_rotated_npu.cpp

* [clean code]: nms_rotated_npu.cpp

* [clean code]: nms_rotated_npu.cpp

* [clean code]: nms_rotated_npu.cpp

* [clean code]: nms_rotated.cpp

* [Doc]: add nms_rotated op in supported op list at ops.md

* [Test]: add nms_rotated unit_test

* [Bug]: remove device parameter in test_batched_nms function
2023-01-28 21:08:22 +08:00
liuhw 0b005c52b4
[Fix] Fix the parameter error of DeformableRoiPool in Ascend device (#2546) 2023-01-19 21:42:27 +08:00
liuduanhui dfb03806a1
[Feature] Support ball_query with cambricon MLU backend and mlu-ops library. (#2520)
* [Feature] Support ball_query with cambricon MLU backend and mlu-ops library.

* [Fix] update operator data layout setting.

* [Fix] add cxx compile option to avoid symbol conflict.

* [Fix] fix lint errors.

* [Fix] update ops.md with info of ball_query support by MLU backend.

* [Feature] Fix typo.

* [Fix] Remove print.

* [Fix] get mlu-ops from MMCV_MLU_OPS_PATH env.

* [Fix] update MMCV_MLU_OPS_PATH check logic.

* [Fix] update error info when failed to download mlu-ops.

* [Fix] check mlu-ops version matching info in mmcv.

* [Fix] revise wrong filename.

* [Fix] remove f.close and re.
2023-01-18 14:41:04 +08:00
zcc-zjut 84f60c178c
[Feature] Add support for Ascend devices with gather_points (#2555) 2023-01-18 10:33:56 +08:00
Mashiro 4032b83270
Fix a typo (#2549) 2023-01-17 23:33:13 +08:00
mengpenghui e0323b4e4b
[Fix] Check the version of torchvision in __init__ of DCN (#2556) 2023-01-17 19:19:35 +08:00
mengpenghui 71ee2a61f2
[Enhance] Add AMP support for MLU_DCNv2 (#2548) 2023-01-13 17:51:02 +08:00
mengpenghui c310d28c8f
[Feature] Add MLU support for DCN (#2540) 2023-01-13 17:46:19 +08:00
mengpenghui c9d477bb27
[Fix] Fix a dilation bug of MLU-DCNv2 and add limitation of torchvision (#2519) 2023-01-12 13:06:22 +08:00
sherie 2810718a99
[Feature] Add Ascend support for RoIPool op (#2483)
Co-authored-by: wangxiaoxin_sherie <wangxiaoxin7@huawei.com>
2023-01-12 11:52:28 +08:00
ZShaopeng 48ea88ab9f
[Feature] Support Voxelization with cambricon MLU device (#2500)
* [Feature] Support hard_voxelize with cambricon MLU backend

* [Feature](bangc-ops): add voxelization op

* [Feature](bangc-ops): add voxelization op

* [Feature](bangc-ops): add voxelization op

* [Feature](bangc-ops): add voxelization op

* [Feature](bangc-ops): add voxelization op

* [Feature](bangc-ops): add voxelization op

* [Feature](bangc-ops): add voxelization op

* [Feature](bangc-ops): add voxelization op
2023-01-10 19:43:45 +08:00
CokeDong 64e739e002
Update parrots image (#2522)
* Update image

* Bugfix for parrots ext ops

* Move parrots ci task to build_pat.yml

* Fix on:push

* Remove commets and fix

* Fix beautiful job name
2023-01-09 19:41:48 +08:00
yancong 859d84c5b1
[Fix] Fix CI failed due to the version of setuptools (#2530)
* debug build_cu102 ci jobs

* debug build_cu102 ci jobs

* add tmate ssh

* add tmate ssh

* install specified version for setuptools

* revert comments of ci jobs

* revert comments of ci jobs

* specify setuptools version for build_cu116
2023-01-08 14:31:21 +08:00
Mashiro 538bdaacb6
[Fix] Fix c++/cuda lint failed (#2528)
* Fix c/cuda lint failed

* minor refine

* minor refine
2023-01-06 23:03:39 +08:00
DaGaiBa 73856344f5
[Feature] Support PSAMask op for Ascend device (#2487) 2023-01-06 20:15:50 +08:00
BinZheng fdc052e84b
[Enhance] Optimize the performace of ms_deform_attn for MLU device (#2510)
* ms_opt

* ms_opt

* ms_opt

* ms_opt

* ms_opt

* [Feature] ms_deform_attn performance optimization

* [Feature] ms_deform_attn performance optimization

* [Feature] ms_deform_attn performance optimization
2023-01-06 15:17:34 +08:00
Ryan Wang f76de9077b
[Feature] Support DCNv1 on Ascend device (#2480)
* update lately npu modification--DCNv1

update lately npu modification--DCNv1

* update lately npu modification--DCNv1

* update lately npu modification--DCNv1

* update lately npu modification--DCNv1

* update lately npu modification--DCNv1

* update lately npu modification--DCNv1

* check code

* Add ops to EN/ZH documents
2023-01-06 14:17:29 +08:00
Jamie a9535377bf
[Fix] Fix a typo in runner/hooks/evaluation.py (#2523) 2023-01-05 11:36:04 +08:00
Zaida Zhou 7a13f99578
Bump version to v1.7.1 (#2516) 2022-12-28 17:23:01 +08:00
CokeDong 404124949a
[Fix] Fix compilation error in Parrots environment (#2515)
* Fix parrots compile error(only support aten1.3)

* Fix setup.py for parrots
2022-12-28 17:22:04 +08:00
Zhongyu Li 935ba78b39
[Fix] Fix skip_layer for RF-Next (#2489)
* judge skip_layer by fullname

* lint

* skip_layer first

* update unit test
2022-12-28 15:27:34 +08:00
xiabo123 30d975a5f9
Change the block size to 1024 during compilation. (#2460)
* The default block size of rocm is 256.The designed kenel has a block size of 512.Change the block size to 1024 during compilation.

* The default block size of rocm is 256.The designed kenel has a block size of 512.Change the block size to 1024 during compilation.

* The default block size of rocm is 256.The designed kenel has a block size of 512.Change the block size to 1024 during compilation.

* The default block size of rocm is 256.The designed kenel has a block size of 512.Change the block size to 1024 during compilation.
2022-12-28 15:04:35 +08:00
jayggh 46eb9ec5d0
[Feature] Add NPU adapter for Deformable RoIPool (#2481)
* add npu adapter for deformroipool

* cleancode

* Update deform_roi_pool.cpp

* Update deform_roi_pool.cpp

* Update deform_roi_pool.cpp

* Update deform_roi_pool.cpp

* Update deform_roi_pool.cpp

* Update deform_roi_pool.cpp

* Update deform_roi_pool.cpp
2022-12-14 15:09:46 +08:00
jayggh 4c51afce2a
[Feature] Add FusedBiasLeakyRelu npu adapter (#2474)
* init npu

* add npu extension and focal loss adapter

* clean code

* clean code

* clean code

* clean code

* fix autocast bugs on npu (#2273)

fix autocast bugs on npu (#2273)

* code format

* code format

* code format

* bug fix

* pytorch_npu_helper.hpp clean code

* Npu dev (#2306)

* fix autocast bugs on npu
* using scatter_kwargs in mmcv.device.scatter_gather

* raise ImportError when compile with npu

* add npu test case (#2307)

* add npu test case

* Update focal_loss.py

* add comment

* clean lint

* update dtype assert

* update DDP forward and comment

* fix bug

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

* sigmoidfocalloss npu adapter bug fix

* BugFix: modify softmaxFocalLoss adapter

* BugFix: remove equal sign in the code

* add npu install information in README

* add modulatedDeformConv npu adapter

* init npu

* add npu extension and focal loss adapter

* clean code

* clean code

* clean code

* add modulatedDeformConv npu adapter

* merge master branch 20221103

* Add masked_ Conv2d operator in NPU

* add nms_npu

* fix bug

* fix code check

* fix code check

* fix code check

* Masked_conv2d NPU

* Masked_conv2d NPU

* Masked_conv2d NPU

* remove npu-install-info in README.md

* annotate the clang-format in pre-commit-config-zh-ch.yaml

* Clean code: fix the clean code problem in masked_conv2d and modulated_deform_conv

* Create fused_bias_leakyrelu_npu.cpp

Add NPU adapter for fused_bias_leaky_relu operator

* Update fused_bias_leakyrelu_npu.cpp

* Update fused_bias_leakyrelu_npu.cpp

* Update ops.md

* Update ops.md

* Update fused_bias_leakyrelu_npu.cpp

* Update fused_bias_leakyrelu_npu.cpp

* Update test_fused_bias_leakyrelu.py

* Update fused_bias_leakyrelu.py

* Update test_fused_bias_leakyrelu.py

* Update fused_bias_leakyrelu.py

* Update test_fused_bias_leakyrelu.py

* Update ops.md

* amend for CI

* bugfix

* amend ops.md

* Update test_fused_bias_leakyrelu.py

* clean code

* bugfix

* clean code

* Update fused_bias_leakyrelu_npu.cpp

* Update fused_bias_leakyrelu_npu.cpp

Co-authored-by: wangjiangben <wangjiangben_hw@126.com>
Co-authored-by: ckirchhoff <515629648@qq.com>
Co-authored-by: wangjiangben-hw <111729245+wangjiangben-hw@users.noreply.github.com>
Co-authored-by: Zaida Zhou <58739961+zhouzaida@users.noreply.github.com>
Co-authored-by: zcc-zjut <zcczxy2019@163.com>
Co-authored-by: wangxiaoxin_sherie <wangxiaoxin7@huawei.com>
Co-authored-by: momo609 <963372609@qq.com>
2022-12-13 11:13:46 +08:00
Zhengwentai SUN 4c4ac6b43f
[Docs] Fix a typo in CONTRIBUTING.md (#2485) 2022-12-12 19:50:53 +08:00
Zaida Zhou 4e67e481a0
[Fix] Fix ut caused by the new version of packaging (#2482) 2022-12-11 17:59:11 +08:00
wangjiangben-hw 37aa6dd04c
[Docs] Replace NPU with Ascend in installation documentation (#2469)
* update NPU --> ASCEND

* update docs

* update

* update docs

* Update docs/en/get_started/build.md

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

* Update docs/zh_cn/get_started/build.md

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

* Update docs/zh_cn/get_started/build.md

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

* Update docs/zh_cn/get_started/build.md

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

* Update docs/zh_cn/get_started/build.md

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

* Update docs/en/get_started/build.md

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

* Update docs/en/get_started/build.md

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

* Update docs/en/get_started/build.md

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

* Update docs/en/get_started/build.md

* Update docs/zh_cn/get_started/build.md

Co-authored-by: Zaida Zhou <58739961+zhouzaida@users.noreply.github.com>
2022-12-07 15:07:08 +08:00
vansin c69d5c4ce1
[Doc] Update qq group link (#2453)
* [Doc] update qq group link

* [Doc] update qq group link

* [Doc] update qq and zhihu link
2022-12-06 17:40:37 +08:00
Range King f3a624e322
[Doc] fix typos in EN contributing.md (#2462) 2022-12-06 17:00:05 +08:00
mengpenghui 49d891754b
[Feature] Support modulated_deform_conv with cambricon MLU backend (#2411)
* [Feature] Support modulated_deform_conv with cambricon MLU backend

* fix error of torch_mlu

* modify with commit suggestion

* Update modulated_deform_conv.py

* Update mmcv/ops/modulated_deform_conv.py

Co-authored-by: Zaida Zhou <58739961+zhouzaida@users.noreply.github.com>
2022-12-04 17:46:44 +08:00
SUNYC c1712ee290
[Enhance] Add conf_path in PetrelBackend (#2459)
* feat: add conf_path in PetrelBackend

* fix: add conf_path in MockPetrelClient

* fix: adjust parameters order
2022-11-28 11:48:13 +08:00
BayMax_BHL ece11bc134
Update the url of pyupgrade pre-commit hook (#2448) 2022-11-23 16:55:45 +08:00