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
Swin-Transformer_pytorch
Commits
bc29c9e2
Commit
bc29c9e2
authored
Nov 07, 2024
by
dcuai
Browse files
Update config.py ——add epochs
parent
60aeae99
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
config.py
config.py
+4
-0
No files found.
config.py
View file @
bc29c9e2
...
@@ -291,6 +291,10 @@ def update_config(config, args):
...
@@ -291,6 +291,10 @@ def update_config(config, args):
# merge from specific arguments
# merge from specific arguments
if
_check_args
(
'batch_size'
):
if
_check_args
(
'batch_size'
):
config
.
DATA
.
BATCH_SIZE
=
args
.
batch_size
config
.
DATA
.
BATCH_SIZE
=
args
.
batch_size
if
_check_args
(
'train_epochs'
):
config
.
TRAIN
.
EPOCHS
=
args
.
train_epochs
if
_check_args
(
'warmup_epochs'
):
config
.
TRAIN
.
WARMUP_EPOCHS
=
args
.
warmup_epochs
if
_check_args
(
'data_path'
):
if
_check_args
(
'data_path'
):
config
.
DATA
.
DATA_PATH
=
args
.
data_path
config
.
DATA
.
DATA_PATH
=
args
.
data_path
if
_check_args
(
'zip'
):
if
_check_args
(
'zip'
):
...
...
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