Usage
Celantur SDK guide for model compilation and inference
Example
What it demonstrates
Workflow for model compilation
Example code for TensorRT
#include "CelanturSDKInterface.h"
#include "CommonParameters.h"
// 1. Create instance of ModelCompiler
CelanturSDK::ModelCompilerParams compiler_params;
compiler_params.inference_plugin = "/usr/local/lib/libTensorRTRuntime.so";
CelanturSDK::ModelCompiler compiler("/path/to/license", compiler_params);
// 2. Get settings
celantur::InferenceEnginePluginCompileSettings settings = compiler.preload_model("/path/to/model.onnx.enc");
// 3. Adjust settings
settings["precision"] = celantur::CompilePrecision::FP32;
settings["optimisation_level"] = celantur::OptimisationLevel::Low;
// 4. Compile model
compiler.compile_model(settings, model_path_compiled);Workflow for inference and blurring
Initialise process engine
Example Code
Run inference and blurring
Example Code
Last updated