q.yao
4c8c34d354
[Feature] Enable faster rcnn split onnxruntime ( #27 )
...
* fix custom ops support, fix multiple mark bug, add name mapping
* check if the value_info need to be added
* remove unnecessary print
* add nms implement
* two stage split wip
* add two stage split
* add split retinanet visualize
* add two stage split (wip)
* finish two stage split
* fix lint
* move parse string to mmdeploy.utils
* add func mark count dict
* use assert_cfg_valid
* update func count before add Mark
* fix dynamic shape support
2021-08-13 10:06:28 +08:00
hanrui1sensetime
f8b62ae4d0
[Feature] Support NCNN inference tests ( #34 )
...
* add inference test
* fix for review comments
* add inference test results table
* fix grammer errors
* fix typo
2021-08-12 17:38:38 +08:00
RunningLeon
7dbc12d23f
[Feature]: Support FCN,DeeepLabV3, DeepLabV3Plus in mmseg with ONNXRuntime and TensorRT ( #31 )
...
* fix mask empty result
* support fcn exporting to ONNX for ort and trt in whole mode
* resolve comments
* remove unnecessary code
* update prepare_input
* rewrite psp_head & aspp_head
* test fcn deeplabv3 deeplabv3plus with trt
2021-08-12 16:44:16 +08:00
AllentDan
dcb88e4439
[Feature] Add ppl backend. ( #32 )
...
* add ppl support
* save
* add ppl speed test
* drop "add ppl speed test"
This reverts commit 467504a23074a2defdadeff9819c8d19bfefda71.
* add ppl backend
* resolve comments
* fix baseDeployClassifier
2021-08-12 14:44:10 +08:00
hanrui1sensetime
4f530bc758
[Docs] Add docs of ncnn deployment ( #33 )
...
* add docs
* Fix end-of-file error
* Fix end-of-file error
* add ncnn in README.md
* reply to AllentDan comments
* fix grammar error of docs
2021-08-10 17:04:58 +08:00
hanrui1sensetime
e05521c933
[Feature] Merge NCNN deployment to grimoire based on mmcls - revert [ #25 ]( https://github.com/grimoire/deploy_prototype/pull/25 ) ( #30 )
...
* add
* change VulkanSDK to 1.2.176.1
* add ncnn cmakelist
* add ncnn source code as third party
* add all ncnn
* ncnn compile passed
* onnx2ncnn correctly
* fix code style
* merge_as_grimoire_design, only backend_ops, manually register.
* remove data and test sh
* remove build example
* remove config ncnn
* remove onnx2ncnn intermediate files
* remove other files auto-generated
* remove vulkan tools
* remove Vulkan, gitignore new rules, __init__ new lines
* rollback __init__ to grimoire
* remove pytorch version pending
* grimoire comments reply 1, 3, 4
* reply comment 5,6,7
* add auto definer, add python register
* fix lint
* add ncnn deploy support
* add model_wrapper, fix a typo bug, and add code comment for onnx2ncnn(WIP)
* add model wrapper ncnn
* fix lint
* fix pep8
* fix pre-commit-config.yaml paths
* fix import
* fix lint
* remove sys.path.append
* remove sys
* isort fix
* fix double quoted
* fix trailing space
* try fix isort
* fix clang-format-9
* fix requests
* fix all comments
* Fix typo
* test code for grimoire
* fix ops register
* new definere
* fix visualization of mmcls
* remove temp
* fix flake8
* fix seed-isort-config
* fix thirdparty
* fix thirdparty
* fix yapf
* fix third_party_sort
* fix third party
* fix clang-format
* try fix clang-format
* try to fix clang format 9 customreshape
* try fix clang-format-9
* try fix clang-format-9
* try fix clang-format-9
* try fix ext
* fix onnx2ncnn
* Fix comments
* Fix Comments
* Fix Comments
* Fix Comments
* Fix conflict
* Fix flake8
* Update .isort.cfg
* Update ncnn_ext.cpp
* Update ncnn_ext.cpp
* fix missing ncnn backend code
* delete out of date comments of gather.cpp
* add DeployBaseClassifier
* add return -100 error
* clear out-of-date to do comments
Co-authored-by: 韩睿 <SENSETIME\hanrui1@cn0614008774l.domain.sensetime.com>
Co-authored-by: grimoire <yaoqian@sensetime.com>
Co-authored-by: grimoire <streetyao@live.com>
2021-08-05 14:06:47 +08:00
AllentDan
f607f1965b
[Feature] Align datasets ( #29 )
...
* add test tool and re-orgnize apis.utils
* handle topk and refine codes
* add cls export and test support
* fix lint
* move ort into wrapper
* resolve conflicts
* resolve comments
* resolve conflicts
* resolve comments and padding mrcnn
* resolve comments
2021-08-03 17:12:44 +08:00
RunningLeon
90ce7207da
[Feature] Support Mask R-CNN with ONNX Runtime and TensorRT ( #24 )
...
* add grid_sampler plugin
* update test_mixins to support maskrcnn
* add config for maskrcnn exporting to onnx
* fix lints
* fix lint
* resolve comments
* fix lint
* fix lint
* fix lint
* support trt8
* move mark to single_stage
* fix lint
* remove mark in single stage
2021-07-28 19:02:43 +08:00
grimoire
53916af4e3
fix multilevel roi align on trt8
2021-07-28 18:45:21 +08:00
q.yao
6ff8e96e71
add TRT8 support ( #23 )
2021-07-28 11:27:07 +08:00
grimoire
77080bd931
fix onnxruntime roi_align on onnxruntime1.8
2021-07-26 15:57:13 +08:00
q.yao
04a8046864
[Feature] add register for ort custom op ( #21 )
...
* add register for ort custom op
* ort_mmcv_util->ort_util
* ortApi->kOrtApi
2021-07-23 17:16:07 +08:00
q.yao
ff39377833
[Feature] Retinanet split support ( #19 )
...
* prepare for split
* mark multiclass nms
* redesign mark decorator to handle input/output names better (#17 )
* redesign mark decorator to handle input/output names better
* fixed a bug in rename_value; robustify extract_model
* fix lint
* fix log in deploy pipeline
* fix onnxruntime config
* fix lint
* update connect init
* rename is_inspecting
* simplify function_mark
Co-authored-by: Li Zhang <lzhang329@gmail.com>
2021-07-23 13:18:32 +08:00
AllentDan
9647ab12db
Add cls visualization ( #18 )
...
* add cls visualization tool
* fix lint
* remove reduandant
* align result
2021-07-22 09:58:53 +08:00
RunningLeon
10a2385d01
Support exporting to ONNX for Faster R-CNN ( #20 )
...
* update rewriter for rpn head
* new nms implement
* update bbox_head to support fasterrcnn with tensorrt
* rewrite SingleRoIExtractor
* remove unnecessary import
* fix fcos and bbox_nms
* resolve comments
* resolve comments
Co-authored-by: grimoire <yaoqian@sensetime.com>
2021-07-21 19:46:23 +08:00
AllentDan
b9e64f9e1c
Add trt instance norm plugin ( #16 )
...
* add trt instance norm plugin
* last line empty
* fix clang format
* fix grid_sample clang format
* remove redundant
* fix lint
* refine codes
* fix clang format
* clang format
* clang format
* clang format
2021-07-16 16:05:09 +08:00
AllentDan
1718501b4f
[Feature] Support fsaf fcos ( #14 )
...
* add fcos and fsaf
* remove is_in_onnx_export
* fix lint
* fix lint
* remove forwards
2021-07-13 20:13:39 +08:00
RunningLeon
c4b7dad2ec
add visualization for mmdet ( #13 )
...
* add visualization for mmdet
* resolve comments
* update code, enable visualize on nvidia driver>11
Co-authored-by: grimoire <yaoqian@sensetime.com>
2021-07-13 17:21:02 +08:00
AllentDan
0eca9ebcbf
add docker ( #15 )
...
Need tests...
2021-07-13 08:45:42 +00:00
q.yao
7227de907d
use new rewriter ( #12 )
2021-07-12 16:31:37 +08:00
RunningLeon
9f0e2d4339
changed codebase structure ( #10 )
...
* add delta2bbox rewriter
* rename onnx2trt
* add rewriter: anchor_generator_single_level_grid_priors
* Revert "add rewriter: anchor_generator_single_level_grid_priors"
This reverts commit ac7cf272942c4787bf143c0d67e414b0d2603b75.
* update comments
* remove clamp rewriter
* remove unused func
* reconstruct codes
* remomve mark
* create export package for codebases
* remove grid_sampler symbolic
* reorganize nms parts
* fix conflicts
* update unittest
2021-07-12 16:26:44 +08:00
q.yao
3fa94f4424
[Feature] better tensorrt cpp code ( #11 )
...
* better tensorrt cpp code
* fix end of file
2021-07-12 10:01:52 +08:00
q.yao
342e195a1b
Update README.md
2021-07-10 16:16:11 +08:00
q.yao
8408ae2bcf
[Feature] Multi level roi align ( #9 )
...
* add multi level roi align
* better trt plugin code
* fix lint
* optimizer trt_multi_level_roi_align.cpp
* fix lint
2021-07-09 13:56:50 +08:00
RunningLeon
dae6a8ccf9
Rewrite delta2bbox ( #8 )
...
* add delta2bbox rewriter
* rename onnx2trt
* add rewriter: anchor_generator_single_level_grid_priors
* Revert "add rewriter: anchor_generator_single_level_grid_priors"
This reverts commit ac7cf272942c4787bf143c0d67e414b0d2603b75.
* update comments
* remove clamp rewriter
* remove unused func
2021-07-07 19:11:54 +08:00
lzhangzz
66300c0c74
Supports setting input/output names explicitly via mark decorator ( #4 )
...
* setting names of inputs and outputs via mark decorator
* fix bug in mark, move extract_model to mmdeploy/apis and add test cases
* remove fsaf rewrite, which is not needed any more after recent changes
* replace print with log and add fixture to clear test tmp file
2021-07-07 14:15:26 +08:00
q.yao
66a099faf9
[Feature] Apis unit test ( #7 )
...
* add apis test
* split torch2onnx impl, prepare for codebase test
* add is_available to backend
* lint
2021-07-05 12:51:43 +08:00
grimoire
dff06eeacc
fix lint
2021-07-01 18:50:16 +08:00
q.yao
52fd08febd
[Feature] much better retinanet ( #6 )
...
* better retinanet support
* prepare split export tensorrt
* optimizer cfg
* free anchor when static shape
* fix docstring
* use function rewriter instead of module rewriter on retinanet
* fix bug of mmcls tensorrt config
* add single stage mark, static shape support
2021-07-01 17:32:33 +08:00
q.yao
27880afdcd
[Feature] better retinanet support ( #5 )
...
* better retinanet support
* prepare split export tensorrt
* optimizer cfg
* free anchor when static shape
* fix docstring
2021-07-01 11:42:07 +08:00
grimoire
8fd4ef4d47
remove unused flag, fix lint
2021-06-29 10:23:52 +08:00
grimoire
e08dbf26b3
add CI
2021-06-29 10:10:15 +08:00
lzhangzz
ef41f69553
add model splitting support ( #1 )
...
* add function marker and model extractor
* add fsaf split & partial mask rcnn split, import extract.py
* 1. add value renaming 2. add apply_marks in config to turn on/off marks
* rewind changes on pytorch2onnx.py
Co-authored-by: q.yao <streetyao@live.com>
2021-06-28 20:35:15 +08:00
q.yao
5998d24766
[Feature] Add TensorRT batched NMS support ( #3 )
...
* add trt batched_nms plugin
* update trt batched nms
2021-06-25 19:31:16 +08:00
q.yao
6c47ee3d2a
add tensorrt support ( #2 )
2021-06-23 13:14:28 +08:00
grimoire
6eb2e89016
update cmakelists
2021-06-21 10:34:48 +08:00
grimoire
2bd96243e2
better mmdet support
2021-06-18 15:16:21 +08:00
maningsheng
2317ee659a
support retinanet pytorch2onnx
2021-06-17 17:37:08 +08:00
grimoire
b777d27bcf
add return value in deploy.py
2021-06-17 17:26:32 +08:00
grimoire
34caea27c1
use function rewriter convert classifier
2021-06-17 16:04:45 +08:00
grimoire
3bf3b9cdda
fix lint
2021-06-17 15:29:12 +08:00
grimoire
12792727e7
add configs, add convert pipeline
2021-06-17 15:28:23 +08:00
grimoire
5b2459570a
better register
2021-06-16 19:25:09 +08:00
grimoire
100ba694ce
add init
2021-06-16 17:56:17 +08:00
grimoire
93408c7cd8
add type annotation
...
add onnxruntime plugin support, add more custom ops
update function_rewriter, enable use origin function
add setup.cfg
update setup.cfg
2021-06-16 15:36:58 +08:00
grimoire
1e47821e49
add backend plugin build system
2021-06-15 20:44:45 +08:00
grimoire
f90ebf8c2c
add register
2021-06-11 13:26:05 +08:00
q.yao
b6d8d48d7c
Initial commit
2021-06-11 13:24:18 +08:00