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
if model.node_head is not None:
properties += ["energy", "free_energy"]
if model.graph_head is not None:
properties += ["forces"]
This is a bug, but doesn't affect any models in practice because all of the models we have released have both an energy and a forces head. If you would like to send a PR for this, please do.
Hi,
First of all thank you for the great project.
I have a question regarding the calculator class in forcefield.
In https://github.com/orbital-materials/orb-models/blob/3c79a26ba28ff64a6522b8db30f52e015d0b9064/orb_models/forcefield/calculator.py#L47C1-L51C1, which is
Shouldn't
energy
/free_energy
be added to properties whenmodel.graph_head
exists, andforces
be added whenmodel.node_head
exists?This is contrary to how
energy
andforces
are mapped after prediction in the same python file, which requiresgraph_pred
andnode_pred
, respectively. This is shown in https://github.com/orbital-materials/orb-models/blob/3c79a26ba28ff64a6522b8db30f52e015d0b9064/orb_models/forcefield/calculator.py#L79C1-L85C1 which isMy solution is to correct the if/else conditions to
Thank you
The text was updated successfully, but these errors were encountered: