当前位置:网站首页>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 Cluster5
- Use Huawei performance management service to configure the sampling rate on demand
- Flick two open, realized a batch lookup join (with source code)
- JSP webshell free -- webshell free
- 每月1号开始计算当月工作日
- 快应用中实现自定义抽屉组件
- 2022爱分析· 国央企数字化厂商全景报告
- 【深入浅出玩转FPGA学习2----设计技巧(基本语法)】
- [ark UI] implementation of the startup page of harmonios ETS
- 二叉树专题--AcWing 3540. 二叉搜索树建树(实用板子 构建二叉搜索树 并输出前、中、后序遍历)
猜你喜欢

Hdu1234 door opener and door closer (water question)

QT学习日记7——QMainWindow
![[AI application] Hikvision ivms-4200 software installation](/img/4e/1640e3cafac13ce4d39520195c3217.png)
[AI application] Hikvision ivms-4200 software installation
![[play with FPGA learning 4 in simple terms ----- talk about state machine design]](/img/e0/95f8b8c5116c57455e54ad12372f12.png)
[play with FPGA learning 4 in simple terms ----- talk about state machine design]

TIPC addressing 2

Openmldb meetup No.4 meeting minutes

Win11 arm system configuration Net core environment variable

Tick Data and Resampling

TIPC messaging3
![[AGC] how to solve the problem that the local display of event analysis data is inconsistent with that in AGC panel?](/img/66/674a06d8e45a31ae879b81554ef373.png)
[AGC] how to solve the problem that the local display of event analysis data is inconsistent with that in AGC panel?
随机推荐
TIPC Service and Topology Tracking4
洛谷 P5536 【XR-3】核心城市(贪心 + 树形 dp 寻找树的中心)
Array splitting (regular thinking
【深入浅出玩转FPGA学习3-----基本语法】
洛谷 P3398 仓鼠找 sugar(树上倍增 lca 判断树中两条路径是否相交 结论)
Filtering of PCL
2022 love analysis · panoramic report of digital manufacturers of state-owned enterprises
TIPC Getting Started6
[play with FPGA learning 5 in simple terms ----- reset design]
Openmldb meetup No.4 meeting minutes
V2X-Sim数据集(上海交大&纽约大学)
三.芯片启动和时钟系统
Win11 arm system configuration Net core environment variable
Complement (Mathematical Simulation
QT学习日记8——资源文件添加
华为联机对战服务玩家掉线重连案例总结
Special topic of binary tree -- acwing 3540 Binary search tree building (use the board to build a binary search tree and output the pre -, middle -, and post sequence traversal)
快应用中实现自定义抽屉组件
TIPC Cluster5
【AppLinking实战案例】通过AppLinking分享应用内图片