-
Notifications
You must be signed in to change notification settings - Fork 1
/
install.sh
21 lines (19 loc) · 857 Bytes
/
install.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
CUDA=${1:-"cu102"}
TORCH=${2:-"1.9.0"}
echo "CUDA: ${CUDA} / TORCH: ${TORCH}"
if [ $CUDA = "cu111" ]; then
pip3 install torch==${TORCH}+${CUDA} -f https://download.pytorch.org/whl/torch_stable.html
elif [ $CUDA = "cu102" ]; then
pip3 install torch==${TORCH}
else
echo "No match for CUDA: ${CUDA} / TORCH: ${TORCH}"
exit
fi
pip3 install torch-scatter==2.0.9 -f https://pytorch-geometric.com/whl/torch-${TORCH}+${CUDA}.html
pip3 install torch-sparse==0.6.12 -f https://pytorch-geometric.com/whl/torch-${TORCH}+${CUDA}.html
pip3 install torch-cluster==1.5.9 -f https://pytorch-geometric.com/whl/torch-${TORCH}+${CUDA}.html
pip3 install torch-geometric==2.0.2
pip3 install pytorch-lightning==1.5.4
pip3 install hydra-core hydra-colorlog hydra-optuna-sweeper
pip3 install -r requirements.txt
echo "Install completed for CUDA: ${CUDA} / TORCH: ${TORCH}"