add sweep support

This commit is contained in:
hobogalaxy committed 2020-11-11 00:56:23 +01:00
1 parent f53794cf89
commit d013e22742
4 files changed
+32 -17

No files matched your search

+1 -4
View File
@@ -71,7 +71,7 @@ def main(config):
trainer = pl.Trainer(
logger=wandb_logger,
callbacks=callbacks,
gpus=config["hparams"]["num_of_gpus"],
gpus=config["num_of_gpus"],
max_epochs=config["hparams"]["max_epochs"],
resume_from_checkpoint=config["resume"]["ckpt_path"] if config["resume"]["resume_from_ckpt"] else None,
accumulate_grad_batches=config["hparams"]["accumulate_grad_batches"],
@@ -95,9 +95,6 @@ def main(config):
# Evaluate model on test set
trainer.test()
# Close wandb run
wandb.finish()
def load_config():
with open("config.yaml", "r") as ymlfile: