Closed TimSC closed 6 months ago
It seems this will cause some confusion if one tries to load some checkpoint but does not want to resume training state. Might be better to call eval mode within the beginning of the predict function.
Surely you would want to either resume training or do a prediction? Anyway, I moved the eval() mode change to the predict function as you suggested. It probably is better there anyway!
When running in is_testing = True mode, the model needs eval() to be called before performing inference. Not doing this causes a loss in performance. There might be a better way to do this but this is the best I could find.