mirror of
https://github.com/open-mmlab/mmdeploy.git
synced 2025-01-14 08:09:43 +08:00
* mmedit -> mmagic --initial * fix codebase/cmakelist * add tests/test_codebase/test_mmagic/data/ * fix lint * fix rename * fix EditDataPreprocessor * fix EditTestLoop to TestLoop for mmagic * fix EditValLoop to ValLoop for mmagic * fix EditEvaluator to Evaluator for mmagic * modify rgtest/mmagic.yml * fix to MultiEvaluator * fix mmagic model.py * fix reg_test * fix lint * pass rgtest * fix ci quantize.yml * fix ci * update docs * fix lint * fix lint * fix lint * fix sr end2endmodel device * change destruct device back to cpu * modify output device * rename function name * update docstring
4.1 KiB
4.1 KiB
CMake Build Option Spec
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.
After specifying the inference engine, it's package path has to be passed to cmake as follows, 1. trt: TensorRT. TENSORRT_DIR and CUDNN_DIR are needed.
2. ort: ONNXRuntime. ONNXRUNTIME_DIR is needed.
3. pplnn: PPL.NN. pplnn_DIR is needed.
4. ncnn: ncnn. ncnn_DIR is needed.
5. openvino: OpenVINO. InferenceEngine_DIR is needed.
6. torchscript: TorchScript. Torch_DIR is needed.
7. snpe: qcom snpe. SNPE_ROOT must existed in the environment variable because of C/S mode.8. coreml: CoreML. Torch_DIR is required.
9. TVM: TVM. TVM_DIR is required.
|
MMDEPLOY_CODEBASES | {"mmpretrain", "mmdet", "mmseg", "mmagic", "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="mmpretrain;mmdet" . Or you can pass all to enable them all, i.e., -DMMDEPLOY_CODEBASES=all |