VisionDepth3D icon indicating copy to clipboard operation
VisionDepth3D copied to clipboard

Error at Launch : createInferBuilder: Error Code 6: API Usage Error (Unable to load library: nvinfer_builder_resource_10.dll)

Open ip-web opened this issue 1 year ago • 5 comments

I just installed latest release using the .exe and bin files on a Windows 11 machine, put weights and ffmpeg inside the install folder and I get this error at launch

Image

ip-web avatar May 05 '25 08:05 ip-web

Hey,

Thanks for your interest in trying out VD3D! It looks like the app is trying to load a .dll from TensorRT, which I must’ve missed bundling with the .exe. No worries though — the app will still work fine without it.

This particular library is used by the FrameTools upscaling models to enable faster processing with TensorRT. I’ll make sure it’s included in the next patch release.

Appreciate you reporting it!

VisionDepth avatar May 05 '25 14:05 VisionDepth

Hey, i get the same issue as above. After the error the app/window closes and that's it.

C-Three-P-O avatar May 07 '25 10:05 C-Three-P-O

Hey, i get the same issue as above. After the error the app/window closes and that's it.

Same here I can't use the app at all

ip-web avatar May 08 '25 08:05 ip-web

hey sorry for the late response, yea its definitely the way the installer was bundled. especially tensorRT .dll files where you have to specifically either put the path to the .dll or put it inside the program which i didn't realize that needed to happen, i will work on packaging again and fingers crossed that the program loads up next time around, you could install TensorRT into your system and see if that will solve your issue, https://developer.nvidia.com/tensorrt

TensorRT Installation Guide

1. Install TensorRT

Requirements:

  • NVIDIA GPU
  • CUDA and cuDNN are already correctly installed (you can verify with nvidia-smi and nvcc --version)

Installation:

Visit:
https://developer.nvidia.com/tensorrt

Choose your platform (Linux), CUDA version, and download the appropriate .tar.gz package (e.g., TensorRT-<version>.tar.gz).

Extract:

tar -xvzf TensorRT-<version>.tar.gz
cd TensorRT-<version>

2. Set Environment Variables

To ensure ONNX Runtime can find the TensorRT libraries, you need to set the path to the lib directories.

Add the following to your .bashrc or .zshrc (adjust the path accordingly):

export TRT_PATH=/path/to/TensorRT-<version>
export LD_LIBRARY_PATH=$TRT_PATH/lib:$LD_LIBRARY_PATH
export PATH=$TRT_PATH/bin:$PATH

Then apply the changes:

source ~/.bashrc   # or ~/.zshrc

3. Install ONNX Runtime with TensorRT Support

The standard onnxruntime-gpu installation does not include TensorRT support by default. You have two options:

Option A: Use an Official ONNX Runtime TensorRT Build

Install ONNX Runtime with TensorRT support via pip:

pip install onnxruntime-gpu[tensorrt]

Option B: Build ONNX Runtime Yourself with TensorRT Support

(This is more complex – only necessary if you need full control)
→ Guide: ONNX Runtime Build from Source


4. Test

Check if the TensorRT provider is now working:

import onnxruntime as ort

sess = ort.InferenceSession("your_model.onnx", providers=['TensorrtExecutionProvider', 'CUDAExecutionProvider', 'CPUExecutionProvider'])
print(sess.get_providers())

If TensorrtExecutionProvider appears in the output, everything worked :white_check_mark:


If You Don't Need TensorRT

If you only want to use CUDA or CPU, you can simply ignore the TensorRT provider when loading the model, for example:

providers = ['CUDAExecutionProvider', 'CPUExecutionProvider']

VisionDepth avatar May 08 '25 13:05 VisionDepth

I just released another package with all the .dlls included just double click the installer.bat script and it will ask you to choose location to install after that is done the installer will extract the necessary.zip file and run VisionDepth3D.exe https://github.com/VisionDepth/VisionDepth3D/releases/tag/Release-v3.1.8

VisionDepth avatar May 13 '25 22:05 VisionDepth