Makefile Commands

development automation makefile

The Makefile provides shorthand commands for common tasks, abstracting away complex arguments and module paths.

Primary Commands

CommandDescriptionCode
make trainRuns the single-GPU training loop.uv run -m modelling.train
make parallel_trainRuns distributed training on multiple GPUs.uv run -m modelling.parallel_train
make export_modelExports a checkpoint to ONNX. Requires checkpoint_path.uv run -m modelling.export ...

Data Processing

CommandDescription
make preprocess_mmap_dataConverts raw dataset to memory-mapped format.
make prepare_npz_kpsExtracts keypoints from raw videos to .npz.
make generate_face_mapGenerates symmetry map for face landmarks.

Visualization

CommandDescription
make visualize_metricsGenerates plots for training/validation metrics.
make visualization_dashboardLaunches the Streamlit dashboard for data exploration.

Parameter Overrides

You can pass arguments to make commands:

make export_model checkpoint_path=checkpoints/best.pth

CPU Mode

Prefix any command with cpu_ to force CPU usage:

make cpu_train