1. 29 Aug, 2021 1 commit
    • Eugene Liu's avatar
      Add DCN and Modulated DCN CPU implementation (#1278) · e621e08d
      Eugene Liu authored
      * 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
      e621e08d
  2. 23 Aug, 2021 1 commit
  3. 23 Jul, 2021 1 commit
    • Haodong Duan's avatar
      [Improvement] Improve digit_version & use it for version_checking (#1185) · ef48a473
      Haodong Duan authored
      * 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.
      ef48a473
  4. 20 Jul, 2021 1 commit
  5. 09 Jul, 2021 1 commit
  6. 29 Jun, 2021 1 commit
  7. 16 Jun, 2021 1 commit
  8. 11 Jun, 2021 2 commits
    • Shilong Zhang's avatar
      Refactor the baseclass related to transformer (#978) · e05fb560
      Shilong Zhang authored
      
      
      * minor changes
      
      * change to modulist
      
      * change to Sequential
      
      * replace dropout with attn_drop and proj_drop in MultiheadAttention
      
      * add operation_name for attn
      
      * add drop path and move all ffn args to ffncfgs
      
      * fix typo
      
      * fix a bug when use default value of ffn_cfgs
      
      * fix ffns
      
      * add deprecate warning
      
      * fix deprecate warning
      
      * change to pop kwargs
      
      * support register FFN of transformer
      
      * support batch first
      
      * fix batch first wapper
      
      * fix forward wapper
      
      * fix typo
      
      * fix lint
      
      * add unitest for transformer
      
      * fix unitest
      
      * fix equal
      
      * use allclose
      
      * fix comments
      
      * fix comments
      
      * change configdict to dict
      
      * move drop to a file
      
      * add comments for drop path
      
      * add noqa 501
      
      * move bnc wapper to MultiheadAttention
      
      * move bnc wapper to MultiheadAttention
      
      * use dep warning
      
      * resolve comments
      
      * add unitest:
      
      * rename residual to identity
      
      * revert runner
      
      * msda residual to identity
      
      * rename inp_identity to identity
      
      * fix name
      
      * fix transformer
      
      * remove key in msda
      
      * remove assert for key
      Co-authored-by: default avatarHIT-cwh <2892770585@qq.com>
      Co-authored-by: default avatarbkhuang <congee524@gmail.com>
      Co-authored-by: default avatarWenwei Zhang <40779233+ZwwWayne@users.noreply.github.com>
      e05fb560
    • Dmitry Sidnev's avatar
      [Feature] enable exporting to onnx for PointRend (#953) · a88d1d28
      Dmitry Sidnev authored
      
      
      * Fix export to onnx for PointRend
      
      * Fix codestyle
      
      * Fix codestyle
      
      * Fix type in docstring
      
      * Minor fix
      
      * Fix export with custom ops
      
      * Fix codestyle
      
      * Add tests for bilinear_grid_sample function
      
      * Remove redundant operation and rename variables
      
      * Fix bug in bilinear_grid_sample and update test
      
      * Fix getting batch size
      
      * skip torch==1.3.1
      
      * remove unused import
      
      * fix lint
      
      * support export with batch
      
      * fix dynamic clip
      
      * skip test for torch<1.5.0
      
      * Add docstrings and comments
      
      * Minor fix
      
      * Recover clipping code
      
      * Fix clamping in pytorch 1.7.0
      
      * Fix bilinear_grid_sampler
      
      * Minor fix
      Co-authored-by: default avatarmaningsheng <maningsheng@sensetime.com>
      a88d1d28
  9. 31 May, 2021 1 commit
    • SemyonBevzuk's avatar
      [Feature] NMS update (#957) · bf2c9fa8
      SemyonBevzuk authored
      * Add score_threshold and max_num to NMS
      
      * Fix codestyle
      
      * Fix codestyle
      
      * Fix inds in nms
      
      * Update nms docstring
      
      * Move score_threshold and max_num arguments
      
      * Fix args order in docstring
      
      * fix lint of c++ file
      
      * Remove torch.onnx.is_in_onnx_export() and add max_num to batched_nms for separate classes.
      
      * Rewrote max_num handling in NMSop.symbolic
      
      * Added processing max_output_boxes_per_class when exporting to TensorRT
      
      * Added score_threshold and max_num for NMS in test_onnx.py and test_tensorrt.py
      
      * Remove _is_value(max_num)
      
      * fix ci errors with torch==1.3.1
      
      * Update test_batched_nms in test_nms.py
      
      * Added tests for preprocess_onnx
      
      * Moved 'test_tensorrt_preprocess.py' and 'preprocess', updated 'remove_tmp_file'.
      
      * Update mmcv/tensorrt/__init__.py
      
      * Fix segfault torch==1.3.1 (remove onnx.checker.check_model)
      
      * Returned 'onnx.checker.check_model' with torch version check
      
      * Changed torch version from 1.3.1 to 1.4.0
      
      *...
      bf2c9fa8
  10. 25 May, 2021 3 commits
  11. 24 May, 2021 1 commit
  12. 23 May, 2021 1 commit
  13. 13 May, 2021 1 commit
  14. 12 May, 2021 1 commit
    • jeffreykuang's avatar
      Add pixel group and contour expand ops (#993) · 2623fbf2
      jeffreykuang authored
      * add pixel group ops
      
      * reformatting
      
      * formatting&rm auto
      
      * Add citation
      
      * Add contour expand
      
      * c++ linting
      
      * Add unit tests with Tensor
      
      * rm model.pth
      
      * rename
      
      * c++ linting
      
      * c++ linting
      
      * Rename variables
      2623fbf2
  15. 10 May, 2021 1 commit
    • v-qjqs's avatar
      Support custom operators cummax and cummin for onnxruntime (#1010) · 934b549e
      v-qjqs authored
      * support custom op `mmcv::cummax` for onnxruntime in mmcv
      
      * fix clang-format lint error
      
      * support mmcv::cummin, reformat codes
      
      * fix merge from master
      
      * add docs for mmcv::cummax and mmcv::cummin
      
      * format doc
      
      * add assertion for torch version, when exporting `cummax` to onnx
      
      * add more comments for torch version
      
      * handle exporting to onnx in `soft_nms`
      
      * commit for test_onnx
      
      * remove `is_in_onnx_export` in softnms
      
      * add more comments
      
      * fix c++ lint error
      
      * add known issues doc for `cummax`
      
      * fix known issues doc
      934b549e
  16. 01 May, 2021 1 commit
    • v-qjqs's avatar
      [Feature]: Support corner_pool related custom operators for onnxruntime in mmcv (#997) · db6b0542
      v-qjqs authored
      * supports for onnxruntime custom op `mmcv::MMCVTopPool`
      
      * supports for onnxruntime custom op `mmcv::MMCVCornerPool`, involving TopPool, BottomPool, LeftPool and RightPool
      
      * add unittest for corner_pool
      
      * supports mmcv::CornerPool without memcpy
      
      * add docs for mmcv::CornerPool
      
      * re-add docs for mmcv::CornerPool
      
      * fix output dtype doc
      
      * reformat
      
      * format with pre-commit
      
      * format
      
      * fix lint error, by using google clang-format style for c/c++
      db6b0542
  17. 27 Apr, 2021 1 commit
  18. 23 Apr, 2021 1 commit
    • ZhangShilong's avatar
      [Feature]: support Multi-Scale-DeformAttention in deformable-detr (#878) · 54a7ebb4
      ZhangShilong authored
      * add c++ ms_deform_atten
      
      * fix cpp lint
      
      * fix cpp lint
      
      * clang format
      
      * remove cmakefile
      
      * google style
      
      * clang-format precommit
      
      * use clang-format-lint-action
      
      * add transformer base class
      
      * add merge
      
      * add docstr
      
      * add pyargs
      
      * fix according to commments
      
      * resiger module
      
      * change to use basemodule
      
      * add _ between build function
      
      * split the name
      
      * fix according to comments
      
      * fix lint and fix unitest
      
      * fix cpp lint
      
      * fix bug of deformdetr_atten
      
      * fix drop out
      
      * fix residual
      
      * use CUDA_1D_KERNEL_LOOP
      54a7ebb4
  19. 19 Apr, 2021 1 commit
    • Wang Xinjiang's avatar
      [Feature]: Add Rotated ROI align op for pytorch (cpu&cuda), parrots (cpu&cuda)... · ee041cec
      Wang Xinjiang authored
      
      [Feature]: Add Rotated ROI align op for pytorch (cpu&cuda), parrots (cpu&cuda) and onnxruntime (cpu) (#933)
      
      * add roi_align_rotated
      
      * code format
      
      * Add align key to roi align rotated
      
      * Add clockwise for rotated roi align
      
      * fix bugs in onnx export
      
      * Add docstring for RoIAlignRotated
      
      * remove cuda unittest
      
      * Reformat c++ code
      
      * add onnx roi align rotated file
      
      * fix unittest
      
      * Add  cpu and float64 of cuda support for parrots
      
      * code format
      
      * Add unified header to roi align rotated
      Co-authored-by: default avatarluopeichao <luopeichao@sensetime.com>
      ee041cec
  20. 12 Apr, 2021 1 commit
  21. 09 Apr, 2021 1 commit
  22. 06 Apr, 2021 1 commit
    • tangyanf's avatar
      [feature]:add onnxruntime custom op grid_sample (#916) · 83cf25b2
      tangyanf authored
      * add onnxruntime custom op grid_sample
      
      * update code
      
      * update code
      
      * update code
      
      * update code
      
      * update code
      
      * update code
      
      * update code
      
      * update code
      
      * update code
      
      * update code
      
      * update code
      
      * update code
      
      * update code
      
      * update code
      83cf25b2
  23. 30 Mar, 2021 1 commit
    • q.yao's avatar
      [Feature] : Add grid_sampler TensorRT Plugin (#865) · 9d80f56a
      q.yao authored
      * add grid sample trt support
      
      * fix align_corners=True
      
      * change 'intep' to 'interp', fix bugs of grid sampler, better test script
      
      * remove unused import
      
      * move source comment to the top of trt_grid_sampler_kernel.cu
      9d80f56a
  24. 21 Mar, 2021 1 commit
  25. 11 Mar, 2021 1 commit
  26. 08 Mar, 2021 1 commit
  27. 26 Feb, 2021 2 commits
    • z55250825's avatar
      Add new parrots extension implementation for all ops (#794) · 48d99025
      z55250825 authored
      * delete all parrots file
      add bbox_overlaps new parrots op impl
      
      * support first new impl parrts op (bbox_overlaps)(success test)
      
      * add box_iou_rotated op, test succeed
      
      * add carafe and carafe_naive op, test succeed (one parrots bug need fix)
      
      * add cc_attention op, test success
      
      * add corner_pool op, test success
      
      * add parrots op deform_conv, test success
      
      * add deform_roi_pool op, test success (but has question)
      
      * add focal loss op, test success (gradcheck)
      
      * add masked_conv2d op, test success
      
      * add modulated_deform_conv op, test success
      
      * add nms and nms_rotated op, test success
      
      * add psamask op, test success
      
      * add roi_align op, test_success
      
      * add roi_pool op, test success
      
      * add sync_bn op, test success
      
      * add tin_shift op, test success
      
      * fix test_deform_roi_pool, add parrots test
      
      * skip test_onnx because parrots does not support onnx
      
      * fix c++ lint
      
      * fix python lint
      
      * fix python lint
      48d99025
    • RunningLeon's avatar
      Fix pytorch2onnx failed for interpolate op with PyTorch==1.6.0(mmdet#4646) (#848) · 72e4cc12
      RunningLeon authored
      * Fix pytorch2onnx for yolov3 with torch==1.6.0
      
      * update and add test for F.interpolate
      
      * add test_onnx.py with build_cuda
      72e4cc12
  28. 23 Feb, 2021 1 commit
    • q.yao's avatar
      [Feature] : Add NonMaxSuppression TensorRT Plugin (#787) · 1ee5315e
      q.yao authored
      * start trt plugin prototype
      
      * Add test module, modify roialign convertor
      
      * finish roi_align trt plugin
      
      * fix conflict of RoiAlign and MMCVRoiAlign
      
      * fix for lint
      
      * fix test tensorrt module
      
      * test_tensorrt move import to test func
      
      * add except error type
      
      * add tensorrt to setup.cfg
      
      * code format with yapf
      
      * fix for clang-format
      
      * move tensorrt_utils to mmcv/tensorrt, add comments, better test module
      
      * fix line endings, docformatter
      
      * isort init, remove trailing whitespace
      
      * add except type
      
      * fix setup.py
      
      * put import extension inside trt setup
      
      * change c++ guard, update pytest script, better setup, etc
      
      * sort import with isort
      
      * sort import with isort
      
      * move init of plugin lib to init_plugins.py
      
      * add scatternd, nms plugin (WIP)
      
      * fix bugs of trt_nms
      
      * add trt nms test module
      
      * fix bugs of scatternd
      
      * code optimize, add comment about nms kernel
      
      * fix transform_if bug of t...
      1ee5315e
  29. 04 Feb, 2021 1 commit
    • tangyanf's avatar
      add ort nms op (#803) · be2616a0
      tangyanf authored
      * add ort nms op
      
      * fit lint check
      
      * fix lint check
      
      * update code
      
      * fix lint check
      
      * update code
      
      * update code
      
      * update code
      
      * update code
      
      * update code
      
      * update code
      be2616a0
  30. 20 Jan, 2021 1 commit
  31. 08 Jan, 2021 1 commit
  32. 06 Jan, 2021 1 commit
    • q.yao's avatar
      [Feature]: Add custom operators support for TensorRT in mmcv (#686) · 0de9e149
      q.yao authored
      
      
      * start trt plugin prototype
      
      * Add test module, modify roialign convertor
      
      * finish roi_align trt plugin
      
      * fix conflict of RoiAlign and MMCVRoiAlign
      
      * fix for lint
      
      * fix test tensorrt module
      
      * test_tensorrt move import to test func
      
      * add except error type
      
      * add tensorrt to setup.cfg
      
      * code format with yapf
      
      * fix for clang-format
      
      * move tensorrt_utils to mmcv/tensorrt, add comments, better test module
      
      * fix line endings, docformatter
      
      * isort init, remove trailing whitespace
      
      * add except type
      
      * fix setup.py
      
      * put import extension inside trt setup
      
      * change c++ guard, update pytest script, better setup, etc
      
      * sort import with isort
      
      * sort import with isort
      
      * move init of plugin lib to init_plugins.py
      
      * resolve format and add test dependency: tensorrt
      
      * tensorrt should be installed from source not from pypi
      
      * update naming style and input check
      
      * resolve lint error
      Co-authored-by: default avatarmaningsheng <maningsheng@sensetime.com>
      0de9e149
  33. 31 Dec, 2020 1 commit
    • RunningLeon's avatar
      [Feature] add onnx simplify (#751) · 83732ec2
      RunningLeon authored
      * [Enhance]: add onxx simplify
      
      * add simple doc
      
      * add unit test
      
      * update docstring
      
      * resolve some comment
      
      * add test dependency:onnxoptimizer
      
      * Fix onnxruntime register empty libpath
      
      * test onnxruntime version
      
      * set checker to false
      
      * skip test_simplify for torch<1.5.0
      83732ec2
  34. 29 Dec, 2020 1 commit
    • tangyanf's avatar
      [Feature]: add custom op roialign for onnxruntime (#724) · 741e52dd
      tangyanf authored
      
      
      * add ort custom op roialign
      
      * Update roi_align.py
      
      * Update test_onnx.py
      
      * Update test_onnx.py
      
      * Update test_onnx.py
      
      * Update test_onnx.py
      
      * Update onnxruntime_register.cpp
      
      * Update roiAlign.h
      
      * Update roiAlign.cpp
      
      * lint modification
      
      * update roiAlign.cpp
      
      * lint check
      
      * lint check
      
      * lint fix
      
      * lint fix
      
      * fix lint
      
      * add link to commit
      Co-authored-by: default avatarmaningsheng <maningsheng@sensetime.com>
      741e52dd
  35. 25 Dec, 2020 1 commit
  36. 23 Dec, 2020 1 commit
    • q.yao's avatar
      [Feature]: Add custom operators support for onnxruntime in mmcv (#612) · 94810f22
      q.yao authored
      
      
      * add onnx support to roi_align and roi_pool
      
      * add softnms ort support
      
      * fix for lint
      
      * format cpp code with clang-format:google
      
      * add new empty line to the end of head files in onnxruntime
      
      * update to pytorch1.7
      
      * add test of softnms to onnxruntime
      
      * fix for lint
      
      * remote print in ops/info.py
      
      * change import order, fix for flake8
      
      * fix include
      
      * add assert torch>=1.7.0
      
      * [doc]: add document for onnxruntime custom operator
      
      * update onnxruntime version to v1.5.1 for softnms
      
      * remove doc menu
      
      * Resolve lint for markdown
      
      * resolve naming style in onnxruntime_op.md
      
      * Use old cpp apis, optimize test_onnx.py
      
      * Fixing strings in tests/test_ops/test_onnx.py
      
      * code format with yapf
      
      * fix soft_nms parrot
      
      * add import in onnxruntime setup, avoid conflict
      
      * fix doc and add assert
      
      * change cpp guard
      Co-authored-by: default avatarmaningsheng <maningsheng@sensetime.com>
      94810f22