Instructions to use BAAI/AltDiffusion-m18 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use BAAI/AltDiffusion-m18 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-m18", 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
Update README.md
Browse files
README.md
CHANGED
|
@@ -51,4 +51,10 @@ checkpoint we used is SD v2.1 512-base-ema. We also use Xformer and Efficient At
|
|
| 51 |
### 长图效果
|
| 52 |

|
| 53 |
|
| 54 |
-

|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 51 |
### 长图效果
|
| 52 |

|
| 53 |
|
| 54 |
+

|
| 55 |
+
|
| 56 |
+
## 参考
|
| 57 |
+
|
| 58 |
+
--Stability AI: https://stability.ai/
|
| 59 |
+
--FlagAI: https://github.com/FlagAI-Open/FlagAI
|
| 60 |
+
--Stable Diffusion: https://huggingface.co/spaces/stabilityai/stable-diffusion
|