Regional prompter can specify prompts for each region but cannot control overall image composition. So, generate at least a few images at a time. See the moon at the top right and the fire at the bottom left.Īgain, you should be aware that regional prompting does not work 100% of the time. Let’s put the moon at the top right (region 1) and fire at the bottom left (region 2). This put the moon in region 0 (top left) and the fire in region 3 (bottom right). The number represents the size of the region.Ī witch, highly detailed face, half body, studio lighting, dramatic lighting, highly detailed clothing, looking at you, mysterious, dramatic lighting A number separated by commas represent each region. To divide the regions horizontally, select Columns in Main Splitting. In one-dimensional division, you can divide the regions horizontally or vertically. You can always click visualize and make template to generate the region image to confirm. ![]() It could be difficult to understand or remember how to specify the regions correctly. In this section, I will explain how to set the divide ratio correctly to break up the image the way you want. The secret of mastering Regional Prompter is to define regions accurately. Using it is equivalent to what we had in the original prompt:Ī man and a woman, a woman with blonde hair More complex regions The common prompt is just a syntactic sugar. The common prompt is added to the beginning of the prompt for each region. We have three prompts above: (1) common prompt, (2) prompt for region 0, and (2) prompt for region 1. Now you can add the common prompt ( a man and a woman) at the beginning. ![]() Instead of writing it out in each region, there’s a convenient way to deal with this.Ģ. Unlike this toy example, the common prompt is typically pretty long. That’s why you need a common prompt, “a man and a woman”. So you get… one person! You need to tell Stable Diffusion that this is a picture of two persons: a man and a woman. Why? Both prompts for the left and the right regions describe a single person. Why do you need the common prompt? Stable Diffusion will only generate one person if you don’t have the common prompt: You may have noticed the two prompts shared a common part “a man and a woman”. But still, it’s much better than leaving it to pure chance. In my experience, it’s more like 75% of the time. Note that this doesn’t work 100% of the time. Stable Diffusion correctly generates a man with black hair in region 0 (left) and a woman with blonde hair in region 1. Since there’s no BREAK in the negative prompt, the whole prompt will be applied to both regions. The second prompt will be applied to region 1. The first prompt will be applied to region 0. They are divided equally in the 1-to-1 ratio.Ī man and a woman, a woman with blonde hair You will see an image with two regions: region 0 is on the left, and Region 1 is on the right. Width and Height: They have to match the txt2img setting.Ĥ.Most default settings are good to go with this example. Check Active to activate the regional prompter.ģ. Unfold the Regional Prompter section on the txt2img page.Ģ.There’s a solution to this problem: specify the prompt for a black-haired man only to the left-hand side of the image and the blonde-haired woman to the right-hand side of the image. What happened? Why can’t Stable Diffusion do even this simple thing? The self-attention mechanism incorrectly associates the hair color and the person. The situation will be even more difficult if you want to further specify the color of the clothing, etc. You will get what you describe sometimes, but more often than not Stable Diffusion confuses which hair color should go with whom. But what if you want to be more specific? Like generating a man with black hair and a woman with blonde hair? Naturally, you write that in the prompt.Ī man with black hair, a woman with blonde hair Stable Diffusion sometimes confuses attributes. Let’s say you want to generate a man and a woman in the same image. I will use a very simple prompt in order to illustrate the effect. Find the extension “Regional Prompter”.Windows or Macįollow these steps to install the Regional Prompter extension in AUTOMATIC1111. ![]() All you need to do is to check the Regional Prompter extension. Installing Regional Prompter extension in the Colab Notebook in the Quick Start Guide is easy. Installing Regional Prompter extension Colab Notebook You can use this GUI on Windows, Mac, or Google Colab. We will use AUTOMATIC1111 Stable Diffusion GUI.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |