question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Disable Progress bars for Train/Validation/Predict separately

See original GitHub issue

🚀 Feature

Currently we can turn off progress bars by setting enable_progress_bar=False but this is an all or nothing solution.

Motivation

I am using PL trainer to make predictions in a small customer facing prototype, the progress bars make the output look very different to the previous solution we are proposing a drop in solution for. We can disable all the progress bars but it’s useful to have them for monitoring training even if we do not want them when calling predict.

Pitch

Additional kwargs to disable progress bars for Trainer.predict calls

cc @justusschock @kaushikb11 @awaelchli @borda @rohitgr7

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
carmoccacommented, Jun 22, 2022

You could create a new Trainer instance for prediction with the progress bar disabled.

0reactions
carmoccacommented, Jun 22, 2022

@justusschock We discussed adding such function in the past. I think it makes sense.

Do you mind writing a proposal in a separate issue about it? Closing this as I don’t want to sidetrack the original question.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Incorrect progress bar during validation · Issue #3647 - GitHub
Bug when running for multiple epochs, the progress bar doesn't look right. While during training the progress bar looks fine (percentage ...
Read more >
How to disable progress bar in Pytorch Lightning
This method simply disables the validation progress bar and allows you to keep the correct training bar [refer 1 and 2].
Read more >
Trainer — PyTorch Lightning 1.8.5.post0 documentation
Automatically enabling/disabling grads. Running the training, validation and test dataloaders. Calling the Callbacks at the appropriate times.
Read more >
Training models with a progress bar - Towards Data Science
tqdm is a Python library for adding progress bar. It lets you configure and display a progress bar with metrics you want to...
Read more >
Avoid Overfitting By Early Stopping With XGBoost In Python
How to use early stopping to prematurely stop the training of an ... that is being optimized to train the model (such as...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found