Text-to-Image
Diffusers
Chinese
AltDiffusionPipeline
stable-diffusion
stable-diffusion-diffusers
multilingual
English(En)
Chinese(Zh)
Spanish(Es)
French(Fr)
Russian(Ru)
Japanese(Ja)
Korean(Ko)
Arabic(Ar)
Italian(It)
Instructions to use BAAI/AltDiffusion-m9 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use BAAI/AltDiffusion-m9 with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("BAAI/AltDiffusion-m9", dtype=torch.bfloat16, device_map="cuda") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
- Local Apps
- Draw Things
- DiffusionBee
出现No module named 'alt_diffusion'的错误
#11
by Kasezl - opened
下载模型文件到服务器,且安装了依赖,但是报错No module named 'alt_diffusion',请问这是什么原因呢?
Same question. ValueError: text_encoder/alt_diffusion.py as defined in model_index.json does not exist in BAAI/AltDiffusion-m9 and is not a module in 'diffusers/pipelines'.
Same question, did anyone solve this?
text_encoder/alt_diffusion.py as defined in model_index.json does not exist in BAAI/AltDiffusion and is not a module in 'diffusers/pipelines'.
Hello, could you please provide a screenshot of the specific error message and the version number of diffusers, perhaps due to version issues. Thank you.
try use diffusers==0.9.0
I use transformers==4.25.1 and diffusers==0.9.0, then it works, but took me hours to figure it out
