20 lines
585 B
PowerShell
20 lines
585 B
PowerShell
param(
|
|
[string]$ComfyUIPython = "python",
|
|
[switch]$SetupBackend,
|
|
[switch]$SkipTorch
|
|
)
|
|
|
|
$ErrorActionPreference = "Stop"
|
|
|
|
$PluginDir = Split-Path -Parent (Split-Path -Parent $MyInvocation.MyCommand.Path)
|
|
|
|
Write-Host "Installing AnimaForge Windows plugin dependencies..."
|
|
& $ComfyUIPython -m pip install -r (Join-Path $PluginDir "requirements.txt")
|
|
|
|
if ($SetupBackend) {
|
|
& (Join-Path $PluginDir "scripts\setup_sd_scripts_backend.ps1") -Python $ComfyUIPython -SkipTorch:$SkipTorch
|
|
}
|
|
|
|
Write-Host ""
|
|
Write-Host "Install complete. Restart ComfyUI after this script finishes."
|