Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Basic ProgressBar does not work #18170

Closed
dnaihao opened this issue Jul 26, 2023 · 3 comments
Closed

Basic ProgressBar does not work #18170

dnaihao opened this issue Jul 26, 2023 · 3 comments
Labels
progress bar: tqdm question Further information is requested ver: 2.0.x

Comments

@dnaihao
Copy link

dnaihao commented Jul 26, 2023

Bug description

Version of pytorch_lightning==2.0.6, tqdm==4.65.0
I want to display the training progress of my models and the basic ProgressBar from pytorch_lightning.callbacks does not work (nothing shows up).
However, when I switched to RichProgressBar, the rich progress bar shows up.

What version are you seeing the problem on?

v2.0

How to reproduce the bug

python pytorch_lightning.callbacks import ProgressBar does not show up anything.

from pytorch_lightning.callbacks import RichProgressBar can show the training progress.

Error messages and logs

Nothing shows up for ProgressBar.

Environment

pytorch_lightning==2.0.6
tqdm==4.65.0

More info

Running things in a Linux environment, with an A40 GPU.

cc @awaelchli

@dnaihao dnaihao added bug Something isn't working needs triage Waiting to be triaged by maintainers labels Jul 26, 2023
@awaelchli
Copy link
Contributor

Hi @dnaihao

You don't need to import the progress bar if you want to use tqdm. It gets enabled by default if you just run the Trainer :)
The reason why you don't see anything is because you accidentally imported the base class, but you probably wanted to import pytorch_lightning.callbacks import TQDMProgressBar. (But again, it is the default, so it's not necessary technically).

Let me know if that resolves your problem :)

@awaelchli awaelchli added question Further information is requested progress bar: tqdm and removed bug Something isn't working needs triage Waiting to be triaged by maintainers labels Jul 26, 2023
@dnaihao
Copy link
Author

dnaihao commented Jul 27, 2023

Thanks for the explanation.
But for the previous versions of Pytorch Lightening (probably around 1.6.X), I imported ProgressBar and it worked out perfectly fine.
But sure, I am using the TODMProgressBar now and it works fine.

@awaelchli
Copy link
Contributor

Yes, you are right, in previous versions prior to 2.0, ProgressBar was the tqdm-version. Later, the name of the base class was changed from ProgressBarBase to just ProgressBar #17058. Apologies if this caused confusion!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
progress bar: tqdm question Further information is requested ver: 2.0.x
Projects
None yet
Development

No branches or pull requests

2 participants