-
Notifications
You must be signed in to change notification settings - Fork 0
/
prep.sh
executable file
·32 lines (27 loc) · 1.02 KB
/
prep.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
#!/bin/bash
EXERCISE_ENVIRONMENT="env"
eval "$(conda shell.bash hook)"
conda activate $EXERCISE_ENVIRONMENT
# ./prep_data.sh
# python3 -u destruction-augment.py
# python3 -u destruction-ready-data-snn.py --balance --pre_image_index 0,1
# python3 -u destruction-optimize.py
declare -a Cities=("aleppo" "damascus" "daraa" "deir-ez-zor" "hama" "homs" "idlib" "raqqa")
# declare -a Cities=("aleppo" "daraa")
# declare -a Cities=("raqqa")
declare -a data_dir=$1
echo "Data Dir: $data_dir";
for city in "${Cities[@]}"; do
echo "Sampling:" $city
python -u sample.py --city $city --data_dir $data_dir
echo "Labeling:" $city
python -u label.py --city $city --data_dir $data_dir
echo "Tiling:" $city
python -u tile.py --city $city --data_dir $data_dir
echo "Balancing:" $city
python -u balance.py --city $city --data_dir $data_dir
echo "Shuffling:" $city
python -u shuffle.py --city $city --data_dir $data_dir
echo "Shuffling again:" $city
python -u shuffle.py --city $city --data_dir $data_dir
done