Edit model card

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

// 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

Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Examples
Unable to determine this model's library. Check the docs .