代码笔记: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的数量一致。

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 2
    评论
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值