|
# Fix batch norm running statistics (i.e., put batch_norm layers in eval mode) |
# Fix batch norm running statistics (i.e., put batch_norm layers in eval mode)
self.model.train()
is this truly correct?
.train() usually puts layers in training mode. So for batch norm what it means is that it start collecting running statistics but uses mini-batch stats if I remember correctly, while in .eval() it uses the saved running stats. Right?
aws-cv-task2vec/task2vec.py
Line 71 in c5795e5
is this truly correct?
.train() usually puts layers in training mode. So for batch norm what it means is that it start collecting running statistics but uses mini-batch stats if I remember correctly, while in .eval() it uses the saved running stats. Right?