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
crnn_pytorch
Commits
e496fbfe
"server/vscode:/vscode.git/clone" did not exist on "c8a01d759173483efc2135c4e7506b23e14e7fc4"
Commit
e496fbfe
authored
Oct 17, 2024
by
dcuai
Browse files
Update train_ddp.py
parent
f7d7faf4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
train_ddp.py
train_ddp.py
+1
-2
No files found.
train_ddp.py
View file @
e496fbfe
from
__future__
import
print_function
from
__future__
import
division
...
...
@@ -48,7 +47,7 @@ parser.add_argument('--adadelta', action='store_true', help='Whether to use adad
parser
.
add_argument
(
'--keep_ratio'
,
action
=
'store_true'
,
help
=
'whether to keep ratio for image resize'
)
parser
.
add_argument
(
'--manualSeed'
,
type
=
int
,
default
=
1234
,
help
=
'reproduce experiemnt'
)
parser
.
add_argument
(
'--random_sample'
,
action
=
'store_true'
,
help
=
'whether to sample the dataset with random sampler'
)
parser
.
add_argument
(
'--local
_
rank'
,
type
=
int
,
default
=
1
,
help
=
'local rank environ'
)
parser
.
add_argument
(
'--local
-
rank'
,
type
=
int
,
default
=
1
,
help
=
'local rank environ'
)
parser
.
add_argument
(
'--world-size'
,
default
=
4
,
type
=
int
,
help
=
'number of distributed processes'
)
opt
=
parser
.
parse_args
()
print
(
opt
)
...
...
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