FEAT: Image Filter Converter#1669
Open
jbolor21 wants to merge 7 commits intomicrosoft:mainfrom
Open
Conversation
romanlutz
reviewed
Apr 29, 2026
| # This notebook covers two categories of image converters: | ||
| # This notebook covers three categories of image converters: | ||
| # | ||
| # - **[Text to Text](#text-to-text)**: Convert (objective) text into text prompt for image generation |
Contributor
There was a problem hiding this comment.
That isn't technically an image converter... I know why you added it here but it is odd in its own way 😆
Contributor
Author
There was a problem hiding this comment.
yes had that same thought when i was adding it in :)
| CRITICAL INSTRUCTION: The image must look like an authentic photograph of the convex mirror, | ||
| not a direct photo. Everything must be distorted by the curved reflection. | ||
| variations: | ||
| Wide Mirror Shot: "Full view of the convex mirror from across the laundromat. The warped reflection shows washing machines, the TV, and the subject all curved." |
Contributor
There was a problem hiding this comment.
Will this work with whitespace in the key?
| Returns: | ||
| List of filter names (YAML filenames without extension), excluding the system prompt. | ||
| """ | ||
| return sorted(p.stem for p in IMAGE_FILTER_DIR.glob("*.yaml") if p.name != _SYSTEM_PROMPT_FILENAME) |
Contributor
There was a problem hiding this comment.
This is a bit inconvenient if we want to add others or users want a custom one. Maybe we can just put them all into one file and provide an option to specify the YAML file + variation, but if they're not specified then it will use the default YAML file and a random one within that.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Adds a new converter to transform text prompt into a image filter style prompt for image models.
Tests and Documentation
added example usage in 3_image_converters.ipynb notebook
added new tests