当前位置:网站首页>Multi line display and single line display of tqdm
Multi line display and single line display of tqdm
2022-07-02 11:12:00 【lanmy_ dl】
introduce
from tqdm import tqdm
pbar = tqdm(total=n_batches)
Single line display
shortcoming , Can't see the process of change , Because it will cover ; advantage , Save screen , It's comfortable to see
for Cyclic data retrieval process
pbar.set_description('Train loss: %.3f / loss %.3f' % (train_loss / (i + 1), loss.item()))
pbar.update()
pbar.close()
like 

Multi line display
Don't shut down close() Multi line display
for Cyclic data retrieval process
pbar.set_description('Train loss: %.3f / loss %.3f' % (train_loss / (i + 1), loss.item()))
pbar.update()

Supplement the complete cycle
The above cycle is train It takes each data to train the cycle , This is often the case
for i,(img, label) in enumerate(train_loader):
pbar.set_description('Train loss: %.3f / loss %.3f' % (train_loss / (i + 1), loss.item()))
pbar.update()
pbar.close() # If a single line shows that this line does not
边栏推荐
- TIPC协议
- Indexer in C #
- [applinking practical case] share in app pictures through applinking
- Nodejs+express+mysql simple blog building
- Implement custom drawer component in quick application
- 金山云——2023届暑期实习
- Implementation of six singleton modes
- 【深入浅出玩转FPGA学习4----漫谈状态机设计】
- 最详细MySql安装教程
- Creation and use of unified links in Huawei applinking
猜你喜欢

【深入浅出玩转FPGA学习5-----复位设计】

Implement custom drawer component in quick application

【深入浅出玩转FPGA学习4----漫谈状态机设计】

二.Stm32f407芯片GPIO编程,寄存器操作,库函数操作和位段操作

二叉树专题--AcWing 1497. 树的遍历(利用后、中序遍历,构建二叉树)

【深入浅出玩转FPGA学习3-----基本语法】

TIPC 寻址2

洛谷 P5536 【XR-3】核心城市(贪心 + 树形 dp 寻找树的中心)

V2X-Sim数据集(上海交大&纽约大学)

JSP webshell free -- the basis of JSP
随机推荐
How does the whole network display IP ownership?
Calculate the sum of sequences
TIPC Getting Started6
高德根据轨迹画线
计算序列之和
华为游戏初始化init失败,返回错误码907135000
Hdu1228 a + B (map mapping)
从攻击面视角,看信创零信任方案实践
Implement custom drawer component in quick application
[play with FPGA learning 5 in simple terms ----- reset design]
Special topic of binary tree -- acwing 1589 Building binary search tree
Flink two Open, implement Batch Lookup join (attached source)
TIPC介绍1
Use Huawei performance management service to configure the sampling rate on demand
PCL extracts a subset from a point cloud
如何使用IDE自动签名调试鸿蒙应用
Jsp webshell Free from killing - The Foundation of JSP
Overview of integrated learning
V2x SIM dataset (Shanghai Jiaotong University & New York University)
Array splitting (regular thinking