当前位置: 首页 > article >正文

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

Torch is not able to use GPU; add --skip-torch-cuda-test to COMMANDLINE_ARGS variable to disable this check

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

i、先卸载原来的

pip uninstall torch torchvision torchaudio

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

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

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

4、运行报错

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.

解决办法:

手动下载 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


http://www.kler.cn/news/107175.html

相关文章:

  • JS实现商品SKU
  • Unity地面交互效果——1、局部UV采样和混合轨迹
  • (免费领源码) Asp.Net#SQL Server校园在线投票系统10557-计算机毕业设计项目选题推荐
  • Windows11搭建kafka-python环境
  • 【C程序设计】用心浇灌<C程序>
  • 软考高级之系统架构师之软件工程
  • c++ qt连接操作sqlite
  • 综合性练习
  • 【开源】基于SpringBoot的城市桥梁道路管理系统的设计和实现
  • Java练习题2020-3
  • 5.OsgEarth加载地形
  • Go 实现选择排序算法及优化
  • 使用了百度OCR,记录一下
  • 经典目标检测神经网络 - RCNN、SSD、YOLO
  • LVS-keepalived实现高可用
  • p5.js 视频播放指南
  • 【C++初探:简单易懂的入门指南】一
  • js中的Formdata数据结构
  • 查找mac硬盘序列号的方法
  • 报数游戏(c++题解)
  • 51单片机复位电容计算与分析(附带Proteus电路图)
  • 出差学小白知识No5:|Ubuntu上关联GitLab账号并下载项目(ssh key配置)
  • Ubuntu安装docker,并换镜像源详细教程,建议收藏
  • LeetCode刷题:88. 合并两个有序数组
  • uniapp表单验证
  • Makefile三个版本的编写
  • XLua中lua读写cs对象的原理
  • 树莓派 Qt中 QCameraInfo 无法使用
  • 打破尺寸记录!荷兰QuTech研发16量子点阵列新技术
  • JDK API Diff Report Generator-Java版本对比工具