Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
wangsen
paddle_dbnet
Commits
9ffbacc4
Unverified
Commit
9ffbacc4
authored
Jun 17, 2022
by
Double_V
Committed by
GitHub
Jun 17, 2022
Browse files
Merge pull request #6616 from Rm1n90/release/2.5
Fix TensorRT failed due to some TRT inputs dynamic shape info not set
parents
8fa9cbd8
b70255af
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
tools/infer/utility.py
tools/infer/utility.py
+1
-0
No files found.
tools/infer/utility.py
View file @
9ffbacc4
...
@@ -276,6 +276,7 @@ def create_predictor(args, mode, logger):
...
@@ -276,6 +276,7 @@ def create_predictor(args, mode, logger):
min_input_shape
=
{
"x"
:
[
1
,
3
,
imgH
,
10
]}
min_input_shape
=
{
"x"
:
[
1
,
3
,
imgH
,
10
]}
max_input_shape
=
{
"x"
:
[
args
.
rec_batch_num
,
3
,
imgH
,
2304
]}
max_input_shape
=
{
"x"
:
[
args
.
rec_batch_num
,
3
,
imgH
,
2304
]}
opt_input_shape
=
{
"x"
:
[
args
.
rec_batch_num
,
3
,
imgH
,
320
]}
opt_input_shape
=
{
"x"
:
[
args
.
rec_batch_num
,
3
,
imgH
,
320
]}
config
.
exp_disable_tensorrt_ops
([
"transpose2"
])
elif
mode
==
"cls"
:
elif
mode
==
"cls"
:
min_input_shape
=
{
"x"
:
[
1
,
3
,
48
,
10
]}
min_input_shape
=
{
"x"
:
[
1
,
3
,
48
,
10
]}
max_input_shape
=
{
"x"
:
[
args
.
rec_batch_num
,
3
,
48
,
1024
]}
max_input_shape
=
{
"x"
:
[
args
.
rec_batch_num
,
3
,
48
,
1024
]}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment