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

deployment issue in trt fp16 #66

Open
sipie800 opened this issue Feb 2, 2024 · 0 comments
Open

deployment issue in trt fp16 #66

sipie800 opened this issue Feb 2, 2024 · 0 comments

Comments

@sipie800
Copy link

sipie800 commented Feb 2, 2024

I'm exporting a mask rcnn with convnext v2(mmdet and mmpretrain) to trt. However, while the fp32 model works well, fp16 model detect nothing. During exporting, tensorrt did complain a lot underflow of weight values.
We remove GRN and the issue is gone.

And when use maskrcnn along with convnext v1, nothing is wrong with both fp32 and fp16.

IMO despite GRN enhances feature output in a torch fp32 state, it does count on high numerical accuracy with that.
So if a fp16 trt - which is usually 1/4 flop than a fp32 trt for a cnn - can't be used for a convnext v2, its speed advantage over vit may not be true actually.

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

1 participant