-
Notifications
You must be signed in to change notification settings - Fork 453
/
Copy pathscript_download_all_datasets.sh
executable file
·164 lines (116 loc) · 2.68 KB
/
script_download_all_datasets.sh
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
# Command to download dataset:
# bash script_download_all_datasets.sh
############
# ZINC
############
DIR=molecules/
cd $DIR
FILE=ZINC.pkl
if test -f "$FILE"; then
echo -e "$FILE already downloaded."
else
echo -e "\ndownloading $FILE..."
curl https://data.dgl.ai/dataset/benchmarking-gnns/ZINC.pkl -o ZINC.pkl -J -L -k
fi
FILE=ZINC-full.pkl
if test -f "$FILE"; then
echo -e "$FILE already downloaded."
else
echo -e "\ndownloading $FILE..."
curl https://data.dgl.ai/dataset/benchmarking-gnns/ZINC-full.pkl -o ZINC-full.pkl -J -L -k
fi
cd ..
############
# MNIST and CIFAR10
############
DIR=superpixels/
cd $DIR
FILE=MNIST.pkl
if test -f "$FILE"; then
echo -e "$FILE already downloaded."
else
echo -e "\ndownloading $FILE..."
curl https://data.dgl.ai/dataset/benchmarking-gnns/MNIST.pkl -o MNIST.pkl -J -L -k
fi
FILE=CIFAR10.pkl
if test -f "$FILE"; then
echo -e "$FILE already downloaded."
else
echo -e "\ndownloading $FILE..."
curl https://data.dgl.ai/dataset/benchmarking-gnns/CIFAR10.pkl -o CIFAR10.pkl -J -L -k
fi
cd ..
############
# PATTERN and CLUSTER
############
DIR=SBMs/
cd $DIR
FILE=SBM_CLUSTER.pkl
if test -f "$FILE"; then
echo -e "$FILE already downloaded."
else
echo -e "\ndownloading $FILE..."
curl https://data.dgl.ai/dataset/benchmarking-gnns/SBM_CLUSTER.pkl -o SBM_CLUSTER.pkl -J -L -k
fi
FILE=SBM_PATTERN.pkl
if test -f "$FILE"; then
echo -e "$FILE already downloaded."
else
echo -e "\ndownloading $FILE..."
curl https://data.dgl.ai/dataset/benchmarking-gnns/SBM_PATTERN.pkl -o SBM_PATTERN.pkl -J -L -k
fi
cd ..
############
# TSP
############
DIR=TSP/
cd $DIR
FILE=TSP.pkl
if test -f "$FILE"; then
echo -e "$FILE already downloaded."
else
echo -e "\ndownloading $FILE..."
curl https://data.dgl.ai/dataset/benchmarking-gnns/TSP.pkl -o TSP.pkl -J -L -k
fi
cd ..
############
# CSL
############
DIR=CSL/
cd $DIR
FILE=CSL.zip
if test -f "$FILE"; then
echo -e "$FILE already downloaded."
else
echo -e "\ndownloading $FILE..."
curl https://www.dropbox.com/s/rnbkp5ubgk82ocu/CSL.zip?dl=1 -o CSL.zip -J -L -k
unzip CSL.zip -d ./
rm -r __MACOSX/
fi
cd ..
############
# GraphTheoryProp
############
DIR=graphtheoryprop/
cd $DIR
FILE=GraphTheoryProp.pkl
if test -f "$FILE"; then
echo -e "$FILE already downloaded."
else
echo -e "\ndownloading $FILE..."
curl https://www.dropbox.com/s/sat1tj9lzvljtpe/GraphTheoryProp.pkl?dl=1 -o GraphTheoryProp.pkl -J -L -k
fi
cd ..
############
# CYCLES
############
DIR=cycles/
cd $DIR
FILE=CYCLES_6_56.pkl
if test -f "$FILE"; then
echo -e "$FILE already downloaded."
else
echo -e "\ndownloading $FILE..."
curl https://www.dropbox.com/s/9fs9aqfp10q9wue/CYCLES_6_56.pkl?dl=1 -o CYCLES_6_56.pkl -J -L -k
fi
cd ..