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 Settings
- Draw Things
- DiffusionBee
Commit History
-
Correct `sample_size` of Stable Diffusion 1's unet to have correct width and height default
Since `diffusers==0.9.0` the width and height is automatically inferred from the `sample_size` attribute of your unet's config. It seems like your diffusion model has the same architecture as Stable Diffusion 1 which means that when using this model, by default an image size of 512x512 should be generated. This in turn means the unet's sample size should be **64**. In order to suppress to update your configuration on the fly and to suppress the deprecation warning added in this PR: https://github.com/huggingface/diffusers/pull/1406/files#r1035703505 it is strongly recommended to merge this PR.0fd7fc2
-
Update README.md
d84f701
-
Update README.md
bf1a610 -
turn on inference api (#3)
- turn on inference api (32454876a15ad13ed820adc17a91880d26b86d68) Co-authored-by: Ahsen Khaliq <akhaliq@users.noreply.huggingface.co>dc3e314
-
Update README.md
10d5df8 -
Update README.md
2a0d22e -
Update README.md
5b78f0b -
Update model_index.json
114d700 -
Update model_index.json
89083ee -
Update model_index.json
2ea58ef -
Update model_index.json
bcc02b4 -
Update model_index.json
5b8e1a6
-
init
f3ebb1d -
Update README.md
04200cd -
Upload m9.png
dc7df48 -
Update README.md
dc32e4c -
initial commit
48a7e3d