一、kohya_ss GUI新版的安装
(参考b站大佬:抵制核污排海一份子 kohya_ss新版安装,只需要10分钟傻瓜解决 - 哔哩哔哩 (bilibili.com) )
(参考教程链接:Windows11安装kohya_ss详细步骤(报错、踩坑)_那个小白猿的博客-优快云博客)
Github地址:bmaltais/kohya_ss (github.com)
- 管理员打开powershell,输入Set-ExecutionPolicy Unrestricted,然后回车输入Y
然后下载python3.10.8,下载git,下载Visual Studio 2015, 2017, 2019, and 2022 redistributable(尽量都安装在c盘)
- 安装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 2015, 2017, 2019, and 2022 redistributable
- 网址:https://aka.ms/vs/17/release/vc_redist.x64.exe
- cd kohya_ss
- .\setup.bat
- 下面都是选择: -> Install kohya_ss gui
- -> Torch 2
- -> This machine
- -> No distributed training
- -> no(连续3个都是no)
- -> GPU使用选择 0 (也就是使用第一张显卡,如果输入all,可能会在训练过程中报错:ValueError: fp16 mixed precision requires a GPU)
- -> fp16
- -> Start Kohya_ss GUI in browser
到此就安装完成!
PS: python的包下载报错,建议换个镜像源下载。
#如果 从github下载xformers时太慢了,此时可以直接关掉这个cmd了,通过pip命令手动下载。
二、LoRA_AllInOnev2.1版本的安装
(参考b站大佬:GPT人工智能,网址:LoRA训练傻瓜包2.1发布,6G可以训练C站标准模型了,训练效率大幅提升,一键脚本部署_哔哩哔哩_bilibili)
百度盘:
链接:https://pan.baidu.com/s/1UK6jUa_4xrscAjdhNVpzhQ?pwd=1234
提取码:1234
使用出现错误,大佬也有写处理方法,指路->LoRA傻瓜包使用出现的5种错误和对应处理 - 哔哩哔哩 (bilibili.com)