从TensorBoard中导出数据并对其进行平滑处理

从TensorBoard中导出数据并对其进行平滑处理

1、 导出TensorBoard中的数据

1. 方式一:利用TensorBoard界面控件导出

1、在TensorBoard 页面右边框中有一个Show data download links 选项,勾选后就可以在图表下方看见下载标志,具体步骤如下图所示:

2.方式二:利用代码方式导出

导出TensorBoard中数据的代码如下所示:

from tensorboard.backend.event_processing import event_accumulator

#加载日志数据

ea=event_accumulator.EventAccumulator('events.out.tfevents.1550994567.vvd-Inspiron-7557')

ea.Reload()

print(ea.scalars.Keys())

val_psnr=ea.scalars.Items('val_psnr')

print(len(val_psnr))

print([(i.step,i.value) for i in val_psnr])

导出结果:

['val_loss', 'val_psnr', 'loss', 'psnr', 'lr']

29

[

相关推荐

车载音乐u盘怎样在车上播放
365骑士版app下载

车载音乐u盘怎样在车上播放

📅 11-02 👁️ 9798
换手机号后,别让银行卡瑟瑟发抖!轻松搞定绑定更改!
换手机号后,别让银行卡瑟瑟发抖!轻松搞定绑定更改!
鲢鱼在水温多少度开口(鲢鳙开口温度?)
365骑士版app下载

鲢鱼在水温多少度开口(鲢鳙开口温度?)

📅 07-24 👁️ 7757
闪银借款没还会怎么样
Bet体育365提款不到账

闪银借款没还会怎么样

📅 10-03 👁️ 5149
12星座身价排名,你的身价是多少
Bet体育365提款不到账

12星座身价排名,你的身价是多少

📅 08-11 👁️ 9954