Commit Graph

87 Commits (v1.1.0)

Author SHA1 Message Date
RunningLeon faf05fe358
fix prebuild uploading (#2112)
* fix

* change to test mode

* remove

* fix

* fix

* fix

* test pypi

* test

* add publish

* test

* revert to prod

* update
2023-05-24 19:59:47 +08:00
RunningLeon bd7117c9c3
fix prebuild workflow (#2107) 2023-05-23 17:38:26 +08:00
RunningLeon 11af78caae
CI: Add regression test workflow (#2081)
* add reg test workflow

* fix name

* fix

* fix

* update

* fix ncnn on win

* fix build ts on wins

* remove last step

* fix

* fix

* fix

* fix

* fix mmyolo

* fix install torch1.13

* fix mmyolo

* fix

* fix

* manage wins env

* update

* add lib

* fix typo

* update

* fix
2023-05-19 18:05:34 +08:00
huayuan4396 8e658cd1bf
Update Github Badge for Workflow (#2020)
* add badge to build.yml

* add rest badges

* update badge in readme

* fix lint

* use html table

* test font size

* update table

* fix lint

* create badge in step

* fix windows badge

* check table

* make badge and text in one line
2023-05-18 14:56:02 +08:00
RunningLeon 162f4cbe6e
fix ci (#2058)
* fix

* fix

* update

* fix
2023-05-10 15:28:08 +08:00
huayuan4396 840adcfb43
mmcls -> mmpretrain (#2003)
* mmcls -> mmpretrain

* add constraints.txt

* fix lint

* fix lint

* remove constraints.txt

* fix windows ci

* modify requirements

* fix mdlink and mmpretrain version

* fix dead link

* modify codebase cmakelist

* fix rename
2023-04-28 20:49:22 +08:00
Chen Xin 2c7e91b8ae
Fix rknn and aarch64 build ci (#1980)
* fix ci build script doesn't fail when error occurs

* fix build_cpu_model_convert

* upgrade pip

---------

Co-authored-by: RunningLeon <maningsheng@sensetime.com>
2023-04-23 11:18:37 +08:00
RunningLeon 63258036bb
remove circleci (#1999)
* remove circleci

* fix dead urls
2023-04-21 12:55:14 +08:00
RunningLeon 58bcdaea77
Fix retinanet wrong visualization with torch1.13+openvino (#1977)
* fix

* fix ci

* fix dead links
2023-04-12 11:55:03 +08:00
RunningLeon 4bb9bc738c
bump version to v1.0.0 (#1960)
* change docs from 1.x to main

* bump version

* update readme status info and highlights

* revert version change

* fix dead links

* fix script

* fix docs

* fix building status

* fix md lint error

* upgrade to ubuntu20.04 for github ci

* Revert "upgrade to ubuntu20.04 for github ci"

This reverts commit 9c598f4857.

* update codebase md files

* upgrade to ubuntu20.04 for github ci

* fix

* fix requirements

* fix

* fix ci

* bump version

* fix

* fix pplnn torchscript

* fix building status

* fix ncnn

* fix

* remove circileci hold

* fix pytorch image
2023-04-06 12:07:42 +08:00
RunningLeon 0196cd0048
[Enhancement]: Update dockerfile and add github release note (#1952)
* update dockerfile and add github release note

* fix typo in get_started

* fix comment
2023-04-03 15:57:20 +08:00
Chen Xin 8cab33c4f9
Update get_started.md (#1947)
* 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

* fix prebuild ci

* try to fix prebuild ci

* fix prebuild ci

* remove trigger [no ci]
2023-04-03 11:11:47 +08:00
Chen Xin ea73f20fe4
[Refactor] Rename mmdeploy_python to mmdeploy_runtime (#1821)
* rename mmdeploy_python -> mmdeploy_runtime

* remove incompatible build config

* Revert "remove incompatible build config"

This reverts commit cdc780cde5.

* fix builder

* update package_tools docs

* fix linux set_env script

* fix gcc 7.3 aligned_alloc

* fix link

* comment temporarily as text_det_recog can't be built with prebuild package built under manylinux
2023-03-29 20:57:21 +08:00
Chen Xin a14177c0eb
[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>
2023-03-23 17:00:19 +08:00
RunningLeon 2fcc8dc19d
[Feature]: Add github workflow based on self hosted runner (#1751)
* add win10 workflow

* update

* update and add dockerfile

* update script

* add build docker image script

* update

* support cuda10.2

* update docker file

* update build image tag

* add release docker file

* update release dockerfile

* fix ncnn python build

* test docker workflow

* remove docker build workflow

* fix comments

* add conda-incubator

* update build script and workflow

* fix comments
2023-03-21 11:44:11 +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
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
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
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
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
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
lvhan028 f7f70c95c0 [Feature] Support rv1126 in sdk (#1238) 2022-11-10 15:25:33 +08:00
AllentDan 97a9182a65 cherry-pick from master with commit 3eb60ea 2022-11-01 16:35:32 +08:00
lvhan028 139080c56f update issue form (#1206)
* update issue form

* udpate issue form

* udpate issue form

* udpate issue form

* udpate issue form
(cherry picked from commit 1c478393c0)
2022-11-01 16:29:05 +08:00
tpoisonooo 453f240335 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
(cherry picked from commit ace44ae9d9)
2022-11-01 16:29:01 +08:00
RunningLeon 7cbd175bdd Merge remote-tracking branch 'upstream/master' into sync_with_master 2022-10-14 16:30:37 +08:00
RunningLeon 775cf0c03c Merge remote-tracking branch 'upstream/dev-1.x' into sync_with_master 2022-10-14 15:06:01 +08:00
hanrui1sensetime 81fc48f2b2
[Fix] Fix mmengine ci (#1192)
* try fix ci

* fix ci

* fix ci

* fix circleci

* fix ocr

* fix mmengine version

* install from github

* update

* update ci

Co-authored-by: RunningLeon <mnsheng@yeah.net>
2022-10-14 15:03:24 +08:00
Mengyang Liu f8551b0316
Fix rust_api CI (#1194)
* Update rust_api.yml

* Update rust_api.yml

* Update rust_api.yml

* Update rust_api.yml
2022-10-14 14:35:49 +08:00
RunningLeon 6e9c2527b4 merge master from c35099ef0 2022-10-13 11:12:07 +08:00
Mengyang Liu ee1b4d756d
Update rust_api.yml (#1172) 2022-10-10 15:59:34 +08:00
RunningLeon da1204db37 Update CI to only use python -m 2022-09-30 18:45:23 +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
RunningLeon 144fcf7b3a fix github ci
add mim

update circle ci

fix tests

fix ci
2022-09-29 16:26:31 +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
q.yao f2bc808fe3
New issue template (#1007)
* update bug report

* update issue template

* update bug-report
2022-09-07 16:00:37 +08:00
tpoisonooo 8e9578c04d
fix(CI): update link checker (#1008) 2022-09-07 15:59:48 +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
Li Zhang 792c27b054
[Feature] Ascend backend (#747)
* add acl backend

* support dynamic batch size and dynamic image size

* add preliminary ascend backend

* support dtypes other than float

* support dynamic_dims in SDK

* fix dynamic batch size

* better error handling

* remove debug info

* [WIP] dynamic shape support

* fix static shape

* fix dynamic batch size

* add retinanet support

* fix dynamic image size

* fix dynamic image size

* fix dynamic dims

* fix dynamic dims

* simplify config files

* fix yolox support

* fix negative index

* support faster rcnn

* add seg config

* update benchmark

* fix onnx2ascend dynamic shape

* update docstring and benchmark

* add unit test, update documents

* fix wrapper

* fix ut

* fix for vit

* error handling

* context handling & multi-device support

* build with stub libraries

* add ci

* fix lint

* fix lint

* update doc ref

* fix typo

* down with `target_link_directories`

* setup python

* makedir

* fix ci

* fix ci

* remove verbose logs

* fix UBs

* export Error

* fix lint

* update checkenv

Co-authored-by: grimoire <yaoqian@sensetime.com>
2022-09-05 12:08:36 +08:00
tpoisonooo 9b3db48de9
fix(CI): ort test all pipeline (#985) 2022-09-02 17:34:22 +08:00
tpoisonooo 306616fc34
fix(CI): typo (#983) 2022-09-02 16:06:53 +08:00
RunningLeon 5874f1039b
Add CI to test full pipeline (#966)
* add mmcls full pipeline test ci

* update

* update

* add mmcv

* install torch

* install mmdeploy

* change clone with https

* install mmcls

* update

* change mmcls version

* add mmcv version

* update  mmcls version

* test sdk

* tast with imagnet

* sed pipeline

* print env

* update

* move to backend-ort ci

* install mim
2022-09-02 10:55:53 +08:00
Chen Xin c04dcd2c62
Support risc-v platform (#910)
* add ppl.nn riscv engine

* update ppl.nn riscv engine

* udpate riscv service (ncnn backend)

* update _build_wrapper for ncnn

* fix build

* fix lint

* update default uri

* update file structure & add cn doc

* remove copy input data

* update docs

* remove ncnn server

* fix docs

* update zh doc

* update toolchain

* remove unused

* update doc

* update doc

* update doc

* rename cross build dirname

* add riscv.md to build_from_source.md

* update cls model

* test ci

* test ci

* test ci

* test ci

* test ci

* update ci

* update ci
2022-08-26 13:54:40 +08:00
tpoisonooo 4534598056
improvement(installation): add script install mmdeploy (#919)
* feat(tools): add build ubuntu x64 ncnn

* ci(tools): add ncnn auto install

* fix(ci): auto install ncnn

* fix(tools): no interactive

* docs(build): add script build

* CI(ncnn): script install ncnn

* docs(zh_cn): fix error os

* fix

* CI(tools/script): test ort install passed

* update

* CI(tools): support pplnn

* CI(build): add pplnn

* docs(tools): update

* fix

* CI(tools): script install torchscript

* docs(build): add torchscript

* fix(tools): clean code and doc

* update

* fix(CI): requirements install failed

* debug CI

* update

* update

* update

* feat(tools/script): support user specify make jobs

* fix(tools/script): fix build pplnn with cuda

* fix(tools/script): torchscript add tips and simplify install mmcv

* fix(tools/script): check nvcc version first

* fix(tools/scripts): pplnn checkout

* fix(CI): add simple check install succcess

* fix

* debug CI

* fix

* fix(CI): pplnn install mis wheel

* fix(CI): build error

* fix(CI): remove misleading message
2022-08-26 13:53:53 +08:00
RunningLeon b1e7579bdd
add cflags explicitly in ci (#945) 2022-08-25 13:54:42 +08:00
tpoisonooo 127125f641
docs(project): sync en and zh docs (#842)
* docs(en): update file structure

* docs(zh_cn): update

* docs(structure): update

* docs(snpe): update

* docs(README): update

* fix(CI): update

* fix(CI): index.rst error

* fix(docs): update

* fix(docs): remove mermaid

* fix(docs): remove useless

* fix(docs): update link

* docs(en): update

* docs(en): update

* docs(zh_cn): remove \[

* docs(zh_cn): format

* docs(en): remove blank

* fix(CI): doc link error

* docs(project): remove "./" prefix

* docs(zh_cn): fix mdformat

* docs(en): update title

* fix(CI): update docs
2022-08-15 10:18:17 +08:00
lvhan028 a15365e93f
[Enhancement] build sdk python api in standard-alone manner (#810)
* build sdk python api in standard-alone manner

* enable MMDEPLOY_BUILD_SDK_MONOLITHIC and MMDEPLOY_BUILD_EXAMPLES in prebuild config

* link mmdeploy to python target when monolithic option is on

* checkin README to describe precompiled package build procedure

* use packaging.version.parse(python_version) instead of list(python_version)

* fix according to review results

* rebase master

* rollback cmake.in and apis/python/CMakeLists.txt

* reorganize files in install/example

* let cmake detect visual studio instead of specifying 2019

* rename whl name of precompiled package

* fix according to review results
2022-08-02 10:23:48 +08:00
tpoisonooo 2968a18d80
feat(tools/deploy.py): support snpe (#789)
* fix(tools/deploy.py): support snpe

* improvement(backend/snpe): review advices

* docs(backend/snpe): update build

* docs(backend/snpe): server support specify port

* docs(backend/snpe): update path

* fix(backend/snpe): time counter missing argument

* docs(backend/snpe): add missing argument

* docs(backend/snpe): update download and using

* improvement(snpe_net.cpp): load model with modeldata
2022-08-01 11:08:55 +08:00
tpoisonooo f54da4e73f
improvement(sdk): add sdk code coverage (#808)
* feat(doc): add CI

* CI(sdk): add sdk coverage

* style(test): code format

* fix(CI): update coverage.info path

* improvement(CI): use internal image

* improvement(CI): push coverage info once
2022-07-29 13:57:54 +08:00
tpoisonooo 41ddcafbb4
Rename onnx2ncnn to mmdeploy_onnx2ncnn (#694)
* improvement(tools/onnx2ncnn.py): rename to mmdeploy_onnx2ncnn

* format(tools/deploy.py): clean code

* fix(init_plugins.py): improve if condition

* fix(CI): update target

* fix(test_onnx2ncnn.py): update desc

* Update init_plugins.py
2022-07-08 09:21:32 +08:00