Skip to content

load_from_checkpoint giving different validation results #6678

Discussion options

You must be logged in to vote

Just a wild guess, but maybe the model is in train-mode after loading from a checkpoint. Have you tried model.eval() in addition to setting the requires_grad? I'm thinking about BN layers and so on, where this is important (see here).

Replies: 1 comment 7 replies

Comment options

You must be logged in to vote
7 replies
@tomerperetz
Comment options

@Chrixtar
Comment options

@tomerperetz
Comment options

@lanlanlan3
Comment options

@ruiyan1995
Comment options

Answer selected by keitht226
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment