当前位置:网站首页>The solution to the display disorder of several events files in the tensorboard
The solution to the display disorder of several events files in the tensorboard
2022-07-26 15:58:00 【Hua Weiyun】
In the use of tensorboard When visualizing network parameters , When multiple events After the document , stay tensorboard The display will be very chaotic , Very difficult to observe . As shown in the figure below , This picture is a document of only two experiments , It's already confused .
My previous solution is to delete the previous files every time I run , Ensure that only the currently generated events file , But this is cumbersome , Especially when more parameters need to be adjusted , Each deletion is not only tiring , And it's easy to make mistakes , Later, inspired by this article , Since they are saved in different paths, they can be displayed separately , Then every time you generate events Save the files in different paths , So I thought of using timestamp as path name , While solving the display disorder, the training time is also recorded , Kill two birds with one stone .
from datetime import datetimeTIMESTAMP = "{0:%Y-%m-%dT%H-%M-%S/}".format(datetime.now())...train_log_dir = 'logs/train/' + TIMESTAMPtest_log_dir = 'logs/test/' + TIMESTAMPmegred = tf.summary.merge_all()with tf.Session() as sess: writer_train = tf.summary.FileWriter(train_log_dir,sess.graph) writer_test = tf.summary.FileWriter(test_log_dir) ...other code... writer_train.add_summary(summary_str_train,step) writer_test.add_summary(summary_str_test,step) The effect is as follows .
边栏推荐
- promise,async-await 和 跨域问题的解决--代理服务器的原理
- 信用卡数字识别(opencv,代码分析)
- Taishan Office Technology Lecture: the zoom ratio of word is slightly different from the display
- gcc/g++与动静库以及gdb
- Sword finger offer II 009. subarray with product less than k
- Coo format of adjacency matrix
- 如何通过ETL调度工具 TASKCTL 使用作业插件类型调用 kettle作业?
- Zynq PS + PL heterogeneous multicore Case Development Manual of Ti C6000 tms320c6678 DSP + zynq-7045 (1)
- Is CICC Fortune Securities safe? How long does it take to open an account
- German EMG e-anji thruster ed301/6 HS
猜你喜欢

81. (cesium home) cesium modifies the gray background (default blue)

Implementation of SAP ABAP daemon

How to use job plug-in type to call a kettle job through ETL scheduling tool taskctl?

拒绝噪声,耳机小白的入门之旅

深度学习中图像增强技术的综合综述

ES6 advanced - query commodity cases

Digital warehouse: iqiyi digital warehouse platform construction practice

单例模式

Delta controller rmc200
![[5 minutes paper] Pointer network](/img/9a/66edc27f08f245447cc6b8867d2383.png)
[5 minutes paper] Pointer network
随机推荐
Enterprise digital transformation needs in-depth research, and it cannot be transformed for the sake of transformation
山西阳泉一煤矿发生致1人死亡安全事故,被责令停产整顿
换把人体工学椅,缓解久坐写代码的老腰吧~
Encryption model
OSPF comprehensive experiment
TI C6000 TMS320C6678 DSP+ Zynq-7045的ZYNQ PS + PL异构多核案例开发手册(1)
.net get injection object manually
PS + PL heterogeneous multicore case development manual for Ti C6000 tms320c6678 DSP + zynq-7045 (4)
超简单!只需简单几步即可为TA定制天气小助理!!
Teach the big model to skip the "useless" layer and improve the reasoning speed × 3. The performance remains unchanged, and the new method of Google MIT is popular
Daily1:SVM
VS2019Debug模式太卡进不去断点
【工具分享】自动生成文件目录结构工具mddir
13年资深开发者分享一年学习Rust经历:从必备书目到代码练习一网打尽
promise,async-await 和 跨域问题的解决--代理服务器的原理
Implementation of personalized healthy diet recommendation system based on SSM
Chapter 7 supporting CORS in rest services
tensorboard多个events文件显示紊乱的解决办法
Research and application of the whole configuration of large humanoid robot
Summary of QT plug-in development -- add plug-in menu in the main interface