computer-visiondeep-learningdeploymentmmdetectionmmsegmentationmodel-converterncnnonnxonnxruntimeopenvinopplnnpytorchsdktensorrt
* first * fix0 * fix1 * dirty work * wip * add allocator * finally done! * lint * fix lint * better gather * better onnx2ncnn * fix expand * [Fix] NCNN TensorSlice op bugs (#42) * fix custom ops support, fix multiple mark bug, add name mapping * check if the value_info need to be added * remove unnecessary print * add nms implement * two stage split wip * add two stage split * add split retinanet visualize * add two stage split (wip) * finish two stage split * fix lint * move parse string to mmdeploy.utils * add calib data generator * create calib dataset * finish end2end int8 * add split two stage tensorrt visualize * fix tensorslice bugs * fix lint * fix clang-format * remove comments * int param * fix lint Co-authored-by: grimoire <yaoqian@sensetime.com> * add two stage ncnn support * remove unused ops * git unused config * remove no_grad, should add in refactor * add ncnn wrapper * fix lint * size return tuple * Resolve grammar error * Fix lint * Trim Trailing Whitespace * fix trim * update wrapper * remove logs * remove * csrc optimize * add ncnn dbnet support * finish crnn support * add comment Co-authored-by: hanrui1sensetime <83800577+hanrui1sensetime@users.noreply.github.com> |
||
---|---|---|
.github/workflows | ||
backend_ops | ||
configs | ||
docker | ||
docs | ||
mmdeploy | ||
tests | ||
third_party | ||
tools | ||
.gitignore | ||
.gitmodules | ||
.isort.cfg | ||
.pre-commit-config.yaml | ||
CMakeLists.txt | ||
LICENSE | ||
README.md | ||
setup.cfg | ||
setup.py |
README.md
MMDeployment
Installation
-
Build backend ops
-
update submodule
git submodule update --init
-
Build with onnxruntime support
mkdir build cd build cmake -DBUILD_ONNXRUNTIME_OPS=ON -DONNXRUNTIME_DIR=${PATH_TO_ONNXRUNTIME} .. make -j10
-
Build with tensorrt support
mkdir build cd build cmake -DBUILD_TENSORRT_OPS=ON -DTENSORRT_DIR=${PATH_TO_TENSORRT} .. make -j10
-
Build with ncnn support
mkdir build cd build cmake -DBUILD_NCNN_OPS=ON -DNCNN_DIR=${PATH_TO_NCNN} .. make -j10
-
Or you can add multiple flags to build multiple backend ops.
-
-
Setup project
python setup.py develop
Usage
python ./tools/deploy.py \
${DEPLOY_CFG_PATH} \
${MODEL_CFG_PATH} \
${MODEL_CHECKPOINT_PATH} \
${INPUT_IMG} \
--work-dir ${WORK_DIR} \
--device ${DEVICE} \
--log-level INFO