The validating log does not remain in the console. #8012
Answered
by
awaelchli
Keiku
asked this question in
Lightning Trainer API: Trainer, LightningModule, LightningDataModule
-
The validating log does not remain in the console. How can I print and display it? The current def validation_step(self, batch, batch_nb):
loss, accuracy = self.forward(batch)
self.log("loss/val", loss)
self.log("acc/val", accuracy)
return loss It will be displayed for a moment as shown below, but it will not remain as a log. Global seed set to 0
GPU available: True, used: True
TPU available: None, using: 0 TPU cores
LOCAL_RANK: 0 - CUDA_VISIBLE_DEVICES: [0]
Files already downloaded and verified
Files already downloaded and verified
Epoch 26: 98%|███████████████▋| 114/116 [00:25<00:00, 4.50it/s, loss=0.623, v_num=0]
Validating: 100%|█████████████████████████████████████| 19/19 [00:01<00:00, 18.68it/s]
|
Beta Was this translation helpful? Give feedback.
Answered by
awaelchli
Jun 25, 2021
Replies: 1 comment 2 replies
-
Yes that's correct, it's a UI design choice. |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
Keiku
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yes that's correct, it's a UI design choice.
If you wish to see your values in the progress bar, you can log with
self.log("loss/val", loss, prog_bar=True)
and it will show up in the main bar.