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

[Enhancement] Add 320x320 static config for tensorrt #1689

Merged
merged 2 commits into from
Jan 31, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions configs/mmdet/_base_/base_tensorrt-fp16_static-320x320.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
_base_ = ['./base_static.py', '../../_base_/backends/tensorrt-fp16.py']

onnx_config = dict(input_shape=(320, 320))

backend_config = dict(
common_config=dict(max_workspace_size=1 << 30),
model_inputs=[
dict(
input_shapes=dict(
input=dict(
min_shape=[1, 3, 320, 320],
opt_shape=[1, 3, 320, 320],
max_shape=[1, 3, 320, 320])))
])
14 changes: 14 additions & 0 deletions configs/mmdet/_base_/base_tensorrt-int8_static-320x320.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
_base_ = ['./base_static.py', '../../_base_/backends/tensorrt-int8.py']

onnx_config = dict(input_shape=(320, 320))

backend_config = dict(
common_config=dict(max_workspace_size=1 << 30),
model_inputs=[
dict(
input_shapes=dict(
input=dict(
min_shape=[1, 3, 320, 320],
opt_shape=[1, 3, 320, 320],
max_shape=[1, 3, 320, 320])))
])
14 changes: 14 additions & 0 deletions configs/mmdet/_base_/base_tensorrt_static-320x320.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
_base_ = ['./base_static.py', '../../_base_/backends/tensorrt.py']

onnx_config = dict(input_shape=(320, 320))

backend_config = dict(
common_config=dict(max_workspace_size=1 << 30),
model_inputs=[
dict(
input_shapes=dict(
input=dict(
min_shape=[1, 3, 320, 320],
opt_shape=[1, 3, 320, 320],
max_shape=[1, 3, 320, 320])))
])
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
_base_ = ['../_base_/base_tensorrt-fp16_static-320x320.py']
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
_base_ = ['../_base_/base_tensorrt-int8_static-320x320.py']
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
_base_ = ['../_base_/base_tensorrt_static-320x320.py']