Sign In

Tutorial Regional Prompter - More consistent colors

477
837
19
Type
Other
Stats
837
Reviews
Published
Mar 21, 2023
Base Model
SD 1.5
Hash
AutoV2
ED95F81222
default creator card background decoration
DitamAi's Avatar
DitamAi

READ THE DESCRIPTION

In this tutorial I would like to teach you how to get more consistent colors on your characters. Everything is based on this extension: hako-mikan/sd-webui-regional-prompter: set prompt to divided region (github.com)

Previously I did another tutorial to achieve a similar result: No more color contamination - Read Description | Stable Diffusion Other | Civitai


Step 1: Install this extension


Step 2: Restart Stable Diffusion (close and open)

Step 3: Active Regional Prompter (in txt2img under controlnet or additional network)

Step 4: Let's try

In positive prompt we put without quotes:


"blue hair twintail BREAK

yellow blouse BREAK

orange skirt"

In negative prompt we must place a negative token or several, if we do not put a single negative token, Stable Diffusion will bugge:

"worst quality, low quality"

In resolution I will put 572 x 768 and I will go to "divide mode" in Regional Prompter and put vertical. If I choose to put 768 x 572 then I must make horizontal and not vertical.

In divide ratio I will put 1,1,1. This will divide our image into 3 equal parts. Then I place an image to better understand what happens.

In short, let's imagine that our image is 100%, if we put it 1,1,1 it would be divided by 33%, 33%, 33%. If we put it 1.1, it would be 50%, 50%. I have not tested the proportions much.

For this step we should have our regional prompter in this way:

My result, if you don't look good, I leave printscreen to see my configuration used at the time of generating: https://prnt.sc/q395bQl_y9z7


Some things to take into account, this is already taken directly from the extension: hako-mikan/sd-webui-regional-prompter: set prompt to divided region (github.com)

Active

If checked, this extention is enabled.


Prompt

Prompts for different areas are separated by "BREAK". Enter prompts from the left for horizontal prompts and from the top for vertical prompts. Negative prompts can also be set for each area by separating them with BREAK, but if BREAK is not entered, the same negative prompt will be set for all areas. Prompts delimited by BREAK should not exceed 75 tokens. If the number is exceeded, it will be treated as a separate area and will not work properly.


Use base prompt

Check this if you want to use the base prompt, which is the same prompt for all areas. Use this option if you want the prompt to be consistent across all areas. When using base prompt, the first prompt separated by BREAK is treated as the base prompt. Therefore, when this option is enabled, one more BRAKE-separated prompt is required than Divide ratios.


Base ratio

Sets the ratio of the base prompt; if 0.2 is setted, the base ratio is 0.2. It can also be specified for each region, and can be entered as 0.2, 0.3, 0.5, etc. If a single value is entered, the same value is applied to all areas.


Divide ratio

If you enter 1,1,1, the area will be divided into three parts (33,3%, 33,3%, 33,3%); if you enter 3,1,1, the area will be divided into 60%, 20%, and 20%. Decimal points can also be entered. 0.1,0.1,0.1 is equivalent to 1,1,1.


Divide mode

Specifies the direction of division. Horizontal and vertical directions can be specified.


THANKS hako-mikan