-
Notifications
You must be signed in to change notification settings - Fork 83
/
Makefile
39 lines (33 loc) · 1.52 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
.PHONY: download generate fresh clean cleaner
# Download raw datasets (by Udacity)
download: SHELL:=/bin/bash
download:
@if [[ -f "data/object-detection-crowdai.tar.gz" ]]; then \
echo "Data exists"; \
if [[ ! -d "object-detection-crowdai" ]]; then \
tar xvf data/object-detection-crowdai.tar.gz; \
fi; \
else \
mkdir -p data; \
wget -O data/object-detection-crowdai.tar.gz "https://s3.amazonaws.com/udacity-sdc/annotations/object-detection-crowdai.tar.gz"; \
tar xvf data/object-detection-crowdai.tar.gz; \
fi; \
if [[ ! -f "data/labels_crowdai.csv" ]]; then \
wget -O data/labels_crowdai.csv "https://raw.githubusercontent.com/udacity/self-driving-car/master/annotations/labels_crowdai.csv"; \
fi
# Generate training images
generate:
python utils/data.py
# Fresh Training
fresh:
rm -rf logdir models
# Run tensorboard
tensorboard:
tensorboard --logdir logdir
# Remove augmented data
clean:
rm -rf data_resize mask
# Remove raw original data
cleaner: clean
rm -rf data
rm -rf object-detection-crowdai