feat: add expressive offline Russian book TTS
This commit is contained in:
@@ -7,6 +7,7 @@ param(
|
||||
[Parameter(Mandatory = $true)]
|
||||
[string] $PythonExe,
|
||||
[string] $CacheDir,
|
||||
[string] $CheckpointPath,
|
||||
[int] $BatchSize = 4,
|
||||
[int] $NumWorkers = 2,
|
||||
[int] $MaxEpochs = 2000,
|
||||
@@ -61,6 +62,13 @@ $fitArgs = @(
|
||||
if ($SmokeTest) {
|
||||
$fitArgs += @('--trainer.fast_dev_run', 'true', '--trainer.num_sanity_val_steps', '0')
|
||||
}
|
||||
if ($CheckpointPath) {
|
||||
$checkpointToResume = [IO.Path]::GetFullPath($CheckpointPath)
|
||||
if (-not (Test-Path -LiteralPath $checkpointToResume -PathType Leaf)) {
|
||||
throw "Resume checkpoint not found: $checkpointToResume"
|
||||
}
|
||||
$fitArgs += @('--ckpt_path', $checkpointToResume)
|
||||
}
|
||||
|
||||
& $python @fitArgs
|
||||
if ($LASTEXITCODE -ne 0) {
|
||||
|
||||
Reference in New Issue
Block a user