Lora模型安装方法
Lora Kohya_ss UI Github版本:https://github.com/bmaltais/kohya_ss
Python的下载链接: https://www.python.org/ftp/python/3.10.9/python-3.10.9-amd64.exe
Git的下载链接:https://git-scm.com/download/win
Visual Studio redistributable 安装包:https://aka.ms/vs/17/release/vc_redist.x64.exe
PowerShell安装命令:
管理员权限命令:
- Set-ExecutionPolicy Unrestricted
- A
普通权限命令:
- git clone https://github.com/bmaltais/kohya_ss.git
- cd kohya_ss
- python -m venv venv
- .\venv\Scripts\activate
- pip install torch==1.12.1+cu116 torchvision==0.13.1+cu116 –extra-index-url https://download.pytorch.org/whl/cu116
- pip install –use-pep517 –upgrade -r requirements.txt
- pip install -U -I –no-deps https://github.com/C43H66N12O12S2/stable-diffusion-webui/releases/download/f/xformers-0.0.14.dev0-cp310-cp310-win_amd64.whl
- cp .\bitsandbytes_windows\*.dll .\venv\Lib\site-packages\bitsandbytes\
- cp .\bitsandbytes_windows\cextension.py .\venv\Lib\site-packages\bitsandbytes\cextension.py
- cp .\bitsandbytes_windows\main.py .\venv\Lib\site-packages\bitsandbytes\cuda_setup\main.py
- accelerate config
CUDNN 8.6下载安装
下载:https://b1.thefileditch.ch/mwxKTEtelILoIbMbruuM.zip
下载完成后将cudnn_windows这个文件夹解压到kohya_ss
安装:
- .\venv\Scripts\activate
- python .\tools\cudann_1.8_install.py
模型下载Realistic Vision http://resource.miaoshouai.com/679.html
图片剪切https://www.birme.net/?target_width=512&target_height=512