kohyass是用来训练Stable Diffusion模型的。
1.conda创建python虚拟环境
conda create -n kohyass python=3.10 -y
conda activate kohyass
2.下载kohya_ss
git clone https://ghproxy.com/https://github.com/bmaltais/kohya_ss.git
pip install --upgrade -r requirements.txt
3.运行可能会报ImportError: libgthread-2.0.so.0: cannot open shared object file: No such file or directory 解决方法
apt-get update
apt-get install libglib2.0-dev
4.启动webui
python ./kohya_gui.py --listen 127.0.0.1 --server_port 7860 --inbrowser --share
效果如下: