-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.sh
More file actions
executable file
·59 lines (47 loc) · 1.82 KB
/
test.sh
File metadata and controls
executable file
·59 lines (47 loc) · 1.82 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
#!/bin/bash
# Paths
INPUT_DIR="./images/baywatch_resort"
OUTPUT_BASE_DIR="./output"
SCRIPT="python3 image_processing.py"
# Output directories for each experiment
OUTPUT_COLOR_BANDS="${OUTPUT_BASE_DIR}/color_bands"
OUTPUT_MONOCHROME="${OUTPUT_BASE_DIR}/monochrome"
OUTPUT_INVERTED="${OUTPUT_BASE_DIR}/inverted"
OUTPUT_NO_GPS="${OUTPUT_BASE_DIR}/no_gps"
OUTPUT_TIMESTAMP="${OUTPUT_BASE_DIR}/timestamp"
OUTPUT_NOISE="${OUTPUT_BASE_DIR}/noise"
OUTPUT_PERSPECTIVE="${OUTPUT_BASE_DIR}/perspective"
OUTPUT_TILT="${OUTPUT_BASE_DIR}/tilt"
# Function to clear output directory
clear_output_dir() {
if [ -d "$1" ]; then
rm -rf "$1"/*
else
mkdir -p "$1"
fi
}
# Run color bands experiment
clear_output_dir "$OUTPUT_COLOR_BANDS"
$SCRIPT -i "$INPUT_DIR" -o "$OUTPUT_COLOR_BANDS" -e color-bands -b rg
# Run monochrome experiment
clear_output_dir "$OUTPUT_MONOCHROME"
$SCRIPT -i "$INPUT_DIR" -o "$OUTPUT_MONOCHROME" -e monochrome -p 50
# Run inverted experiment
clear_output_dir "$OUTPUT_INVERTED"
$SCRIPT -i "$INPUT_DIR" -o "$OUTPUT_INVERTED" -e inverted -f 50 -m 50
# Run no-gps experiment
clear_output_dir "$OUTPUT_NO_GPS"
$SCRIPT -i "$INPUT_DIR" -o "$OUTPUT_NO_GPS" -e no-gps -p 50
# Run timestamp experiment
clear_output_dir "$OUTPUT_TIMESTAMP"
$SCRIPT -i "$INPUT_DIR" -o "$OUTPUT_TIMESTAMP" -e timestamp --start-date "2024-01-01" --end-date "2024-01-31"
# Run noise experiment
clear_output_dir "$OUTPUT_NOISE"
$SCRIPT -i "$INPUT_DIR" -o "$OUTPUT_NOISE" -e noise --noise-level 50
# Run perspective experiment
clear_output_dir "$OUTPUT_PERSPECTIVE"
$SCRIPT -i "$INPUT_DIR" -o "$OUTPUT_PERSPECTIVE" -e perspective -p 50 --warp-by 10
# Run tilt experiment
clear_output_dir "$OUTPUT_TILT"
$SCRIPT -i "$INPUT_DIR" -o "$OUTPUT_TILT" -e tilt -p 75 --max-tilt 10
echo "All experiments completed. Check the output directories for results."