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
UNet_pytorch
Commits
a327b27b
Commit
a327b27b
authored
Aug 16, 2024
by
dcuai
Browse files
Update train_ddp.py
parent
b3f2a8d8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
train_ddp.py
train_ddp.py
+1
-1
No files found.
train_ddp.py
View file @
a327b27b
...
...
@@ -182,7 +182,7 @@ def train_model(
def
get_args
():
parser
=
argparse
.
ArgumentParser
(
description
=
'Train the UNet on images and target masks'
)
parser
.
add_argument
(
'--local
_
rank'
,
type
=
int
,
default
=-
1
)
parser
.
add_argument
(
'--local
-
rank'
,
type
=
int
,
default
=-
1
)
parser
.
add_argument
(
'--epochs'
,
'-e'
,
metavar
=
'E'
,
type
=
int
,
default
=
5
,
help
=
'Number of epochs'
)
parser
.
add_argument
(
'--batch-size'
,
'-b'
,
dest
=
'batch_size'
,
metavar
=
'B'
,
type
=
int
,
default
=
1
,
help
=
'Batch size'
)
parser
.
add_argument
(
'--learning-rate'
,
'-l'
,
metavar
=
'LR'
,
type
=
float
,
default
=
1e-5
,
...
...
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