赞
踩
pip config set global.index-url https://mirrors.aliyun.com/pypi/simple/
https://pypi.tuna.tsinghua.edu.cn/simple/
git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
Readme
中有详细安装步骤基础模型 v1-5-pruned-emaonly.safetensors
--> stable-diffusion-webui\models\Stable-diffusion
https://huggingface.co/runwayml/stable-diffusion-v1-5/tree/main
clip-vit-large-patch14
https://huggingface.co/openai/clip-vit-large-patch14/tree/main
程序根路径下新建 openai
文件夹,把 clip-vit-large-patch14
文件夹复制到 openai
下
stable-diffusion-webui\repositories\stable-diffusion-stability-ai\ldm\modules\encoders\modules.py
文件运行是会调用 clip-vit-large-patch14
,如果本地没有,则会自动联网下载,由于联网会失败所以将报错
def __init__(self, version="openai/clip-vit-large-patch14", device="cuda", max_length=77,
freeze=True, layer="last", layer_idx=None):
webui-user.bat
set COMMANDLINE_ARGS= --lowvram --precision full --no-half --skip-torch-cuda-test
--lowvram
显卡不行,设置低缓存--skip-torch-cuda-test
上不了网,跳过检查stable-diffusion-webui\extensions
文件夹下,重启 web 服务即可生效Extensions --> install from URL
https://civitai.com/models/16768/civitai-helper-sd-webui-civitai-extension
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。