-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
[Improvement] Test with onnx models and TensorRT engines. #758
[Improvement] Test with onnx models and TensorRT engines. #758
Conversation
Codecov Report
@@ Coverage Diff @@
## master #758 +/- ##
==========================================
+ Coverage 85.15% 85.19% +0.04%
==========================================
Files 130 130
Lines 9418 9418
Branches 1591 1591
==========================================
+ Hits 8020 8024 +4
+ Misses 1000 997 -3
+ Partials 398 397 -1
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
Any comments about this pr? @innerlee I have no idea how to add unittest about onnx/tensorrt inference. |
cc. @RunningLeon |
@dreamerlin Currently, we only add unit tests for plugins of TensorRT. |
@congee524 Could you have a try? Will merge this if you can run it successfully :) |
OKK |
Hey, I have tested the script and passed. |
Maybe we should add an option to export onnx with softmax. I'll look into it.
|
Happy April Fool's Day :p |
Thanks! |
Fix #614
Description
tools/test.py
with onnx models and TesnorRT engines instead of pytorch models.Usage
tools/pytorch2onnx.py
.[--shape ${SHAPE}]
intools/pytorch2onnx.py
.videos_per_gpu
(batch size) and test pipelines(all kinds of crop/resize, and num_clips for dense sampling, test augmentation likeThreeCrop/TenCrop/twice_sample
, etc. )1, num_segments, 3, height, width
for 2D Recognizers and1, 1, 3, num_segments, height, width
for 3D recognizers.videos_per_gpu=1
and remove test augmentation pipelines(ThreeCrop/TenCrop/twice_sample
, etc.)TODO