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
ModelZoo
LPRNet_pytorch
Commits
7a8a2d7a
Commit
7a8a2d7a
authored
Mar 06, 2023
by
liuhy
Browse files
修正错误
parent
a692a84b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
test.py
test.py
+1
-1
No files found.
test.py
View file @
7a8a2d7a
...
@@ -91,7 +91,7 @@ def validation(args):
...
@@ -91,7 +91,7 @@ def validation(args):
print
(
'export pytorch model to onnx model...'
)
print
(
'export pytorch model to onnx model...'
)
onnx_input
=
torch
.
randn
(
1
,
3
,
24
,
94
,
device
=
args
.
device
)
onnx_input
=
torch
.
randn
(
1
,
3
,
24
,
94
,
device
=
args
.
device
)
torch
.
onnx
.
export
(
torch
.
onnx
.
export
(
model
,
lprnet
,
onnx_input
,
onnx_input
,
'LPRNet.onnx'
,
'LPRNet.onnx'
,
input_names
=
[
'input'
],
input_names
=
[
'input'
],
...
...
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