Thank you for link
I didn’t fully understand it, but I replaced the existing sigmoid method of quantization_param ([conv42, conv53, conv63], force_range_out=[0.0, 1.0])
, so the model trained by GPU was made into a hef file..!
And i try .hef
file in Raspberry pi5(hailo8), it worked
Below, I will write down before and after the change of the existing .alls
file for others to refer to
Spec
- model : yolov8n
- hailo version : 4.20
- env : Docker images and create venv
- inference test raspberry : Raspberry Pi5, Hailo8
Before
(it worked cpu trained models, but didn’t work gpu trained models)
normalization1 = normalization([0.0, 0.0, 0.0], [255.0, 255.0, 255.0])
change_output_activation(conv42, sigmoid)
change_output_activation(conv53, sigmoid)
change_output_activation(conv63, sigmoid)
nms_postprocess("../../postprocess_config/yolov8n_nms_config.json", meta_arch=yolov8, engine=cpu)
After
(it worked gpu trained models)
normalization1 = normalization([0.0, 0.0, 0.0], [255.0, 255.0, 255.0])
quantization_param([conv42, conv53, conv63], force_range_out=[0.0, 1.0])
nms_postprocess("../../postprocess_config/yolov8n_nms_config.json", meta_arch=yolov8, engine=cpu)