1. 14 Dec, 2022 1 commit
    • jayggh's avatar
      [Feature] Add NPU adapter for Deformable RoIPool (#2481) · 46eb9ec5
      jayggh authored
      * 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
      46eb9ec5
  2. 13 Dec, 2022 1 commit
    • jayggh's avatar
      [Feature] Add FusedBiasLeakyRelu npu adapter (#2474) · 4c51afce
      jayggh authored
      
      
      * 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: default avatarZaida 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: default avatarwangjiangben <wangjiangben_hw@126.com>
      Co-authored-by: default avatarckirchhoff <515629648@qq.com>
      Co-authored-by: default avatarwangjiangben-hw <111729245+wangjiangben-hw@users.noreply.github.com>
      Co-authored-by: default avatarZaida Zhou <58739961+zhouzaida@users.noreply.github.com>
      Co-authored-by: default avatarzcc-zjut <zcczxy2019@163.com>
      Co-authored-by: default avatarwangxiaoxin_sherie <wangxiaoxin7@huawei.com>
      Co-authored-by: default avatarmomo609 <963372609@qq.com>
      4c51afce
  3. 04 Dec, 2022 1 commit
  4. 16 Nov, 2022 1 commit
    • ZShaopeng's avatar
      [Feature] Support MultiScaleDeformableAttn with cambricon MLU backend (#2396) · 12442667
      ZShaopeng authored
      
      
      * [Feature] Support MsDeformAttnForward with cambricon MLU backend
      
      * [Feature] Support MsDeformAttnForward with cambricon MLU backend
      
      * [Feature] Support MsDeformAttnForward with cambricon MLU backend
      
      * [Feature] Support MsDeformAttnForward with cambricon MLU backend
      
      * [Feature] Support MsDeformAttnForward with cambricon MLU backend
      
      * [Feature] Support MsDeformAttnForward with cambricon MLU backend
      
      * [Feature] Support ms with cambricon MLU backend
      
      * [Feature] Support msdeformattn_1104 with cambricon MLU backend
      
      * [Feature] Support ms with cambricon MLU backend
      
      * [Feature] Support MsDeformAttn_1108 with cambricon MLU backend
      
      * [Feature] Support MsDeformAttn_1108 with cambricon MLU backend
      
      * [Feature] Support MsDeformAttn_1108 with cambricon MLU backend
      
      * [Feature] Support MsDeformAttn with cambricon MLU backend
      
      * [Feature] Support MsDeformAttn with cambricon MLU backend
      
      * [Feature] Support MsDeformAttn with cambricon MLU backend
      
      * [Feature] Support MsDeformAttn with cambricon MLU backend
      
      * [Feature] Support MsDeformAttn with cambricon MLU backend
      
      * [Feature] Support MsDeformAttn with cambricon MLU backend
      
      * [Feature] Support MsDeformAttn with cambricon MLU backend
      
      * [Feature] Support MsDeformAttn with cambricon MLU backend
      
      * [Feature] Support MsDeformAttn with cambricon MLU backend
      
      * [Feature] Support MsDeformAttn with cambricon MLU backend
      
      * Revert "[Feature] Support MsDeformAttn with cambricon MLU backend"
      
      This reverts commit 27963cccc86d240852a40a2c1510147a3e9f269f.
      
      * [Feature] Support MsdeformAttn with cambricon MLU backend
      
      * [Feature] Support MsDeformAttn with cambricon MLU backend
      
      * [Feature] Support MsdeformAttn with cambricon MLU backend
      Co-authored-by: default avatarzhangshaopeng <wicky-zheng@outlook.com>
      Co-authored-by: default avatarwicky-zheng <root@notebook-mmcv-290m8-torch1-6-y0yv66-notebook-0.notebook-mmcv-290m8-torch1-6-y0yv66.ns-ad8b689a0ecd41fcb4469c803dcd539d.svc.cluster.local>
      12442667
  5. 15 Nov, 2022 1 commit
    • ckirchhoff's avatar
      [Feature] Support masked_conv in Ascend device (#2387) · de6b0021
      ckirchhoff authored
      
      
      * 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: default avatarZaida 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
      Co-authored-by: default avatarwangjiangben <wangjiangben_hw@126.com>
      Co-authored-by: default avatarwangjiangben-hw <111729245+wangjiangben-hw@users.noreply.github.com>
      Co-authored-by: default avatarZaida Zhou <58739961+zhouzaida@users.noreply.github.com>
      Co-authored-by: default avatarzcc-zjut <zcczxy2019@163.com>
      Co-authored-by: default avatarwangxiaoxin_sherie <wangxiaoxin7@huawei.com>
      Co-authored-by: default avatarmomo609 <963372609@qq.com>
      de6b0021
  6. 08 Nov, 2022 1 commit
  7. 03 Nov, 2022 1 commit
  8. 28 Oct, 2022 2 commits
  9. 24 Oct, 2022 2 commits
  10. 11 Oct, 2022 2 commits
    • CokeDong's avatar
      [Feature] Support PrRoI op for Parrots (#2280) · dd5b415d
      CokeDong authored
      * Support parrots extension for op PrRoI
      
      * Fix lint
      
      * Fix cpp lint
      
      * Fix testcase failure by false requires_grad in self-defined autograd Funtion
      
      * Fix issues
      
      * Fix flake8
      
      * Fix isort
      
      * Adaption for typechecking for PrRoIPoolFunction
      
      * Fix lint
      
      * Support only float32
      
      * bugfix
      dd5b415d
    • q.yao's avatar
      [Refactor] Refactor the nms3d op to support MLU (#2296) · c001e2fc
      q.yao authored
      * update iou3d
      
      * fix parrot
      
      * update to device
      
      * replace count_nonzero with fill
      
      * update build.yml
      c001e2fc
  11. 08 Oct, 2022 1 commit
  12. 30 Sep, 2022 1 commit
  13. 08 Sep, 2022 1 commit
    • ZShaopeng's avatar
      [Feature] Support RoipointPool3d with cambricon MLU backend (#2247) · 83bedf5a
      ZShaopeng authored
      * [Feature] Support RoipointPool3d with cambricon MLU backend
      
      * [Feature] Support RoipointPool3d with cambricon MLU backend
      
      * [Feature] Support RoipointPool3d with cambricon MLU backend
      
      * [Feature] Support RoipointPool3d with cambricon MLU backend
      
      * [Feature] Support RoipointPool3d with cambricon MLU backend
      83bedf5a
  14. 28 Aug, 2022 1 commit
  15. 23 Aug, 2022 1 commit
  16. 21 Aug, 2022 1 commit
  17. 19 Aug, 2022 1 commit
  18. 29 Jul, 2022 1 commit
  19. 23 Jul, 2022 1 commit
  20. 22 Jul, 2022 1 commit
  21. 29 Jun, 2022 1 commit
  22. 10 Jun, 2022 1 commit
  23. 09 Jun, 2022 1 commit
  24. 08 Jun, 2022 3 commits
  25. 25 May, 2022 1 commit
  26. 20 May, 2022 2 commits
  27. 18 May, 2022 1 commit
  28. 09 May, 2022 1 commit
  29. 29 Apr, 2022 1 commit
    • WilliamKyle's avatar
      [Feature] Add rotated_feature_align cpu & onnxruntime implementation (#1878) · b30755ee
      WilliamKyle authored
      * add rotated_feature_align cpu implementation
      
      * add rotated_feature_align onnxruntime implementation
      
      * Update code for advices from grimoire
      
      Remove useless comment from mmcv/ops/csrc/pytorch/cpu/rotated_feature_align.cpp
      
      Replace ambiguous function name atomicAdd in mmcv/ops/csrc/pytorch/cpu/rotated_feature_align.cpp
      
      Simplify unit test with parameter in tests/test_ops/test_rotated_feature_align.py
      
      Use fma in interpolate in mmcv/ops/csrc/onnxruntime/cpu/rotated_feature_align.cpp mmcv/ops/csrc/pytorch/cpu/rotated_feature_align.cpp
      
      * Inline the function to reduce the overhead of the function call
      
      Use fma in interpolate
      b30755ee
  30. 26 Apr, 2022 1 commit
  31. 25 Apr, 2022 1 commit
  32. 16 Apr, 2022 2 commits
    • Zaida Zhou's avatar
      [Refactor] Move is_mlu_available to mmcv/utils/device_type.py (#1884) · 03b38a46
      Zaida Zhou authored
      * [Refactor] Move is_mlu_available to mmcv/utils/device_type.py
      
      * remove comma
      
      * fix isort
      03b38a46
    • Jiazhen Wang's avatar
      [Feature] Add several MLU ops (#1563) · 362a90f8
      Jiazhen Wang authored
      
      
      * [Feature] Add roiaware pool3d ops from mmdet3d (#1382)
      
      * add ops (roiaware pool3d) in mmdet3d
      
      * refactor code
      
      * fix typo
      Co-authored-by: default avatarzhouzaida <zhouzaida@163.com>
      
      * [Feature] Add iou3d op from mmdet3d (#1356)
      
      * add ops (iou3d) in mmdet3d
      
      * add unit test
      
      * refactor code
      
      * refactor code
      
      * refactor code
      
      * refactor code
      
      * refactor code
      Co-authored-by: default avatarzhouzaida <zhouzaida@163.com>
      
      * [Fix] Update test data for test_iou3d (#1427)
      
      * Update test data for test_iou3d
      
      * delete blank lines
      Co-authored-by: default avatarZaida Zhou <58739961+zhouzaida@users.noreply.github.com>
      
      * [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: default avatarzhouzaida <zhouzaida@163.com>
      
      * add mmdet3d op (#1425)
      Co-authored-by: default avatarzhouzaida <zhouzaida@163.com>
      
      * [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
      
      * Add CI for pytorch 1.10 (#1431)
      
      * [Feature] Upload checkpoints and logs to ceph (#1375)
      
      * [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
      
      * [Docs] Upload checkpoint to petrel oss
      
      * add infer_client method
      
      * Support uploading checkpoint to petrel oss
      
      * add check_exist method
      
      * refactor CheckpointHook
      
      * support uploading logs to ceph
      
      * rename var client to file_client
      
      * polish docstring
      
      * enhance load_from_ceph
      
      * refactor load_from_ceph
      
      * refactor TextLoggerHook
      
      * change the meaning of out_dir argument
      
      * fix test_checkpoint_hook.py
      
      * add join_paths method
      
      * remove join_paths and add _format_path
      
      * enhance unittest
      
      * refactor unittest
      
      * add a unittest for EvalHook when file backend is petrel
      
      * singleton pattern
      
      * fix test_clientio.py
      
      * deprecate CephBackend
      
      * add warning in load_from_ceph
      
      * fix type of out_suffix
      
      * enhance docstring
      
      * refactor unittest for petrel
      
      * refactor unittest for disk backend
      
      * update io.md
      
      * add concat_paths method
      
      * fix CI
      
      * mock check_exist
      
      * improve docstring
      
      * improve docstring
      
      * 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
      
      * rename check_exists to exists
      
      * refactor code and polish docstring
      
      * fix windows ci
      
      * add comment and polish docstring
      
      * 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
      
      * fix typo
      
      * fix error when mocking PetrelBackend
      
      * deprecate the conversion from Path to str
      
      * add docs for loading checkpoints with FileClient
      
      * rename keep_log to keep_local
      
      * refactor map_path
      
      * add _ensure_methods to ensure methods have been implemented
      
      * fix list_dir_or_file
      
      * rename _ensure_method_implemented to has_method
      
      * refactor
      
      * polish information
      
      * format information
      
      * bump version to v1.3.16 (#1430)
      
      * [Fix]: Update test data of test_tin_shift (#1426)
      
      * Update test data of test_tin_shift
      
      * Delete tmp.engine
      
      * add pytest raises asserterror test
      
      * raise valueerror, update test log
      
      * add more comment
      
      * Apply suggestions from code review
      Co-authored-by: default avatarZaida Zhou <58739961+zhouzaida@users.noreply.github.com>
      Co-authored-by: default avatarZaida Zhou <58739961+zhouzaida@users.noreply.github.com>
      
      * fix the wrong function reference bug in BaseTransformerLayer when batch_first is True (#1418)
      
      * [Docs] Add mmcv itself in the docs list (#1441)
      
      * Add mmcv itself in the docs list
      
      * modify link of docs
      
      * [Improve] improve checkpoint loading log (#1446)
      
      * [Feature] Support SigmoidFocalLoss with Cambricon MLU backend (#1346)
      
      * [Feature] Support SigmoidFocalLoss with Cambricon MLU backend
      
      * refactor MMCV_WITH_MLU macro define
      
      * refactor NFU_ALIGN_SIZE, PAD_DOWN and split_pipeline_num
      
      * delete extra fool proofing in cpp
      
      * [Feature] Support SigmoidFocalLossBackward with Cambricon MLU backend
      
      * fix macro definition in SigmoidFocalLoss
      
      * refactor mlu files into clang-format
      
      * refactor sigmoid focal loss test
      
      * refactor Sigmoid Focal Loss file structure.
      
      * fix python lint error
      
      * fix import torch_mlu error type
      
      * fix lint
      
      * refactor clang format style to google
      Co-authored-by: default avatarzhouzaida <zhouzaida@163.com>
      
      * [Feature] Support RoiAlign With Cambricon MLU Backend (#1429)
      
      * [Feature] Support NMS with cambricon MLU backend (#1467)
      
      * [Feature] Support BBoxOverlaps with cambricon MLU backend (#1507)
      
      * [Refactor] Format C++ code
      
      * [Refactor] include common_mlu_helper in pytorch_mlu_helper and refactor build condition
      
      * [Improve] Improve the performance of roialign, nms and focalloss with MLU backend (#1572)
      
      * [Improve] Improve the performance of roialign with MLU backend
      
      * replace CHECK_MLU with CHECK_MLU_INPUT
      
      * [Improve] Improve the perf of nms and focallosssigmoid with MLU backend
      
      * [Improve] Improve the performance of roialign with MLU backend (#1741)
      
      * [Feature] Support tin_shift with cambricon MLU backend (#1696)
      
      * [Feature] Support tin_shift with cambricon MLU backend
      
      * [fix] Add the assertion of batch_size in tin_shift.py
      
      * [fix] fix the param check of tin_shift in cambricon code
      
      * [fix] Fix lint failure.
      
      * [fix] Fix source file lint failure.
      
      * Update mmcv/ops/tin_shift.py
      
      [Refactor] Modify the code in mmcv/ops/tin_shift.py.
      Co-authored-by: default avatarZaida Zhou <58739961+zhouzaida@users.noreply.github.com>
      Co-authored-by: default avatarbudefei <budefei@cambricon.com>
      Co-authored-by: default avatarbudefei <budefei@cambricom.com>
      Co-authored-by: default avatarZaida Zhou <58739961+zhouzaida@users.noreply.github.com>
      
      * resolve conflicts and fix lint
      
      * fix mmcv.utils.__init__
      
      * fix mmcv.utils.__init__
      
      * Fix lints and change FLAG
      
      * fix setup and refine
      
      * remove a redundant line
      
      * remove an unnecessary 'f'
      
      * fix compilation error
      Co-authored-by: default avatardingchang <hudingchang.vendor@sensetime.com>
      Co-authored-by: default avatarzhouzaida <zhouzaida@163.com>
      Co-authored-by: default avatarq.yao <yaoqian@sensetime.com>
      Co-authored-by: default avatarZaida Zhou <58739961+zhouzaida@users.noreply.github.com>
      Co-authored-by: default avatarpc <luopeichao@sensetime.com>
      Co-authored-by: default avatarWenwei Zhang <40779233+ZwwWayne@users.noreply.github.com>
      Co-authored-by: default avatarq.yao <streetyao@live.com>
      Co-authored-by: default avatarTong Gao <gaotongxiao@gmail.com>
      Co-authored-by: default avatarYuxin Liu <liuyuxin@cambricon.com>
      Co-authored-by: default avatarzihanchang11 <92860914+zihanchang11@users.noreply.github.com>
      Co-authored-by: default avatarshlrao <shenglong.rao@gmail.com>
      Co-authored-by: default avatarzhouchenyang <zcy19950525@gmail.com>
      Co-authored-by: default avatarMrxiaofei <36697723+Mrxiaofei@users.noreply.github.com>
      Co-authored-by: default avatarbudefei <budefei@cambricon.com>
      Co-authored-by: default avatarbudefei <budefei@cambricom.com>
      362a90f8
  33. 15 Apr, 2022 1 commit
    • Danila Rukhovich's avatar
      [Enhance] Differentiable rotated IoU (#1854) · aee596d5
      Danila Rukhovich authored
      * 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
      aee596d5