VTK 9.6 ONNX runtime installation

Hi, I tried to install ONNX runtime in order to use the new filter FiltersONNX. But I got some issues. First of all, I get an error message that the supported API versions is only [1, 17]. So normally, I can use 1.17.1 isn’t it ? My other question is what I have to install ? Directly the onnxruntime package or I need to rebuild from the source ? Thanks for your help.

@Guillaume_Gisbert

Hi,

The recommended way to use the ONNX module is to download the release here : Releases · microsoft/onnxruntime · GitHub. Just so you know, we currently test on version 1.22.0.

Then, in your ParaView cmake configuration, you need to enable PARAVIEW_PLUGIN_ENABLE_ONNXPlugin, VTK_MODULE_ENABLE_VTK_FiltersONNX and set the onnxruntime_DIR to /onnxruntime_path/lib/cmake/onnxruntime.

Best,

1 Like

Thank you for your quick answer. When I download only the binary package of onnxruntime, I have no folder /lib/cmake/onnxruntime. So do I need to download the source and generate the bin ? There si a specific configuration ?

Did you use pip to download the package or did you download the release on the Github repo ?

I download from the Github repo this package onnxruntime-win-x64-1.22.0.zip

I should have asked your OS first. Unfortunately, the ONNXRuntime Windows release does not provide the required cmake files. The only way is to rewrite this missing piece of code or to generate it from the sources.

FYI, an issue was opened here: [Build] Windows release lacks cmake files · Issue #28468 · microsoft/onnxruntime · GitHub

1 Like