Commit graph

3 commits

Author SHA1 Message Date
victorcavero14
fed9395022 fix(gpu): stop jobs from filling the card (CUDA OOM at peak)
On 22-sep-2026 30-60% of jobs failed per hour at peak with 8 concurrent
jobs on a 20 GB GPU: a job three clips into its render still held 5.9 GB.

- main.py releases the ASR models right after transcribing (Parakeet's
  onnxruntime CUDA arena lived until the process exited); TransNetV2
  empties torch's cache after each pass.
- Host-wide cap on GPU transcriptions (flock slots on the shared output
  volume, ASR_HOST_SLOTS=2), across job processes and deploy containers.
- The queue only starts a job when nvidia-smi reports GPU_MIN_FREE_MB free
  (an idle card always starts).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-22 22:42:52 +02:00
juancarlos.cavero
ef43c282c7 fix(reframe): lower SCENE_MIN_SEC default 1.0s -> 0.4s
A/B audit on 10 topic-diverse clips showed the 1s merge deleted real
sub-second shots in fast-cut content (10/13 lost real cuts in gaming,
9/10 in anime, 5/8 in music videos were present in the raw TransNetV2
output and removed by the merge). 0.4s still kills flash/single-frame
scenes and snap bursts without eating real fast cuts.
2026-07-18 04:39:15 +02:00
juancarlos.cavero
101a467c34 feat(reframe): TransNetV2 neural scene detection with PySceneDetect fallback
New scene_detection module: TransNetV2 (small 3D-CNN, runs on 48x27 frames)
as the primary shot-boundary detector — far more accurate than the fixed
ContentDetector threshold on fast motion, flashes and gradual transitions.
Adds a min-scene-length merge (SCENE_MIN_SEC, default 1s) to stop camera-snap
bursts. Legacy PySceneDetect path is preserved untouched as automatic
fallback and selectable via SCENE_ENGINE=pyscenedetect.
2026-07-18 03:49:01 +02:00