1.git clone 下来
GitHub - AUTOMATIC1111/stable-diffusion-webui: Stable Diffusion web UIStable Diffusion web UI. Contribute to AUTOMATIC1111/stable-diffusion-webui development by creating an account on GitHub.https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
2.conda create -n sd python=3.10.9
3. cd stable-diffusion-webui & bash webui.sh
出现错误
(1)RuntimeError: Torch is not able to use GPU; add --skip-torch-cuda-test to COMMANDLINE_ARGS variable to disable this check
解决方法:GPU用不了,可能是驱动的问题,可以在/ofs/ofs-sstg-sec-algo-ssd/kunshanhuang/stable-diffusion-webui/modules/launch_utils.py
317行:prepare_enviroment():
修改torch和torchvision版本
(2)Command: "git" clone --config core.filemode=false "https://github.com/Stability-AI/generative-models.git" "............/stable-diffusion-webui/repositories/generative-models"
解决方法:服务器无法连接github服务器,先在本地下载git clone https://github.com/Stability-AI/generative-models.git,然后放入stable-diffusion-webui/repositories/generative-models/文件中