|
|
|
& .\venv\Scripts\activate |
|
$env:PATH += ";$($MyInvocation.MyCommand.Path)\venv\Lib\site-packages\torch\lib" |
|
|
|
|
|
python.exe .\tools\debug_info.py |
|
|
|
|
|
python.exe .\tools\validate_requirements.py |
|
|
|
|
|
|
|
if ($LASTEXITCODE -eq 0) { |
|
$argsFromFile = @() |
|
if (Test-Path .\gui_parameters.txt) { |
|
$argsFromFile = Get-Content .\gui_parameters.txt -Encoding UTF8 | Where-Object { $_ -notmatch "^#" } | Foreach-Object { $_ -split " " } |
|
} |
|
$args_combo = $argsFromFile + $args |
|
Write-Host "The arguments passed to this script were: $args_combo" |
|
python.exe kohya_gui.py $args_combo |
|
} |
|
|