How to connect vision with tensorboard

Hello i’m newbie in pytorch and vision.
I have a code like this.

from engine import train_one_epoch
# Training
writer = SummaryWriter()
start =
for epoch in range(epochs):
    # train for one epoch, printing every 50 iterations
    train_one_epoch(model, optimizer, loader_train, device, epoch, print_freq=20)
    # update the learning rate
    # evaluate on the test dataset
    evaluate(model, loader_val, device=device)
end =

Anyone can tell me how to add a tensorboard to monitor my training. Thanks

This tutorial might be helpful.