Skip to content

How can I connect previous log file into new one in tensorboard  #679

@mohanades

Description

@mohanades

Hi,
I trained my model for 50 epochs. Now I want to continue training for other 15 epochs. so I start training with model.load_from_checkpoint("path")
but I don't know how to show continuation of logs with tensorboard
I thought if I write same path of previous file logs, it continue but it didn't show me the previous logs.

I'd be appreciate if you could help me because I need to see the previous training logs along with the new ones.
Part of source code is:

checkpoint_callback=ModelCheckpoint(dirpath="model",filename="newmodel_1",save_last=True,verbose=True,monitor="val_ce_loss",mode="min")
logger=TensorBoardLogger("training-logs",name="test_1")
model1 = model(config)
model_with_previous = model1.load_from_checkpoint(base_path_ckpt)
trainer = pl.Trainer(
     max_steps = max_steps,
     max_epochs=N_EPOCHS,
     gpus=(1 if torch.cuda.is_available() else 0),
     logger=logger,
     callbacks=[checkpoint_callback], 
)
%load_ext tensorboard
%tensorboard --logdir ./lightning_logs

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions