How to disable tqdm logs - < ... WARNING: logs capped at 1,000 lines; dropping 2,738 more >

How do I disable the logs from tqdm?

They take all the space located for logging.

20%|█▉ | 666/3401 [02:03<09:00, 5.06it/s]
20%|█▉ | 667/3401 [02:03<08:46, 5.19it/s]
20%|█▉ | 668/3401 [02:03<08:36, 5.29it/s]
20%|█▉ | 669/3401 [02:03<08:29, 5.36it/s]
20%|█▉ | 670/3401 [02:03<08:28, 5.38it/s]
20%|█▉ | 671/3401 [02:04<08:21, 5.44it/s]
20%|█▉ | 672/3401 [02:04<08:26, 5.39it/s]
20%|█▉ | 673/3401 [02:04<08:18, 5.47it/s]
< … WARNING: logs capped at 1,000 lines; dropping 2,738 more >

Hi,
tqdm(dataloader, total=len(dataloader),disable=True)

1 Like

Thanks a lot @Ammarali32

1 Like