What changes should I make to convert the pretrained YOLOX-s model from YOLOX to hef format? I reused hailo_model_zoo/cfg/networks/yolox_s_wide_leaky.yaml and changed the end node names and then converted the model to hef format using the following command
The error you encountered, where the buffer size does not match expectations, often points to issues with layer configurations or mismatches between the compiled model structure and Hailo hardware specifications. Here are steps to troubleshoot and potentially resolve the issue:
Verify Layer Names and Structure:
Ensure that the layer names specified in your modified yolox_s_wide_leaky.yaml align with those in the yolox_s.onnx model. Changing the end node names may inadvertently affect the expected layer structure, especially with layers that influence buffer sizes.
Check that the layers like yolox_s_leaky/conv55_111 are correctly configured in terms of buffer sizes and channel output. This step may require examining the exact model layer definitions in yolox_s.onnx.
Model Configuration Adjustments:
Review the yolox_s.yaml for any specific parameters related to buffer size or output configuration that might be missing in yolox_s_wide_leaky.yaml. Missing parameters could lead to configuration mismatches.
If yolox_s.yaml has specific layer definitions for Hailo targets, ensure these are incorporated in your modified yolox_s_wide_leaky.yaml.
Calibration File Consistency:
Confirm that the calibration dataset path (--calib-path) is accurate and compatible with the model. Using coco_dataset is appropriate, but ensure it’s accessible and correctly referenced in your environment, as calibration affects layer output shapes and sizes.
Inspect the Compilation Output for Warnings:
When running the hailomz compile command, observe any warnings or notifications. Warnings can sometimes indicate mismatches in layer configuration or alert you to expected buffer sizes that might not align with the hardware’s requirements.
Testing Different Output Node Names:
If you have made changes to the end node names, try reverting to the original names and recompile the model. This test can clarify if the name change affects compatibility with hailortcli.
If these steps do not resolve the issue, please consider sharing additional details about any custom layer modifications made.