MichiganCOG / ViP

Video Platform for Action Recognition and Object Detection in Pytorch
MIT License
219 stars 37 forks source link

End of epoch divides incorrectly #13

Closed lemmersj closed 5 years ago

lemmersj commented 5 years ago

The logging loss sum appears to be divided by the expected number of samples (i.e., the full minibatch size), instead of the actual samples processed. This results in an abrupt reduction in magnitude of the logged loss when an epoch ends.

division

zeonzir commented 5 years ago

Completed fix by adding a running batch counter to account to true batch size being processed as opposed the hard calculation of pseudo_batch_looper * batch_size. Will be reviewed soon and pushed.