Skip to content
This repository has been archived by the owner on Jun 6, 2023. It is now read-only.

Model restored from checkpoint predicts wrong energies #66

Open
dembart opened this issue Mar 28, 2023 · 0 comments
Open

Model restored from checkpoint predicts wrong energies #66

dembart opened this issue Mar 28, 2023 · 0 comments

Comments

@dembart
Copy link

dembart commented Mar 28, 2023

Dear m3gnet developers,

I'm getting the wrong energies when using a potential recovered from the callbacks folder. The MAE energy after training is ~ 0.005 eV/atom, but after the restoration of the model, the potential predicts completely different energies (~ 10 times less). However the forces are ok. Do I do something incorrectly while loading weights (I am not so familiar with tensorflow)? Could you suggest any solution? The exmaple of loading weights is below:

m3gnet = M3GNet(is_intensive=False)
folder= 'callbacks/'
latest = tf.train.latest_checkpoint(os.path.dirname(folder))
m3gnet.load_weights(latest)
potential = Potential(model=m3gnet)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant