FastFlow icon indicating copy to clipboard operation
FastFlow copied to clipboard

where can I get the val loss?

Open FrankFang0813 opened this issue 3 years ago • 1 comments

Hi, first, thank you for your code!!!

I want to use val loss to choose the best ckpt, I think "loss_meter.avg" is training loss. So where can I get the val loss? thank you!!

FrankFang0813 avatar Nov 22 '22 08:11 FrankFang0813

You can get the loss value from ret here with ret["loss"] https://github.com/gathierry/FastFlow/blob/37c99ae33b8db0e5cb534fd0d197b0bc44817a03/main.py#L96

Then build another loss_meter in eval_once function to aggregate the losses.

gathierry avatar Dec 08 '22 10:12 gathierry