param([string]$Root = 'C:\Users\seven\AletheiaBookTTS')

$ErrorActionPreference = 'Stop'
$env:PYTHONUTF8 = '1'
$env:PYTHONIOENCODING = 'utf-8'
$python = Join-Path $Root '.venv\Scripts\python.exe'
$work = Join-Path $Root 'work'
& $python (Join-Path $work 'booktts_student.py') train `
    --dataset (Join-Path $work 'student-dataset-prosody-v1') `
    --initial-model (Join-Path $work 'student-100k-v1\student.pt') `
    --output (Join-Path $work 'student-100k-prosody-v1') `
    --epochs 8 `
    --batch-size 32 `
    --learning-rate 0.00005 `
    --validation-fraction 0.1 `
    --early-stopping-patience 3
exit $LASTEXITCODE
