Closed MasterLucas closed 3 months ago
Dear Lucas,
are you using the latest version (commit) of SchNetPack?
Best, Jonas
Dear Jonas,
I tried to check the SchNetPack version I am using but was unable to. I created the environment a few months ago, so I don't know if a new version has been released since then.
Do you remember how you installed it? pypi or from source
Hi Lucas,
have you figured out the problem yet?
If not, the problem here is most likely, that you are loading a torch.nn.Module
but the pytorch-lightning
Trainer.test
method requires a pytorch_lightning.LightningModule
Best, Jonas
Dear Sir/ Madam,
I have been having some problems loading and testing a trained model. I trained a set of models in one job and saved their checkpoints, but when trying to load and run them in another job, I got this error
TypeError: `Trainer.test()` requires a `LightningModule` when it hasn't been passed in a previous run
This is the code I'm using:
Is this the correct way to test a trained model using SchNetpack?
Yours faithfully,
Lucas Bandeira