Centos7 部署 Stable Diffusion

参考:https://www.jianshu.com/p/ff81bb76158a

遇到的问题:

1、git clone 比较慢

解决办法:设置代理 https://blog.csdn.net/dszgf5717/article/details/130735389

2、pip install 比较慢

解决办法:更换源或设置代理 https://blog.csdn.net/dszgf5717/article/details/53138298

3、无法使用GPU

bash 复制代码
Torch is not able to use GPU; add --skip-torch-cuda-test to COMMANDLINE_ARGS variable to disable this check

解决办法:一般是 pytorch 装的版本不对,重装

i、先卸载原来的

bash 复制代码
pip uninstall torch torchvision torchaudio

ii、安装与显卡相匹配的版本

pytorch 官网 https://pytorch.org/get-started/locally/

参考文章:https://blog.csdn.net/weixin_41803482/article/details/109231249

4、运行报错

bash 复制代码
OSError: Can't load tokenizer for 'openai/clip-vit-large-patch14'. If you were trying to load it from 'https://huggingface.co/models', make sure you don't have a local directory with the same name. Otherwise, make sure 'openai/clip-vit-large-patch14' is the correct path to a directory containing all relevant files for a CLIPTokenizer tokenizer.

解决办法:

bash 复制代码
手动下载 https://huggingface.co/openai/clip-vit-large-patch14/tree/main
下载文件为:
1、config.json
2、flax_model.msgpack
3、merges.txt
4、preprocessor_config.json
5、pytorch_model.bin
6、special_tokens_map.json
7、tokenizer.json
8、tokenizer_config.json
9、vocab.json

在项目目录下创建(stable-diffusion-webui)

mkdir -p openai/clip-vit-large-patch14

把以上九个文件放到新文件夹下

参考文章:https://blog.csdn.net/weixin_57451673/article/details/133919472

相关推荐
普通网友2 天前
Stable Diffusion 3.5 FP8镜像推出限量免费Token领取活动
stable diffusion·stability ai·fp8
seiji morisako2 天前
Stable-Diffusion-v1-5-archiveWeb服务安全加固:反爬虫/限流/鉴权中间件配置
web安全·stable diffusion·nginx配置·ai部署
localbob2 天前
2026年最新Stable Diffusion 秋叶整合包安装与使用指南
stable diffusion·秋叶整合包·sd整合包·秋叶整合包下载
laforet2 天前
Stable Diffusion 3.5 FP8模型支持自定义训练数据集接入
stable diffusion·lora·fp8
MarkHD2 天前
Stable Diffusion入门第四天:下载你的第一个基础模型——从选型到部署完整指南
stable diffusion
武子康14 天前
不要问模型是 Transformer 还是 Diffusion:一套五层技术栈检查法(系统角色 / 表示空间 / 网络骨架 / 训练范式 / 推理算法)
人工智能·stable diffusion·llm
武子康16 天前
从随机动作块到真实闭环:Diffusion 与 Flow 策略的执行账本
人工智能·stable diffusion·agent
chenment17 天前
ComfyUI 自定义节点开发:从零扩展你的图像生成工作流
python·stable diffusion
Lifangyun_WD24 天前
RTX 5090跑Stable Diffusion XL:生图速度、显存占用与商业应用边界
人工智能·stable diffusion·gpu算力·rtx 5090·gpu容器·gpu租赁
承渊政道24 天前
把家里的显卡变成远程AI画室:Stable Diffusion WebUI部署实战
人工智能·stable diffusion·内网穿透·cpolar·web ui·ai画室