-
Notifications
You must be signed in to change notification settings - Fork 172
Add SDXL samples #504
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add SDXL samples #504
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR adds three new SDXL (Stable Diffusion XL) sample implementations to the AI Dev Gallery: text-to-image generation, image restyling, and a coloring book feature. The changes introduce new UI samples with corresponding XAML views and implement the Windows AI Imaging APIs for image generation capabilities.
Key Changes
- Added Microsoft.WindowsAppSDK.ML package reference (version 2.0.28-experimental)
- Implemented three new SDXL samples with full UI and code-behind
- Updated WCR API helpers and code snippets to support the new model types
- Removed Microsoft.ML.OnnxRuntimeGenAI.WinML package reference
Reviewed Changes
Copilot reviewed 12 out of 14 changed files in this pull request and generated 30 comments.
Show a summary per file
| File | Description |
|---|---|
| Directory.Packages.props | Added Microsoft.WindowsAppSDK.ML experimental package for SDXL support |
| AIDevGallery/Samples/scenarios.json | Added metadata for RestyleImage and ColoringBook scenarios |
| AIDevGallery/Samples/WCRAPIs/SDXL.xaml.cs | New sample implementing text-to-image generation with SDXL |
| AIDevGallery/Samples/WCRAPIs/SDXL.xaml | UI layout for SDXL text-to-image sample |
| AIDevGallery/Samples/WCRAPIs/RestyleImage.xaml.cs | New sample for restyling images with prompts |
| AIDevGallery/Samples/WCRAPIs/RestyleImage.xaml | UI layout for image restyling sample |
| AIDevGallery/Samples/WCRAPIs/ColoringBook.xaml.cs | New sample implementing selective image coloring with flood fill |
| AIDevGallery/Samples/WCRAPIs/ColoringBook.xaml | UI layout for coloring book sample |
| AIDevGallery/Samples/Definitions/WcrApis/apis.json | Added API definitions for the three new SDXL samples |
| AIDevGallery/Samples/Definitions/WcrApis/WcrApiHelpers.cs | Added mappings for SDXL model types to API ready state functions |
| AIDevGallery/Samples/Definitions/WcrApis/WcrApiCodeSnippet.cs | Added code snippets demonstrating usage of new SDXL features |
| AIDevGallery/AIDevGallery.csproj | Removed obsolete package reference and added XAML page configuration |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
Copilot reviewed 12 out of 14 changed files in this pull request and generated 20 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
BiplabBarik
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes are looking good to me.
No description provided.