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

相关推荐
水上冰石19 小时前
v1-5-pruned-emaonly.safetensors 搭配mm_sd_v15_v2.ckpt 生成视频,具体操作步骤
stable diffusion·音视频·文生视频
日光明媚1 天前
TensorRT-LLM 中对 wan 加速流程与方法
人工智能·python·计算机视觉·stable diffusion·aigc
风落无尘2 天前
AIGC(Stable Diffusion 生态)常用知识与参数速查手册
人工智能·stable diffusion·aigc
水上冰石4 天前
stable-diffusion-webui怎么生成视频
人工智能·stable diffusion
切糕师学AI7 天前
深入解析 Stable Diffusion:原理、演进与应用实践
ai·ai作画·stable diffusion
xingyuzhisuan7 天前
哪里可以一键部署Stable Diffusion XL的GPU云环境?(2026实测指南)
运维·人工智能·stable diffusion·gpu算力
cskywit9 天前
【TMI2025】医学版 Stable Diffusion?3D MedDiffusion 如何生成高质量 3D 医学影像
人工智能·3d·stable diffusion
zenithdev19 天前
CompVisstable-diffusion
其他·stable diffusion
Soari9 天前
开启 AI 艺术创作之门:深度拆解 Stable Diffusion web UI,打造私有化文生图最强阵地
人工智能·ui·stable diffusion
Dovis(誓平步青云)9 天前
《SQL语义等价性检查:Pivot的CASE WHEN改写策略与限制》
linux·windows·sql·microsoft·oracle·stable diffusion