ON THIS PAGE

  • Overview
  • Conversion
  • Parameter Reference
  • Source-model input settings
  • Platform and export settings
  • Quantization settings
  • Raw ONNX vs ONNX NN Archive
  • Troubleshooting

Detailed Conversion

Overview

To make full use of AI models on our devices, they must first be converted into the RVC compiled format for the target platform. If you would like to understand what conversion is, why it is needed, and some of the key concepts involved, see the Conversion section.While Hub provides a fast and simplified option through the Quick Conversion tool, some workflows require deeper control. The Detailed Conversion workflow is designed for these more advanced use cases, offering fine-grained configuration parameters and version/variant management. If you instead prefer a fast, one-off conversion with minimal setup, see the Quick Conversion section.

Conversion

Step by step instructions:

Open the model variant

Open Hub, navigate to the Models section, open the desired model, scroll to Model Variants, and click Convert next to the variant you want to export.

Choose the target platform

Select the target RVC platform. The available targets depend on the uploaded base model format. In practice, ONNX-based model sources offer the broadest conversion support across platforms.

Configure the conversion form

Review the prefilled values and adjust them as needed. If the base model is a raw ONNX file, enter the source-model input settings manually. If the base model is an ONNX NN Archive, use its config.json as the source of truth and only change values if the archive metadata is incorrect.Use the reference sections below for the exact meaning of each field.

Export and confirm the result

Click Export to start the conversion. The new model instance first appears as Pending and changes to Success when the export is ready. You can then download the converted archive or reference it directly through DepthAI.

Parameter Reference

Source-model input settings

ParameterCategoryMeaning
ShapeSource modelInput shape expected by the source model
Mean ValuesSource modelPer-channel values subtracted from the input
Scale ValuesSource modelPer-channel divisors applied after mean subtraction
Encoding FromSource modelChannel order expected by the source model
Encoding ToExported modelChannel order expected by the converted model at runtime

Platform and export settings

ParameterCategoryMeaning
Model Instance NameExported modelName of the converted instance shown in Hub
Ir version / Snpe versionConversion processTarget conversion format or runtime version
Disable Onnx SimplificationConversion processDisables ONNX graph simplification during conversion
Mo ArgsConversion processExtra OpenVINO Model Optimizer arguments for RVC2 and RVC3
Compile Tool ArgsConversion processExtra OpenVINO compile tool arguments for RVC2
POT Target DeviceConversion processPOT target device for RVC3
Convert to blobExported modelExports .blob instead of .superblob for RVC2

Quantization settings

ParameterCategoryMeaning
Quantization DataConversion processDataset used to calibrate quantized conversion
Max Quantization ImagesConversion processMaximum number of images used during quantization
Target PrecisionConversion processPrecision target such as FP16 or INT8 for RVC4
In the Hub UI, you can choose from the generic datasets listed below:
  • Driving - Images of streets and vehicles (OIv7 classes like Vehicle, Car, Traffic light, etc.)
  • Food - Images of fruit, vegetables, raw and prepared foods (OIv7 classes like Apple, Salad, Pizza, etc.)
  • General - A random subset of OIv7 images representing a diverse set of objects and scenes
  • Indoors - Images of indoor spaces (OIv7 classes like Table, Chair, Fireplace, etc.)
  • Random - Random-pixel images
  • Warehouse - Images of warehouse interiors (a random subset of forklift-1 images)
If you need a custom quantization dataset, use the HubAI SDK. For more advanced conversion and quantization options, see the ModelConverter documentation.

Raw ONNX vs ONNX NN Archive

Starting pointWhat Hub can determine automaticallyWhat you still need to define
Raw ONNXTensor structure from the graphTraining-time preprocessing choices and semantic output metadata such as class names and parser configuration
ONNX NN ArchiveTensor metadata, preprocessing, and optional heads metadata from config.jsonExport choices such as target platform and conversion-specific options
If you start from a correctly defined ONNX NN Archive, you normally should not edit the exported archive manually. It is expected that the exported archive differs from the source archive. For example, the model path changes from model.onnx to a compiled artifact such as .superblob, .blob, or .dlc, and mean / scale can become null because preprocessing was baked into the compiled model.

Troubleshooting

Not all models can be converted for the desired platform. You can inspect failed conversion logs as follows:

Open the failed conversion job

Find the failed job in the Failed Conversions section and open it.

Download or inspect the logs

Use the Logs button in the top right corner to download the logs, or inspect the Conversion process logs section directly on the page.