-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathscript.sh
More file actions
executable file
·52 lines (40 loc) · 888 Bytes
/
script.sh
File metadata and controls
executable file
·52 lines (40 loc) · 888 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#!/bin/bash
# print option
export print=true
# read option
export read=true
export read_opt='aug'
# resize option
export resize=true
export img_size=256
# split option
export split=true
# check option
export check=true
# aug option
export aug=true
# main function
if [ ${print} == true ]; then
echo "Print function activated."
python main.py print
fi
if [ ${resize} == true ]; then
echo "Resize function activated."
python main.py resize ${img_size}
fi
if [ ${read} == true ]; then
echo "Read function activated."
python main.py read ${read_opt}
fi
if [ ${split} == true ]; then
echo "Train-Validation split activated."
python main.py split
fi
if [ ${check} == true ]; then
echo "Check function activated."
python main.py check
fi
if [ ${aug} == true ]; then
echo "Training set augmentation is activated."
python main.py aug
fi