-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
[05/30/2024-10:56:44] [TRT] [E] 4: kOPT values for profile 0 violate shape constraints: IShuffleLayer /Reshape: reshaping failed for tensor: /Concat_output_0 reshape would change volume 230976 to 76992 #3916
Comments
Your network forward graph has dynamic ops, and onnx export process has error, make some dynamic as const value. |
This is the code I used to convert the pytorch model to onnx.
` This is the code I used to convert the onnx model to tensorrt.
` I did not find any abnormalities during the process of converting the model. Can you provide some suggestion? Thank you very much |
Pay attention the log of |
convert models/yolact_plus_resnet50_54_800000_2.onnx begin Process finished with exit code 1 |
error arise ! |
Description
Hello, I have a problem and maybe it happens even at the moment of converting the weights.pt after training YOLACK (https://github.com/dbolya/yolact) to the TensorRT model.
I tried to convert model to trt model yolack (not yolack++) on GPU, but it fails with the error below.
[05/30/2024-10:56:44] [TRT] [E] 4: kOPT values for profile 0 violate shape constraints: IShuffleLayer /Reshape: reshaping failed for tensor: /Concat_output_0 reshape would change volume 230976 to 76992
[05/30/2024-10:56:44] [TRT] [E] 4: [shapeCompiler.cpp::nvinfer1::builder::DynamicSlotBuilder::evaluateShapeChecks::1276] Error Code 4: Internal Error (kOPT values for profile 0 violate shape constraints: IShuffleLayer /Reshape: reshaping failed for tensor: /Concat_output_0 reshape would change volume 230976 to 76992)
Environment
TensorRT Version: 8.6.1
NVIDIA GPU: RTX 4050
NVIDIA Driver Version:
CUDA Version: 11.8
CUDNN Version:
Operating System: Windows 10
Python Version (if applicable): 3.9.19
PyTorch Version (if applicable): 2.2.2
The text was updated successfully, but these errors were encountered: