File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ .venv
2+ .venv /
3+
4+ __pycache__
5+
6+ videoset /
7+
8+ data /
Original file line number Diff line number Diff line change 1+ .PHONY : all venv augment extract clean help
2+
3+ VIDEOSET ?= videoset
4+ VIDEO_OUT ?= video_out
5+ NPY_OUT ?= data
6+ VENV_DIR ?= .venv
7+
8+ SUBDIRS := $(notdir $(wildcard $(VIDEOSET ) /* /) )
9+
10+ help :
11+ @echo " Usage: make [target]"
12+ @echo " "
13+ @echo " Targets:"
14+ @echo " all - Full pipeline: venv + augment + extract (default)"
15+ @echo " venv - Create Python venv and install dependencies"
16+ @echo " augment - Run video augmentation"
17+ @echo " extract - Run landmark extraction on augmented videos"
18+ @echo " clean - Remove venv, augmented videos, and npy output"
19+ @echo " "
20+ @echo " Variables:"
21+ @echo " VIDEOSET=$( VIDEOSET) INPUT videoset directory"
22+ @echo " VIDEO_OUT=$( VIDEO_OUT) OUTPUT augmented videos directory"
23+ @echo " NPY_OUT=$( NPY_OUT) OUTPUT npy directory"
24+ @echo " VENV_DIR=$( VENV_DIR) Python venv directory"
25+
26+ all : venv augment extract
27+
28+ venv :
29+ python -m venv $(VENV_DIR )
30+ $(VENV_DIR ) /bin/pip install --upgrade pip
31+ $(VENV_DIR ) /bin/pip install -r requirements.txt
32+
33+ augment : venv
34+ ./video_augmentation.sh $(VIDEOSET ) / $(VIDEO_OUT ) /
35+
36+ extract : augment
37+ $(foreach subdir,$(SUBDIRS ) ,\
38+ $(VENV_DIR ) /bin/python run_extraction.py batch $(VIDEO_OUT ) /$(subdir ) / --out-npy-dir $(NPY_OUT ) /$(subdir ) / && ) \
39+ true
40+
41+ clean :
42+ rm -rf $(VENV_DIR ) $(VIDEO_OUT ) $(NPY_OUT )
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments