Skip to content

Commit

Permalink
Issue #7: indented wandb call to log metrics to the right level
Browse files Browse the repository at this point in the history
  • Loading branch information
NMontanaBrown committed Dec 8, 2021
1 parent 1db558a commit 2e992d9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/hamlyn2021/train/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,8 @@ def train_func(path_base, device=None, wandb_un=None, dataset_type="random"):
if epoch % 100:
torch.save(net.state_dict(), os.path.join(path_base, "state_dict_model_unet_{}.pt".format(str(time_elapsed))))

if wandb_un:
wandb.log({"train_loss": all_error, "val_loss":all_val_error})
if wandb_un:
wandb.log({"train_loss": all_error, "val_loss":all_val_error})

if __name__ == "__main__":
parser = argparse.ArgumentParser(description='HamlynUNet')
Expand Down

0 comments on commit 2e992d9

Please sign in to comment.