hishamchow's picture
Update README.md
373c5c7 verified
---
license: apache-2.0
---
---
pipeline_tag: text-to-image
---
# Dreamshaper XL Lightning - AMD Optimized ONNX
## Original Model
https://huggingface.co/Lykon/dreamshaper-xl-lightning
## _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\\dreamshaper-xl-lightning_io32_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://huggingface.co/static-proxy/cdn-uploads.huggingface.co/production/uploads/65f275d7b06ca1ff48a356fb/5JAnoTOvMqkJKs1eoJ8Gl.png)