Skip to content

Validation loop starts before training epoch is completed #1020

Answered by SkafteNicki
digital-idiot asked this question in Q&A
Discussion options

You must be logged in to vote

This questions is more related to repository for lightning than torchmetrics. That said, the reason is that an epoch in lightning is considered to be BOTH training + validation. So you are actually done passing over your training data when you see the validation progress bar. To confirm this you could try checking the length of your training dataloader, that it matches the number where the validation progress bar starts.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@digital-idiot
Comment options

@semaphore-egg
Comment options

Answer selected by digital-idiot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants