AI大模型教程
一起来学习

代码笔记:Generate lmages with Stable Diffusion

目录

1、conda环境

2、使用过程中遇到的问题


1、conda环境

(1)环境名称:ldm_py38

(2)pip -e git+https://github.com/CompVis/taming-transformers.git@master#egg=taming-transformers (以及pip -e git+https://github.com/openai/CLIP.git@main#egg=clip)报错:ERROR: Command errored out with exit status 128

报错原因:服务器的SSL证书没有经过第三方机构的签署

解决方法:执行git config –global http.sslVerify”False”

出处:ERROR: Command errored out with exit status 128: git clone -q https://github.com/jonbarron/robust_lo_其实也很简单的博客-CSDN博客


2、使用过程中遇到的问题

(1)No module named ‘pytorch_lightning.utilities.distributed’ 

解决方法:将pytorch_lightning.utilities.distributed改为pytorch_lightning.utilities.rank_zero

 (2)No module named ‘taming

解决方法:pip  install taming-transformers

然后又会报如下错误:

解决方法:下载quantize.py新文件替换报错路径中的旧文件

下载地址:taming-transformers/quantize.py at master · CompVis/taming-transformers · GitHub

 出处:stable diffusion No module named taming_千里冰封and万里雪飘的博客-CSDN博客

(3) RuntimeError: einsum(): operands do not broadcast with remapped shapes[original->remapped]

解决方法:可选参数–n_samples的值需和prompts的数量一致。

文章来源于互联网:代码笔记:Generate lmages with Stable Diffusion

相关推荐: 在modelscope(魔塔)部署自己的Stable-Diffusion-WebUI并实现网络穿透,可外部调用

一、注册并登陆modelscope平台        modelscope账号的注册这里就不做过多的介绍,大家可以自行搜索完成账号注册及实名认证,领取免费GPU算力;        登陆后按下图指示依次点击选择对应配置,最后点击‘启动’开启并进入服务器; 二、…

赞(0)
未经允许不得转载:5bei.cn大模型教程网 » 代码笔记:Generate lmages with Stable Diffusion
分享到: 更多 (0)

AI大模型,我们的未来

小欢软考联系我们