Skip to content
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

run the demo,got runtime_error #15

Closed
LongruiDong opened this issue Dec 20, 2019 · 3 comments
Closed

run the demo,got runtime_error #15

LongruiDong opened this issue Dec 20, 2019 · 3 comments

Comments

@LongruiDong
Copy link

LongruiDong commented Dec 20, 2019

Hi,
after build project, run the demo:

================================================================================
scan: src/rangenet_lib/example/000000.bin
path: src/rangenet_lib/model/darknet53/
verbose: 1
================================================================================
Setting verbosity to: false
Trying to open model
Trying to deserialize previously stored: src/rangenet_lib/model/darknet53//model.trt
Could not deserialize TensorRT engine. 
Generating from sratch... This may take a while...
Trying to generate trt engine from : src/rangenet_lib/model/darknet53//model.onnx
Platform HAS fp16 support.
No DLA selected.
----------------------------------------------------------------
Input filename:   src/rangenet_lib/model/darknet53//model.onnx
ONNX IR version:  0.0.4
Opset version:    9
Producer name:    pytorch
Producer version: 1.1
Domain:           
Model version:    0
Doc string:       
----------------------------------------------------------------
WARNING: ONNX model has a newer ir_version (0.0.4) than this parser was built against (0.0.3).
 ----- Parsing of ONNX model src/rangenet_lib/model/darknet53//model.onnx is Done ---- 
Success picking up ONNX model
Failure creating engine from ONNX model
Current trial size is 8589934592
Failure creating engine from ONNX model
Current trial size is 4294967296
Failure creating engine from ONNX model
Current trial size is 2147483648
Failure creating engine from ONNX model
Current trial size is 1073741824
Failure creating engine from ONNX model
Current trial size is 536870912
Failure creating engine from ONNX model
Current trial size is 268435456
Failure creating engine from ONNX model
Current trial size is 134217728
Failure creating engine from ONNX model
Current trial size is 67108864
Failure creating engine from ONNX model
Current trial size is 33554432
Failure creating engine from ONNX model
Current trial size is 16777216
Failure creating engine from ONNX model
Current trial size is 8388608
Failure creating engine from ONNX model
Current trial size is 4194304
Failure creating engine from ONNX model
Current trial size is 2097152
Failure creating engine from ONNX model
Current trial size is 1048576
terminate called after throwing an instance of 'std::runtime_error'
  what():  ERROR: could not create engine from ONNX.
Aborted (core dumped)

Does anyone know where the bug is?

Thanks!

@jbehley
Copy link
Member

jbehley commented Dec 20, 2019

This error is TensorRT related. You just have to run the code again until it reaches a size that is suitable for your GPU. (I personally never encountered this error, but I read that other people "fixed" it like this.)

@LongruiDong
Copy link
Author

This error is TensorRT related. You just have to run the code again until it reaches a size that is suitable for your GPU. (I personally never encountered this error, but I read that other people "fixed" it like this.)

As you can see in #5 ,I tried adjusting MAX_WORKSPACE_SIZE and MIN_WORKSPACE_SIZE, but still get same error...

and I noticed there is a WARNING before parsing model.onnx :

WARNING: ONNX model has a newer ir_version (0.0.4) than this parser was built against (0.0.3).

I am wondering whether the Version conflict of ir_version led to this error?

@Chen-Xieyuanli
Copy link
Member

This issue seems also caused by TensorRT and GUP versions. I will therefore also close this one, and feel free to ask me reopening it if needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants