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
eed3d6aa
Unverified
Commit
eed3d6aa
authored
Aug 17, 2022
by
andyjpaddle
Committed by
GitHub
Aug 17, 2022
Browse files
Merge pull request #7232 from tink2123/revert_imgh_2.5
rever rec input h
parents
93b49541
0b97b0c4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
tools/export_model.py
tools/export_model.py
+1
-1
No files found.
tools/export_model.py
View file @
eed3d6aa
...
...
@@ -83,7 +83,7 @@ def export_single_model(model,
else
:
infer_shape
=
[
3
,
-
1
,
-
1
]
if
arch_config
[
"model_type"
]
==
"rec"
:
infer_shape
=
[
3
,
48
,
-
1
]
# for rec model, H must be 32
infer_shape
=
[
3
,
32
,
-
1
]
# for rec model, H must be 32
if
"Transform"
in
arch_config
and
arch_config
[
"Transform"
]
is
not
None
and
arch_config
[
"Transform"
][
"name"
]
==
"TPS"
:
...
...
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