Skip to content

Commit 3f95b33

Browse files
authored
Auto-merge: finalize pipeline, generate makefile
Auto-merged oleh GitHub Actions karena tidak ada conflict dan status merge bisa dilakukan.
1 parent 797be33 commit 3f95b33

6 files changed

Lines changed: 51 additions & 1195 deletions

File tree

src/lm-extraction/.gitignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
.venv
2+
.venv/
3+
4+
__pycache__
5+
6+
videoset/
7+
8+
data/

src/lm-extraction/Makefile

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
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)

src/model-pipeline/dataset.py

Lines changed: 0 additions & 302 deletions
This file was deleted.

0 commit comments

Comments
 (0)