Error while optimization for custom dataset

Is there any steps i am missing for optimization:

  1. I have pretrained ONNX model.
  2. Using hailo zoo for model optimization and compilation.
  3. Calibration dataset is coco dataset, as i don’t see documentation for using custom data set.
  4. I have done batch normalization while training.

Getting below error after optimization.

hailo_model_optimization.acceleras.utils.acceleras_exceptions.NegativeSlopeExponentNonFixable: Quantization failed in layer yolov8n_seg/conv45 due to unsupported required slope. Desired shift is 10.0, but op has only 8 data bits. This error raises when the data or weight range are not balanced. Mostly happens when using random calibration-set/weights, the calibration-set is not normalized properly or batch-normalization was not used during training.

Hi @kewalrc19,
Please refer to my response here: