您的位置:首页 > 财经 > 产业 > https://github.com/divelab/AIRS

https://github.com/divelab/AIRS

2024/10/7 0:25:38 来源:https://blog.csdn.net/weixin_44295524/article/details/140890059  浏览:    关键词:https://github.com/divelab/AIRS

这里写自定义目录标题


conda remove -n comformer --all
sudo apt-get install sogou-ubuntu-input-wine32
sudo apt-get install fcitx-bin fcitx-table-all
https://developer.baidu.com/article/details/2827978

conda create --name comformer python=3.10
conda activate comformer
conda install pytorch torchvision torchaudio pytorch-cuda=11.6 -c pytorch -c nvidia # or higher version if you want
conda install pyg -c pyg
pip install jarvis-tools==2022.9.16
python setup.py训练cd comformer/scripts
python train_jarvis.py # for jarvis
python train_mp.py # for the materials project

https://github.com/divelab/AIRS

环境设置
我们将用于安装依赖项和设置环境。我们建议使用 Python 3.9 Miniconda 安装程序。conda
安装完成后,运行conda
conda env create -f environment.yml
然后运行以下代码以激活环境
conda activate potnet
我们正在用于实现我们的图神经网络。安装 via conda 似乎有问题,因此我们明确使用 pip 作为torch-geometrictorch-geometric
pip install torch-scatter2.1.0 torch-sparse0.6.16 torch-cluster1.6.0 torch-spline-conv1.2.1 -f https://data.pyg.org/whl/torch-1.12.1%2Bcu116.html

pip install dgl1.1.1
pip install pydantic
1.10.2
pip install cython3.0.0
pip install ase
3.22.1
pip install jarvis-tools2022.9.16
pip install numpy
1.21.6
pip install pandarallel1.6.3
pip install pandas
1.3.5
pip install periodictable1.6.1
pip install pymatgen
2021.3.3
pip install pytorch-ignite0.4.10
pip install pyyaml
6.0
pip install scikit-learn1.0.2
pip install scipy
1.7.3
pip install tqdm==4.64.1

pip install torch-geometric
请注意,我们正在使用旧版本的 JARVIS 工具包。最新的 JARVIS 工具包将包含新版本的数据集,其中包含的数据比我们在论文中介绍的数据更多。jarvis-tools==2022.9.16
运行求和算法
要运行求和算法,请运行以下命令以安装算法包(请记住将其替换为您自己的目标。TARGET_PATH
cd functions
tar xzvf gsl-latest.tar.gz
cd gsl-2.7.1
./configure --prefix=TARGET_PATH
sudo apt install libgsl-dev
make
make install
Then edit by adding~/.bashrc
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:TARGET_PATH/lib/

source ~/.bashrc
or create another terminal.

Now we back to directory and runfunctions
python setup.py build_ext --inplace
Then the algorithm is installed as Cython package. A simple way to test if it is successfully installed is to run below in the root directory.
python test_algorithm.py

版权声明:

本网仅为发布的内容提供存储空间,不对发表、转载的内容提供任何形式的保证。凡本网注明“来源:XXX网络”的作品,均转载自其它媒体,著作权归作者所有,商业转载请联系作者获得授权,非商业转载请注明出处。

我们尊重并感谢每一位作者,均已注明文章来源和作者。如因作品内容、版权或其它问题,请及时与我们联系,联系邮箱:809451989@qq.com,投稿邮箱:809451989@qq.com