Hello everyone,
absolute beginner here.
I read an article about the difference between pytorch and pytorch lightning (From PyTorch to PyTorch Lightning — A gentle introduction | by William Falcon | Towards Data Science)
I tried the code given in the example myself and am a bit confused about the progress that is printed.
For training the progress bar is shown for the entire epoch.
For validation on the other hand the output is printed every time the data loader is called, even though I can’t see any reason for this.
Epoch 2: 100%|██████████| 938/938 [00:13<00:00, 68.42it/s, v_num=0]
Validation: 0it [00:00, ?it/s]
Validation: 0%| | 0/157 [00:00<?, ?it/s]
Validation DataLoader 0: 0%| | 0/157 [00:00<?, ?it/s]
Validation DataLoader 0: 1%| | 1/157 [00:00<00:00, 999.60it/s]
Validation DataLoader 0: 1%|▏ | 2/157 [00:00<00:01, 153.81it/s]
Validation DataLoader 0: 2%|▏ | 3/157 [00:00<00:01, 119.97it/s]
Validation DataLoader 0: 3%|▎ | 4/157 [00:00<00:01, 111.08it/s]
The code I used can be seen in raw form here on github
How can I get the validation to be printed for the entire epoch instead of every single time?