-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
48 lines (36 loc) · 1.14 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
test: unit_test integration_test
format:
shfmt -l -w .
check:
shfmt -d .
.PHONY: unit_test
unit_test:
python3 -m unittest
.PHONY: integration_test
integration_test:
python3 -m unittest discover -p "*_test.py"
coverage:
coverage run --branch --omit=venv/*,test/* -m unittest
coverage run --branch --omit=venv/*,test/* --append -m unittest discover -p "*_test.py"
coverage report -m
coverage_reports: coverage
coverage xml
coverage html
## Setup
BDDA_PATH = bdda/driver_attention_prediction
setup:
pip3 install -r requirements.txt
setup_bdda: .setup_bdda_common .setup_mvroi
cd docker && docker-compose build
setup_bdda_venv: .setup_bdda_common .setup_mvroi
sudo apt install -y python3-venv ffmpeg
python3 -m venv bdda/venv
.setup_bdda_common:
git submodule update --init
models="pretrained_models.zip" && \
wget -nc -P $(BDDA_PATH) --no-check-certificate 'https://docs.google.com/uc?export=download&id=1q_CgyX73wrYTAsZjDF9aMXNPURcUmWVy' -O $$models && \
unzip -u -d $(BDDA_PATH) $$models && \
rm $$models
wget -P $(BDDA_PATH) https://www.cs.toronto.edu/~guerzhoy/tf_alexnet/bvlc_alexnet.npy
.setup_mvroi:
unzip bdda/weights/MV-ROI.zip