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

trtexec Failed for mobile_sam_mask_decoder.onnx #6

Open
shenGrant opened this issue Sep 20, 2023 · 4 comments
Open

trtexec Failed for mobile_sam_mask_decoder.onnx #6

shenGrant opened this issue Sep 20, 2023 · 4 comments

Comments

@shenGrant
Copy link

Thanks for this fantastic work!
when i follow the instruction below errors occurred

Warning: Slice op /Slice_slice cannot slice along a uniform dimension.
Warning: Slice op /Slice_slice cannot slice along a uniform dimension.
[09/20/2023-07:55:09] [E] Error[10]: [optimizer.cpp::computeCosts::2011] Error Code 10: Internal Error (Could not find any implementation for node {ForeignNode[onnx::MatMul_1729 + (Unnamed Layer* 316) [Shuffle]...(Unnamed Layer* 1451) [Shuffle]]}.)
[09/20/2023-07:55:09] [E] Error[2]: [builder.cpp::buildSerializedNetwork::609] Error Code 2: Internal Error (Assertion enginePtr != nullptr failed. )
[09/20/2023-07:55:09] [E] Engine could not be created from network
[09/20/2023-07:55:09] [E] Building engine failed
[09/20/2023-07:55:09] [E] Failed to create engine from model.
[09/20/2023-07:55:09] [E] Engine set up failed
&&&& FAILED TensorRT.trtexec [TensorRT v8201] # /usr/src/tensorrt/bin/trtexec --onnx=data/mobile_sam_mask_decoder.onnx --saveEngine=data/mobile_sam_mask_decoder.engine --minShapes=point_coords:1x1x2,point_labels:1x1 --optShapes=point_coords:1x1x2,point_labels:1x1 --maxShapes=point_coords:1x10x2,point_labels:1x10

the tensorRT version is 8.2.1.8
jetpack :4.6.1

@jaybdub
Copy link
Contributor

jaybdub commented Sep 20, 2023

Hi @shenGrant ,

Thanks for reaching out.

I haven't tested against this version of TensorRT. It's possible there is a layer that isn't supported by TensorRT for this version.

Just to make sure it's not an issue with the generated ONNX file. Are you able to build with this file? mobile_sam_mask_decoder.onnx

If not, is it possible for you to upgrade to a later version of TensorRT?

John

@shenGrant
Copy link
Author

Hi John,
Thanks for your advice.

@egbertYeah
Copy link

tensorrt 8.6.1 is fine.

@csoham96
Copy link

I am facing issue converting the resnet model into engine can you please provide the onnx file for that?

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

4 participants