打开方式:
直接在Pycharm中的Terminal打开
tensorboard --logdir=“logs” --port=6007
打开后报如下错误,是logs的路径错误,改为全部路径即可
from torch.utils.tensorboard import SummaryWriter
from PIL import Image
import numpy as np
writer = SummaryWriter("logs")
img_path = r"C:\Users\22843\python