-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathprep_sds_run_configs.sh
More file actions
61 lines (43 loc) · 1.42 KB
/
prep_sds_run_configs.sh
File metadata and controls
61 lines (43 loc) · 1.42 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
57
58
59
60
61
#!/bin/bash
set -e
# configure these variables before running!
# 1 less than the start ID of this run array
# Set this to how many runs you have done today
# (or a number that is at least as big as that.)
# Maybe 0, 10, 50, 100 etc nice round tens/hundreds numbers preferred)
BASEID=0
# source mesh dir for this run
MESHESDIR=victim-datasets/SMALsource-10-21-all
# directory where sds run results will be saved
RESULTSDIR=
# json file containing settings for all runs
BASEJSONFILE=
# directory of directories containing generated json files
PARENTJSONDUMPDIR=
# current month
MONTH=10
# current day
DAY=31
# nickname for this set of source meshes (nospaces)
DATASETNICKNAME=
# nickname for this run on this set of source meshes (nospaces)
RUNBATCHNICKNAME=
# END VARIABLES FOR CONFIG!
###########################################
OBJFILES=$(echo $MESHESDIR/*.obj | tr " " "\n" | grep -v preproc)
NRUNS=$(echo "$OBJFILES" | wc -l)
# we'll start from STARTID+1
STARTID=$((BASEID + 1))
ENDID=$((BASEID + NRUNS))
JSONDUMPDIR="$PARENTJSONDUMPDIR/$MONTH-$DAY.${STARTID}to$ENDID-$DATASETNICKNAME-$RUNBATCHNICKNAME/"
echo "json dump dir: $JSONDUMPDIR"
mkdir -p "$JSONDUMPDIR"
mkdir -p "$RESULTSDIR"
python scratch_generate_sds_run_configs.py \
-j "$BASEJSONFILE" \
-k "$BASEID" \
-n "deform-csdv3-$MONTH-$DAY.{i}-$DATASETNICKNAME-{s}-$RUNBATCHNICKNAME" \
-r "$RESULTSDIR" \
-o "$JSONDUMPDIR" \
-s nrmls \
-i $OBJFILES