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
Update README.md
Browse files
README.md
CHANGED
|
@@ -87,13 +87,13 @@ The following weights are automatically downloaded from HF when the AltDiffusion
|
|
| 87 |
|
| 88 |
**AltDiffusion-m9** 已被添加到 🧨Diffusers!
|
| 89 |
|
| 90 |
-
我们的[代码示例](https://colab.research.google.com/drive/
|
| 91 |
|
| 92 |
您可以在 [此处](https://huggingface.co/docs/diffusers/main/en/api/pipelines/alt_diffusion) 查看文档页面。
|
| 93 |
|
| 94 |
以下示例将使用fast DPM 调度程序生成图像, 在V100 上耗时大约为 2 秒。
|
| 95 |
|
| 96 |
-
You can run our diffusers example through [here](https://colab.research.google.com/drive/
|
| 97 |
|
| 98 |
You can see the documentation page [here](https://huggingface.co/docs/diffusers/main/en/api/pipelines/alt_diffusion).
|
| 99 |
|
|
|
|
| 87 |
|
| 88 |
**AltDiffusion-m9** 已被添加到 🧨Diffusers!
|
| 89 |
|
| 90 |
+
我们的[代码示例](https://colab.research.google.com/drive/1wZnPtJLhI9i0zKrBF3gSfJ-0w29w9fOV#scrollTo=QkNJDy4sVRBu)已放到colab上,欢迎使用。
|
| 91 |
|
| 92 |
您可以在 [此处](https://huggingface.co/docs/diffusers/main/en/api/pipelines/alt_diffusion) 查看文档页面。
|
| 93 |
|
| 94 |
以下示例将使用fast DPM 调度程序生成图像, 在V100 上耗时大约为 2 秒。
|
| 95 |
|
| 96 |
+
You can run our diffusers example through [here](https://colab.research.google.com/drive/1wZnPtJLhI9i0zKrBF3gSfJ-0w29w9fOV#scrollTo=QkNJDy4sVRBu) in colab.
|
| 97 |
|
| 98 |
You can see the documentation page [here](https://huggingface.co/docs/diffusers/main/en/api/pipelines/alt_diffusion).
|
| 99 |
|