Greetings!
I’m new to the HAILO 8L processor for the Pi 5 - The issue I’m having is converting a yolov8n.pt [Ultralytics] YOLO model to yolov8n.hef format. I have my own custom Yolo11n model I eventually want to convert - tried and failed miserably - so I figured simply take the standard Ultralytics Yolov8n model and try converting it to .hef as a test [should be easy right?].
I’m running a x86_64 docker environment Ubuntu 22.04 no GPU support - I’ve tested this on an Intel Mac and a M4 Mac [using rosetta] and obtained the exact same results.
Using ultralytics v8.3.228, I converted the Ultralytics yolov8n.pt to yolov8n.onnx as follows…
**yolo export model=yolov8n.pt imgsz=640 opset=11 format=onnx**
Note: I have tried several opset settings including omitting it altogether - no difference
INow on the docker image…
nstalled: Python 3.10
**hailo_model_zoo-2.17.1-py3-none-any.whl**
**hailo_dataflow_compiler-3.33.0-py3-none-linux_x86_64.whl**
NO ERRORS DURING INSTALLATION
hailomz --version
**Hailo Model Zoo v2.17.1**
I place an “images” folder in my home [working directory] this folder contains 800 .jpg training images 1280x720. For calibration i’m assuming it won’t matter that it’s not the COCO set since eventually i want to use this with my own model conversion.
The resulting yolov8n.onnx is placed in my home folder, let’s compile…
**hailomz compile yolov8n --hw-arch hailo8l --ckpt ./yolov8n.onnx --calib-path ./images --classes 80**
It fails with this:
[info] No GPU chosen and no suitable GPU found, falling back to CPU.
…
[info] Saved HAR to: /root/home/yolov8n.har
[info] Loading model script commands to yolov8n from /usr/local/lib/python3.10/dist-packages/hailo_model_zoo/cfg/alls/generic/yolov8n.alls
[info] To achieve optimal performance, set the compiler_optimization_level to “max” by adding performance_param(compiler_optimization_level=max) to the model script. Note that this may increase compilation time.
##################
[error] Failed to produce compiled graph
[error] TypeError: expected str, bytes or os.PathLike object, not NoneType
##################
I have at least a dozen variations and they all end with this error message. Any idea what I’m doing wrong in converting a standard off-the-shelf Ultralytics model to convert? I figure once this works I may have better luck converting my own model.
Any words of wisdom would be appreciated.