SdkFineTune import error

i truely have no idea what is wrong, i installed hailort and the hailo model zoo. requirements and everything.

(venv) segev@segev-ubuntu:~/convertToHef/hailo_model_zoo$ hailomz compile yolov8n --ckpt=quad_nv1.onnx --hw-arch hailo8l --calib-path train/images --classes 4 --performance
[info] No GPU chosen and no suitable GPU found, falling back to CPU.
Traceback (most recent call last):
File “/home/segev/convertToHef/venv/bin/hailomz”, line 33, in
sys.exit(load_entry_point(‘hailo-model-zoo’, ‘console_scripts’, ‘hailomz’)())
File “/home/segev/convertToHef/supported_version/hailo_model_zoo/hailo_model_zoo/main.py”, line 122, in main
run(args)
File “/home/segev/convertToHef/supported_version/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/segev/convertToHef/supported_version/hailo_model_zoo/hailo_model_zoo/main_driver.py”, line 16, in
from hailo_model_zoo.core.main_utils import (
File “/home/segev/convertToHef/supported_version/hailo_model_zoo/hailo_model_zoo/core/main_utils.py”, line 18, in
from hailo_model_zoo.core.infer import infer_factory
File “/home/segev/convertToHef/supported_version/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/segev/convertToHef/supported_version/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/segev/.pyenv/versions/3.10.12/lib/python3.10/importlib/init.py”, line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File “/home/segev/convertToHef/supported_version/hailo_model_zoo/hailo_model_zoo/core/infer/np_infer.py”, line 5, in
from hailo_sdk_client import SdkFineTune
ImportError: cannot import name ‘SdkFineTune’ from ‘hailo_sdk_client’ (/home/segev/convertToHef/venv/lib/python3.10/site-packages/hailo_sdk_client/init.py)

Same problem, did you manage to fix it?

Hey @segev_yesh, @rm_legacy,

Welcome to the Hailo Community!

Did you install the Hailo DFC in your environment? If so, which version are you running?

This looks like it might be a missing DFC dependency or a version mismatch issue.

Latest versions. Except hailo model zoo because for some reason, the Devs decided to remove 8l support in the hailo model zoo in the latest update.

Yes and no, I installed a year old dfc and it worked, but barely and it’s an unrealistic fix

Hey @segev_yesh,

Just checked the changelog for version 2.17 - it does support both Hailo8 and Hailo8L.

I’d suggest trying one of these combinations:

  • HailoMZ 2.17 with DFC 3.33
  • HailoMZ 2.16 with DFC 3.32

Give those a shot and let me know how it goes. If you’re still running into the same issue after trying these versions, I’ll escalate it as a bug so we can get it properly investigated.

ive used model zoo from the github.

This commit clearly says it removed hailo8l files.
I will retry with HMZ 2.17 and DFC 3.33.
And what is the difference between Github and installing from the developer zone?

Hey @segev_yesh,

This is version 5.1.0, which is specifically for Hailo10 and Hailo15. For Hailo8, we’re still using v2.17 along with DFC 3.33.

Also, there’s no difference between the code on GitHub and what’s in the developer zone - they’re the same.