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
d3ad2676
Commit
d3ad2676
authored
Mar 16, 2023
by
liuhy
Browse files
添加参数类型
parent
6ee5c00a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
test.py
test.py
+2
-2
No files found.
test.py
View file @
d3ad2676
...
...
@@ -108,8 +108,8 @@ if __name__ == "__main__":
parser
.
add_argument
(
'--batch_size'
,
default
=
100
,
type
=
int
,
help
=
'testing batch size.'
)
parser
.
add_argument
(
'--cuda'
,
default
=
True
,
type
=
bool
,
help
=
'Use cuda to train model'
)
parser
.
add_argument
(
'--device'
,
default
=
'cuda'
,
help
=
'Use cuda to vaildate model'
)
parser
.
add_argument
(
'--export_onnx'
,
default
=
False
,
help
=
'export model to onnx'
)
parser
.
add_argument
(
'--dynamic'
,
default
=
False
,
help
=
'use dynamic batch size'
)
parser
.
add_argument
(
'--export_onnx'
,
default
=
False
,
type
=
bool
,
help
=
'export model to onnx'
)
parser
.
add_argument
(
'--dynamic'
,
default
=
False
,
type
=
bool
,
help
=
'use dynamic batch size'
)
parser
.
add_argument
(
'--phase_train'
,
default
=
False
,
type
=
bool
,
help
=
'train or test phase flag.'
)
parser
.
add_argument
(
'--num_workers'
,
default
=
8
,
type
=
int
,
help
=
'Number of workers used in dataloading'
)
...
...
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