-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
125 lines (106 loc) · 4.56 KB
/
Makefile
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
.PHONY: dev_notebook
dev_notebook:
jupyter lab
data_download:
./scripts/data/download.sh
train_dumb_small:
python ./scripts/model/yolov8/train.py \
--data ./data/03_model_input/yolov8/small/data.yaml \
--config ./scripts/model/yolov8/configs/dumb.yaml \
--experiment-name dumb_small_dataset \
--loglevel "info"
train_baseline_small:
python ./scripts/model/yolov8/train.py \
--data ./data/03_model_input/yolov8/small/data.yaml \
--config ./scripts/model/yolov8/configs/baseline.yaml \
--experiment-name baseline_small_dataset \
--loglevel "info"
train_baseline_full:
python ./scripts/model/yolov8/train.py \
--data ./data/03_model_input/yolov8/full/data.yaml \
--config ./scripts/model/yolov8/configs/baseline.yaml \
--experiment-name baseline_full_dataset \
--loglevel "info"
train_best_full:
python ./scripts/model/yolov8/train.py \
--data ./data/03_model_input/yolov8/full/data.yaml \
--config ./scripts/model/yolov8/configs/best.yaml \
--experiment-name best_full_dataset \
--loglevel "info"
train_baseline_testing_v1:
python ./scripts/model/yolov8/train.py \
--data ./data/03_model_input/yolov8/testing_features_only_full/data.yaml \
--config ./scripts/model/yolov8/configs/baseline.yaml \
--experiment-name baseline_testing_v1_only_features_dataset \
--loglevel "info"
train_best_testing_v1:
python ./scripts/model/yolov8/train.py \
--data ./data/03_model_input/yolov8/testing_features_only_full/data.yaml \
--config ./scripts/model/yolov8/configs/best.yaml \
--experiment-name baseline_testing_v1_only_features_dataset \
--loglevel "info"
eval_val:
python ./scripts/model/yolov8/eval.py \
--weights-filepath ./data/04_models/yolov8/baseline_small_dataset/weights/best.pt \
--split "val" \
--output-dir ./data/05_model_output/yolov8/baseline_small_dataset/ \
--loglevel "info"
eval_dumb_val:
python ./scripts/model/yolov8/eval.py \
--weights-filepath ./data/04_models/yolov8/dumb_small_dataset/weights/best.pt \
--split "val" \
--output-dir ./data/06_reporting/yolov8/dumb_small_dataset/ \
--loglevel "info"
eval_dumb_test:
python ./scripts/model/yolov8/eval.py \
--weights-filepath ./data/04_models/yolov8/dumb_small_dataset/weights/best.pt \
--split "test" \
--output-dir ./data/06_reporting/yolov8/dumb_small_dataset/ \
--loglevel "info"
eval_test:
python ./scripts/model/yolov8/eval.py \
--weights-filepath ./data/04_models/yolov8/baseline_small_dataset/weights/best.pt \
--split "test" \
--output-dir ./data/05_model_output/yolov8/baseline_small_dataset/ \
--loglevel "info"
inference_best:
python ./scripts/model/yolov8/inference.py \
--input-dir-yolov8-dataset ./data/03_model_input/yolov8/full/ \
--output-dir ./data/05_model_output/yolov8/best_full_dataset/ \
--split "test" \
--k 25 \
--random-seed 0 \
--loglevel "info"
build_features_testing_v1:
python ./scripts/data/build_features.py \
--input-rumbles-dir "./data/01_raw/cornell_data/Rumble/" \
--output-dir "./data/02_features/rumbles/spectrograms_v1/" \
--duration 60.0 \
--freq-min 0.0 \
--freq-max 250.0 \
--random-seed 0 \
--ratio-random-offsets 0.2 \
--loglevel "info"
build_features_testing_v2:
python ./scripts/data/build_features2.py \
--input-rumbles-dir "./data/01_raw/cornell_data/Rumble/" \
--output-dir "./data/02_features/rumbles/spectrograms_torchaudio_v0/" \
--duration 164.0 \
--freq-min 0.0 \
--freq-max 250.0 \
--random-seed 0 \
--ratio-random-offsets 0.2 \
--loglevel "info"
predict:
python ./scripts/model/yolov8/predict_raven.py \
--input-dir-audio-filepaths ./data/03_model_input/sounds/rumbles/ \
--output-dir ./data/05_model_output/yolov8/predict/ \
--model-weights-filepath ./data/08_artifacts/model/rumbles/yolov8/weights/best.pt \
--loglevel "info"
predict_verbose:
python ./scripts/model/yolov8/predict_raven.py \
--input-dir-audio-filepaths ./data/03_model_input/sounds/rumbles/ \
--output-dir ./data/05_model_output/yolov8/predict/ \
--model-weights-filepath ./data/08_artifacts/model/rumbles/yolov8/weights/best.pt \
--verbose \
--loglevel "info"