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
@caiyinqiong@Chriskuei Hi~ I have an anthor question about loading pretrained model. When we Instantiate a trainer, it seems that the parameter trainloader and validloader must be passed in with strict type check. To get these two loaders requires inconvenient time for data preprocessing. However, if we just use trainer to predict or evaluate, there is no need to get trainloader and validloader. This seems to be an unreasonable design. Or do you have any idea to solve this problem? Thanks.
@RenShuhuai-Andy I used the code in the tutorial-conv-knrm. And I use trainer.restore_model('./pretrained_cknrm/1/model.pt')
print(trainer.evaluate(testloader))
But why I get different result every time?
After using trainer.save() to save the model. How can I load this model and evaluate it? Thanks!
The text was updated successfully, but these errors were encountered: