Closed ilikeulinux closed 2 months ago
这个镜像站还没更新2.4.0+cuda的版本,使用install.ps1可以解决。
用install.ps1好像也显示错误了..
確定一下你的Python環境 可以指定一下目錄版本 這是我修改的install.ps1 給你參考
$Env:HF_HOME = "huggingface"
if (!(Test-Path -Path "venv")) {
Write-Output "Creating venv for python..."
C:\Users\USER\AppData\Local\Programs\Python\Python311\python -m venv venv
}
.\venv\Scripts\activate
Write-Output "Installing deps..."
Set-Location .\sd-scripts
pip install torch==2.4.0+cu121 torchvision==0.19.0+cu121 --extra-index-url https://download.pytorch.org/whl/cu121
pip install -U -I --no-deps xformers==0.0.27.post2
pip install --upgrade -r requirements.txt
Set-Location ..
pip install --upgrade -r requirements.txt
Write-Output "Install completed"
Read-Host | Out-Null ;