Repository navigation
Expand file tree
/
Copy pathMakefile
More file actions
59 lines (45 loc) · 2.01 KB
/
Copy pathMakefile
File metadata and controls
59 lines (45 loc) · 2.01 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
.PHONY: help setup install download-datasets verify-datasets prepare-data train evaluate test lint format clean dashboard
PYTHON ?= python3
PIP ?= $(PYTHON) -m pip
help:
@echo "DeepFake-AI Management Commands:"
@echo " make setup - Set up project environment, verify PyTorch and directories"
@echo " make install - Install production & dev dependencies"
@echo " make download-datasets - Run deepfake dataset downloader / manifest generator"
@echo " make verify-datasets - Verify video/image dataset integrity, frames, and checksums"
@echo " make prepare-data - Run face extraction, frequency decomposition, and splits"
@echo " make train - Train all spatial, frequency, and spatio-temporal deepfake models"
@echo " make evaluate - Run full SOTA benchmark evaluation matrix (AUC, EER, ACC)"
@echo " make test - Run unit and integration tests"
@echo " make lint - Run code quality linter (ruff / flake8)"
@echo " make format - Auto-format code using black and ruff"
@echo " make dashboard - Launch the interactive deepfake forensics research dashboard"
@echo " make clean - Clean build artifacts, pycache and temp files"
setup:
$(PYTHON) scripts/setup_environment.py
install:
$(PIP) install -r requirements-dev.txt
download-datasets:
$(PYTHON) scripts/download_datasets.py --mode sample
verify-datasets:
$(PYTHON) scripts/verify_datasets.py
prepare-data:
$(PYTHON) scripts/prepare_data.py
train:
$(PYTHON) scripts/train_all.py --config configs/training.yaml
evaluate:
$(PYTHON) scripts/evaluate_all.py
dashboard:
$(PYTHON) scripts/run_dashboard.py
test:
$(PYTHON) -m pytest tests/
lint:
ruff check src/ scripts/ tests/
format:
black src/ scripts/ tests/
ruff check --fix src/ scripts/ tests/
clean:
find . -type d -name "__pycache__" -exec rm -rf {} +
find . -type f -name "*.pyc" -delete
find . -type f -name "*.pyo" -delete
rm -rf .pytest_cache .coverage htmlcov build dist *.egg-info