AttributeError: 'RepeatedScalarFieldContainer' object has no attribute 'split

Thank you for this wonderful product. I am impressed by the excellence of Hailo.

However, I am currently trying to convert InceptionNetV3 and have encountered an error.
I noticed this error occurs during compilation.
What could be the cause?
For reference, my environment is as follows:

  • Created a Docker file with GPU environment capability
  • Set up the environment using .whl files downloadable from the website (Due to certain circumstances, I cannot use the Docker image available from the homepage, so I’m using this approach)
  • Using protobuf = 3.20.3
Traceback (most recent call last):
  File "/tmp/ipykernel_3060559/1209311712.py", line 135, in <module>
    hef = runner.compile()
  File "/home/.venv2/lib/python3.10/site-packages/hailo_sdk_client/runner/client_runner.py", line 896, in compile
    return self._compile()
  File "/home/.venv2/lib/python3.10/site-packages/hailo_sdk_common/states/states.py", line 16, in wrapped_func
    return func(self, *args, **kwargs)
  File "/home/.venv2/lib/python3.10/site-packages/hailo_sdk_client/runner/client_runner.py", line 1113, in _compile
    serialized_hef = self._sdk_backend.compile(fps, self.model_script, mapping_timeout)
  File "/home/.venv2/lib/python3.10/site-packages/hailo_sdk_client/sdk_backend/sdk_backend.py", line 1763, in compile
    hef, mapped_graph_file = self._compile(fps, allocator_script, mapping_timeout)
  File "/home/.venv2/lib/python3.10/site-packages/hailo_sdk_client/sdk_backend/sdk_backend.py", line 1757, in _compile
    hef, mapped_graph_file, auto_alls = self.hef_full_build(fps, mapping_timeout, model_params, allocator_script)
  File "/home/.venv2/lib/python3.10/site-packages/hailo_sdk_client/sdk_backend/sdk_backend.py", line 1733, in hef_full_build
    auto_alls, self._hef_data, self._integrated_graph = allocator.create_mapping_and_full_build_hef(
  File "/home/.venv2/lib/python3.10/site-packages/hailo_sdk_client/allocator/hailo_tools_runner.py", line 764, in create_mapping_and_full_build_hef
    self.call_builder(
  File "/home/.venv2/lib/python3.10/site-packages/hailo_sdk_client/allocator/hailo_tools_runner.py", line 704, in call_builder
    _post_call()
  File "/home/.venv2/lib/python3.10/site-packages/hailo_sdk_client/allocator/hailo_tools_runner.py", line 692, in _post_call
    self.deserialize(blind=blind_deserialize, pb=integrated_hw_graph)
  File "/home/.venv2/lib/python3.10/site-packages/hailo_sdk_client/allocator/hailo_tools_runner.py", line 658, in deserialize
    self._deserialize(integrated_hw_graph, blind)
  File "/home/.venv2/lib/python3.10/site-packages/hailo_sdk_client/allocator/hailo_tools_runner.py", line 679, in _deserialize
    self._auto_alls = self._script_parser.export_auto_alls()
  File "/home/.venv2/lib/python3.10/site-packages/hailo_sdk_client/sdk_backend/script_parser/model_script_parser.py", line 181, in export_auto_alls
    return self._build_script_str(self.is_single_scope, is_to_auto_alls=True)
  File "/home/.venv2/lib/python3.10/site-packages/hailo_sdk_client/sdk_backend/script_parser/model_script_parser.py", line 161, in _build_script_str
    cmd_cpy.remove_scope()
  File "/home/.venv2/lib/python3.10/site-packages/hailo_sdk_client/sdk_backend/script_parser/commands.py", line 4322, in remove_scope
    self._layer_name = self._remove_scope(self._layer_name)
  File "/home/.venv2/lib/python3.10/site-packages/hailo_sdk_client/sdk_backend/script_parser/commands.py", line 328, in _remove_scope
    else self.remove_scope_from_layer(val)
  File "/home/.venv2/lib/python3.10/site-packages/hailo_sdk_client/sdk_backend/script_parser/commands.py", line 315, in remove_scope_from_layer
    layer_parts = layer_name.split("/")
AttributeError: 'RepeatedScalarFieldContainer' object has no attribute 'split'

Hey @Yoshiya_Oshima,

Welcome to the Hailo Community!

I noticed you’re jumping straight to compilation — we actually recommend running the parser first. It helps catch any incompatibilities or issues that might need adjustments in your model script.