|
--- |
|
license: apache-2.0 |
|
--- |
|
--- |
|
pipeline_tag: text-to-image |
|
--- |
|
# Stable-Diffusion XL Base 1.0 - AMD Optimized ONNX |
|
|
|
## Original Model |
|
https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0 |
|
|
|
```csharp |
|
// csharp example |
|
// Create Pipeline |
|
var pipeline = StableDiffusionPipeline.CreatePipeline("D:\\Models\\stable-diffusion-xl-base-1.0_amdgpu"); |
|
// Prompt |
|
var promptOptions = new PromptOptions |
|
{ |
|
Prompt = "a beautiful castle in the mountains of Lake Tahoe snow, deep blue lake, ultra hd, cartoonish style" |
|
}; |
|
// Run pipeline |
|
var result = await pipeline.GenerateImageAsync(promptOptions, schedulerOptions); |
|
// Save Image Result |
|
await result.SaveAsync("Result.png"); |
|
``` |
|
## Inference Result |
|
 |
|
|