Akegarasu / lora-scripts

LoRA & Dreambooth training scripts & GUI use kohya-ss's trainer, for diffusion model.
GNU Affero General Public License v3.0
4.58k stars 565 forks source link

运行install-cn.ps1出错 #486

Closed ilikeulinux closed 2 months ago

ilikeulinux commented 2 months ago

QQ截图20240825121320

ImmNaruto commented 2 months ago

这个镜像站还没更新2.4.0+cuda的版本,使用install.ps1可以解决。

qlonget commented 2 months ago

微信图片_20240827143902 用install.ps1好像也显示错误了..

JescalLin commented 2 months ago

確定一下你的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 ;