NAME | VALUE | DEFAULT | REMARK |
---|---|---|---|
MMDEPLOY_SHARED_LIBS | {ON, OFF} | ON | Switch to build shared libs |
MMDEPLOY_BUILD_SDK | {ON, OFF} | OFF | Switch to build MMDeploy SDK |
MMDEPLOY_BUILD_SDK_MONOLITHIC | {ON, OFF} | OFF | Build single lib |
MMDEPLOY_BUILD_TEST | {ON, OFF} | OFF | Build unittest |
MMDEPLOY_BUILD_SDK_PYTHON_API | {ON, OFF} | OFF | Switch to build MMDeploy SDK python package |
MMDEPLOY_BUILD_SDK_CSHARP_API | {ON, OFF} | OFF | Build C# SDK API |
MMDEPLOY_BUILD_SDK_JAVA_API | {ON, OFF} | OFF | Build Java SDK API |
MMDEPLOY_BUILD_TEST | {ON, OFF} | OFF | Switch to build MMDeploy SDK unittest cases |
MMDEPLOY_SPDLOG_EXTERNAL | {ON, OFF} | OFF | Build with spdlog installation package that comes with the system |
MMDEPLOY_ZIP_MODEL | {ON, OFF} | OFF | Enable SDK with zip format |
MMDEPLOY_COVERAGE | {ON, OFF} | OFF | Build for cplus code coverage report |
MMDEPLOY_TARGET_DEVICES | {"cpu", "cuda"} | cpu | Enable target device. You can enable more by
passing a semicolon separated list of device names to MMDEPLOY_TARGET_DEVICES variable, e.g. -DMMDEPLOY_TARGET_DEVICES="cpu;cuda" |
MMDEPLOY_TARGET_BACKENDS | {"trt", "ort", "pplnn", "ncnn", "openvino", "torchscript", "snpe", "tvm"} | N/A | Enabling inference engine. By default, no target inference engine is set, since it highly depends on the use case. When more than one engine are specified, it has to be set with a semicolon separated list of inference backend names, e.g.
1. trt: TensorRT. TENSORRT_DIR and CUDNN_DIR are needed.
ONNXRUNTIME_DIR is needed.
pplnn_DIR is needed.
ncnn_DIR is needed.
InferenceEngine_DIR is needed.
Torch_DIR is needed.
SNPE_ROOT must existed in the environment variable because of C/S mode.8. coreml: CoreML. Torch_DIR is required.
TVM_DIR is required.
|
MMDEPLOY_CODEBASES | {"mmcls", "mmdet", "mmseg", "mmedit", "mmocr", "all"} | all | Enable codebase's postprocess modules. You can provide a semicolon separated list of codebase names to enable them, e.g., -DMMDEPLOY_CODEBASES="mmcls;mmdet" . Or you can pass all to enable them all, i.e., -DMMDEPLOY_CODEBASES=all |