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
> CrystalFormer requires JAX versions between v0.4.25 and v0.4.35. Please avoid using versions newer than v0.4.35 to prevent compatibility issues. If you have already installed a newer version, please uninstall it first and then install one within the required range.
90
-
91
89
If you intend to use CUDA (GPU) to speed up the training, it is important to install the appropriate version of `jax` and `jaxlib`. It is recommended to check the [jax docs](https://github.com/google/jax?tab=readme-ov-file#installation) for the installation guide. The basic installation command is given below:
To use the command line tools, you need to install the `crystalformer` package. You can use the following command to install the package:
107
+
108
+
```bash
109
+
pip install .
110
+
```
111
+
107
112
## Available Weights
108
113
109
114
We release the weights of the model trained on the MP-20 dataset and Alex-20 dataset. More details can be seen in the [model](./model/README.md) folder.
-`label`: the label to save the `cif` files, which is the space group number `g`
155
160
-`num_io_process`: the number of processes
156
161
162
+
> [!IMPORTANT]
163
+
> The following evaluation script requires the [`SMACT`](https://github.com/WMD-group/SMACT), [`matminer`](https://github.com/hackingmaterials/matminer), and [`matbench-genmetrics`](https://github.com/sparks-baird/matbench-genmetrics) packages. We recommend installing them in a separate environment to avoid conflicts with other packages.
164
+
157
165
Calculate the structure and composition validity of the generated structures:
@@ -48,15 +49,18 @@ Note that the training, test, and generated datasets should contain the structur
48
49
49
50
50
51
### Relaxation
51
-
`matgl_relax.py` is a script to relax the generated structures using the `matgl` package. You can install the `matgl` following the instructions in the [matgl repository](https://github.com/materialsvirtuallab/matgl?tab=readme-ov-file).
52
+
`mlff_relax.py` is a script to relax the generated structures using pretrained machine learning force field. Now we support the [`orb`](https://github.com/orbital-materials/orb-models), [`MACE`](https://github.com/ACEsuit/mace), [`matgl`](https://github.com/materialsvirtuallab/matgl) and [`deepmd-kit`](https://github.com/deepmodeling/deepmd-kit) models. Please install corresponding packages before running the script.
-`restore_path`: the path to the generated structures
56
58
-`filename`: the filename of the generated structures
57
59
-`relaxation`: whether to relax the structures, if not specified, the script will only predict the energy of the structures without relaxation
58
-
-`model_path`: the path to the `matgl` model checkpoint
59
-
60
+
-`model`: the model to use for relaxation, which can be `orb`, `mace`, `matgl` or `dp`
61
+
-`model_path`: the path to the machine learning force field checkpoint
62
+
-`primitive`: whether to convert the structures to primitive cells, if not specified, the script will only relax the structures without converting to primitive cells. This can be used to reduce the number of atoms in the structures and speed up the relaxation process
63
+
-`fixsymmetry`: whether to fix the space group symmetry of the structures in the relaxation process
60
64
61
65
### Energy Above the Hull
62
66
`e_above_hull.py` is a script to calculate the energy above the hull of the generated structures based on the Materials Project database. To calculate the energy above the hull, the API key of the Materials Project is required, which can be obtained from the [Materials Project website](https://next-gen.materialsproject.org/). Furthermore, the `mp_api` package should be installed.
-`label`: the label to save the energy above the hull file
71
75
-`relaxation`: whether to calculate the energy above the hull based on the relaxed structures
72
76
77
+
`e_above_hull_alex.py` is a script to calculate the energy above the hull of the generated structures based on the Alexandria database. To calculate the energy above the hull, the Alexandria convex hull data is required, which can be obtained from the [Alexandria website](https://alexandria.icams.rub.de/).
0 commit comments