Add validation accuracy during training #4557
Unanswered
fgraffitti-cyberhawk
asked this question in
Q&A
Replies: 1 comment 3 replies
-
you can add a val hook like this code
val_loss = ValidationLoss(cfg) ` then register the hook like this |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to add some information on the validation dataset during training.
While adding losses is quite straightforward (running the model in training mode on the items of the validation data loader returns a dictionary with the losses), I am finding quite tricky to calculate the validation accuracy.
For maskRCNN for example, it seems to me that the training accuracy is computed in BaseMaskRCNNHead.forward using the mask_rcnn_loss function, but I can't find a way to use this (or a similar) approach for calculating the validation accuracy.
Anyone has an idea on how to approach this problem?
Beta Was this translation helpful? Give feedback.
All reactions