-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.sh
More file actions
executable file
·33 lines (29 loc) · 992 Bytes
/
setup.sh
File metadata and controls
executable file
·33 lines (29 loc) · 992 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
#!/usr/bin/bash
# input cpu
device=${1:-"gpu"}
conda create -n psd python=3.8 -y
# require 'source' instead of 'conda' in bash env.
source activate psd
# conda install env
if [ "$device" == "cpu" ]
then
echo "Install the version with CPU only"
conda install pytorch torchvision torchaudio cpuonly pyg tensorboard \
matplotlib seaborn joblib networkx numba \
ipykernel flake8 autopep8 graphviz jupyter ipywidgets pytest \
-c pytorch -c pyg
elif [ "$device" == "gpu" ]
then
echo "Install the version with CUDA"
conda install pytorch torchvision torchaudio cudatoolkit=11.6 pyg tensorboard \
matplotlib seaborn joblib networkx numba \
ipykernel flake8 autopep8 graphviz jupyter ipywidgets pytest \
graphviz pygraphviz \
-c pytorch -c nvidia -c pyg
else
echo "Please choose from 'cpu' or 'gpu'."
fi
# pip install additional packages
pip install deephyper ray pygod pyod class_resolver umap-learn
# problem with install pygraphviz
python setup.py develop