Commit Graph

863 Commits (aaa880e59418ac567b8e2c34e92eb6d6f04c56e5)
 

Author SHA1 Message Date
hanrui1sensetime b8c19b35d2 fix mmedit 2.0 dump info for sdk (#1120) 2022-09-29 16:37:36 +08:00
AllentDan c0ae726ae5 remove deploy test loop and enable edit SDK (#1083) 2022-09-29 16:37:36 +08:00
lvhan028 581d1992ed update doc about codebase deployment (#1051)
* update doc about mmclassfication deployment

* update install mmdeploy part

* correct mmcls deployment commands

* reformat supported models

* add deployed model specification

* update doc about mmdetection deployment

* fix according to reviewer comments

* fix according to reviewer comments

* fix according to reviewer comments

* fix according to reviewer comments

* fix according to reviewer comments

* fix according to reviewer comments

* update doc about mmsegmentation deployment

* update doc about mmocr deployment

* check in cityscapes.png as an input image for converting mmsegmentation model

* update mmocr deployment

* update mmseg.md

* update mmseg.md

* update mmocr.md

* update sdk model inference for mmocr deployment

* update according to reviewer comments

* update

* update

* update mmedit

* update mmpose deployment

* check in face.png for mmedit deployment

* update

* fix according to reviewer comments

* remove duplicate doc

* update docs in english

* update codebase documents in chinese

* fix according to reviewerss comments

* update according reviewer comments

* ObjectDetection -> Object Detection

* InstanceSegmentation -> Instance Segmentation
2022-09-29 16:37:36 +08:00
AllentDan 4fc8828af8 fix ocr UT
fix ci and lint

fix det

fix cuda ci

fix mmdet test

update object detection

fix ut

fix layer norm ut

update ut

lock mmeit version

fix mmocr mmcls ut

add conftest.py

fix ocr ut

fix mmedit ci

install mmedit from source

fix rknn model and prepare_onnx_paddings__tensorrt UT

docstring

fix coreml export

update mmocr config

small test

recovery assert

fix ci
2022-09-29 16:37:36 +08:00
Xin Li 00a37df3de Dev 1.x cpp11 (#1086)
* ocr/short_scale_aspect_jitter.cpp scale_factor double to float not working on c++11

* ocr/short_scale_aspect_jitter.cpp scale_factor double to float not working on c++11

* ocr/short_scale_aspect_jitter.cpp scale_factor double to float not working on c++11

add install mmengine in docker file

* 1. ocr/short_scale_aspect_jitter.cpp scale_factor double to float not working on c++11

2. add install mmgine in dockerfile

3. add install_mmengine in circleci

* fix mmengine typo
2022-09-29 16:34:10 +08:00
tpoisonooo 2f7e61c55c fix(tools/profile.py): rename to avoid name conflict (#1087)
* fix(tools/profile.py): rename to avoid name conflict

* fix(docs): remove useless
2022-09-29 16:26:31 +08:00
tpoisonooo a53ffec757 improvement(ubuntu_utils.py): check upstream libopencv-dev version (#1068) (#1093) 2022-09-29 16:26:31 +08:00
hanrui1sensetime 89a9e92769 [Fix] Fix mmcls for cifar10 config on dev-1.x (#1056)
* fix mmcls cifar10 config

* fix dump-info for cifar10 config

* use regex instead of packlist

* remove constants unused

* fix while logic

* fix lint

* fix docformatter

* fix classification to avoid conflict
2022-09-29 16:26:31 +08:00
RunningLeon 144fcf7b3a fix github ci
add mim

update circle ci

fix tests

fix ci
2022-09-29 16:26:31 +08:00
q.yao d282503012
update detyaml (#1133) 2022-09-29 12:14:06 +08:00
lvhan028 613acb366c
fix prebuilt error (#1123) 2022-09-28 17:52:09 +08:00
hanrui1sensetime d7cbb395da
[Enhancement 2.0] mmdeploy for mmyolo (#1088)
* support for external codebase like mmyolo

* support for external export

* fix missing flake8

* fix comments

* add aenum

* add missing files

* fix condition

* refactor import_codebase

* fix mmyolo support

* fix lint

* add base codebase

* fix a strange clang-format

* fix import_codebase

* fix dependent codebase register

* wrap custom_model

* fix comment

* add ut
2022-09-28 16:30:29 +08:00
hanrui1sensetime 358c030ad9
fix mmedit 2.0 dump info for sdk (#1120) 2022-09-28 16:29:07 +08:00
AllentDan f26b352b7d
remove deploy test loop and enable edit SDK (#1083) 2022-09-28 16:28:24 +08:00
lvhan028 290d0d6e74
reorg demo/csrc (#1119)
* reorg demo/csrc

* disable det_cls and det_pose build
2022-09-28 11:47:00 +08:00
lvhan028 1da5464e11
reformat supported backends table in readme (#1109)
* reformat supported device and platforms

* use capital CPU
2022-09-27 20:05:32 +08:00
Chen Xin 0720ed8404
fix tracer (#1107) 2022-09-27 15:24:57 +08:00
Mengyang Liu 7da5c1408e
feat(CI): add rust-mmdeploy (#1100)
* Add CI of rust api

* Bug fixed

* Install Rust with actions

* Fix bug

* Fix bug

* Fix bug

* Fix bug

* Fix bug

* Add debugger-action

* Add debugger-action

* Fix bug

* Readd debugger

* Update mmdeploy dir path

* Update mmdeploy dir path

* Fix ld error

Co-authored-by: Liu Mengyang <liumengyang@Lius-MacBook-Pro.local>
2022-09-27 15:07:39 +08:00
Mengyang Liu 0effa59440
Split demos of C and C++ SDK into two subdirectories (#1099)
* Split demos of C and C++ SDK into two subdirectories

* Split demos of C and C++ SDK into two subdirectories

* Split demos of C and C++ SDK into two subdirectories

* Split demos of C and C++ SDK into two subdirectories

* Combine add_example
2022-09-27 13:40:04 +08:00
tpoisonooo c5e4fcffbc
docs(quantization.md): remove ppq commit (#1095) 2022-09-27 12:35:24 +08:00
tpoisonooo 14e31fb85a
fix(regression_test): use cuda:0 as default (#1020)
* fix(regression_test): use cuda:0 as default

* fix(pillar_scatter.py): fix scaternd rewrite
2022-09-26 16:11:43 +08:00
Li Zhang bf887cc8bc
[Enhancement] Refactor SDK pipeline (#938)
* unify C API naming

* fix demo and move apis/c/* -> apis/c/mmdeploy/*

* fix lint

* WIP refactor pipeline

* backward compatibility

* working pipeline demo

* add text det-recog demo

* add det-pose demo

* fix build

* fix demo

* add environment interface

* add environment to pass scheduler & model info at runtime

* update demos

* add pipeline API for Python

* fix `FromPyObject`

* fix for opencv-4.2

* environment -> context, improve pipeline

* python model interface

* fix cmake

* fix python & cmake

* context & C++ pipeline API

* minor fix

* improve API

* fix shared libs

* refresh C/Python API

* propagate context

* fix  python demo

* fix

* add namespace

* fix namespace

* fix mis-changed strings

* fix

* fix python api

* rename

* clean-up

* fix pose detector

* clean-up

* clean-up

* clean-up

* fix python API build

* fix CI

* fix lint

* fix lint

* fix lint & demo

* install pipeline.hpp

* fix MSVC shared library build

* fix sample

* fix MSVC monolithic build

* minor fix
2022-09-26 16:11:14 +08:00
lvhan028 11409d7c98
update doc about codebase deployment (#1051)
* update doc about mmclassfication deployment

* update install mmdeploy part

* correct mmcls deployment commands

* reformat supported models

* add deployed model specification

* update doc about mmdetection deployment

* fix according to reviewer comments

* fix according to reviewer comments

* fix according to reviewer comments

* fix according to reviewer comments

* fix according to reviewer comments

* fix according to reviewer comments

* update doc about mmsegmentation deployment

* update doc about mmocr deployment

* check in cityscapes.png as an input image for converting mmsegmentation model

* update mmocr deployment

* update mmseg.md

* update mmseg.md

* update mmocr.md

* update sdk model inference for mmocr deployment

* update according to reviewer comments

* update

* update

* update mmedit

* update mmpose deployment

* check in face.png for mmedit deployment

* update

* fix according to reviewer comments

* remove duplicate doc

* update docs in english

* update codebase documents in chinese

* fix according to reviewerss comments

* update according reviewer comments

* ObjectDetection -> Object Detection

* InstanceSegmentation -> Instance Segmentation
2022-09-24 18:05:24 +08:00
q.yao 6ac9c4d7a8
[Fix] fix det with static shape (#1049)
* fix det with static shape

* update rotated detection

* fix resize keep ratio
2022-09-23 14:45:57 +08:00
Xin Li 20b915dc1f
Dev 1.x cpp11 (#1086)
* ocr/short_scale_aspect_jitter.cpp scale_factor double to float not working on c++11

* ocr/short_scale_aspect_jitter.cpp scale_factor double to float not working on c++11

* ocr/short_scale_aspect_jitter.cpp scale_factor double to float not working on c++11

add install mmengine in docker file

* 1. ocr/short_scale_aspect_jitter.cpp scale_factor double to float not working on c++11

2. add install mmgine in dockerfile

3. add install_mmengine in circleci

* fix mmengine typo
2022-09-23 14:45:16 +08:00
tpoisonooo 82b4a85f42
fix(tools/profile.py): rename to avoid name conflict (#1087)
* fix(tools/profile.py): rename to avoid name conflict

* fix(docs): remove useless
2022-09-23 13:42:36 +08:00
tpoisonooo 049a052f95
improvement(ubuntu_utils.py): check upstream libopencv-dev version (#1068) (#1093) 2022-09-23 13:42:15 +08:00
tpoisonooo 676f1bf49c
improvement(ubuntu_utils.py): check upstream libopencv-dev version (#1068) 2022-09-23 10:21:09 +08:00
tpoisonooo 107ae8499d
docs(jetsons.md): fix desc (#1090)
* docs(jetsons.md): fix desc

* docs(jetsons.md): update
2022-09-23 10:14:00 +08:00
RunningLeon 40adb329a3 Merge master:ea7706cb into sync_master 2022-09-22 19:49:50 +08:00
hanrui1sensetime 01df218da5
[Fix] Fix mmcls for cifar10 config on dev-1.x (#1056)
* fix mmcls cifar10 config

* fix dump-info for cifar10 config

* use regex instead of packlist

* remove constants unused

* fix while logic

* fix lint

* fix docformatter

* fix classification to avoid conflict
2022-09-22 11:40:45 +08:00
hanrui1sensetime 1d38426891
border -> pad_param (#1085) 2022-09-22 10:17:39 +08:00
hanrui1sensetime bb397a9224
[Fix] fix torchscript (#1082)
* fix torchscript

* fix mmocr
2022-09-21 19:27:04 +08:00
q.yao ea7706cbfd
fix layer norm (#1015) 2022-09-21 16:24:47 +08:00
BrokenArrow fbe7586415
Add result of quantization of TextSnake (#1074)
* Update result of TextSnake

result from https://github.com/BrokenArrow1404/2022-MMLAB-SUMMERCAMP/blob/main/week4/README.md

* Update result of TextSnake

result from https://github.com/BrokenArrow1404/2022-MMLAB-SUMMERCAMP/blob/main/week4/README.md

* Add deploy config for quantization of TextSnake

* repair lint error
2022-09-21 15:28:28 +08:00
AllentDan e3859004ba
add mod rewriter for TRT (#1024) 2022-09-21 14:47:36 +08:00
AllentDan 1d46bd752c
[2.0] Support SDK for det and cls (#1073)
* init

* support SDK mmcls test

* align resize

* typo

* fix cls data_preprocessor
2022-09-21 14:17:23 +08:00
hanrui1sensetime 5c87dd9565
[2.0] Support mmedit 2.0 (#1017)
* mmcv.Config -> mmengine Config

* support mmedit part

* add rewriter for BaseEditModels

* fix visualizer

* mmedit visualization

* remove unused code

* fix realesrgan

* fix trt

* support MultiTestLoop; rewriter fix mmediting bugs; fix ut

* fix uts

* fix mmedit sdk

* fix regression test(part)

* fix torchscript

* part of fix regression test

* fix checkenv.py

* fix test.py for mmedit2.0

* support for mmedit

* fix regression_test

* fix check copyright ci

* fix isort

* fix docformatter

* fix yapf

* fix tests

* fix sdk after 1040

* add a file for ut

* fix docformatter

* fix export info

* fix super_resolution

* fix test.py

* stage configs

* remove unused code

* remove rewriter of multitestloop

* fix yapf
2022-09-20 19:22:55 +08:00
whooray 1c5dcb799b
[Fix] fix broken link in docs english version write_config.md (#1078)
* fix typo error for how to write model config link

* Update write_config.md

zh_cn version does not exist
2022-09-20 17:51:19 +08:00
tripleMu 73b5dc253e
Replace mmcv by mmengine (#1072)
Replace mmcv by mmengine
2022-09-20 17:13:23 +08:00
RunningLeon 2fdba2c523
Support mmpose:dev-1.x (#884)
* modify mmpose rewritings

* test exporting to ort with hrnet

* support mspn

* update tests

* update tests

* support flip_test

* support mmpose 1.x

* update mmpose.yml

* fix adaptive pool

* align with master for adaptive_pool rewriting

* fix pipeline

* add batch_size to test

* resolve comment
2022-09-19 21:40:53 +08:00
RunningLeon 99aa1fded9
Fix exporting to sdk for mmseg2.0 (#1070)
* fix mmseg2.0 export to sdk

* fix sdk
2022-09-19 18:49:09 +08:00
AllentDan 633d74fb36
refactor dump-info (#1040) 2022-09-19 17:15:21 +08:00
q.yao 6f5161b2fa
fix mmrotate int8 (#1050) 2022-09-19 17:10:40 +08:00
Chen Xin 7002ad21c2
fix ort-gpu inference (#1053) 2022-09-19 17:08:29 +08:00
AllentDan 97e0d1228f
SDK ocr 2.0 (#1006)
* add deploy runner

* fix text_det wrapper

* fix recog

* save

* add crnn support

* update with_padding

* add short scale aspect jitter

* update regression test

* torch2ts

* add test data

* resolve comments
2022-09-19 15:08:51 +08:00
Qingren fd07b26c2e
[Feature] Add mmpose configs for compatibility with Hourglass model in ncnn backend (#1064)
* [FEATURE] add mmpose configs for compatibility with Hourglass model

[Motivation]
- The added configs are aim to support Hourglass pose-detection model in ncnn backend.
- Hourglass model needs explicit input shape with 256x256 or 384x384.
- Hourglass model can be quantitized to int8 successfully in ncnn backend.

[Complementary]
The mmpose config of Hourglass mode is in:
- https://github.com/open-mmlab/mmpose/blob/master/configs/body/2d_kpt_sview_rgb_img/topdown_heatmap/coco/hourglass52_coco_256x256.py
- https://github.com/open-mmlab/mmpose/blob/master/configs/body/2d_kpt_sview_rgb_img/topdown_heatmap/coco/hourglass52_coco_384x384.py
Quantitization results are shown in https://github.com/Qingrenn/mmdeploy-summer-camp/blob/main/week4/result.md

* Keep only one config (pose-detection_ncnn-int8_static-256x256.py) and remove the others.
2022-09-19 14:13:55 +08:00
Qingren 18ccb15b7b
[Feature] Add Hourglass pose detection quantization evaluation result. (#1066)
Detail results: https://github.com/Qingrenn/mmdeploy-summer-camp/blob/main/week4/result.md
2022-09-19 14:09:46 +08:00
q.yao 0caeaf238c
[CustomOps] TensorRT Gather Topk Ops (#1033)
* add gather topk

* add shape inference and document

* fix faster rcnn

* reshape topk

* fix
2022-09-19 13:48:26 +08:00
tpoisonooo 50bd6b1703
improvement(visualize.py): headless enable inference (#1041)
* improvement(visualize.py): split render and display

* fix(visualize.py): skip render and save for headless device

* docs(deploy.py): update desc
2022-09-19 11:30:47 +08:00