|
# Latent Consistency Model (LCM)-SDXL - Onnx Olive DirectML Optimized
|
|
|
|
## Original Model
|
|
https://huggingface.co/latent-consistency/lcm-sdxl
|
|
|
|
## C# Inference Demo
|
|
https://github.com/saddam213/OnnxStack
|
|
|
|
```csharp
|
|
// Create Pipeline
|
|
var pipeline = LatentConsistencyXLPipeline.CreatePipeline("D:\\Models\\LCM-SDXL");
|
|
|
|
// Prompt
|
|
var promptOptions = new PromptOptions
|
|
{
|
|
Prompt = "Visualize a cartoonish scene of a wizard's cluttered study, with spellbooks, potion bottles, and magical artifacts."
|
|
};
|
|
|
|
// Run pipeline
|
|
var result = await pipeline.GenerateImageAsync(promptOptions);
|
|
|
|
// Save Image Result
|
|
await result.SaveAsync("Result.png");
|
|
```
|
|
## Inference Result
|
|
 |