hishamchow's picture
Update README.md
b8747e9 verified
|
raw
history blame
717 Bytes
metadata
license: apache-2.0

pipeline_tag: text-to-image

Stable-Diffusion XL Base 1.0 - AMD Optimized ONNX

Original Model

https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0

// Create Pipeline
var pipeline = StableDiffusionPipeline.CreatePipeline("D:\\Models\\stable-diffusion-xl-base-1.0_amdgpu");
// Prompt
var promptOptions = new PromptOptions
{
    Prompt = "a beautiful castle in the mountains of Lake Tahoe snow, deep blue lake, ultra hd, cartoonish style"
};
// Run pipeline
var result = await pipeline.GenerateImageAsync(promptOptions, schedulerOptions);
// Save Image Result
await result.SaveAsync("Result.png");

Inference Result

Intro Image