FLUX.1-Dev-amuse / README.md
saddam213's picture
Upload 23 files
cb00e91 verified
---
pipeline_tag: text-to-image
---
# FLUX.1-dev - Onnx Olive DirectML Optimized
## Original Model
https://huggingface.co/black-forest-labs/FLUX.1-dev
## C# Inference Demo
https://github.com/TensorStack-AI/OnnxStack
```csharp
// Create Pipeline
var pipeline = FluxPipeline.CreatePipeline("D:\\Models\\Flux_dev-f16-onnx");
// Prompt
var promptOptions = new PromptOptions
{
Prompt = "Create an image of a young woman jogging through a park, with headphones on and a determined look."
};
// Scheduler Options
var schedulerOptions = pipeline.DefaultSchedulerOptions with
{
InferenceSteps = 50,
GuidanceScale = 3.5f,
SchedulerType = SchedulerType.FlowMatchEulerDiscrete,
};
// Run pipeline
var result = await pipeline.GenerateImageAsync(promptOptions, schedulerOptions);
// Save Image Result
await result.SaveAsync("Result.png");
```
## Inference Result
![Intro Image](Sample.png)