Hello KlemenSkrlj
When I tried converting my custom model I got this error on hubai conversion logs
Conversion process logs
[2025-06-11 14:53:31.105934+00:00] {pod_manager.py:472} INFO - [base] INFO Loading model... main.py:118 [2025-06-11 14:53:31.106512+00:00] {pod_manager.py:472} INFO - [base] mkdir -p failed for path /home/non-root/.config/matplotlib: [Errno 13] Permission denied: '/home/non-root' [2025-06-11 14:53:33.228594+00:00] {pod_manager.py:472} INFO - [base] Matplotlib created a temporary cache directory at /tmp/matplotlib-lc00oc74 because there was an issue with the default path (/home/non-root/.config/matplotlib); it is highly recommended to set the MPLCONFIGDIR environment variable to a writable directory, in particular to speed up the import of Matplotlib and to better support multiprocessing. [2025-06-11 14:53:33.229091+00:00] {pod_manager.py:472} INFO - [base] WARNING /usr/local/lib/python3.11/site-packages/tools/yolo/yolov5 logging.py:92 [2025-06-11 14:53:33.229664+00:00] {pod_manager.py:472} INFO - [base] `torch.load` with `weights_only=False` (the current [2025-06-11 14:53:33.230152+00:00] {pod_manager.py:472} INFO - [base] default value), which uses the default pickle module [2025-06-11 14:53:33.230344+00:00] {pod_manager.py:472} INFO - [base] implicitly. It is possible to construct malicious pickle [2025-06-11 14:53:33.230628+00:00] {pod_manager.py:472} INFO - [base] data which will execute arbitrary code during unpickling [2025-06-11 14:53:33.230937+00:00] {pod_manager.py:472} INFO - [base] (See [2025-06-11 14:53:33.231262+00:00] {pod_manager.py:472} INFO - [base] https://github.com/pytorch/pytorch/blob/main/SECURITY.md# [2025-06-11 14:53:33.232426+00:00] {pod_manager.py:472} INFO - [base] untrusted-models for more details). In a future release, [2025-06-11 14:53:33.232952+00:00] {pod_manager.py:472} INFO - [base] the default value for `weights_only` will be flipped to [2025-06-11 14:53:33.233365+00:00] {pod_manager.py:472} INFO - [base] `True`. This limits the functions that could be executed [2025-06-11 14:53:33.233676+00:00] {pod_manager.py:472} INFO - [base] during unpickling. Arbitrary objects will no longer be [2025-06-11 14:53:33.233978+00:00] {pod_manager.py:472} INFO - [base] allowed to be loaded via this mode unless they are [2025-06-11 14:53:33.234554+00:00] {pod_manager.py:472} INFO - [base] explicitly allowlisted by the user via [2025-06-11 14:53:33.235051+00:00] {pod_manager.py:472} INFO - [base] `torch.serialization.add_safe_globals`. We recommend you [2025-06-11 14:53:33.235063+00:00] {pod_manager.py:472} INFO - [base] start setting `weights_only=True` for any use case where [2025-06-11 14:53:33.236173+00:00] {pod_manager.py:472} INFO - [base] you don't have full control of the loaded file. Please [2025-06-11 14:53:33.236532+00:00] {pod_manager.py:472} INFO - [base] open an issue on GitHub for any issues related to this [2025-06-11 14:53:33.236864+00:00] {pod_manager.py:472} INFO - [base] experimental feature. [2025-06-11 14:53:33.237287+00:00] {pod_manager.py:472} INFO - [base] ckpt = torch.load(attempt_download(w), [2025-06-11 14:53:33.238045+00:00] {pod_manager.py:472} INFO - [base] map_location='cpu') # load [2025-06-11 14:53:35.339770+00:00] {pod_manager.py:490} INFO - [base] ERROR Error creating exporter: No module named 'ultralytics' main.py:156
**But when I uploaded a onnx model it properly converted but when i used that in the program I got this error of no heads defined in the nnarchive
depthai-core/examples/python/DetectionNetwork$ python3 yolo_test.py**
Traceback (most recent call last):
File "/home/depthai-core/examples/python/DetectionNetwork/yolo_test.py", line 17, in <module>
**detection_nn = pipeline.create(ParsingNeuralNetwork).build(**
File "/home/depthai-core/venv/lib/python3.10/site-packages/depthai_nodes/node/parsing_neural_network.py", line 278, in build
**self._updateParsers(self._nn_archive)**
File "/home/depthai-core/venv/lib/python3.10/site-packages/depthai_nodes/node/parsing_neural_network.py", line 311, in _updateParsers
**self._parsers = self._getParserNodes(nnArchive)**
File "/home/depthai-core/venv/lib/python3.10/site-packages/depthai_nodes/node/parsing_neural_network.py", line 321, in _getParserNodes
**parsers = self._generateParsers(parser_generator, nnArchive)**
File "/home/depthai-core/venv/lib/python3.10/site-packages/depthai_nodes/node/parsing_neural_network.py", line 332, in _generateParsers
**return parserGenerator.build(nnArchive)**
File "/home/depthai-core/venv/lib/python3.10/site-packages/depthai_nodes/node/parser_generator.py", line 42, in build
**raise ValueError("No heads defined in the NN Archive.")**
**ValueError: No heads defined in the NN Archive.
I wanted to remind you that I am converting for an RVC4 device an OAK 4 D PRO camera**