Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue while converting yolov8n onnx model to hef file #133

Open
saailNar opened this issue Oct 17, 2024 · 1 comment
Open

Issue while converting yolov8n onnx model to hef file #133

saailNar opened this issue Oct 17, 2024 · 1 comment

Comments

@saailNar
Copy link

saailNar commented Oct 17, 2024

I fine tuned my yolov8n model and exported onnx file. After completing this i tried converting to .hef using :

hailomz compile --ckpt ~/yolo8n_epoch40.onnx --calib-path ~/train/images

I am getting the following error:

Screenshot 2024-10-17 160647

I also tried the following steps:

  1. hailomz parse --hw-arch hailo8l --ckpt ~/yolo8n_epoch40.onnx yolov8s
    It parses and converts to .har file but in further steps(step2) of optimizing and compiling it gives the same error.

  2. hailomz optimize yolov8n --hw-arch hailo8l --har ./yolov8n.har --calib-path train/images

  3. hailomz compile yolov8n --hw-arch hailo8l --har ./yolov8n.har --calib-path train/images

@saailNar saailNar changed the title Issue while coneverting yolov8n onnx model to hef file Issue while converting yolov8n onnx model to hef file Oct 17, 2024
@cvramanan
Copy link

Try setting the "opset" parameter in yolov8 export to 11 and convert it to .onnx format. This error may be due to a mismatch in the layer name.
https://github.com/hailo-ai/hailo_model_zoo/tree/833ae6175c06dbd6c3fc8faeb23659c9efaa2dbe/training/yolov8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants