-
Notifications
You must be signed in to change notification settings - Fork 636
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update supported mmseg models (#181)
* fix ocrnet cascade decoder * update mmseg support models * update mmseg configs * support emanet and icnet * set max K of TopK for tensorrt * update supported models for mmseg in docs * add test for emamodule * add configs and update docs * Update docs * update benchmark
- Loading branch information
1 parent
61b0146
commit 31402ff
Showing
20 changed files
with
736 additions
and
44 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,3 @@ | ||
_base_ = ['./segmentation_static.py', '../_base_/backends/onnxruntime.py'] | ||
|
||
onnx_config = dict(input_shape=[2048, 1024]) |
2 changes: 1 addition & 1 deletion
2
.../mmseg/segmentation_onnxruntime_static.py → ...egmentation_onnxruntime_static-512x512.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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
_base_ = ['./segmentation_static.py', '../_base_/backends/onnxruntime.py'] | ||
|
||
onnx_config = dict(input_shape=None) | ||
onnx_config = dict(input_shape=[512, 512]) |
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,4 @@ | ||
_base_ = ['./segmentation_static.py', '../_base_/backends/openvino.py'] | ||
|
||
backend_config = dict( | ||
model_inputs=[dict(opt_shapes=dict(input=[1, 3, 512, 512]))]) |
13 changes: 13 additions & 0 deletions
13
configs/mmseg/segmentation_tensorrt-fp16_static-1024x1024.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,13 @@ | ||
_base_ = ['./segmentation_static.py', '../_base_/backends/tensorrt-fp16.py'] | ||
|
||
onnx_config = dict(input_shape=[1024, 1024]) | ||
backend_config = dict( | ||
common_config=dict(max_workspace_size=1 << 30), | ||
model_inputs=[ | ||
dict( | ||
input_shapes=dict( | ||
input=dict( | ||
min_shape=[1, 3, 1024, 1024], | ||
opt_shape=[1, 3, 1024, 1024], | ||
max_shape=[1, 3, 1024, 1024]))) | ||
]) |
13 changes: 13 additions & 0 deletions
13
configs/mmseg/segmentation_tensorrt-fp16_static-512x512.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,13 @@ | ||
_base_ = ['./segmentation_static.py', '../_base_/backends/tensorrt-fp16.py'] | ||
|
||
onnx_config = dict(input_shape=[512, 512]) | ||
backend_config = dict( | ||
common_config=dict(max_workspace_size=1 << 30), | ||
model_inputs=[ | ||
dict( | ||
input_shapes=dict( | ||
input=dict( | ||
min_shape=[1, 3, 512, 512], | ||
opt_shape=[1, 3, 512, 512], | ||
max_shape=[1, 3, 512, 512]))) | ||
]) |
13 changes: 13 additions & 0 deletions
13
configs/mmseg/segmentation_tensorrt-int8_static-1024x1024.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,13 @@ | ||
_base_ = ['./segmentation_static.py', '../_base_/backends/tensorrt-int8.py'] | ||
|
||
onnx_config = dict(input_shape=[1024, 1024]) | ||
backend_config = dict( | ||
common_config=dict(max_workspace_size=1 << 30), | ||
model_inputs=[ | ||
dict( | ||
input_shapes=dict( | ||
input=dict( | ||
min_shape=[1, 3, 1024, 1024], | ||
opt_shape=[1, 3, 1024, 1024], | ||
max_shape=[1, 3, 1024, 1024]))) | ||
]) |
13 changes: 13 additions & 0 deletions
13
configs/mmseg/segmentation_tensorrt-int8_static-512x512.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,13 @@ | ||
_base_ = ['./segmentation_static.py', '../_base_/backends/tensorrt-int8.py'] | ||
|
||
onnx_config = dict(input_shape=[512, 512]) | ||
backend_config = dict( | ||
common_config=dict(max_workspace_size=1 << 30), | ||
model_inputs=[ | ||
dict( | ||
input_shapes=dict( | ||
input=dict( | ||
min_shape=[1, 3, 512, 512], | ||
opt_shape=[1, 3, 512, 512], | ||
max_shape=[1, 3, 512, 512]))) | ||
]) |
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,13 @@ | ||
_base_ = ['./segmentation_static.py', '../_base_/backends/tensorrt.py'] | ||
|
||
onnx_config = dict(input_shape=[1024, 1024]) | ||
backend_config = dict( | ||
common_config=dict(max_workspace_size=1 << 30), | ||
model_inputs=[ | ||
dict( | ||
input_shapes=dict( | ||
input=dict( | ||
min_shape=[1, 3, 1024, 1024], | ||
opt_shape=[1, 3, 1024, 1024], | ||
max_shape=[1, 3, 1024, 1024]))) | ||
]) |
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,13 @@ | ||
_base_ = ['./segmentation_static.py', '../_base_/backends/tensorrt.py'] | ||
|
||
onnx_config = dict(input_shape=[512, 512]) | ||
backend_config = dict( | ||
common_config=dict(max_workspace_size=1 << 30), | ||
model_inputs=[ | ||
dict( | ||
input_shapes=dict( | ||
input=dict( | ||
min_shape=[1, 3, 512, 512], | ||
opt_shape=[1, 3, 512, 512], | ||
max_shape=[1, 3, 512, 512]))) | ||
]) |
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
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
Oops, something went wrong.