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

相关推荐
hugo_im20 小时前
Mac M4 安装 sd-webui 踩坑全记录
stable diffusion
一叶知秋dong1 天前
Stable diffusion 工作原理
人工智能·深度学习·stable diffusion
仰望尾迹云4 天前
灵感画廊入门:AI绘画零基础到精通
stable diffusion·ai绘画·图像生成
AI极客菌4 天前
AI绘画工具中,为什么专业玩家爱用Stable Diffusion,普通玩家却喜欢Midjourney?
大数据·人工智能·ai·ai作画·stable diffusion·aigc·midjourney
大叔and小萝莉4 天前
比迪丽AI绘画镜像免配置:GPU算力优化部署,显存占用降低40%
stable diffusion·ai绘画·gpu部署
日光明媚5 天前
从代码的角度解读DMD2
人工智能·深度学习·机器学习·stable diffusion·aigc
ai_xiaogui5 天前
PanelAI 是什么?服务器上 ComfyUI、OpenClaw、Stable Diffusion 一键部署神器,普通开发者也能轻松管理 AI 项目
服务器·人工智能·stable diffusion
ZHW_AI课题组6 天前
使用Stable Diffusion v1.5文本引导与无分类器引导(CFG)算法实现条件生成图片
人工智能·python·算法·机器学习·stable diffusion
三无推导12 天前
ComfyUI 安装部署教程:Windows 下快速搭建可视化 AI 绘图工作流,零基础也能跑通
人工智能·pytorch·windows·stable diffusion·aigc·ai绘画·持续部署
code_pgf12 天前
ViT 与 MAE 在图像特征提取方面的优势详解
人工智能·stable diffusion