How to make PyTorch Lightning quiet?
Because I have a very small network which is quick at training and I want to compare many different runs, I want to disable Lightning's default output to both console and file system. I already tried setting weights_summary=False, checkpoint_callback=False, logger=False and logging.getLogger("pytorch_lightning").setLevel(logging.ERROR), but I still get the progress bar and the GPU availability report. How can I disable these?
Set
# disable progress bar
trainer = Trainer(progress_bar_refresh_rate=0)
will remove the progressbar. There was a bug related to the user setting the logging level, so if you try to update to master hopefully doing
logging.getLogger("pytorch_lightning").setLevel(logging.ERROR)
should remove the GPU availability report.