Visual DL使用指南
在AiStudio经典版中使用
1.首先要实例化回调类,将训练过程中的损失值和评价指标储存至日志文件中
visualdl = paddle.callbacks.VisualDL(log_dir='visualdl_log')
2.与model.fit()联合使用,把回调类的实例通过参数传递给model的fit()方法
model.fit(
train_dataset,
test_dataset,
epochs=10,
batch_size=64,
save_dir='multilayer_perceptron',
verbose=1,
callbacks=[visualdl]
)
3.在终端中输入命令,启动VisualDL控制面板
visualdl service upload --logdir ./visualdl_log
4.复制链接到浏览器中查看可视化结果
在BML CodeLab中使用
1.首先要实例化回调类,将训练过程中的损失值和评价指标储存至日志文件中
2.与model.fit()联合使用,把回调类的实例通过参数传递给model的fit()方法
3.点击按钮“数据模型可视化”,点击设置logdir,添加第一步中指定的文件夹
4.点击“启动VisualDL服务”,点击“进入VisualDL”
在本地计算机使用
1.实例化回调类,将训练过程中的损失值和评价指标储存至日志文件中
2.与model.fit()联合使用,把回调类的实例通过参数传递给model的fit()方法
3.在终端中输入命令,启动VisualDL控制面板
visualdl --logdir ./visualdl_log --host 0.0.0.0 --port 8080
4.在浏览器中输入http://localhost:8080/查看可视化结果
参考资料
https://www.paddlepaddle.org.cn/documentation/docs/zh/guides/03_VisualDL/visualdl_cn.html
https://aistudio.baidu.com/paddle/forum/topic/show/990231
https://www.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/callbacks/VisualDL_cn.html
https://www.paddlepaddle.org.cn/install/quick?docurl=/documentation/docs/zh/install/conda/windows-conda.html
https://www.paddlepaddle.org.cn/documentation/docs/zh/guides/03_VisualDL/visualdl_cn.html#anzhuangfangshi
rg.cn/documentation/docs/zh/guides/03_VisualDL/visualdl_cn.html#anzhuangfangshi