-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
[Community Pipeline] Add some feature for regional prompting pipeline #9874
Conversation
Thanks for your PR! Do you maybe also want to update the README of regional prompting? |
@sayakpaul |
@@ -3406,6 +3420,7 @@ pipe(prompt=prompt, rp_args=rp_args) | |||
### Optional Parameters | |||
|
|||
- `save_mask`: In `Prompt` mode, choose whether to output the generated mask along with the image. The default is `False`. | |||
- `base_ratio`: Used with `ADDBASE`. Sets the ratio of the base prompt; if base ratio is set to 0.2, then resulting images will consist of `20%*BASE_PROMPT + 80%*REGION_PROMPT` |
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.
Could maybe also specify the reference that introduced this technique?
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.
This technique was originally implemented in hako-mikan's regional-prompter, but not in the current community pipeline.
So, I don't think it's necessary to specify the reference again.
@cjkangme could you run |
The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update. |
d2327e0
to
bb8bb74
Compare
@sayakpaul |
Hi |
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.
Thank you!
was this pr tested? i'm getting runtime error since the merge:
|
Hi I've fixed the affected line and created PR #10251 |
…#9874) * [Fix] fix bugs of regional_prompting pipeline * [Feat] add base prompt feature * [Fix] fix __init__ pipeline error * [Fix] delete unused args * [Fix] improve string handling * [Docs] docs to use_base in regional_prompting * make style --------- Co-authored-by: Sayak Paul <[email protected]>
What does this PR do?
Hi.
I am happily using a pipeline that implements Regional Prompting in the diffusers community pipeline.
While using the community pipeline, I created a PR as I thought it would be good to add the following:
Using Example
I tried to imitate this example
Before submitting
documentation guidelines, and
here are tips on formatting docstrings.
Who can review?
Anyone in the community is free to review the PR once the tests have passed. Feel free to tag
members/contributors who may be interested in your PR.