VisionDepth3D icon indicating copy to clipboard operation
VisionDepth3D copied to clipboard

VD3D using CPU instead of GPU

Open C-Three-P-O opened this issue 1 year ago • 1 comments

Cause the Windows Installer doesn't' work yet i installed VD3D using the description Option 1 (first downloaded the ZIP file). So the program starts but uses the CPU after the following message:

CUDA available: True | Running on cuda ONNX will use providers: ['CPUExecutionProvider'] RIFE model loaded. Loaded 'en' with 150 keys from languages/en.json Loaded 'en' with 150 keys from languages/en.json Settings loaded from file.

I'm hardly used to Linux/Python/etc. so i don't understand how to solve this. Nvidia-smi shows my Nvidia Gpu

C-Three-P-O avatar May 17 '25 17:05 C-Three-P-O

the 3D engine will run fine was detected in the first line with it running cuda, the second fallback is because tensorRT is likely not installed into system, if you are using local onnx models for depth or upscaling then you can do this it will try run tensor for faster inference if not it falls back to CPU

🧰 TensorRT Setup Instructions (for VisionDepth3D on Windows)

  1. Download TensorRT

    • Go to the NVIDIA TensorRT download page, log in or register, and download the appropriate .zip version for your platform (Windows, CUDA-compatible).
  2. Create the TensorRT folder

    • Inside your VisionDepth3D directory, create a new folder:
      VisionDepth3D\TensorRT
      
  3. Extract the TensorRT ZIP

    • Unzip the downloaded TensorRT package.
    • From the extracted contents, copy the entire lib folder into your new TensorRT directory so the structure looks like:
      VisionDepth3D\TensorRT\lib\*.dll
      
  4. Edit the batch file to set the DLL path

    • Open Start_VD3D_Windows.bat in a text editor.
    • On the second line (just after the cd command), add the following:
      SET "PATH=%~dp0TensorRT/lib;%PATH%"
      
    • Save the file.

✅ This step temporarily adds the TensorRT DLL folder to your system PATH — just for the session started by the batch script.
No system-wide changes are made, keeping your environment clean.

VisionDepth avatar May 21 '25 13:05 VisionDepth