Momentary-LCM-onnx / README.md
saddam213's picture
Initial Upload
8a4a7a2 verified

Momentary LCM - Onnx Olive DirectML Optimized

Original Model

https://civitai.com/models/212638/momentary

C# Inference Demo

https://github.com/TensorStack-AI/OnnxStack

// Create Pipeline
var pipeline = LatentConsistencyPipeline.CreatePipeline("D:\\Models\\Momentary-LCM-onnx");

// Prompt
var promptOptions = new PromptOptions
{
    Prompt = "Visualize a brave adventurer woman, with a map and a lantern, exploring ancient ruins in search of treasure"
};

// Run pipeline
var result = await pipeline.GenerateImageAsync(promptOptions);

// Save Image Result
await result.SaveAsync("Result.png");

Inference Result

Intro Image