-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
27 lines (21 loc) · 769 Bytes
/
Copy pathMakefile
File metadata and controls
27 lines (21 loc) · 769 Bytes
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
.PHONY: help setup check demo-infer demo-app
PYTHON ?= python3
PROJECT_DIR := ccpd_alpr
help:
@echo "Available targets:"
@echo " make setup # install dependencies and package"
@echo " make check # quick syntax check"
@echo " make demo-infer # run inference on demo cases"
@echo " make demo-app # launch web UI"
setup:
cd $(PROJECT_DIR) && $(PYTHON) -m pip install -U pip
cd $(PROJECT_DIR) && $(PYTHON) -m pip install -r requirements.txt
cd $(PROJECT_DIR) && $(PYTHON) -m pip install -e .
check:
$(PYTHON) -m compileall $(PROJECT_DIR)/ccpd_alpr
demo-infer:
cd $(PROJECT_DIR) && $(PYTHON) scripts/infer.py \
--source demo_cases \
--output-dir runs/infer_demo
demo-app:
cd $(PROJECT_DIR) && $(PYTHON) app.py --host 0.0.0.0 --port 7860