Comments (7)
Dear WillianLee,
I'm glad you could use this repository.
Would you share with me your terminal command and the error log such that i could see where in the ONNX graph the error happens?
Also, I could find a useful link for this issue :
onnx/onnx-tensorrt#562
It says that the clip layer must have a maximum value in the clip node. You can set the max value up by modifying the ONNX graph directly. Btw, my personal ONNX graph does only have minimal value in the Clip layer.
If you haven't heard about ONNX graph, I suggest you to install netron, a tool to check your onnx graph.
To modify it, you could use : https://github.com/NVIDIA/TensorRT/tree/master/tools/onnx-graphsurgeon
from sparseinst_tensorrt.
from sparseinst_tensorrt.
Since i have never met this issue, it could be due to some different versions of TensorRT or ONNX. I am using ONNX version 1.9.0 and TensorRT version 8.0.1.6 on my jetson TX2.
Here is a link where which you can find different version of Clip node for different ONNX : https://github.com/onnx/onnx/blob/main/docs/Operators.md#Clip
. Anyway, try to set a maximum value for the Clip node woth GraphSurgeon (see Issue link above) and it should be solved. I hope.
For Clip-6 :
Attributes
max : float (default is (3.402823e+38))
Maximum value, above which element is replaced by max
min : float (default is (-3.402823e+38))
Minimum value, under which element is replaced by min
from sparseinst_tensorrt.
from sparseinst_tensorrt.
I'll try this out on another GPU (Nvidia 2070 Max-Q) and i'll keep you up to date :)
Thank you again for reaching out and good luck.
from sparseinst_tensorrt.
Interesting link to add a constant :
https://github.com/NVIDIA/TensorRT/tree/main/tools/onnx-graphsurgeon/examples/05_folding_constants
from sparseinst_tensorrt.
Someone got this Clip issue and could solve it by using a docker image with CUDA 11.7, Pytorch 1.13 and TensorRT 8.2.5.
See comment from @LiZheng1997: hustvl/SparseInst#75
from sparseinst_tensorrt.
Related Issues (3)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sparseinst_tensorrt.