-
Notifications
You must be signed in to change notification settings - Fork 643
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Enhancement] Add 320x320 static config for tensorrt (#1689)
* add trt static 320 config for rtmdet * only add on detection folder
- Loading branch information
1 parent
8062e4e
commit 2ceabd0
Showing
3 changed files
with
42 additions
and
0 deletions.
There are no files selected for viewing
14 changes: 14 additions & 0 deletions
14
configs/mmdet/detection/detection_tensorrt-fp16_static-320x320.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
_base_ = ['../_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
14
configs/mmdet/detection/detection_tensorrt-int8_static-320x320.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
_base_ = ['../_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
14
configs/mmdet/detection/detection_tensorrt_static-320x320.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
_base_ = ['../_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]))) | ||
]) |