You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We need to get the model cost in eval mode when we compute validation loss/cost for hyper parameter search.
At the moment eval mode only returns the detection without the loss/cost.
Which mean it is used as inference mode which is different than what people might want.
We can not use training mode to compute validation because of batchnorm and dropout.
The solution with the least code modification would be to add a new argument inference_mode in forward that would be true if we only need the detection and false if we want the loss/cost.
and change if self.training to if not inference_mode.
Few classes through out the torchvision.models.vision would need to be updated like so