-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathrun_preprocess_data.sh
More file actions
executable file
·56 lines (45 loc) · 1.39 KB
/
run_preprocess_data.sh
File metadata and controls
executable file
·56 lines (45 loc) · 1.39 KB
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
#!/bin/bash
DATA=$1
BENCHMARK_HOME=$(realpath ../../)
DATADIR=${BENCHMARK_HOME}/datasets/${DATA}
OUTDIR=${BENCHMARK_HOME}/datasets/${DATA}
# If you want to prepare .lmdb which saves just atom cloud (containing just coordinates), set "cloud".
# Or if you want to have graph (containing coordinates as well as edges), set "graph"
outdata_type=$2
if [ $outdata_type == "cloud" ]; then
# Train/Valid/Test sets
python preprocess.py \
--train-data ${DATADIR}/Trainset.xyz \
--train-data-output-name train \
--valid-data ${DATADIR}/Validset.xyz \
--valid-data-output-name valid \
--test-data ${DATADIR}/Testset.xyz \
--test-data-output-name test \
--out-path ${OUTDIR} \
# OOD
python preprocess.py \
--data ${DATADIR}/OOD.xyz \
--data-output-name ood \
--out-path ${OUTDIR}/ood \
elif [ $outdata_type == "graph" ]; then
rmax=$3
maxneigh=$4
# Train/Valid/Test sets
python preprocess.py \
--train-data ${DATADIR}/Trainset.xyz \
--train-data-output-name train \
--valid-data ${DATADIR}/Validset.xyz \
--valid-data-output-name valid \
--test-data ${DATADIR}/Testset.xyz \
--test-data-output-name test \
--out-path ${OUTDIR} \
--r-max $rmax \
--max-neighbors $maxneigh \
# OOD
python preprocess.py \
--data ${DATADIR}/OOD.xyz \
--data-output-name ood \
--out-path ${OUTDIR}/ood \
--r-max $rmax \
--max-neighbors $maxneigh \
fi