RunningLeon
296412fd08
[Docs] Replace markdownlint with mdformat and configure myst-parser ( #610 )
...
* replace mdlint with mdformat
* set myst_heading_anchor for doc
* update precommit yml
* format md files
2022-06-17 09:19:10 +08:00
RunningLeon
3e594b28f6
Fix index.rst and add check ci ( #607 )
...
* move doc link check to lint ci and add index.rst file check
* fix filename
2022-06-16 18:45:04 +08:00
hanrui1sensetime
ef388032d1
[Fix] adapt mmocr different versions ( #604 )
...
* adapt mmocr different versions
* fix lint
* fix runningleon comment
2022-06-16 17:44:16 +08:00
hanrui1sensetime
3f131138d8
fix ocr textdet ( #605 )
2022-06-16 11:11:18 +08:00
tpoisonooo
a228f95335
Improve ncnn patch embed ( #592 )
...
* improvement(PatchEmbed): use reshape instead of flatten
* improvement(init_plugins.py): get onnx2ncnn path
* fix(CI): build error
* fix(CI): revert get onnx2ncnn path
2022-06-15 19:16:51 +08:00
Yosshi999
6c7859510d
Support compute capability 87 archs such as Orin ( #601 )
2022-06-15 19:01:36 +08:00
Li Zhang
28beb9a481
[Enhancement] Adjust `csrc` structure ( #594 )
...
* adjust csrc structure
* adjust csrc includes
* fix lint
* fix lint
* fix MSVC build
* remove useless code
2022-06-14 13:46:01 +08:00
Li Zhang
86a50e343a
[Fix] Fix demo link ( #588 )
...
* fix demo link
* update urls
2022-06-13 11:07:34 +08:00
Liu Qingchen
e84bc30f4a
fix a typo in Build for Jetson ( #586 )
...
fix a typo described in issue #585
2022-06-10 13:37:15 +08:00
lvhan028
4335313fb7
bump version to v0.5.0
...
bump version to v0.5.0
2022-06-09 13:22:25 +08:00
Chen Xin
cb09d2238b
fix mmcls-c-demo ( #580 )
...
Co-authored-by: irexyc <chenxin2@sensetime.com>
2022-06-09 11:45:57 +08:00
RunningLeon
b29a8a020a
fix build ci not triggerred ( #578 )
...
* fix ci
* ignore scripts
* remove pycuda from requirements
* fix trt apis
2022-06-09 11:19:05 +08:00
hanrui1sensetime
c99379cc76
[Fix] Fix ncnn float bugs for segmentor sdk ( #572 )
...
* fix ncnn float bugs for segmentor sdk
* fix segment for all cases
* fix ut
Co-authored-by: RunningLeon <mnsheng@yeah.net>
2022-06-08 22:30:23 +08:00
lvhan028
e69b7a5838
[docs] fix readthedocs ( #577 )
...
* Fix readthedocs issues
* fix opencv-python to 4.5.4.60
* update according to reviewer comments
2022-06-08 20:39:34 +08:00
Chen Xin
0cb2f67b32
Fix mmpose regression test failed on mmpose v0.26.0 ( #576 )
...
* fix mmpose regression test
* try to fix lint
* fix lint
* remove old config
Co-authored-by: chenxin2 <chenxin2@sensetime.com>
2022-06-08 20:16:23 +08:00
Li Zhang
d1e6155b56
document async APIs as experimental ( #575 )
2022-06-08 18:56:42 +08:00
q.yao
59ed27e2f3
disable onnx export optimizer for 0.5.0 ( #573 )
2022-06-08 17:33:38 +08:00
lvhan028
594c835b6b
merge master and fix the conflicts
2022-06-07 19:04:29 +08:00
lvhan028
e929201827
[Docs] reorganize the documents in English and update the contents based on v0.5.0 status ( #531 )
...
* checkout qq group qrcode
* update the cover image
* update build doc
* reorganize chapters
* update readme
* remove index of build on different platforms in readthedocs
* update benchmark
* update get started document in Chinese based on the prebuild package
* update get_started
* re-style benchmark
* update get_started in zh_cn
* update get_started in english
* update get_started in english
* update get_started in english
* update get_started doc
* update according to reviewer comments
* update linker ci
* fix(.github/scripts/check_doc_linker.py): skip code block
* specify PYTHONPATH
* update get_started
* update diagram
* rename some documents
* fix according to reviewer comments
Co-authored-by: tpoisonooo <khj.application@aliyun.com>
2022-06-07 18:05:51 +08:00
Chen Xin
908a69b7d0
compat mmpose v0.26 (sdk) ( #527 )
2022-06-07 17:10:16 +08:00
sanjaypavo
2a0fcb6e71
changing the onnxwrapper script for gpu issue ( #532 )
...
* changing the onnxwrapper script
* gpu_issue
* Update wrapper.py
* Update wrapper.py
* Update runtime.txt
* Update runtime.txt
* Update wrapper.py
2022-06-07 14:21:17 +08:00
lzhangzz
d69280e82f
remove useless code ( #557 )
2022-06-07 14:05:06 +08:00
lvhan028
0d609701df
add sdk python demo ( #554 )
...
* check in python demos
* check in text detector python demo
* check in roatated object python demo
* check in pose python demo
* ignore the output class number when testing metrics with sdk as a backend
* fix object_detection
* rollback segmentation_model and python/segmentor.cpp
2022-06-07 12:16:09 +08:00
q.yao
74243dc98b
[Enhancement] Add ONNX passes support ( #390 )
...
* add merge_shape_concate
* add some peephole optimization
* bug fixing
* fix for torch1.9
* add flatten cls head
* add subgraph matcher with attribute
* add ut
* fix lint
* remove onnx2ncnn
* add opset version
* axis name
* fix peephole
* fix symbol compare
* add docs
2022-06-06 21:30:31 +08:00
tpoisonooo
456076c06b
fix(demo/csrc/CMakeLists.txt): build option ( #553 )
2022-06-06 14:25:18 +08:00
lzhangzz
567ec62296
[Fix] Fix recent build problems ( #544 )
...
* simplify deps management
* skip visibility flags for MSVC
* simplify cuda deps
* naming
* workaround for cmake<3.17
* add spdlog dependency
* move the enablement of CUDA to top level CMakeLists.txt
* fix MSVC build
* fix lint
* fix build for backend ops only
* remove comment
* allow to use apis/python as a standalone project
* remove redundant cmake code
* control shared or static lib using `MMDEPLOY_SHARED_LIBS` instead of `BUILD_SHARED_LIBS`
* fix MSVC build
* update docs
2022-06-06 11:19:34 +08:00
RunningLeon
51f630b22c
Fix test ncnn failure in regression test ( #551 )
...
* fix ncnn test in regression test
* update doc
* fix docstring
2022-06-06 10:00:02 +08:00
tpoisonooo
cd336eada1
improvement(ViT): use Crop to subtitude Gather ( #477 )
...
* improvement(ViT): use Crop to subtitude Gather
* fix(CI): code format
* fix(pytorch/ops/linear.py): bias maybe None
* fix(test/test_pytorch_ops.py): op_type error
* fix(test): pytest error
* fix(test): torch version 1.8
2022-06-02 19:39:15 +08:00
AllentDan
ee878b539b
change resolution and fix regression test for mmocr ( #534 )
2022-06-02 18:29:41 +08:00
tpoisonooo
f969d5a104
docs(do_regression_test): fix-typo ( #547 )
...
* docs(do_regression_test): fix-typo
* improvement(apis/__init__.py): add print
* fix(CI): lint
* revert(apis/__init__.py): remove logging
2022-06-02 17:07:53 +08:00
q.yao
07fe3e85e2
[RegressionTest] Add mmrotate regression test ( #542 )
...
* Add mmrotate regression test
* update regression test script
2022-06-02 14:28:33 +08:00
q.yao
9cbf9ecb18
[Prebuild] Add prebuilt TensorRT build number ( #545 )
...
* Add prebuilt TensorRT build number
* fix
2022-06-01 22:49:55 +08:00
RunningLeon
182cc51746
fix pspnet torchscript conversion ( #538 )
...
* fix pspnet torchscript conversion
* resolve comment
* add IR to rewrite
2022-06-01 19:48:29 +08:00
q.yao
ea1122ce88
[Docs] Update doc for dependency ( #543 )
...
* Update doc for dependency
* update requirements
2022-06-01 15:39:34 +08:00
lzhangzz
46bfe0ac87
[Feature] New pipeline & executor for SDK ( #497 )
...
* executor prototype
* add split/when_all
* fix GCC build
* WIP let_value
* fix let_value
* WIP ensure_started
* ensure_started & start_detached
* fix let_value + when_all combo on MSVC 142
* fix static thread pool
* generic just, then, let_value, sync_wait
* minor
* generic split and when_all
* fully generic sender adapters
* when_all: workaround for GCC7
* support legacy spdlog
* fix memleak
* bulk
* static detector
* fix bulk & first pipeline
* bulk for static thread pools
* fix on MSVC
* WIP async batch submission
* WIP collation
* async batch
* fix detector
* fix async detector
* fix
* fix
* debug
* fix cuda allocator
* WIP type erased executor
* better type erasure
* simplify C API impl
* Expand & type erase TC
* deduction guide for type erased senders
* fix GCC build
* when_all for arrays of Value senders
* WIP pipeline v2
* WIP pipeline parser
* WIP timed batch operation
* add registry
* experiment
* fix pipeline
* naming
* fix mem-leak
* fix deferred batch operation
* WIP
* WIP configurable scheduler
* WIP configurable scheduler
* add comment
* parse scheduler config
* force link schedulers
* WIP pipeable sender
* WIP CPO
* ADL isolation and dismantle headers
* type erase single thread context
* fix MSVC build
* CPO
* replace decay_t with remove_cvref_t
* structure adjustment
* structure adjustment
* apply CPOs & C API rework
* refine C API
* detector async C API
* adjust detector async C API
* # Conflicts:
# csrc/apis/c/detector.cpp
* fix when_all for type erased senders
* support void return for Then
* async detector
* fix some CPOs
* minor
* WIP rework capture mechanism for type erased types
* minor fix
* fix MSVC build
* move expand.h to execution
* make `Expand` pipeable
* fix type erased
* un-templatize `_TypeErasedOperation`
* re-work C API
* remove async_detector C API
* fix pipeline
* add flatten & unflatten
* fix flatten & unflatten
* add aync OCR demo
* config executor for nodes & better executor API
* working async OCR example
* minor
* dynamic batch via scheduler
* dynamic batch on `Value`
* fix MSVC build
* type erase dynamic batch scheduler
* sender as Python Awaitable
* naming
* naming
* add docs
* minor
* merge tmp branch
* unify C APIs
* fix ocr
* unify APIs
* fix typo
* update async OCR demo
* add v3 API text recognizer
* fix v3 API
* fix lint
* add license info & reformat
* add demo async_ocr_v2
* revert files
* revert files
* resolve link issues
* fix scheduler linkage for shared libs
* fix license header
* add docs for `mmdeploy_executor_split`
* add missing `mmdeploy_executor_transfer_just` and `mmdeploy_executor_execute`
* make `TimedSingleThreadContext` header only
* fix lint
* simplify type-erased sender
2022-06-01 14:10:43 +08:00
q.yao
7d367d4575
update ppl __init__.py ( #540 )
2022-05-31 22:53:23 +08:00
lzhangzz
5e51739485
[Feature] Support DBNet, PANet and PSENet for SDK, with GPU aided post-processing ( #526 )
...
* add SDK support for PANet
* fix panet
* fix panet
* simplify panet
* add PSENet support
* fix-psenet
* add CUDA post-processing for DBNet
* fix dbnet
* fix dbnet
* add cpu support for PANet
* fix panet
* add CUDA support for PANet
* fix panet
* format
* add cpu impls for PSENet
* fix psenet
* add cuda impl for PSENet
* fix psenet
* add param parsing
* simplify impls
* simplify impls
* clean-up
* fix lint
* fix cuda-10 build
* fix cuda-10 build
2022-05-31 21:24:09 +08:00
Chen Xin
7ba543be95
fix C# API build option ( #535 )
...
* fix C# API build option
* move option up
Co-authored-by: ChenXin <chenxin2@sensetime.com>
2022-05-31 15:51:19 +08:00
q.yao
b32fc41bed
[Refactor][API2.0] Api refactor2.0 ( #529 )
...
* [refactor][API2.0] Add onnx export and jit trace (#419 )
* first commit
* add async call
* add new api onnx export and jit trace
* add decorator
* fix ci
* fix torchscript ci
* fix loader
* better pipemanager
* remove comment, better import
* add kwargs
* remove comment
* better pipeline manager
* remove print
* [Refactor][API2.0] Api partition calibration (#433 )
* first commit
* add async call
* add new api onnx export and jit trace
* add decorator
* fix ci
* fix torchscript ci
* fix loader
* better pipemanager
* remove comment, better import
* add partition
* move calibration
* Better create_calib_table
* better deploy
* add kwargs
* remove comment
* better pipeline manager
* rename api, remove reduant variable, and misc
* [Refactor][API2.0] Api ncnn openvino (#435 )
* first commit
* add async call
* add new api onnx export and jit trace
* add decorator
* fix ci
* fix torchscript ci
* fix loader
* better pipemanager
* remove comment, better import
* add ncnn api
* finish ncnn api
* add openvino support
* add kwargs
* remove comment
* better pipeline manager
* merge fix
* merge util and onnx2ncnn
* fix docstring
* [Refactor][API2.0] API for TensorRT (#519 )
* first commit
* add async call
* add new api onnx export and jit trace
* add decorator
* fix ci
* fix torchscript ci
* fix loader
* better pipemanager
* remove comment, better import
* add partition
* move calibration
* Better create_calib_table
* better deploy
* add kwargs
* remove comment
* Add tensorrt API
* better pipeline manager
* add tensorrt new api
* remove print
* rename api, remove reduant variable, and misc
* add docstring
* [Refactor][API2.0] Api ppl other (#528 )
* first commit
* add async call
* add new api onnx export and jit trace
* add decorator
* fix ci
* fix torchscript ci
* fix loader
* better pipemanager
* remove comment, better import
* add kwargs
* Add new APIS for pplnn sdk and misc
* remove comment
* better pipeline manager
* merge fix
* update tools/onnx2pplnn.py
* rename function
2022-05-31 09:18:18 +08:00
Yifan Zhou
6fa1787a04
Tutorial 05: ONNX Model Editing ( #517 )
...
* tutorial 05
* Upload image
* resolve comments
* resolve comment
2022-05-28 15:19:14 +08:00
HinGwenWoong
aabab46d8a
[Enhancement] Improve MMDeploy Regression test ( #425 )
...
* make regression test as a module under project
* using `--codebase` instead of `--deploy-yml`
* Improve doc for `--codebase`
* Add shorter arg `-p` for `--performance`
* make `checopoint-dir` as an arg for the script
* Gen error log when convert fail.
* Improve res code for testing
* Doc add sdk test detail
* Doc add env setup
* Fix lint
* Fix doc lint
* Improve model path in report
* Improve report title
* Improve report checkpoint path
* Fix lint
* move test yaml under `tests/regression`
* Improve the test yaml path
* Fix lint
* Improve doc
* make func `update_report` code better
* move doc to new location
* Fix arg
* Update arg details
* Use cpu when openvino and onnxruntime cpu package
* Fix word
* Fix func of openpyxl 3.0.9
* Add some info
* Fix lint
* Fix filename
* Fix doc link
* Fix dir name with space when is not sdk
* Add args `--models` for test specific model(s)
* not saving report when no model in codebase when using `--models`
* Fix doc
* Fix lint
* Add table for metric in doc
* Improve table for doc
* Using `None` install of `['all']`
* Improce doc
* set device type properly
* Increate popen bufsize
* Add `precision_type` in `work-dir`
* Fix popen stuck
* Fix lint
* Fix lint
* Fix popen stuck by using file handler
* Make metric dataset as a list
* Update mmseg.yml
* Remove 'FPS' in the report
* Update do_regression_test.md
* Improve log
* Fix codespell
* Fix doc
* ncnn only save `xxx.param` as checkpoint name in the report
Co-authored-by: maningsheng <mnsheng@yeah.net>
2022-05-27 17:08:32 +08:00
Chen Xin
9e6a3c8ec5
add csharp support ( #388 )
...
* add csharp support, init commit
* export MMDeploySharpExtern.dll when build sdk
* refactor code
* multi frameworks
* move csharp demo to demo folder
* try to fix lint
* try to fix lint
* update csharp demo Readme
* rename MMDeploySharp -> MMDeploy
* add comment why build MMDeployExtern.dll
* squeeze MMDeploy project
* remove Mm
* print error code
* update c# api build README.md
* fix exception
* fix exception
* update demo
* update README.md
* fix typo
* fix ci
* fix ci
* fix formatresult
* add options whether build MMDeployExtern.dll
* update CMakeListst.txt
* change MMDEPLOY_BUILD_CSHARP_EXTERN -> MMDEPLOY_BUILD_SDK_CSHARP_API
* c# api -> C# API
Co-authored-by: chenxin2 <chenxin2@sensetime.com>
2022-05-27 16:02:29 +08:00
AllentDan
571b240500
[Docs] adding new backends when using MMDeploy as a third package ( #482 )
...
* update doc
* refine expression
* cn doc
2022-05-27 14:23:28 +08:00
q.yao
b7bdd2172b
[Enhancement] Add TensorRT fp16 support for MDCN ( #503 )
...
* Add TensorRT support for MDCN
* add define check
2022-05-27 13:02:27 +08:00
RunningLeon
32482e76fd
compat mmpose v0.26 ( #518 )
2022-05-27 10:58:26 +08:00
tpoisonooo
ea0a9e5d43
feat(tools/deploy.py): support ncnn quantization ( #476 )
...
* feat(tools): add onnx2ncnn_quant_table
* feat(tools): add quantization image dataset
* feat(tools): add image dataset
* feat(tools/deploy.py): support quant
* fix(CI): lint
* fix(CI): format
* docs(zh_cn): add quantization usage
* docs(zh_cn): add benchmark
* feat(tools): add onnx2ncnn_quant_table
* docs(zh_cn): add more test result
* CI(github): add quant script
* CI(.github/scripts): add test quant
* fix(CI): remove pushd and popd
* feat(CI): debug
* fix(CI): path error
* fix(CI): fix path
* fix(CI): install wget
* fix(CI): review advices
* improvement(mmdeploy): review advice
* fix(tools): rename to onnx2ncnn_quant_table.py
* improvement(tools): rename file
* improvement(test): remove useless
* fix(tools/quant_image_dataset): remove loadFile in test.pipeline
* docs(quantization.md): update description
* fix(CI): protobuf version
* fix(CI): pip install
* docs(quantization): review advice
* fix(CI): revert mmcv version
* fix(CI): udpate pb version
* fix(CI): update
2022-05-26 19:53:56 +08:00
RunningLeon
0878b8ff7d
Fix mask test with mismatched device ( #511 )
...
* align mask output to cpu device
* align ncnn ssd output to torch.Tensor type
* --amend
2022-05-26 13:02:09 +08:00
Johannes L
651eec239b
MMdeploy build & install script + prerequisites ( #399 )
...
* Initial commit of build script
* Fixed lint
* * Set prefix depending on install arch
* Auto detect installed version of cmake, gcc. Update if necessary
* Prompt to reinstall venv if exists
* Disable .tar packing
* Enable MMDEPLOY SDK Python
* Misc cleanup
* Fixed lint
* Renamed script
* * Set env variables without restarting script.
* OpenCV install optional.
* Fix numpy OPENBLAS_CORETYPE on numpy >1.19.4.
* Remove specific build files.
* Fix prebuild output .tar.gz.
* Comments added. exec bash when closing script
* * Use root dir as MMDeploy dir.
* Use pip3.
* Remove explicit MMDeploy checkout version.
* Use MMDEPLOY_DIR for examples path
* Make PyTorch, torchvision, mmcv install optional
* * Do not deactivate python venv.
* Make prebuild archive optional.
* Add venv* to gitignore
* * Add support for unattended, interactive install. * Cleanup misc. comments.
* Check input arguments before continuing.
* Added additional log messages, comments added
* Added default option when pressing [ENTER]
* * Rearranged cmake, gcc build/install order.
* Mention default option when reinstalling venv
* sudo make install instead of cmake --install
* Moved script to tools/scripts
* Fixed relative path when generating WORKING_DIR
2022-05-25 17:13:24 +08:00
Yue Zhou
89204d16ce
[Feature] Support two stage rotated detector in MMRotate ( #473 )
...
* upload
* add fake_multiclass_nms_rotated
* delete unused code
* align with pytorch
* Update delta_midpointoffset_rbbox_coder.py
* rewrite atan2
* Update bbox_nms.py
2022-05-25 13:41:16 +08:00
RunningLeon
4f49763c28
fix mmseg twice resize ( #480 )
...
* fix mmseg twich resize
* remove comment
2022-05-25 09:52:42 +08:00