Views
No views yet
1// csharp example
2// Create Pipeline
3var pipeline = StableDiffusionPipeline.CreatePipeline("D:\\Models\\dreamshaper-xl-lightning_io16_amdgpu");
4// Prompt
5var promptOptions = new PromptOptions
6{
7 Prompt = "a beautiful castle in the mountains of Lake Tahoe snow, deep blue lake, ultra hd, cartoonish style"
8};
9// Run pipeline
10var result = await pipeline.GenerateImageAsync(promptOptions, schedulerOptions);
11// Save Image Result
12await result.SaveAsync("Result.png");