Hi. I’m following this example
I’m trying to covert my custom onnx file to hef file and use it on rasberrypi5 (with hailo8)
my develop env :
OS : Ubuntu 22.04.5
python version : 3.10.12
dataflow complier version : 3.28
now I just run this command in order to convert.
and here is the error i got.
hailomz compile yolov8s --ckpt=best_s.onnx --hw-arch hailo8 --calib-path train/images --classes 2 --performance
(hailodfc) jaewon@JaewonAhn:~/hailo_model_zoo$ hailomz compile yolov8s --ckpt=best_s.onnx --hw-arch hailo8 --calib-path train/images --classes 2 --performance
In file included from /home/jaewon/hailodfc/lib/python3.10/site-packages/numpy/core/include/numpy/ndarraytypes.h:1948,
from /home/jaewon/hailodfc/lib/python3.10/site-packages/numpy/core/include/numpy/ndarrayobject.h:12,
from /home/jaewon/hailodfc/lib/python3.10/site-packages/numpy/core/include/numpy/arrayobject.h:5,
from /home/jaewon/.pyxbld/temp.linux-x86_64-cpython-310/home/jaewon/hailo_model_zoo/hailo_model_zoo/core/postprocessing/cython_utils/cython_nms.c:1246:
/home/jaewon/hailodfc/lib/python3.10/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:17:2: warning: #warning "Using deprecated NumPy API, disable it with " “#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION” [-Wcpp]
17 | #warning "Using deprecated NumPy API, disable it with "
| ^~~~~~~
Traceback (most recent call last):
File “/home/jaewon/hailodfc/bin/hailomz”, line 33, in
sys.exit(load_entry_point(‘hailo-model-zoo’, ‘console_scripts’, ‘hailomz’)())
File “/home/jaewon/hailo_model_zoo/hailo_model_zoo/main.py”, line 122, in main
run(args)
File “/home/jaewon/hailo_model_zoo/hailo_model_zoo/main.py”, line 101, in run
from hailo_model_zoo.main_driver import compile, evaluate, optimize, parse, profile
File “/home/jaewon/hailo_model_zoo/hailo_model_zoo/main_driver.py”, line 16, in
from hailo_model_zoo.core.main_utils import (
File “/home/jaewon/hailo_model_zoo/hailo_model_zoo/core/main_utils.py”, line 18, in
from hailo_model_zoo.core.infer import infer_factory
File “/home/jaewon/hailo_model_zoo/hailo_model_zoo/core/infer/infer_factory.py”, line 14, in
discovered_plugins = {name: importlib.import_module(name) for _, name, _ in iter_namespace(hailo_model_zoo.core.infer)}
File “/home/jaewon/hailo_model_zoo/hailo_model_zoo/core/infer/infer_factory.py”, line 14, in
discovered_plugins = {name: importlib.import_module(name) for _, name, _ in iter_namespace(hailo_model_zoo.core.infer)}
File “/usr/lib/python3.10/importlib/init.py”, line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File “/home/jaewon/hailo_model_zoo/hailo_model_zoo/core/infer/hw_infer_utils.py”, line 6, in
from hailo_platform import (
ModuleNotFoundError: No module named ‘hailo_platform’
I have no idea what to do.
- it seems like I have to use hailoRT to execute hef file on rasberrypi 5. is it right? and please give me guide like.
Thank you for reading