Skip to content

Commit 818585e

Browse files
author
Jeff Yang
authored
fix: bump max_epochs to 5, get_handlers arguments (#58)
1 parent e79bff3 commit 818585e

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

templates/gan/_sidebar.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def optimizer_options(config):
4343

4444
def training_options(config):
4545
st.markdown("## Training Options")
46-
config["max_epochs"] = st.number_input("Maximum epochs to train (max_epochs)", min_value=1, value=2)
46+
config["max_epochs"] = st.number_input("Maximum epochs to train (max_epochs)", min_value=1, value=5)
4747
st.markdown("---")
4848

4949

templates/gan/main.py

+3
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,9 @@ def run(local_rank: int, config: Any, *args: Any, **kwargs: Any):
9090
config=config,
9191
model={'netD', netD, 'netG', netG},
9292
train_engine=train_engine,
93+
eval_engine=None,
94+
metric_name=None,
95+
es_metric_name=None,
9396
to_save=to_save,
9497
lr_scheduler=lr_scheduler,
9598
output_names=["errD", "errG", "D_x", "D_G_z1", "D_G_z2"],

templates/image_classification/_sidebar.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def optimizer_options(config):
5151

5252
def training_options(config):
5353
st.markdown("## Training Options")
54-
config["max_epochs"] = st.number_input("Maximum epochs to train (max_epochs)", min_value=1, value=2)
54+
config["max_epochs"] = st.number_input("Maximum epochs to train (max_epochs)", min_value=1, value=5)
5555
config["num_warmup_epochs"] = st.number_input(
5656
"number of warm-up epochs before learning rate decay (num_warmup_epochs)", min_value=1, value=4
5757
)

0 commit comments

Comments
 (0)