File “/home/ruben/venv/hailo/lib/python3.10/site-packages/hailo_sdk_client/sdk_backend/script_parser/commands.py”, line 314, in add_scope_to_layer raise AllocatorScriptParserException(f"Invalid scope name {layer_parts[0]} exists") hailo_sdk_client.sdk_backend.sdk_backend_exceptions.AllocatorScriptParserException: Invalid scope name osnet_x1_0 exists
The error above points to a mismatch between your net name, and the name in the command in the model script (osnet_x1_0 vs hailo_osnet_x1_0). A simple solution is to remove the scope from the model script, so try these commands instead:
P.S.
When this particular line is commented out the next error is:
ValueError: For a `build()` method with more than one argument, all arguments should have a `_shape` suffix and match an argument from `call()`. E.g. `build(self, foo_shape, bar_shape)` For layer ‘HailoModel’, Received `build()` argument `self`, which does not end in `_shape`.
I tested converting the model using the hailomz CLI inside the Hailo-8 AI Software Suite Docker (2025-10 release), and the conversion completed without any issues. Have you already tried this approach?
Which ONNX file are you using? Did you train the model yourself, or did you obtain it from another source?