feat: [Community Pipeline] - FaithDiff Stable Diffusion XL Pipeline #11188
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.
What does this PR do?
This PR implements a pipeline for (CVPR 2025) FaithDiff: Unleashing Diffusion Priors for Faithful Image Super-resolution
[Project Page] [Paper]
I think this can complement #9740, with a step 1 where it is possible to restore low quality images, in addition to it also allowing a great upscale. For more details see the project links above.
Thanks to @JyChen9811 for his amazing work! Questions about the paper can be directed to him directly.
Example Usage
This example upscale and restores a low-quality image. The input image has a resolution of 512x512 and will be upscaled at a scale of 2x, to a final resolution of 1024x1024. It is possible to upscale to a larger scale, but it is recommended that the input image be at least 1024x1024 in these cases. To upscale this image by 4x, for example, it would be recommended to re-input the result into a new 2x processing, thus performing progressive scaling.
Local Test
Local testing after published
Before submitting
documentation guidelines, and
here are tips on formatting docstrings.
Result
Who can review?
@asomoza @sayakpaul @yiyixuxu