Skip to content

fix: bump max_epochs to 5, get_handlers arguments #58

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 10, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion templates/gan/_sidebar.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def optimizer_options(config):

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


Expand Down
3 changes: 3 additions & 0 deletions templates/gan/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,9 @@ def run(local_rank: int, config: Any, *args: Any, **kwargs: Any):
config=config,
model={'netD', netD, 'netG', netG},
train_engine=train_engine,
eval_engine=None,
metric_name=None,
es_metric_name=None,
to_save=to_save,
lr_scheduler=lr_scheduler,
output_names=["errD", "errG", "D_x", "D_G_z1", "D_G_z2"],
Expand Down
2 changes: 1 addition & 1 deletion templates/image_classification/_sidebar.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def optimizer_options(config):

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