Skip to content

Commit

Permalink
Update cgcnn_inference.py
Browse files Browse the repository at this point in the history
  • Loading branch information
williamyxl authored Apr 10, 2024
1 parent e6aaaa5 commit 8da8b4f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mofa/scoring/cgcnn_inference.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@


_atom_init_dir = Path(__file__).parent / "files"
_cgcnn_models_dir = (Path(__file__).parent / ".." / ".." / "models" / "cgcnn-hmof-0.1bar-300k").resolve()

class Opt:
def __init__(self, **entries):
Expand Down Expand Up @@ -530,7 +531,7 @@ def run_cgcnn_pred_wrapper_serial(mofs: list[ase.Atoms], run_name="some_random_s
"batch_size": manual_batch_size,
"num_workers": ncpus_to_load_data,
"backbone": 'cgcnn',
"load_ckpt_path": 'models',
"load_ckpt_path": _cgcnn_models_dir,
"dropnan": False,
}
opt = Opt(**opt)
Expand Down

0 comments on commit 8da8b4f

Please sign in to comment.