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
Hi!
I found that when I load the model back using autoencoder.load_state_dict(torch.load(ae_path)) etc., it leads to low accuracy (around 0.3) even though the model achieves around 0.8 accuracy in evaluate_autoencoder during training.
I have to use torch.load(ae_path) and torch.save(autoencoder, f) to get away this problem.
Probably it is a pytorch bug, as discussed here: https://discuss.pytorch.org/t/saving-and-loading-a-model-in-pytorch/2610/6
The text was updated successfully, but these errors were encountered:
Hi!
I found that when I load the model back using
autoencoder.load_state_dict(torch.load(ae_path))
etc., it leads to low accuracy (around 0.3) even though the model achieves around 0.8 accuracy in evaluate_autoencoder during training.I have to use
torch.load(ae_path)
andtorch.save(autoencoder, f)
to get away this problem.Probably it is a pytorch bug, as discussed here: https://discuss.pytorch.org/t/saving-and-loading-a-model-in-pytorch/2610/6
The text was updated successfully, but these errors were encountered: