Skip to content

Commit

Permalink
Merge pull request #12 from tsg-biosim/patch-1
Browse files Browse the repository at this point in the history
Corrected model prediction unit conversion
  • Loading branch information
petrosyang authored Jan 7, 2025
2 parents cd5b418 + 5ab8408 commit fa29674
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions force_field_models/inference/inference.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ def predict_energies(model, data_loader):
for batch in tqdm(data_loader):
batch = batch.to(DEVICE)
output = model(batch, True)
output = output / 627.5094740631

for atom_idx, mol_idx in enumerate(batch.batch):
atom_id = batch.x[0][atom_idx].item()
Expand Down

0 comments on commit fa29674

Please sign in to comment.