-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
65 lines (42 loc) · 2.66 KB
/
Makefile
File metadata and controls
65 lines (42 loc) · 2.66 KB
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
.PHONY: install dev test lint clean download preprocess segment train evaluate export preview pipeline
# ── Setup ────────────────────────────────────────────────────────────────────
install:
pip install -e .
dev:
pip install -e ".[all]"
# ── Quality ──────────────────────────────────────────────────────────────────
test:
python -m pytest tests/ -v
lint:
ruff check lilly/ scripts/ tests/
lint-fix:
ruff check --fix lilly/ scripts/ tests/
clean:
find . -type d -name __pycache__ -exec rm -rf {} +
find . -type f -name "*.pyc" -delete
rm -rf *.egg-info build dist .pytest_cache htmlcov .coverage
# ── Data Pipeline ────────────────────────────────────────────────────────────
download:
python scripts/download.py
preprocess:
python scripts/preprocess.py --workers 8
segment:
python scripts/segment_v3.py --workers 8
# ── Training ─────────────────────────────────────────────────────────────────
train:
python scripts/train.py --epochs 50
# ── Evaluation ───────────────────────────────────────────────────────────────
evaluate:
python scripts/evaluate.py $(MODEL) --tier 1
evaluate-full:
python scripts/evaluate.py $(MODEL) --tier 1
python scripts/evaluate.py $(MODEL) --tier 2 --n-samples 500
python scripts/evaluate.py $(MODEL) --tier 3
# ── Inference ────────────────────────────────────────────────────────────────
preview:
python scripts/live_preview.py
# ── Export ───────────────────────────────────────────────────────────────────
export:
python scripts/export.py $(MODEL) --quantize uint8
# ── Full Pipeline ────────────────────────────────────────────────────────────
pipeline: download preprocess segment train