Instructions to use amd/stable-diffusion-xl-1.0_io32_amdgpu with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use amd/stable-diffusion-xl-1.0_io32_amdgpu with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("amd/stable-diffusion-xl-1.0_io32_amdgpu", 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
Update README.md
Browse files
README.md
CHANGED
|
@@ -10,6 +10,7 @@ pipeline_tag: text-to-image
|
|
| 10 |
https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0
|
| 11 |
|
| 12 |
```csharp
|
|
|
|
| 13 |
// Create Pipeline
|
| 14 |
var pipeline = StableDiffusionPipeline.CreatePipeline("D:\\Models\\stable-diffusion-xl-base-1.0_amdgpu");
|
| 15 |
// Prompt
|
|
|
|
| 10 |
https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0
|
| 11 |
|
| 12 |
```csharp
|
| 13 |
+
// csharp example
|
| 14 |
// Create Pipeline
|
| 15 |
var pipeline = StableDiffusionPipeline.CreatePipeline("D:\\Models\\stable-diffusion-xl-base-1.0_amdgpu");
|
| 16 |
// Prompt
|