forked from IBM/aligned_diffusion_bridges
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild_env.sh
More file actions
executable file
·35 lines (27 loc) · 750 Bytes
/
build_env.sh
File metadata and controls
executable file
·35 lines (27 loc) · 750 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#!/bin/bash
source $(conda info --root)/etc/profile.d/conda.sh
conda create -y --name sbalign python=3.9
conda activate sbalign
python -m pip install --upgrade pip
conda env update --file $PWD/env.yml
TORCH=1.12.0
if [[ "$OSTYPE" == "linux-gnu"* ]]; then
CUDA=cu113
else
CUDA=cpu
fi
ARCH=$(uname -m)
python -m pip install torch_geometric
if [[ "$ARCH" == "arm64" ]]; then
python -m pip install torch_scatter
python -m pip install torch_sparse
python -m pip install torch_cluster
else
python -m pip install --no-index \
torch_scatter \
torch_sparse \
torch_cluster \
-f https://data.pyg.org/whl/torch-${TORCH}+${CUDA}.html
fi
python -m pip install --upgrade e3nn
python setup.py develop