Commit Graph

894 Commits (878a36447068ede6d3a3fb002f603c20242356c8)
 

Author SHA1 Message Date
AllentDan 878a364470
fix rknn output index error in SDK (#1682) 2023-01-30 20:51:06 +08:00
hanrui1sensetime cbddf5a458
[Fix] Fix preprocess_model_config for CIFAR dataset (#1659)
* fix cifar10 for mmcls

* remove unnecessary code
2023-01-18 16:31:11 +08:00
Chen Xin 15ad234a7a
Cherry-pick PR 1366, 1370, 1460, 1577, 1598, 1601, 1612, 1626 to dev-1.x (#1635)
* [Fix] Fix example standalone build for msvc (#1626)

* fix example build for msvc

* move /Zc:__cplusplus to core

* [FIX] Fix csharp net48 and batch inference (#1370)

* fix csharp net48

* add missing file

* update

* fix batch inference

* update demo

* update

* update version

* update nuget package version & fix project name

* build monolithic SDK by default (#1577)

* Fix debug build for PoseTracker (#1601)

* [Fix] Fix aligned allocations on Android (#1612)

* fix android alignment

* fix typo

* fix size

* Fix build error on windows-cuda platform (#1598)

* [Fix] Relax module adapter template constraints (#1366)

* relax module adapter constraint

* remove forwarding `operator()`

* fix YOLOV5Head naming

Co-authored-by: Li Zhang <lzhang329@gmail.com>
2023-01-17 18:52:58 +08:00
q.yao 953d33cc09
[Fix] fix headless device visualize (#1630)
* fix headless device visualize

* remove pretrain

* sync with 1641

* better show
2023-01-17 11:00:24 +08:00
AllentDan ff95bf48ea
[Feature] Support more MMOCR models: DBNet++, TextSnake, ABINet, MRCNN (#1534)
* WIP ocr

* add mrcnn rewrite

* add any rewrite for abinet

* export abinet to onnx

* fix abinet onnx export

* support abinet to tensorrt static and modify mmocr.yml

* add textsnake and dbnetpp

* support mrcnn in ORT and TRT

* add a condition before update data_preprocessor scope

* update doc and mmocr.yml

* add ut

* markdown and simple config

* write build_pytorch_model in child class

* update any_default

* remove where in abi_language_decoder___get_length__default

* keep where

* fix UT

* fix UT

* fix UT

* update mmocr.yml and config description

* tensorrt-fp32 -> tensorrt

* update doc
2023-01-16 12:06:03 +08:00
lvhan028 7e66cfc59b
Cherry-pick PR #1460: optimize pose tracker
Cherry-pick PR 1460 to dev-1.x
2023-01-16 10:57:06 +08:00
hanrui1sensetime ef260d8df5
[Fix] Substitute SyncBN with BN for mmpose (#1631)
* fix syncbn for mmpose

* unify build_pytorch_model
2023-01-16 10:50:45 +08:00
RunningLeon 89580eb496
cherry-pick #1608: change log file extension to '.txt' in regression test(#1637) 2023-01-13 16:12:37 +08:00
AllentDan 11e8a2179e
Fix the performance test for RKNN (#1583) 2023-01-11 11:30:04 +08:00
RunningLeon 6b9bfcfceb
[Fix]: fix numba numpy version not compatiable in circileci (#1611)
* fix numba numpy version not compatibale

* fix mmcls ut

* update

* update

* only do lint when deploy configs changed
2023-01-11 10:48:52 +08:00
AllentDan 92efd9cb7b
[Doc] update build doc for jetsons (#1621)
* update build doc for jetsons

* set lint only true for docs

* change base revision of circleci config

Co-authored-by: RunningLeon <mnsheng@yeah.net>
2023-01-10 20:03:32 +08:00
Nghia 3e22f96f04
Fixed calling miniconda script in Dockerfile (#1629) 2023-01-10 15:50:15 +08:00
AllentDan 0cfee8c0f4
fix no test_step error in TorchWrapper (#1600) 2023-01-10 10:53:38 +08:00
hanrui1sensetime f7ea130a6f fix android build command 2023-01-06 16:11:56 +08:00
Qingren 71fc8e3241
CodeCamp #101: Support MMDetection 3.x RTMDet model deployment on RV1126 (#1551)
* * partition rtmdet

* * add rtmdet deploy config

* * add rtmdet deploy config

* * modify rtmdet pipline anchor_generator's info dump
* support rtmdet infer in sdk

* fix a bug

* * fix a bug in csrc/mmdeploy/preprocess/transform/normalize.cpp

* * fix a bug

* * update docs

* * fix lint

* * update several urls in docs
2023-01-06 14:01:31 +08:00
Li Zhang db8de7ec1f
[Fix] Fix typo in 'LetterResize' transform (#1618) 2023-01-06 11:24:54 +08:00
AllentDan 5d0a08eafb
fix log info typo of check env (#1613) 2023-01-06 11:10:15 +08:00
Li Zhang f288d00d50 [Enhancement] Optimize pose tracker (#1460)
* sync master

* suppress overlapped tracks

* add CUDA WarpAffine

* export symbols

* fix linkage

* update pose tracker

* clean-up

* fix MSVC build

* fix MSVC build

* add ffmpeg cli command
2023-01-05 11:57:21 +08:00
Xin Li 14550aac38
[Enhancement] Switch pip to mim in Docs and Dockerfile (#1591)
* change pip install to mim install in docs and Dockerfil

* merge with latest dev-1.x
2023-01-04 23:11:13 +08:00
hanrui1sensetime 8a05b8d62d
Cherry-pick #1439 to fix 'topk' on different devices for onnxruntime-gpu inference (#1603)
Co-authored-by: grimoire <yaoqian@sensetime.com>
2023-01-04 23:10:19 +08:00
Chen Xin c67e2db68e
Fix build error on cuda10.2 platform (#1597) 2022-12-30 19:48:55 +08:00
lvhan028 09f1952457
bump version to v1.0.0rc1 (#1595) 2022-12-30 18:25:24 +08:00
q.yao deaefacea1
Add softmax to cls model (#1573)
* Add softmax to cls model

* fix cls ci

* multihead

* update classification_model.py
2022-12-30 15:43:12 +08:00
hanrui1sensetime baa86aa4a5
[Fix] Fix batch inference error for Mask R-CNN (#1576)
* sync pr1575 to dev-1.x

* only test_img accept list input
2022-12-30 14:27:41 +08:00
hanrui1sensetime 7f2e8f7ce0
[Fix] Fix onnx2ncnn.cpp bugs. (#1518)
* fix onnx2ncnn

* remove unused debugging info
2022-12-29 12:14:22 +08:00
q.yao d6fdb3e860
[Refactor] Add backend manager for 1.x (#1515)
* backend manager 1.x

* update pplnn init

* rename file

* add to backend

* add check env and misc

* fix action

* fix ut

* fix comment
2022-12-28 11:38:01 +08:00
Yanyi Liu 6288141bd5
[Feature] Support RTMDet-R deployment (#1553)
* support rtmdet-r

* add comments

* fix dep config

* add ut

* fix ut

* fix ut

* fix url

* fix en url
2022-12-26 09:52:44 +08:00
kota-iizuka 85be66f7a6
[Fix] rename 'forward_test' to 'predict' (#1561) 2022-12-22 22:38:23 +08:00
q.yao e0ed95ebc4
[Fix] fix unittest and suppress warning (#1552)
* fix unittest and some warning

* fix read string

* snake
2022-12-22 19:57:36 +08:00
q.yao 0e656067a6
[Enhancement] Support tvm 1.x (#1531)
* support tvm 1.x

* fix tvm sdk export
2022-12-22 00:15:47 +08:00
DDGRCF 6e91614171
CodeCamp #102: support SOLO deployment with OpenVINO (#1454)
* feat: support solo mmdet3.x openvino 2.0 api

* feat: support solo mmdet3.x openvino

* fix: lint

* fix: add solo head test

* docs: add supported_modesl

* docs: add supported_models

* fix: fix unreasonable code

* fix: fix ci failed

* feat: add linspace func rewrite

* fix: fix unreasonable rewrite linspace__onnx

* fix: change func name from __onnx to __default

* feat: add solo test regression
2022-12-22 00:02:25 +08:00
lvhan028 aaa880e594
fix api build error in readthedocs (#1567) 2022-12-21 21:59:44 +08:00
AllentDan acae7a756e
add is_batched argument to pipeline.json (#1528) 2022-12-20 17:37:47 +08:00
q.yao 84ee45bc35
torchjit mdcn 1.x (#1536) 2022-12-20 15:13:49 +08:00
AllentDan 67c1cd2475
Add YOLOv5 support for RV1126 device. (#1321)
* support pose simcc

* fix yolov5 create_input

* add yolov5 post process and update mmcls.yml

* add letter resize

* add yolov5 export info

* fix

* add pose face config

* pick 4dd4d4851b

* fix yolov5 head

* fix ut

* refactor mmpose config

* pass output_names outside

* rknn batch size

* lint

* add input names to wrapper

* update according to https://github.com/open-mmlab/mmyolo/pull/305

* add pre_compile option

* update doc and fix typo

* fix padding

* fix typo

* use throw_exception
2022-12-16 17:05:24 +08:00
Michał Antoszkiewicz 6d376af8b8
Fix 'cannot seek vector iterator' in debug windows build (#1543)
Signed-off-by: Michal Antoszkiewicz <mantoszkiewicz@codeflyers.com>

Signed-off-by: Michal Antoszkiewicz <mantoszkiewicz@codeflyers.com>
2022-12-16 11:42:04 +08:00
AllentDan e0514ccb3b
[Fix] fix squeeze export and unsqueeze pass for opset 13 (#1538)
* fix squeeze export and unsqueeze pass for opset 13

* better way to get opset version

* use get default instead of get directly
2022-12-15 23:34:46 +08:00
Chen Xin 84a5c983d4
Add mmaction2 & coreml index for readthedocs (#1542) 2022-12-15 19:09:30 +08:00
hanrui1sensetime 0b6b9ee69f
sync #1493 to support TorchAllocator as TensorRT Gpu Allocator and fix DCNv2 tensorrt plugin error (#1519) 2022-12-13 19:20:59 +08:00
q.yao 3f261e6d50
[Refactor] Refactor rewriter context for MMRazor (#1483)
* wip

* update rewriter

* Support all codebase

* update docs

* fix ssd

* rename qualname

* support torch.fx.wrap

* import by torch version

Co-authored-by: pppppM <gjf_mail@126.com>
2022-12-13 19:03:56 +08:00
lvhan028 78901a2451
cherry-pick #1353 and #1509
cherry-pick #1353 and #1509 and resolve the build issues
2022-12-13 02:53:01 -08:00
q.yao e9912d9101
recovery mmdet layers (#1526) 2022-12-13 11:34:57 +08:00
q.yao 2afbb9945e
[Enhancement] MMRotate 1.x support (#1401)
* wip

* update twostage detector support

* fix unit test

* sdk wip

* comment

* refactor export info

* fix

* support roi trans

* update rotate.yml

* clear model.py, support torch1.13
2022-12-12 19:27:03 +08:00
lvhan028 5b96f20a9b fix build error after cherry-picks 2022-12-12 14:55:24 +08:00
Chen Xin 57f7712267 cherry-pick: Remove cudnn dependency for transform 'mmaction2::format_shape' (#1509) 2022-12-12 14:54:20 +08:00
RunningLeon 25aa0d4c0a
[Enhancement]: add md link check github action (#1320)
* add md link check action

* add config

* fix doc link

* fix dead links

* change dev-1.x to 1.x

* fix mmocr url
2022-12-08 16:13:51 +08:00
lvhan028 04c9793da0 cherry-pick: Decouple preprocess operation and transformation (#1353) 2022-12-08 14:49:12 +08:00
RunningLeon 09c6bd75aa
[Fix]: fix requirements of mmedit (#1496)
* update requirements

* use github url

* fix mmcls ut

* install clip explicitly
2022-12-08 10:16:03 +08:00
AllentDan 0200317319
add rknn device check (#1363)
* add rknn device check

* accelerate

* fix CI

* resolve comments

* simple log

* remove adb device check
2022-12-07 23:05:33 +08:00
Chen Xin c4e95f1ade
Sync profiler (#1446)
* Sdk profiler (#1274)

* sdk-profiler

* fix lint

* support lift

* sync net module when profile

* use Scope*

* update use task name

* fix

* use std::unique_ptr<Event>

* remove mmdeploy::graph link for c and transform

* fix

* fix

* fix

* [Enhancement] refactor profiler (#1403)

* reduce profile node name

* add profiler for pipeline

* add profiler for cond

* udpate

* fix total time (#1451)
2022-12-07 18:51:17 +08:00