Commit Graph

948 Commits (7f30e42026e191fb5e93bad63cd6a0ad3e9208cb)
 

Author SHA1 Message Date
q.yao 7f30e42026
Fix clip on tensorrt 8.0 (#1833) 2023-03-08 17:24:56 +08:00
hanrui1sensetime b59d83bf7b
[Feature] Add Java APIs and demos for pose tracker, segmentor and rotated-object detector (#1795)
* move to dev-1.x

* fix wrong class name

* redesign Params argument mechanisms

* change demo build to ant

* remove unused debugging file

* fix demo

* remove hardcode

* a general build.xml

* update README

* fix clang-format

* rename follow java format

* update docs

* fix lint

* fix java_api build

* fix ci

* fix java api ci

* fix lint

* fix opencv build privilege

* fix CI ant build

* remove opencv build because is too slow

* fix lib path

* fix wrong dir

* fix run demo location

* fix ant command

* fix opencv

* mv opencv to java demo

* fix CI

* fix comments

* add absolute lib path in ci

* find lib

* find lib

* fix mmdeploy lib path in ci

* fix pose ocr pose-tracker

* support RotatedDetection and Segmentation score

* add cmake

* fix lint

* fix yapf

* fix clang-format

* fix clang-format

* fix java api ci

* fix ocr src pic

* add rotate

* add opencv lib

* fix lib

* fix libgstreamer missing

* add libgstreamer-plugin

* fix comments

* fix comments

* add avcodec for posetracker

* fix CI

* fix java ci comments

* fix test_java_demo format

* fix lint and ffmpeg missing

* fix comments

* a copy of array for java

* fix demo stuck

* fix test_java_demo.py

* fix popd and pushd

* fix java_api

* fix java api handle

* update for api

* add java docstrings for demo

* add docstring for posetracker java and fix handle

* add some java api docstrings

* return ec

* add error code for java

* add all java docs

* fix clang-format

* fix PoseTracker apply api for batch inference

* fix missing error code

* remove author

* remove author

* remove destroy window

* fix wrong code

* fix Context

* fix java docs

* fix comments

* fix compile failed

* fix for and if format

* fix error code

* fix bracket
2023-03-08 14:39:39 +08:00
q.yao 91a0a9af0b
[Fix] Fix unit test in dev1.x (#1790)
* fix erros in ut

* use nms_ratated ops instead of ext

* fix ut

* fix superresolution

* update super_resolution
2023-03-08 14:32:50 +08:00
hanrui1sensetime 84a289fd88
fix reduction fp16 exceed on android (#1819) 2023-03-01 13:40:20 +08:00
Chen Xin 29b29ee48a
[Feature] Dynamically load net module to remove dependencies of mmdeploy.so (#1776)
* dynamic load net module

* export xxx_net

* add runpath

* link dl

* remove -ldl for macos

* fix rpath

* module -> shared

* set MMDEPLOY_DYNAMIC_BACKEND OFF when MMDEPLOY_BUILD_SDK_MONOLITHIC is OFF
2023-02-28 20:32:38 +08:00
Andy 27f5e70e34
[Featuure] Support Vacc Backend (#1679)
* [Enhancement] Support vacc backend

* update vacc wrapper

* vacc docs

* update vacc docs and remove some comments

* update vacc backend configs

* get vacc_det real output

* Fix vacc: pre-commit run

* fix pre-commit

* update vacc quantize

* update vacc docs.

* update vacc docs.

* [Fix]vacc wrapper and support set calib_num

* add vacc_seg model_type

* update vacc_det type

* update vacc_det type

* fix typo

* [Fix] some typo

* feats: update mmseg vacc sample

* feats: update mmseg vacc sample

* feats: update mmdet vacc sample

* feats: update vacc quant_dataset func.

* update vacc wrapper exit-code

* update vacc segmentor setting

* update vacc seg base_decode_head rewriter

* fix vacc wrapper outputs
2023-02-27 14:35:16 +08:00
lvhan028 413cc76988
bump version to 1.0.0rc3 (#1811) 2023-02-24 18:41:40 +08:00
lvhan028 cdfe18dfdb
[Fix] disable building demos when preparing prebuilt package (#1803)
* disable building demos when preparing prebuilt package

* update

* update

* fix ci errors

* fix circleci error

* fix github ci by using default build options

* update
2023-02-24 17:08:17 +08:00
q.yao bf36950f0e
[Fix] fix centernet (#1768)
* fix centernet

* update sdk transform
2023-02-24 10:50:03 +08:00
Li Zhang b5fef4873a
[Cherry-pick] fix missing include for gcc-10 build (#1804)
(cherry picked from commit f78a452681)
2023-02-23 15:13:07 +08:00
Li Zhang 053d31c85e
avoid linking static libs in monolithic build (#1801) 2023-02-23 14:22:27 +08:00
Chen Xin 116098e9a6
[Fix] Fix package_tools (#1772)
* copy mmdeploy_onnx2ncnn when build wheel package

* prevent copy build/lib/* when build wheel
2023-02-23 10:10:40 +08:00
Yee 2a98db9670
[fix] Fix component not found issue by changing `class YOLOV5Head` to `class YOLOv5Head` (#1785) 2023-02-23 10:10:19 +08:00
q.yao 7b455563dd
fix tensorrt int8 (#1799) 2023-02-22 21:42:06 +08:00
Li Zhang 0b9a9e2233
[cherry-pick] add `Model::ReadConfig` & simplify handle creation (#1794)
(cherry picked from commit eb75bee921)
2023-02-21 20:16:01 +08:00
SineYuan b31481692a
fix normalization to_rgb option (#1792) 2023-02-21 18:05:36 +08:00
AllentDan 4ce69dc1c7
[Fix] turn -DMMDEPLOY_SHARED_LIBS=ON when building rknn (#1786)
* turn -DMMDEPLOY_SHARED_LIBS=ON when building rknn

* fix rknpu2
2023-02-21 17:13:55 +08:00
AllentDan d0f8be63f3
fix ut and text_det create_input (#1756) 2023-02-20 16:45:20 +08:00
Li Zhang 9fee1920fa
[Fix] Fix palette generation on opencv-3.x (#1779) 2023-02-17 18:40:44 +08:00
q.yao a3c0566451
bump version to 1.0.0rc2 (#1754)
* bump version

* update cmake
2023-02-16 14:20:33 +08:00
AllentDan 40a66fb3a0
Fix MRCNN visualization due to error condition for mask resize (#1767) 2023-02-15 16:00:03 +08:00
lvhan028 73fd14d387
remove score filtering in rtmdet_head rewriter since it leads to error shape in batch inference (#1762) 2023-02-15 11:26:11 +08:00
vansin 8cd3048937
[Doc] Add twitter discord medium youtube link (#1763) 2023-02-15 11:06:06 +08:00
Chen Xin a2f1bcb68e
[cherry-pick] Support cmake configure when system exists multiple cuda versions. (#1760)
* update cmake

* typos
2023-02-14 18:24:10 +08:00
Li Zhang 44b144f095
[Cherry-pick] Fix `WarpBbox` and memory leak in `TextRecognizer` (#1752)
(cherry picked from commit cadc2658f3)
2023-02-13 19:55:36 +08:00
q.yao f7fdcb4aa0
fix instance norm double free (#1749) 2023-02-13 19:42:54 +08:00
lvhan028 2efb42d8d8
[Enhancement] check in tensorrt-fp16 deployment config for simcc (#1741)
* check in tensorrt-fp16 deployment config for simcc

* update
2023-02-09 20:11:53 +08:00
Li Zhang 19815ae9ae
add coco whole-body skeleton (#1742)
(cherry picked from commit 31b099a37b)
2023-02-09 19:10:07 +08:00
AllentDan 8e254bc846
enable TRT parse ONNX model from file (#1734) 2023-02-09 15:55:04 +08:00
Li Zhang a8f8c4febe
[Refactor] Support batch inference with shape clustering (#1733)
* refactor `NetModule`

* name

* fix sorting

* fix indices

(cherry picked from commit f5a05b5219)
2023-02-08 20:36:29 +08:00
AllentDan bc1b6440cd
fix mmocr create input error when the arg is array (#1721) 2023-02-08 13:47:47 +08:00
Xiang Xu d28020ec34
[Docs] Update tutorial "introduction to model deployment" (#1709)
* update docs

* update
2023-02-08 11:36:06 +08:00
lvhan028 c3b6c37464
Cherry pick PR #1625, #1715 and #1725
Cherry-pick PR 1625, 1715, 1725 to dev-1.x
2023-02-08 11:28:05 +08:00
Li Zhang 2731b61abd [Fix] Add an option to flip webcam inputs for pose tracker demo (#1725)
(cherry picked from commit 5de0ecfcaf)
2023-02-07 21:12:44 +08:00
Li Zhang 682cb79bc5 [Enhancement] Optimize C++ demos (#1715)
* optimize demos

* show text in image

* optimize demos

* fix minor

* fix minor

* fix minor

* install utils & fix demo file extensions

* rename

* parse empty flags

* antialias

* handle video complications

(cherry picked from commit 2b18596795)
2023-02-07 21:12:44 +08:00
Chen Xin 1f56eea807 [Feature] Support feature map output for mmsegmentation (#1625)
* add feature map output for mmseg

* update api

* update demo

* fix return

* update format_shape

* fix lint

* update csharp demo

* update python demo && api

* fix coreml build

* fix lint

* better sort

* update

* update cpp demo & add missing header

* change to CHW

* update csharp api

* update isort version to 5.12.0

* fix python api

* fix log

* more detail api docs

* isort support python3.7

* remove isort change

* remove whitespace

* axes check

* remove FormatShapeImpl

* minor

* add permute tc

* remove stride buffer

(cherry picked from commit b85f34141b)
2023-02-07 21:04:20 +08:00
AllentDan a9f8d8c951
fix torch allocator resouce releasing (#1711) 2023-02-06 11:57:56 +08:00
RangiLyu 87e48140f4
[Feature] Support RTMDet-Ins. (#1662)
* [Feature] Support RTMDet-Ins.

* fix visualize

* fix rewrite trt

* add config

* support torch 1.13

* fix keep ratio resize

* resolve scale factor bug

* set to None
2023-02-06 11:06:27 +08:00
AllentDan 3e6f2b3f47
fix error: build_backend_model() takes from 1 to 2 positional arguments but 3 were given (#1705) 2023-02-03 13:31:13 +08:00
Chen Xin 8697dacd8d
[Fix] fix mmaction2 visualizer (#1703)
* fix mmaction2 visualizer

* fix lint
2023-02-03 10:20:20 +08:00
wanglin db9e633b68
[Doc] Correct cloned branch in build document (#1700) 2023-02-03 10:19:43 +08:00
q.yao a62ed41f44
[Fix] miss importing torchvision in torchscript wrapper (#1702) 2023-02-02 14:11:16 +08:00
q.yao 153682e804
[Fix] add bounds to avoid large resource usage of nms operator on jetson (#1687)
* fix nms trt jetson

* fix comment

* clang format
2023-02-01 15:45:22 +08:00
hanrui1sensetime c3fda1905b
[Enhancement] Add mmyolo CI on mmdeploy (#1650)
* add mmyolo ut workflow

* add test_linux/windows ort/trt for mmyolo

* fix abs path to rel path

* fix mmyolo ut

* fix mmyolo position

* fix mmyolo dir

* fix build yolo

* fix yolo path

* fix yolo path

* fix yolo install path

* fix yolo install path for cuda

* remove dumplicated ci

* reformat script
2023-02-01 14:49:59 +08:00
AllentDan 5ab0bcb5ea
[Fix] fix rknn quantization pipeline (#1636)
* fix rknn quantization pipeline

* resolve comments
2023-01-31 16:35:11 +08:00
Chen Xin a19cf64765
Fix mapping error from mmpose's regression codec to SDK's components (#1684) 2023-01-31 15:58:04 +08:00
hanrui1sensetime 2ceabd0274
[Enhancement] Add 320x320 static config for tensorrt (#1689)
* add trt static 320 config for rtmdet

* only add on detection folder
2023-01-31 14:36:17 +08:00
lvhan028 8062e4e41d
[Enhancement] remove MMDEPLOY_BUILD_SDK_CXX_API option (#1688) (#1692)
* remove MMDEPLOY_BUILD_SDK_CXX_API option

* update

* update
(cherry picked from commit b101a4af65)
2023-01-31 14:25:22 +08:00
lvhan028 3bf1336262
Cherry pick PR #1663, #1666, #1486 to dev-1.x
Cherry pick PR 1663, 1666, 1486 to dev-1.x
2023-01-31 13:59:00 +08:00
q.yao dc1d9df315
[Fix] fix coreml for branch 1.x (#1669)
* fix coreml for branch 1.x

* fix docstring

* update docsting1
2023-01-31 13:49:48 +08:00