@petercjl/topazlabscli 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -8,7 +8,7 @@ param(
|
|
|
8
8
|
)
|
|
9
9
|
|
|
10
10
|
$ErrorActionPreference = 'Stop'
|
|
11
|
-
$WorkerVersion = '0.1.
|
|
11
|
+
$WorkerVersion = '0.1.1'
|
|
12
12
|
$StateRoot = Join-Path $Root '.topazlabscli'
|
|
13
13
|
$QueueRoot = Join-Path $StateRoot 'queue'
|
|
14
14
|
$JobsRoot = Join-Path $StateRoot 'jobs'
|
|
@@ -103,7 +103,7 @@ function Invoke-Job($Job, $Config) {
|
|
|
103
103
|
}
|
|
104
104
|
$env:TVAI_MODEL_DIR = [string]$Config.model_dir
|
|
105
105
|
$env:TVAI_MODEL_DATA_DIR = [string]$Config.model_data_dir
|
|
106
|
-
$filter = "tvai_up=model=prob-4:scale=0:w=${targetWidth}:h=${targetHeight}:preblur=0:noise=0:details=0:halo=0:blur=0:compression=0:estimate=20:blend=0.2:device=0:vram=1:instances=1"
|
|
106
|
+
$filter = "tvai_up=model=prob-4:scale=0:w=${targetWidth}:h=${targetHeight}:preblur=0:noise=0:details=0:halo=0:blur=0:compression=0:estimate=20:blend=0.2:device=0:vram=1:instances=1,scale=w=${targetWidth}:h=${targetHeight}:flags=lanczos"
|
|
107
107
|
$arguments = @(
|
|
108
108
|
'-hide_banner', '-nostdin', '-y', '-strict', '2', '-i', $inputPath,
|
|
109
109
|
'-sws_flags', 'spline+accurate_rnd+full_chroma_int', '-vf', $filter,
|
|
@@ -138,6 +138,8 @@ switch ($Action) {
|
|
|
138
138
|
$config | ConvertTo-Json | Set-Content -LiteralPath $ConfigPath -Encoding UTF8
|
|
139
139
|
}
|
|
140
140
|
$current = Read-WorkerConfig
|
|
141
|
+
$current.worker_version = $WorkerVersion
|
|
142
|
+
$current | ConvertTo-Json | Set-Content -LiteralPath $ConfigPath -Encoding UTF8
|
|
141
143
|
$model = Get-ModelStatus $current
|
|
142
144
|
Write-Json @{ ok = $true; installed = $true; worker_version = $WorkerVersion; root = $Root; model_ready = $model.model_ready }
|
|
143
145
|
}
|