If I want to convert AodNet or other like Resnet …to .hef file. But I dont know how to convert them to hef file.
I try to write yaml file ,but I do not know how to get start with it.
I try to write yaml file and run
ailomz parse --hw-arch hailo8 --ckpt ./dehaze_net.onnx --yaml ./aodnet.yaml
and there come an error:
Traceback (most recent call last):
File “/local/workspace/hailo_virtualenv/bin/hailomz”, line 33, in
sys.exit(load_entry_point(‘hailo-model-zoo’, ‘console_scripts’, ‘hailomz’)())
File “/local/workspace/hailo_model_zoo/hailo_model_zoo/main.py”, line 122, in main
run(args)
File “/local/workspace/hailo_model_zoo/hailo_model_zoo/main.py”, line 111, in run
return handlersargs.command
File “/local/workspace/hailo_model_zoo/hailo_model_zoo/main_driver.py”, line 197, in parse
network_info = get_network_info(args.model_name, yaml_path=args.yaml_path, nodes=nodes)
File “/local/workspace/hailo_model_zoo/hailo_model_zoo/core/info_utils.py”, line 41, in get_network_info
raise ValueError(“cfg file is missing in {}”.format(cfg_path))
ValueError: cfg file is missing in aodnet.yaml
so what is cfg file is missing in aodnet.yaml
Hey @olive_michael,
The error you’re getting:
ValueError: cfg file is missing in aodnet.yaml
This means that the hailomz parse
command is looking for a path to a configuration file inside your YAML (aodnet.yaml
), but it can’t find one. In the Model Zoo structure, “cfg” refers to the path to a model configuration Python file that defines preprocessing, postprocessing, input/output node names, and other Model Zoo internal logic.
To fix it you need to specify the model’s input and output nodes when not using a full cfg file or a custom one
hailomz parse --hw-arch hailo8 --ckpt ./dehaze_net.onnx --yaml ./aodnet.yaml --nodes input=input_node_name,output=output_node_name