# Error loading ONNX model

**URL:** <https://forum.opencv.org/t/error-loading-onnx-model/15530>\
**Category:** C++\
**Tags:** dnn, rust\
**Created:** [November 15, 2023, 12:33pm UTC](https://forum.opencv.org/t/error-loading-onnx-model/15530 "2023-11-15T12:33:05Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nawin\_Raj\_Kumar\_S](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.opencv.org/nawin_raj_kumar_s/32/9081_2.png) [@Nawin\_Raj\_Kumar\_S](https://forum.opencv.org/u/Nawin_Raj_Kumar_S)\
**Post date:** [November 15, 2023, 12:33pm UTC](https://forum.opencv.org/t/error-loading-onnx-model/15530/1 "2023-11-15T12:33:05Z")

</div>

I tried loading onnx model using dnn on Rust and I get the following error what does this error mean  
Error { code: -204, message: “OpenCV(4.2.0) …/modules/dnn/include/opencv2/dnn/dnn.inl.hpp:349: error: (-204:Requested object was not found) Required argument "split" not found into dictionary in function ‘get’\n” }

---

<div class="post-metadata">

**Author:** ![berak](https://avatars.discourse-cdn.com/v4/letter/b/85f322/32.png) [@berak](https://forum.opencv.org/u/berak)\
**Post date:** [November 15, 2023, 3:35pm UTC](https://forum.opencv.org/t/error-loading-onnx-model/15530/2 "2023-11-15T15:35:19Z")

</div>

could you please replace the (useless here) screenshot with TEXT ? thank you

---

<div class="post-metadata">

**Author:** ![crackwitz](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.opencv.org/crackwitz/32/14_2.png) [@crackwitz](https://forum.opencv.org/u/crackwitz)\
**Post date:** [November 15, 2023, 7:15pm UTC](https://forum.opencv.org/t/error-loading-onnx-model/15530/3 "2023-11-15T19:15:59Z")

</div>

- rust is involved, contact maintainers of package/wrapper
- opencv v4.2.0 is outdated
- gstreamer is involved. make sure it works.

---

<div class="post-metadata">

**Author:** ![Nawin\_Raj\_Kumar\_S](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.opencv.org/nawin_raj_kumar_s/32/9081_2.png) [@Nawin\_Raj\_Kumar\_S](https://forum.opencv.org/u/Nawin_Raj_Kumar_S)\
**Post date:** [November 15, 2023, 7:31pm UTC](https://forum.opencv.org/t/error-loading-onnx-model/15530/4 "2023-11-15T19:31:48Z")

</div>

Error { code: -204, message: “OpenCV(4.2.0) …/modules/dnn/include/opencv2/dnn/dnn.inl.hpp:349: error: (-204:Requested object was not found) Required argument "split" not found into dictionary in function ‘get’\n” }

---

<div class="post-metadata">

**Author:** ![Nawin\_Raj\_Kumar\_S](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.opencv.org/nawin_raj_kumar_s/32/9081_2.png) [@Nawin\_Raj\_Kumar\_S](https://forum.opencv.org/u/Nawin_Raj_Kumar_S)\
**Post date:** [November 15, 2023, 7:33pm UTC](https://forum.opencv.org/t/error-loading-onnx-model/15530/5 "2023-11-15T19:33:02Z")

</div>

I got the error in the cpp header file (dnn.inl.hpp) file. The maintainer of the repository also mentioned the same thing

---

<div class="post-metadata">

**Author:** ![berak](https://avatars.discourse-cdn.com/v4/letter/b/85f322/32.png) [@berak](https://forum.opencv.org/u/berak)\
**Post date:** [November 15, 2023, 7:58pm UTC](https://forum.opencv.org/t/error-loading-onnx-model/15530/6 "2023-11-15T19:58:57Z")

</div>

- really, update to current 4.8.1  
(most likely the problem is gone today …)
- which onnx model are we talking about ?  
did you train / export this ?
- are you able to debug it ? get a stacktrace ?
