Skip to content

Commit

Permalink
new function returns logger directly
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon Adamov committed May 1, 2024
1 parent 39f5976 commit 96eea78
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions train_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from lightning_fabric.utilities import seed

# First-party
from neural_lam import constants, utils
from neural_lam import utils
from neural_lam.models.graph_lam import GraphLAM
from neural_lam.models.hi_lam import HiLAM
from neural_lam.models.hi_lam_parallel import HiLAMParallel
Expand Down Expand Up @@ -263,9 +263,9 @@ def main():
mode="min",
save_last=True,
)
logger = pl.loggers.WandbLogger(
project=constants.WANDB_PROJECT, name=run_name, config=args
)

logger = utils.init_wandb(args)

trainer = pl.Trainer(
max_epochs=args.epochs,
deterministic=True,
Expand Down

0 comments on commit 96eea78

Please sign in to comment.