video_editing_poc/tools
JSLMPR 3652cefacc feat(vision): pluggable llama.cpp/GGUF Tier-2 VLM backend (stronger judge)
The director's vision JUDGE is only as good as its model, and moondream2 can't
perceive some actions on hard footage (R15 ceiling). Make the captioner backend a
config choice so a stronger local VLM drops in with no code change:

- tools/vision_caption_llamacpp.py: same manifest->JSON contract as
  tools/vision_caption.py, but backed by llama.cpp `llama-mtmd-cli` (GGUF). Runs on
  this x86 CPU via AVX and bypasses the torch==2.2.2 / transformers 4.x trap
  entirely (no PyTorch). Model/mmproj/binary paths come from env vars; fully
  offline, serverless (per-frame CLI, mmap stays warm).
- editing.vision-caption-script selects the worker (default: moondream). The Java
  HighlightVisionDirector now reads the configured script instead of a hardcoded
  path -- nothing else changes.
- docs/LOCAL-MODELS.md: provisioning + enablement for Qwen2.5-VL-3B (Apache-2.0)
  via llama.cpp; alternatives (Qwen3-VL, Gemma 3 4B). Honest note: likely improves
  the bowling case but unverified until tested with real weights.

mvn verify: 293 tests green.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-25 19:11:54 +02:00
..
beat_detect.py feat(cinematic): R10–R14 grade/cadence/edit rules + 420p compat fix 2026-07-25 12:36:18 +02:00
local_asset_requirements.txt add asset generation 2026-07-21 10:03:27 +02:00
local_asset_worker.py Wire local generative audio models into the highlight asset worker 2026-07-21 23:00:57 +02:00
local_cv_requirements.txt Add runnable local CV model worker 2026-07-11 16:40:59 +02:00
local_cv_worker.py Add rich video editing diagnostics 2026-07-11 17:11:35 +02:00
provision_local_models.py Wire local generative audio models into the highlight asset worker 2026-07-21 23:00:57 +02:00
run_local_asset_worker.sh add asset generation 2026-07-21 10:03:27 +02:00
run_local_cv_worker.sh add asset generation 2026-07-21 10:03:27 +02:00
subject_track.py feat(cinematic): R10–R14 grade/cadence/edit rules + 420p compat fix 2026-07-25 12:36:18 +02:00
vision_caption.py Automatic two-tier highlight director + source-adaptive rendering 2026-07-23 22:49:05 +02:00
vision_caption_llamacpp.py feat(vision): pluggable llama.cpp/GGUF Tier-2 VLM backend (stronger judge) 2026-07-25 19:11:54 +02:00