v3: inaSpeechSegmenter CLI pipeline
Adopts inaSpeechSegmenter (singing classified as music). Full argparse CLI: gap-merge nearby segments, min-duration filter, EDL + CSV export. Engine that all later versions keep. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
56
v3_inaseg_cli/setup_windows.bat
Normal file
56
v3_inaseg_cli/setup_windows.bat
Normal file
@@ -0,0 +1,56 @@
|
||||
@echo off
|
||||
REM ============================================
|
||||
REM Singing Detector - Quick Setup (Windows)
|
||||
REM ============================================
|
||||
REM Run this in Anaconda Prompt / PowerShell
|
||||
REM Prerequisites: conda, ffmpeg in PATH
|
||||
REM ============================================
|
||||
|
||||
echo.
|
||||
echo ============================================
|
||||
echo Singing Segment Detector - Setup
|
||||
echo ============================================
|
||||
echo.
|
||||
|
||||
REM Step 1: Create conda environment
|
||||
echo [1/4] Creating conda environment (python 3.11)...
|
||||
call conda create -n singing-detector python=3.11 -y
|
||||
if %ERRORLEVEL% neq 0 (
|
||||
echo ERROR: Failed to create conda environment.
|
||||
pause
|
||||
exit /b 1
|
||||
)
|
||||
|
||||
REM Activate environment
|
||||
call conda activate singing-detector
|
||||
|
||||
REM Step 2: Install TensorFlow with GPU support
|
||||
echo.
|
||||
echo [2/4] Installing TensorFlow (GPU)...
|
||||
pip install tensorflow[and-cuda]
|
||||
if %ERRORLEVEL% neq 0 (
|
||||
echo WARNING: GPU TensorFlow install failed, trying CPU version...
|
||||
pip install tensorflow
|
||||
)
|
||||
|
||||
REM Step 3: Install inaSpeechSegmenter
|
||||
echo.
|
||||
echo [3/4] Installing inaSpeechSegmenter...
|
||||
pip install inaSpeechSegmenter
|
||||
|
||||
REM Step 4: Verify
|
||||
echo.
|
||||
echo [4/4] Verifying installation...
|
||||
python -c "from inaSpeechSegmenter import Segmenter; print('inaSpeechSegmenter OK!')"
|
||||
python -c "import tensorflow as tf; gpus = tf.config.list_physical_devices('GPU'); print(f'TensorFlow GPUs: {gpus}' if gpus else 'TensorFlow: CPU only')"
|
||||
|
||||
echo.
|
||||
echo ============================================
|
||||
echo Setup complete!
|
||||
echo ============================================
|
||||
echo.
|
||||
echo Usage:
|
||||
echo conda activate singing-detector
|
||||
echo python detect_singing.py "path\to\stream.mp4"
|
||||
echo.
|
||||
pause
|
||||
Reference in New Issue
Block a user