hako-mikan / sd-webui-regional-prompter

set prompt to divided region
GNU Affero General Public License v3.0
1.58k stars 133 forks source link

May I ask if the regional prompt can also achieve good control in img2img? #304

Closed FIR2022start closed 9 months ago

FIR2022start commented 9 months ago

May I ask if the regional prompt can also achieve good control in img2img?

Heather95 commented 9 months ago

Yes. Why were you unable to verify this yourself? No offense, but the issue feature on GitHub is not intended to be used for general questions.

Heather95 commented 9 months ago

@FIR2022start I apologize about my wording. I realize not everyone is aware of the Discussions tab. Please try to use it in the future. https://github.com/hako-mikan/sd-webui-regional-prompter/discussions

Here are some advanced instructions about how to use Regional Prompter in img2img, taken from a Reddit user.

Regional prompting, turn it on. Click on the 2nd option for masking. Load the photo into regional prompting. Then draw a mask over the first subject, click the apply mask button.. Then scroll back to the top and in your prompt describe what is under the mask, when finished end the line with BREAK. Hit enter so are now on a new line.

Then draw the next mask, again describe what's under the mask, end with BREAK. Hit enter to again go to the next line. Scroll back down to regional prompting.

Rinse and repeat until you are finished.

That is the gist of regional prompting with masking.

If you don't see a mask drawn in different colors you are clicking the wrong button, there are two options.

When completely done, hit generate.

If you choose one of the options for generic prompt, you need to enter that information in before your first mask line and end with a BREAK.

Example: Five people, smiling, in photo, BREAK Tall guy, blonde hair, blue eyes, BREAK (corresponds to lowest number mask) Short girl, blue hair, red eyes, BREAK Etc.

You could also add in control net, to further lock in the original image.

FIR2022start commented 9 months ago

Thank you very much and I apologize for the overly general question. I indeed did not know how to use the Discussions tab before, but I will look there for the information I need in the future. Additionally, thank you for providing the reference answer!