Stable diffusion: AttributeError: module ‘jax.random‘ has no attribu ...

打印 上一主题 下一主题

主题 502|帖子 502|积分 1506

错误提示

安装
from diffusers import StableDiffusionPipeline 提示错误
   AttributeError: module ‘jax.random’ has no attribute ‘KeyArray’
  办理方法

  1. pip install "jax[cuda12_pip]==0.4.23" -f https://storage.googleapis.com/jax-releases/jax_cuda_releases.html
  2. 或者
  3. pip install "jax[cuda12_local]==0.4.23" -f https://storage.googleapis.com/jax-releases/jax_cuda_releases.html
复制代码
在colab内里,可以运行以下命令行
  1. !pip install "jax[cuda12_local]==0.4.23" -f https://storage.googleapis.com/jax-releases/jax_cuda_releases.html
  2. !pip install diffusers==0.11.1
  3. !pip install transformers scipy ftfy accelerate
复制代码
参考:
https://stackoverflow.com/questions/78302031/stable-diffusion-attributeerror-module-jax-random-has-no-attribute-keyarray

免责声明:如果侵犯了您的权益,请联系站长,我们会及时删除侵权内容,谢谢合作!更多信息从访问主页:qidao123.com:ToB企服之家,中国第一个企服评测及商务社交产业平台。
回复

使用道具 举报

0 个回复

倒序浏览

快速回复

您需要登录后才可以回帖 登录 or 立即注册

本版积分规则

灌篮少年

金牌会员
这个人很懒什么都没写!

标签云

快速回复 返回顶部 返回列表