-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Is there a way to supress all printing and warnings in the Trainer? #4462
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
Labels
question
Further information is requested
Comments
Both snippets from above links are not working :( |
see this comment. These two lines work for me |
To make it short for everyone looking for the answer: For the old lightning: import pytorch_lightning
import logging
logging.getLogger("pytorch_lightning").setLevel(logging.ERROR) For the new lightning: import lightning
import logging
logging.getLogger("lightning.pytorch").setLevel(logging.ERROR) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello,

I am aware of the
progress_bar_refresh_rate
andweight_summary
parameters, but even when I disable them I get these GPU warning-like messages:I would like to disable all warnings and printings from the Trainer, is this possible?
Why? because I want to perform several training operations in a loop and monitor them with tqdm, so intermediate printing will ruin the tqdm progress bar.
The text was updated successfully, but these errors were encountered: