Commit Graph

146 Commits (c73756366e374507b5d619cfe06deea72d2ad61d)

Author SHA1 Message Date
RunningLeon c73756366e
bump version to v0.14.0 (#1943)
* update

* bump version

* Update README.md

* fix conflicts

* fix ci

* fix circleci

* upgrade to ubuntu20.04 for github ci

* update

* install glibc

* try to fix cuda build

* try to fix cuda build

* fix build-cu102 && build_cpu_sdk

* revert to setup-python@v2

* try to fix pplnn

* fix protobuf

---------

Co-authored-by: Xin Chen <irexyc@gmail.com>
2023-04-05 14:28:00 +08:00
Chen Xin af16b9a451
Update get_started.md(master) (#1950)
* update generate_build_config to support cxx11abi tag

* test prebuild ci

* update docs/zh_cn/get_started.md

* update docs/en/get_started.md

* fix prebuild ci

* update prebuilt_package_windows.md

* update prebuild ci deps

* try to fix prebuild ci

* fix prebuild ci

* fix prebuild ci

* remove trigger [no ci]

* fix name [no ci]

* fix typos

* fix script
2023-04-04 11:00:53 +08:00
Chen Xin bbee83da6c
update pplnn to v0.9.2 to resolve ci error (#1934)
* [Fix] Fix package_tools (#1772)

* copy mmdeploy_onnx2ncnn when build wheel package

* prevent copy build/lib/* when build wheel

* fix mmdeploy_builder.py

* try to fix backend-pplnn ci
2023-03-29 21:14:59 +08:00
Chen Xin aae9f32623
[Refactor] Rename mmdeploy_python to mmdeploy_runtime (#1911)
* [Feature]: Add github prebuild workflow after new release. (#1852)

* add prebuild dockerfile

* add prebuild test workflw

* update

* update

* rm other workflow for test

* Update docker image

* add win1o prebuild

* add test prebuild

* add windows scripts in prebuilt package

* add linux scripts in prebuilt package

* generate_build_config.py

* fix cudnn search

* fix env

* fix script

* fix rpath

* fix cwd

* fix windows

* fix lint

* windows prebuild ci

* linux prebuild ci

* fix

* update trigger

* Revert "rm other workflow for test"

This reverts commit 0a03872750.

* update sdk build readme

* update prebuild

* fix dll deps for python >= 3.8 on windows

* fix ci

* test prebuild

* update test script to avoid modify upload folder

* add onnxruntime.dll to mmdeploy_python

* update prebuild workflow

* update prebuild

* Update loader.cpp.in

* remove exists prebuild files

* fix opencv env

* update cmake options for mmdeploy python build

* remove test code

* fix lint

---------

Co-authored-by: RunningLeon <mnsheng@yeah.net>
Co-authored-by: RunningLeon <maningsheng@sensetime.com>

* rename mmdeploy_python -> mmdeploy_runtime

* test master prebuild

* fix trt net build

* Revert "test master prebuild"

This reverts commit aad5258648.

* add master branch

* fix linux set_env script

* update package_tools docs

* fix gcc 7.3 aligned_alloc

* comment temporarily as text_det_recog can't be built with prebuild package built under manylinux

---------

Co-authored-by: RunningLeon <mnsheng@yeah.net>
Co-authored-by: RunningLeon <maningsheng@sensetime.com>
2023-03-29 19:02:37 +08:00
lvhan028 7fed511f09
disable building demos when preparing prebuilt package (#1810) 2023-02-28 21:16:35 +08:00
q.yao 02d5a09989
bump version to 0.13.0 (#1753) 2023-02-16 14:15:19 +08:00
AllentDan 7d085bee0e
directly set pytorch metric when it's empty for regression_test.py (#1704) 2023-02-03 11:25:11 +08:00
lvhan028 b101a4af65
[Enhancement] remove MMDEPLOY_BUILD_SDK_CXX_API option (#1688)
* remove MMDEPLOY_BUILD_SDK_CXX_API option

* update

* update
2023-01-31 13:29:59 +08:00
tpoisonooo 7e48fb2905
improvement(tools/scripts): pip install with user environment (#1660) 2023-01-20 00:19:37 +08:00
kaizhong bce276ef24
[Feature]: add a tool to generate supported-backends markdown table (#1374)
* convert2markdown

* update yaml2mardown code

* code update

* add parse_args

* add parse_args

* add parse_args

* add parse_args

* add website list

* add website list

* add website list

* add website list

* add website list

* add website list

* add website list

* add url in yaml

* add table in convert

* add table in convert

* From yaml export markdown

* From yaml export markdown

* From yaml export markdown

* From yaml export markdown

* From yaml export markdown

* From yaml export markdown

* Rename convert.py to generate_md_table.py

generate_markdownd_table

* docs(project): sync en and zh docs

* docs(project): sync en and zh docs

* docs(project): sync en and zh docs

* docs(project): sync en and zh docs

* docs(project): sync en and zh docs

* docs(project): sync en and zh docs

* docs(project): sync en and zh docs

* Update mmaction.yml

* add backends parser

* add backends parser

* Add type for the codeblock.

* move to useful tools
2023-01-18 16:32:26 +08:00
RunningLeon 3527412127
change log file extension to 'txt' in regression test(#1608) 2023-01-10 17:42:55 +08:00
lvhan028 c3986cebe8
bump version to v0.12.0 (#1594) 2022-12-30 16:17:37 +08:00
hanrui1sensetime 20b2aff660
[Fix] Fix batch inference error for Mask R-CNN (#1575)
* fix Mask R-CNN for multi-batch

* fix flake8

* fix bug

* use Sequence instead list

* fix docstring

* only test_img accept list input
2022-12-30 14:26:33 +08:00
q.yao d113a5f1c7
[Refactor] refactor is_available, check_env (#1540)
* refactor is available

* remove try catch in apis

* fix trt check env

* fix ops_info

* update default value

* remove backend list

* optimial pycuda

* update requirement, check env for rknn
2022-12-23 12:06:32 +08:00
q.yao 5285caf30a
[Refactor] Add 'to_backend' in BackendManager (#1522)
* Refactor to backend

* export_postprocess_mask = False as defailt

* update zh_cn docs

* solve comment

* fix comment
2022-12-21 14:04:16 +08:00
tpoisonooo 77c2ee5feb
fix(tools/scripts): build aarch option (#1530) 2022-12-15 20:41:59 +08:00
GY 05ed8e16ea
update to ppl.nn v0.9.1 and ppl.cv v0.7.1 (#1356) 2022-12-13 14:21:24 +08:00
q.yao 7cb4b9b18a
[Enhancement] Support tvm (#1216)
* finish framework

* add autotvm and auto-scheduler tuner

* add python deploy api

* add SDK net(WIP

* add sdk support

* support det, support vm

* fix vm sdk

* support two stage detector

* add instance seg support

* add docstring

* update docs and ut

* add quantize

* update doc

* update docs

* synchronize stream

* support dlpack

* remove submodule

* fix stride

* add alignment

* support dlpack

* remove submodule

* replace exclusive_scan

* add backend check

* add build script

* fix comment

* add ci

* fix ci

* ci fix2

* update build script

* update ci

* add pytest

* update sed command

* update sed again

* add xgboost

* remove tvm ut

* update ansor runner

* add stream sync

* fix topk

* sync default stream

* fix tvm net

* fix window
2022-12-12 21:19:40 +08:00
q.yao 4046e13146
Reformat multi-line logs and docstrings (#1489) 2022-12-06 19:50:58 +08:00
RunningLeon 55a3c8cf78
Bump version to v0.11.0 (#1470)
* bump version v0.11.0

* fix
2022-11-30 17:18:13 +08:00
tpoisonooo f6b35f3b68
fix(CI): ncnn script install (#1459)
* CI(script): fix ncnn install

* docs(build): update ncnn version to 20221128

* fix(CI): trigger
2022-11-29 20:37:06 +08:00
Chen Xin 2c9861555f
[Enhancement] add mmaction.yml for test (#1455)
* add mmaction.yml for test

* t# This is a combination of 2 commits.

add missing file

* fix typo

* remove
2022-11-29 18:48:29 +08:00
Chen Xin c97aed1a96
fix total time (#1451) 2022-11-29 13:45:50 +08:00
AllentDan d9d3ded8bc
concat datasets pytorch metric (#1447) 2022-11-28 17:34:02 +08:00
Chen Xin 3d1c135297
[Enhancement] refactor profiler (#1403)
* reduce profile node name

* add profiler for pipeline

* add profiler for cond

* udpate
2022-11-28 10:44:54 +08:00
RunningLeon 10e5cf6e0f
update reg test (#1440)
* give model path if stead of 'x' when conversion failed

* set --models with default value ['all']

* fix mmseg yml
2022-11-25 21:16:22 +08:00
RunningLeon de96f51231
Update regresssion test to parse eval result from json (#1310)
* export metrics results to json

* fix mmedit

* update docs

* fix test failure

* fix

* fix mmocr metrics

* remove srgan config with no set5 test
2022-11-22 20:47:22 +08:00
tpoisonooo b23411d907
fix(tools/scripts): find env file failed (#1385)
* fix(tools/scripts): find env file failed

* Update quantize_model.md
2022-11-22 20:26:55 +08:00
AllentDan 4dd4d4851b
Add rv1126 yolov3 support to sdk (#1280)
* add yolov3 head to SDK

* add yolov5 head to SDK

* fix export-info and lint, add reverse check

* fix lint

* fix export info for yolo heads

* add output_names to partition_config

* fix typo

* config

* normalize config

* fix

* refactor config

* fix lint and doc

* c++ form

* resolve comments

* fix CI

* fix CI

* fix CI

* float strides anchors

* refine pipeline of rknn-int8

* config

* rename func

* refactor

* rknn wrapper dict and fix typo

* rknn wrapper output update,  mmcls use end2end type

* fix typo
2022-11-22 20:16:22 +08:00
Chen Xin cdb6b46955
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
2022-11-21 12:52:21 +08:00
lvhan028 b0a350d49e
build opencv for aarch64 with videoio enabled (#1343)
* build opencv for aarch64 with videoio enabled

* update doc

* update

* update

* update
2022-11-11 10:22:15 +08:00
Jelle Maas 5923054bb4
Add Core ML common configuration (#1308)
* Add CoreML instance segmentation configs

* Add common configuration for Core ML backend

* Fix pre-commit hook failures
2022-11-08 17:25:56 +08:00
lvhan028 625593d6f3
[Feature] Support rv1126 in sdk (#1238)
* tmp

* refine

* update ssd-lite

* tmp

* tmp

* 0.1

* 0.1.1

* rename to base_dense_head

* remove debug code

* wait stream

* update cmakelists

* add some comments

* fix lint

* fix ci error

* fix according reviewer comments

* update params

* fix

* support normalize with to_float being false

* fix lint

* support rv1126 build ci

* support rv1126 build ci

* change debug level

* fix ci

* update

* update doc

* fix circleci error

* update normalize

* update

* check in build script

* change name
2022-11-07 11:13:47 +08:00
lvhan028 4c34ad74a1
bump version to 0.10.0 (#1259)
* bump version to 0.10.0

* fix circleci workflow error
2022-10-31 19:24:47 +08:00
RunningLeon b20741352e
update reg (#1217) 2022-10-18 11:16:38 +08:00
OldDreamInWind 161fb01d73
[Feature]add edsr result && super-resolution ncnn-int8 config (#1111)
* add edsr result && ncnn-int8 config

* fix lint error

* fix lint error

* fix lint error && update benchmark.md

* add EDSRx2 pytorch result

* update edsrx4 result in benchmark
2022-10-18 10:04:56 +08:00
tpoisonooo ace44ae9d9
improvement(scripts): cross build aarch64 (#1126)
* udpate

* update

* CI(scripts): add auto cross build aarch64

* docs(scripts): add zh_cn doc

* docs(scripts): update

* docs(scripts): update

* fix(tools): update

* docs(zh_cn): update

* fix(scripts): remove gcc-7

* docs(scripts): update result

* udpate

* fix(tools): remove useless option

* docs(en): typo

* Update cross_build_aarch64.md

* Update cross_build_aarch64.md

* fix(tools/scripts): review advices

* fix(tools/scripts): update

* fix(cmake): remove useless option

* Update aarch64-linux-gnu.cmake
2022-10-17 11:15:29 +08:00
RunningLeon 41fcc2242f
log cmd info for regresstion test (#1146)
* add log to regresstion test

* update for win

* update mmseg reg yml
2022-10-10 16:23:24 +08:00
AllentDan 76b837194f
Update timer (#1158)
* update time counter

* update test.py

* fix ci
2022-10-10 16:22:19 +08:00
tpoisonooo 5cdf29339b
feat(tools/scripts): add auto install jetson orin (#1105)
* feat(tools/scripts): add auto install jetson orin

* docs(script): rename file

* fix(script): if clause error

* style(scripts): typo
2022-10-09 15:53:19 +08:00
lvhan028 917643fcac
bump version to 0.9.0 (#1115) 2022-09-29 19:48:52 +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
tpoisonooo 676f1bf49c
improvement(ubuntu_utils.py): check upstream libopencv-dev version (#1068) 2022-09-23 10:21:09 +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
tpoisonooo 538c9cfbb1
docs(scripts): update auto install desc (#1036) 2022-09-14 17:49:29 +08:00
Chen Xin b87afb9ebb
fix mmdeploy builder on windows (#1018)
* fix mmdeploy builder on windows

* add pyyaml

* fix lint
2022-09-09 15:03:55 +08:00
lvhan028 b310ba8d3e
bump version to v0.8.0 (#1009) 2022-09-07 10:53:50 +08:00
AllentDan 124635ec5f
Add RKNN support. (#865)
* save codes

* support resnet and yolov3

* support yolox

* fix lint

* add mmseg support and a doc

* add UT

* update supported model list

* fix ci

* refine docstring

* resolve comments

* remote output_tensor_type

* resolve comments

* update readme
2022-09-06 11:48:39 +08:00
Chen Xin 6b01a2e649
[Feature] Add option to fuse transform. (#741)
* add collect_impl.cpp to cuda device

* add dummy compute node wich device elena

* add compiler & dynamic library loader

* add code to compile with gen code(elena)

* move folder

* fix lint

* add tracer module

* add license

* update type id

* add fuse kernel registry

* remove compilier & dynamic_library

* update fuse kernel interface

* Add elena-mmdeploy project in 3rd-party

* Fix README.md

* fix cmake file

* Support cuda device and clang format all file

* Add cudaStreamSynchronize for cudafree

* fix cudaStreamSynchronize

* rename to __tracer__

* remove unused code

* update kernel

* update extract elena script

* update gitignore

* fix ci

* Change the crop_size to crop_h and crop_w in arglist

* update Tracer

* remove cond

* avoid allocate memory

* add build.sh for elena

* remove code

* update test

* Support bilinear resize with float input

* Rename elena-mmdeploy to delete

* Introduce public submodule

* use get_ref

* update elena

* update tools

* update tools

* update fuse transform docs

* add fuse transform doc link to get_started

* fix shape in crop

* remove fuse_transform_ == true check

* remove fuse_transform_ member

* remove elena_int.h

* doesn't dump transform_static.json

* update tracer

* update CVFusion to remove compile warning

* remove mmcv version > 1.5.1 dep

* fix tests

* update docs

* add elena use option

* remove submodule of CVFusion

* update doc

* use auto

* use throw_exception(eEntryNotFound);

* update

Co-authored-by: cx <cx@ubuntu20.04>
Co-authored-by: miraclezqc <969226879@qq.com>
2022-09-05 20:29:18 +08:00
Chen Xin a0fb3be0df
support coreml (#760)
* sdk inference

* fix typo

* fix typo

* add convert things

* fix missling name

* add cls support

* add more pytorch rewriter

* add det support

* support det wip

* make Model export model_path

* fix nms

* add output back

* add docstring

* fix lint

* add coreml build action

* add zh docs

* add coreml backend check

* update ci

* update

* update

* update

* update

* update

* fix lint

* update configs

* add return value when error occured

* update docs

* update docs

* update docs

* fix lint

* udpate docs

* udpate docs

* update

Co-authored-by: grimoire <streetyao@live.com>
2022-09-05 19:55:47 +08:00