灌篮少年 发表于 2024-9-15 01:45:21

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

错误提示

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

pip install "jax==0.4.23" -f https://storage.googleapis.com/jax-releases/jax_cuda_releases.html

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

免责声明:如果侵犯了您的权益,请联系站长,我们会及时删除侵权内容,谢谢合作!更多信息从访问主页:qidao123.com:ToB企服之家,中国第一个企服评测及商务社交产业平台。
页: [1]
查看完整版本: Stable diffusion: AttributeError: module ‘jax.random‘ has no attribu