I have been able to convert a custom trained Yolov8m model to HAILO8L and able to run it however when I tried to do the same on lprnet model I got the following error
(env) deep@deepVM:~/hailo$ hailomz compile --ckpt lprnet.onnx --hw-arch hailo8l --calib-path calib/ --yaml hailo_model_zoo/hailo_model_zoo/cfg/networks/lprnet.yaml
[warning] Cannot use graphviz, so no visualizations will be created
<Hailo Model Zoo INFO> Start run for network lprnet ...
<Hailo Model Zoo INFO> Initializing the hailo8l runner...
[info] Translation started on ONNX model lprnet
[info] Restored ONNX model lprnet (completion time: 00:00:00.32)
[info] Extracted ONNXRuntime meta-data for Hailo model (completion time: 00:00:00.92)
[info] Simplified ONNX model for a parsing retry attempt (completion time: 00:00:01.67)
Traceback (most recent call last):
File "/home/deep/hailo/env/lib/python3.8/site-packages/hailo_sdk_client/sdk_backend/parser/parser.py", line 179, in translate_onnx_model
parsing_results = self._parse_onnx_model_to_hn(onnx_model, valid_net_name, start_node_names,
File "/home/deep/hailo/env/lib/python3.8/site-packages/hailo_sdk_client/sdk_backend/parser/parser.py", line 237, in _parse_onnx_model_to_hn
return self.parse_model_to_hn(onnx_model, None, net_name, start_node_names, end_node_names,
File "/home/deep/hailo/env/lib/python3.8/site-packages/hailo_sdk_client/sdk_backend/parser/parser.py", line 255, in parse_model_to_hn
converter = ONNXConverter(model=model,
File "/home/deep/hailo/env/lib/python3.8/site-packages/hailo_sdk_client/model_translator/onnx_translator/onnx_translator.py", line 77, in __init__
super(ONNXConverter, self).__init__(
File "/home/deep/hailo/env/lib/python3.8/site-packages/hailo_sdk_client/model_translator/translator.py", line 48, in __init__
self._calculate_valid_subgraph_scope()
File "/home/deep/hailo/env/lib/python3.8/site-packages/hailo_sdk_client/model_translator/translator.py", line 422, in _calculate_valid_subgraph_scope
current_vertex.in_valid_subgraph = True
AttributeError: 'NoneType' object has no attribute 'in_valid_subgraph'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/deep/hailo/env/bin/hailomz", line 33, in <module>
sys.exit(load_entry_point('hailo-model-zoo', 'console_scripts', 'hailomz')())
File "/home/deep/hailo/hailo_model_zoo/hailo_model_zoo/main.py", line 122, in main
run(args)
File "/home/deep/hailo/hailo_model_zoo/hailo_model_zoo/main.py", line 111, in run
return handlers[args.command](args)
File "/home/deep/hailo/hailo_model_zoo/hailo_model_zoo/main_driver.py", line 250, in compile
_ensure_optimized(runner, logger, args, network_info)
File "/home/deep/hailo/hailo_model_zoo/hailo_model_zoo/main_driver.py", line 73, in _ensure_optimized
_ensure_parsed(runner, logger, network_info, args)
File "/home/deep/hailo/hailo_model_zoo/hailo_model_zoo/main_driver.py", line 108, in _ensure_parsed
parse_model(runner, network_info, ckpt_path=args.ckpt_path, results_dir=args.results_dir, logger=logger)
File "/home/deep/hailo/hailo_model_zoo/hailo_model_zoo/core/main_utils.py", line 97, in parse_model
model_name = translate_model(runner, network_info, ckpt_path, tensor_shapes=start_node_shapes)
File "/home/deep/hailo/hailo_model_zoo/hailo_model_zoo/utils/parse_utils.py", line 28, in translate_model
runner.translate_onnx_model(
File "/home/deep/hailo/env/lib/python3.8/site-packages/hailo_sdk_common/states/states.py", line 16, in wrapped_func
return func(self, *args, **kwargs)
File "/home/deep/hailo/env/lib/python3.8/site-packages/hailo_sdk_client/runner/client_runner.py", line 876, in translate_onnx_model
parser.translate_onnx_model(model=model, net_name=net_name, start_node_names=start_node_names,
File "/home/deep/hailo/env/lib/python3.8/site-packages/hailo_sdk_client/sdk_backend/parser/parser.py", line 211, in translate_onnx_model
parsing_results = self._parse_onnx_model_to_hn(simplified_model, valid_net_name,
File "/home/deep/hailo/env/lib/python3.8/site-packages/hailo_sdk_client/sdk_backend/parser/parser.py", line 237, in _parse_onnx_model_to_hn
return self.parse_model_to_hn(onnx_model, None, net_name, start_node_names, end_node_names,
File "/home/deep/hailo/env/lib/python3.8/site-packages/hailo_sdk_client/sdk_backend/parser/parser.py", line 255, in parse_model_to_hn
converter = ONNXConverter(model=model,
File "/home/deep/hailo/env/lib/python3.8/site-packages/hailo_sdk_client/model_translator/onnx_translator/onnx_translator.py", line 77, in __init__
super(ONNXConverter, self).__init__(
File "/home/deep/hailo/env/lib/python3.8/site-packages/hailo_sdk_client/model_translator/translator.py", line 48, in __init__
self._calculate_valid_subgraph_scope()
File "/home/deep/hailo/env/lib/python3.8/site-packages/hailo_sdk_client/model_translator/translator.py", line 422, in _calculate_valid_subgraph_scope
current_vertex.in_valid_subgraph = True
AttributeError: 'NoneType' object has no attribute 'in_valid_subgraph'