- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello, I am using the HRNetV2C1 model for inference on a ROS2 Humble AMR with Intel NUC13 (OS: Ubuntu 22.04).
I am using ROS2 Openvino Toolkit (-b ros2) to load the model in the .xml format, and it has been working without errors.
However, after training the model on Google Colab in the PyTorch framework and converting the trained model, A) directly into the IR format, or B) first into ONNX and then into the IR format, I get the same error when loading the model (conversion process itself completes without errors):
[pipeline_with_params-5] [ ERROR ] Exception from src/inference/src/core.cpp:99:
[pipeline_with_params-5] Check '(axis_range_min <= axis) && (axis <= axis_range_max)' failed at src/core/src/validation_util.cpp:1121:
[pipeline_with_params-5] Gather Parameter axis -6260240599907491525 out of the tensor rank range [-1, 0].
Given that this error appears in both A) and B) scenarios, I suspect that the conversion process from .pth to .onnx has some flaws.
Could you identify potential causes for this in the following script?
Thank you very much!
A) Direct conversion:
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Norrie,
Thanks for reaching out to us.
Could you please share the custom HRNetV2C1 model with us so that we can further investigate the issue from our end?
Regards,
Wan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello Wan,
Sorry, it was my fundamental mistake.
In the param file of ROS2 OpenVINO Toolkit, the model file is specified by referring only to the .xml file.
That is why I kept updating only the .xml file and caused mismatch between that and the .bin file in the same folder, which is apparently automatically found and read by the ROS2 node.
After replacing both the .xml and .bin files, the trained model was normally loaded without any error.
Please close the issue, and I'm sorry for disturbing you with such a blunder.
Best regards,
Norrie
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Norrie,
Thanks for the information.
We're glad to know that you have solved the issue. If you need additional information from Intel, please submit a new question and we'll be happy to help.
Regards,
Wan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page