-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to create engine from onnx model #26
Comments
Did you put opencv_worldxxx.dll file in build/Release folder? |
Let me know if it works. Please give a star if you like the project and my help. |
I've already starred the project, however, even with the DLL files, the same issue is still present. I'm still not getting any errors and no engine file is being built. |
I've also been trying to build the engine file with trtexec with an older version of this repo, however, I'm still running into issues. |
thank you for taking the time to read my issue, your work looks amazing, however, I hope you're still able to help me with this :D |
did you modify CMakeLists.txt to set your opencv and tensorrt paths? |
Please just use the most recent version and let's try to fix your issue. |
I checked your onnxmodelexportlog.txt file. It seems your engine is correctly built. |
|
That is very strange. It should show an error if there is a bug or problem in the code. If it doesn't show it may be system error |
Or premission. you tensorrt and opencv are in c folder will you try it as admin? |
What is your gpu? |
I used your onnx model you put here and created the engine successfully. I think there is a cuda version problem in your system. maybe your cuda 11.6 version is not suitable for your GPU. I will look it up for you. |
I have been able to successfully run the onnx model with cuda acceleration from this repo. |
I found out that Compute capability (version) for your GPU (nvidia gtx 1060) is 6.1 |
Please install cuda 8.0. Also don't forget to install cudnn version for cuda8.0 |
nvidia-smi states that my current cuda version is 12.4 which should allow me to use cuda version 11.6. Let me try it out though. |
Then check your onnx cuda version what version it is installed with? |
could you explain what you mean by onnx cuda version? I was able to use version 11.6 with this repo. |
yes, but it should indicate that my current driver is using cuda version 12.4. I have installed the latest Nvidia driver for my gpu. |
You used |
onnxruntime is different it will use anaconda environment to install cuda. I suggest you to install cuda 8.0 and do the steps again. |
I will try that, but again, I have been able to use my version of the onnxruntime with my current version of cuda with cuda acceleration just fine in the past with the exact same model through this repo. |
Hmm sorry that is what I can suggest from my observation. I can't guess without looking at it |
I am looking at the onnx website you sent me and it seems to be suggesting that only cuda versions 10 and up are supported. |
I'm kind of confused because I've been able to use the onnx runtime with cuda enabled before |
I've completely redownloaded my cuda and tensorrt. Now I'm getting an error stating:
|
I've figured it out. It was either my cuda cudnn or tensorrt installation that was the problem. I reinstalled everything and it works now. Thanks for all your help! |
It works on 11.6 cuda version with nvidia gtx 1060 ? |
I reinstalled everything and used cuda 11.8 for my gpu. I believe the problem was the cudnn installation. |
I see. |
I've prepared the baseline onnx model, however, whenever I try and run depth-anything-tensorrt.exe, it outputs:
and then, the program exits without any errors at all.
This is the command I'm using:
I'm assuming that I am exporting the onnx model properly, however, just in case, I'll upload a log. Here's the command I used
onnxmodelexportlog.txt
Anyone have any idea why this isn't working for me?
Thanks.
CUDA: 11.6
TensortRT: 8.6.1.6
Windows: 11
The text was updated successfully, but these errors were encountered: