-
Notifications
You must be signed in to change notification settings - Fork 6k
Add semantic guidance pipeline #2223
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 semantic guidance pipeline #2223
Conversation
The documentation is not available anymore as the PR was closed or merged. |
super().__init__() | ||
|
||
if hasattr(scheduler.config, "steps_offset") and scheduler.config.steps_offset != 1: | ||
deprecation_message = ( |
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.
Let's remove the deprecation statement - not needed for new models :-)
src/diffusers/pipelines/semantic_stable_diffusion/pipeline_semantic_stable_diffusion.py
Outdated
Show resolved
Hide resolved
src/diffusers/pipelines/semantic_stable_diffusion/pipeline_semantic_stable_diffusion.py
Outdated
Show resolved
Hide resolved
PR looks great, only two small recommendations for correction :-) Also could you add a new doc page here: Thanks a lot! |
Looks great! Think now just some short tests are missing :-) |
@PatrickSchrML is already working on it ;) |
Tests are also implemented now :D |
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.
Very nice! @williamberman can you give it a final review?
src/diffusers/pipelines/semantic_stable_diffusion/pipeline_semantic_stable_diffusion.py
Outdated
Show resolved
Hide resolved
src/diffusers/pipelines/semantic_stable_diffusion/pipeline_semantic_stable_diffusion.py
Outdated
Show resolved
Hide resolved
src/diffusers/pipelines/semantic_stable_diffusion/pipeline_semantic_stable_diffusion.py
Outdated
Show resolved
Hide resolved
src/diffusers/pipelines/semantic_stable_diffusion/pipeline_semantic_stable_diffusion.py
Outdated
Show resolved
Hide resolved
src/diffusers/pipelines/semantic_stable_diffusion/pipeline_semantic_stable_diffusion.py
Outdated
Show resolved
Hide resolved
…antic_stable_diffusion.py Co-authored-by: Patrick von Platen <[email protected]>
…antic_stable_diffusion.py Co-authored-by: Patrick von Platen <[email protected]>
…antic_stable_diffusion.py Co-authored-by: Patrick von Platen <[email protected]>
…ffusers into semantic-guidance
* Add semantic guidance pipeline * Fix style * Refactor Pipeline * Pipeline documentation * Add documentation * Fix style and quality * Fix doctree * Add tests for SEGA * Update src/diffusers/pipelines/semantic_stable_diffusion/pipeline_semantic_stable_diffusion.py Co-authored-by: Patrick von Platen <[email protected]> * Update src/diffusers/pipelines/semantic_stable_diffusion/pipeline_semantic_stable_diffusion.py Co-authored-by: Patrick von Platen <[email protected]> * Update src/diffusers/pipelines/semantic_stable_diffusion/pipeline_semantic_stable_diffusion.py Co-authored-by: Patrick von Platen <[email protected]> * Make compatible with half precision * Change deprecation warning to throw an exception * update --------- Co-authored-by: Patrick von Platen <[email protected]>
* Add semantic guidance pipeline * Fix style * Refactor Pipeline * Pipeline documentation * Add documentation * Fix style and quality * Fix doctree * Add tests for SEGA * Update src/diffusers/pipelines/semantic_stable_diffusion/pipeline_semantic_stable_diffusion.py Co-authored-by: Patrick von Platen <[email protected]> * Update src/diffusers/pipelines/semantic_stable_diffusion/pipeline_semantic_stable_diffusion.py Co-authored-by: Patrick von Platen <[email protected]> * Update src/diffusers/pipelines/semantic_stable_diffusion/pipeline_semantic_stable_diffusion.py Co-authored-by: Patrick von Platen <[email protected]> * Make compatible with half precision * Change deprecation warning to throw an exception * update --------- Co-authored-by: Patrick von Platen <[email protected]>
* Add semantic guidance pipeline * Fix style * Refactor Pipeline * Pipeline documentation * Add documentation * Fix style and quality * Fix doctree * Add tests for SEGA * Update src/diffusers/pipelines/semantic_stable_diffusion/pipeline_semantic_stable_diffusion.py Co-authored-by: Patrick von Platen <[email protected]> * Update src/diffusers/pipelines/semantic_stable_diffusion/pipeline_semantic_stable_diffusion.py Co-authored-by: Patrick von Platen <[email protected]> * Update src/diffusers/pipelines/semantic_stable_diffusion/pipeline_semantic_stable_diffusion.py Co-authored-by: Patrick von Platen <[email protected]> * Make compatible with half precision * Change deprecation warning to throw an exception * update --------- Co-authored-by: Patrick von Platen <[email protected]>
Add new pipeline for semantic guidance as introduced in SEGA: Instructing Diffusion using Semantic Dimensions