kohya_ss / setup.ps1
ABCCCYYY's picture
Upload folder using huggingface_hub
cff1674 verified
raw
history blame contribute delete
454 Bytes
if (-not (Test-Path -Path "venv")) {
Write-Host "Creating venv..."
python -m venv venv
}
# Create the directory if it doesn't exist
$null = New-Item -ItemType Directory -Force -Path ".\logs\setup"
# Deactivate the virtual environment
& .\venv\Scripts\deactivate.bat
& .\venv\Scripts\activate.bat
& .\venv\Scripts\python.exe .\setup\setup_windows.py $args
# Deactivate the virtual environment
& .\venv\Scripts\deactivate.bat