|
--- |
|
pipeline_tag: text-to-image |
|
--- |
|
# Fluently XL Final - Onnx Olive DirectML Optimized |
|
|
|
## Original Model |
|
https://huggingface.co/fluently/Fluently-XL-Final |
|
|
|
## C# Inference Demo |
|
https://github.com/TensorStack-AI/OnnxStack |
|
|
|
```csharp |
|
// Create Pipeline |
|
var pipeline = StableDiffusionXLPipeline.CreatePipeline("D:\\Models\\Fluently-XL-Final-onnx"); |
|
|
|
// Prompt |
|
var promptOptions = new PromptOptions |
|
{ |
|
Prompt = "Craft an image of a nurse taking care of a patient in a hospital room, with medical equipment and a warm smile." |
|
}; |
|
|
|
// Run pipeline |
|
var result = await pipeline.GenerateImageAsync(promptOptions); |
|
|
|
// Save Image Result |
|
await result.SaveAsync("Result.png"); |
|
``` |
|
## Inference Result |
|
 |