1. 11 Mar, 2021 1 commit
  2. 08 Mar, 2021 1 commit
  3. 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
  4. 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 trt_nms_kernel
      
      * fix struct name
      
      * default nms offset=0, fix bugs of batched input
      
      * format with clang-format
      
      * onnx preprocess
      
      * much better nms implementation, no need to transfer memory between host and device
      
      * update preprocess_onnx
      
      * parse constant tensor from initializer in preprocess_onnx
      
      * update nms
      
      * remove unnecessary codes
      
      * workspace aligned address
      
      * format trt_plugin_helper.hpp
      
      * fix index memory bugs
      
      * set alignment to 16 by default
      
      * fix lint
      
      * fix nms offset
      
      * fix bugs of preprocess onnx
      
      * update test for nms
      
      * tensorrt only accept int32, not int64
      
      * update nms comments
      
      * fix indexing for scores in nms
      
      * update trt temp
      
      * make trt-nms compatiable to #803
      
      * fix lint
      
      * add docstring to trt_nms_kernel.cuda, add description to preprocess_onnx
      
      * add comment to score indexing
      
      * fix bugs of max output boxes
      Co-authored-by: default avatarmaningsheng <maningsheng@sensetime.com>
      1ee5315e
  5. 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
  6. 20 Jan, 2021 1 commit
  7. 08 Jan, 2021 1 commit
  8. 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
  9. 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
  10. 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
  11. 25 Dec, 2020 1 commit
  12. 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
  13. 18 Dec, 2020 1 commit
  14. 16 Dec, 2020 1 commit
  15. 13 Dec, 2020 1 commit
  16. 25 Nov, 2020 1 commit
    • BigBigDream's avatar
      Add box_iou_rotated, ml_nms_rotated and nms_rotated (#625) · a9787648
      BigBigDream authored
      
      
      * add box_iou_rotated, ml_nms_rotated and nms_rotated
      
      * fix lint
      
      * fix lint
      
      * fix .py lint
      
      * fix cpp lint
      
      * add newline at the end
      
      * add new line
      
      * fix unittest
      
      * config google style
      
      * fix lint
      
      * lint
      
      * lint
      
      * yapf
      
      * update
      
      * fix lint
      
      * fix lint
      
      * fix lint
      
      * fix
      
      * fix format
      
      * fix format
      
      * add modified from
      
      * add docstring and update others
      
      * update docstring
      
      * update docstring
      
      * update
      
      * fix bug
      
      * fix bug
      
      * fix bug
      Co-authored-by: default avatarCao Yuhang <yhcao6@gmail.com>
      a9787648
  17. 14 Nov, 2020 1 commit
  18. 31 Oct, 2020 1 commit
  19. 28 Oct, 2020 1 commit
  20. 26 Oct, 2020 1 commit
    • robin Han's avatar
      add unittest for onnx convert (#608) · 23b2bdbf
      robin Han authored
      * add unittest for onnx convert
      
      * build onnx and onnxruntime in CI
      
      * skip onnx op unit test while using CUDA
      
      * fix offset==0 case in NMS
      
      * remove tmp file used in test
      
      * delete tmp file before assert so that we can remove the tmp file anyway
      23b2bdbf
  21. 12 Sep, 2020 1 commit
    • Wenwei Zhang's avatar
      Mv wrappers into bricks and use wrappers in registry (#550) · c937d395
      Wenwei Zhang authored
      * Mv wrappers into bricks and use wrappers in registry
      
      * resolve import issues
      
      * fix import issues
      
      * set nn op forward to torch 1.6.1
      
      * fix CI bug and add warning
      
      * Fix CI by using patch mock
      
      * mv warnings inside deprecated module's initialization
      c937d395
  22. 23 Aug, 2020 1 commit
  23. 15 Aug, 2020 2 commits
  24. 13 Aug, 2020 1 commit
  25. 03 Aug, 2020 1 commit
  26. 08 Jul, 2020 1 commit
    • Cao Yuhang's avatar
      Migrate op (#392) · d5cbf7ee
      Cao Yuhang authored
      * migrate op
      
      * migrate unittest
      
      * update build no torch
      
      * add back use_torch_vision for roi align
      
      * fix type and unit test
      
      * ignore test logging when no torch
      
      * fix no torch ci test
      
      * skip test registry
      
      * remove coverage report when no torch
      
      * fix mac ci order
      
      * install latest pillow when no torch
      
      * mv convws to brisk
      d5cbf7ee
  27. 30 Jun, 2020 1 commit
    • Jerry Jiarui XU's avatar
      Add cpu ops (#370) · 0970ae94
      Jerry Jiarui XU authored
      * update actiion
      
      * remove 1.3 cuda
      
      * reorder
      
      * add no torch
      
      * fixed version
      
      * make py3.8 on pt1.5
      
      * make py3.8 on pt1.5
      
      * remove torch 1.3
      
      * disable py3.8
      
      * pip
      
      * merge master with cuda compile fix
      
      * add cpu roi align
      
      * fixed test
      
      * fixed no torch
      
      * add CUDA_ARGS
      
      * use one line
      
      * gencode=61
      
      * seperate jobs
      
      * update lint
      
      * use parametrize test
      
      * formart and rename
      
      * unit test for all
      0970ae94
  28. 28 Jun, 2020 1 commit
    • zhuyuanhao's avatar
      add ext ops, support parrots (#310) · c0f5492e
      zhuyuanhao authored
      
      
      * add ext ops, support parrots
      
      * fix lint
      
      * fix lint
      
      * update op from mmdetection
      
      * support non-pytorch env
      
      * fix import bug
      
      * test not import mmcv.op
      
      * rename mmcv.op to mmcv.ops
      
      * fix compile warning
      
      * 1. fix syncbn warning in pytorch 1.5
      2. support only cpu compile
      3. add point_sample from mmdet
      
      * fix text bug
      
      * update docstrings
      
      * fix line endings
      
      * minor updates
      
      * remove non_local from ops
      
      * bug fix for nonlocal2d
      
      * rename ops_ext to _ext and _ext to _flow_warp_ext
      
      * update the doc
      
      * try clang-format github action
      
      * fix github action
      
      * add ops to api.rst
      
      * fix cpp format
      
      * fix clang format issues
      
      * remove .clang-format
      Co-authored-by: default avatarKai Chen <chenkaidev@gmail.com>
      c0f5492e