OnnxStack icon indicating copy to clipboard operation
OnnxStack copied to clipboard

Issue with Missing StableDiffusion3Pipeline Class in OnnxStack C# Inference Demo

Open tylike opened this issue 1 year ago • 5 comments

Hello OnnxStack Team,

I recently came across your project while searching for a method to run the stable diffusion 3 model in C#. I found the model on the Hugging Face page (https://huggingface.co/TensorStack/stable-diffusion-3-lite-onnx) and followed the link to your C# Inference Demo on GitHub (https://github.com/TensorStack-AI/OnnxStack).

The example code provided on the repository suggests using the StableDiffusion3Pipeline class to create a pipeline and generate images with the model. Here is the snippet of the example code:

// Create Pipeline
var pipeline = StableDiffusion3Pipeline.CreatePipeline("D:\\Models\\stable-diffusion-3-lite-onnx");

// Prompt
var promptOptions = new PromptOptions
{
    Prompt = "A cat holding a sign that says OnnxStack Stable Diffusion 3"
};

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

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

However, upon looking into your library, I could not find the StableDiffusion3Pipeline class. It seems to be missing from the library, or the documentation may need updating to reflect the correct usage.

Could you please provide clarification on whether the class is indeed missing, or if I should be using a different approach to instantiate and utilize the stable diffusion 3 model within a C# environment?

Any assistance or updated documentation would be greatly appreciated as I am excited to integrate this model into my project.

Thank you for your time and effort!

tylike avatar Jul 03 '24 00:07 tylike