当前位置:网站首页>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
边栏推荐
- PCL eigen introduction and simple use
- Uncover the secrets of Huawei application market application statistics
- Hdu1236 ranking (structure Sorting)
- flink二开,实现了个 batch lookup join(附源码)
- 洛谷 P4281 [AHOI2008]紧急集合 / 聚会(树上倍增 LCA)
- 【ARK UI】HarmonyOS ETS的启动页的实现
- TIPC Service and Topology Tracking4
- [quick application] there are many words in the text component. How to solve the problem that the div style next to it will be stretched
- sqlite 修改列类型
- What are the software product management systems? Inventory of 12 best product management tools
猜你喜欢

实验电镜距离测量之Matlab处理
![[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?
![[play with FPGA learning 2 in simple terms ----- design skills (basic grammar)]](/img/50/22f2fa8fd606572b13a18cc889ca2e.png)
[play with FPGA learning 2 in simple terms ----- design skills (basic grammar)]

MTK full dump抓取

Verilog 和VHDL有符号数和无符号数相关运算

2022 love analysis · panoramic report of digital manufacturers of state-owned enterprises

金山云——2023届暑期实习

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

Hdu1234 door opener and door closer (water question)

快应用中实现自定义抽屉组件
随机推荐
C# 文件与文件夹操作
I STM32 development environment, keil5/mdk5.14 installation tutorial (with download link)
最详细MySql安装教程
三.芯片啟動和時鐘系統
华为快应用中如何实现同时传递事件对象和自定义参数
华为应用市场应用统计数据问题大揭秘
【付费推广】常见问题合集,推荐榜单FAQ
华为AppLinking中统一链接的创建和使用
V2x SIM dataset (Shanghai Jiaotong University & New York University)
[AI application] Hikvision ivms-4200 software installation
Is the account above changtou school safe?
How to implement tabbar title bar with list component
V2X-Sim数据集(上海交大&纽约大学)
[play with FPGA learning 4 in simple terms ----- talk about state machine design]
二叉树专题--AcWing 1497. 树的遍历(利用后、中序遍历,构建二叉树)
TIPC介绍1
实验电镜距离测量之Matlab处理
TIPC Getting Started6
Thanos Receiver
php中self和static在方法中的区别