File size: 1,278 Bytes
5050502
9ba9fa7
 
 
5050502
 
 
 
 
 
 
 
 
 
 
 
 
 
b85d2ef
 
 
 
 
 
 
 
 
 
5050502
 
 
b590722
5050502
 
 
 
 
 
 
 
 
 
 
9ba9fa7
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
---
license: openrail++
base_model:
- stabilityai/stable-diffusion-xl-base-1.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

## _io32/16
_io32: model input is fp32, model will convert the input to fp16, perform ops in fp16 and write the final result in fp32

_io16: model input is fp16, perform ops in fp16 and write the final result in fp16

## Running

### 1. Using Amuse GUI Application

Use Amuse GUI application to run it: https://www.amuse-ai.com/
use _io32 model to run with Amuse application


### 2. Inference Demo

```csharp
// csharp example
// Create Pipeline
var pipeline = StableDiffusionPipeline.CreatePipeline("D:\\Models\\stable-diffusion-xl-base-1.0_io16_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
![image/png](https://cdn-uploads.huggingface.co/production/uploads/65f275d7b06ca1ff48a356fb/s4V0xtXJchfk9Uy_39VYo.png)