Regional prompting is a technique used for dividing an image in zones and write a different prompt for each zone. By doing that you can be more specific about what you want in an image, and where you want it to be located. I will admit that I haven’t used this a lot, but I played around with it some today and I think I’ve figured out the settings.
The image above show how an image was divided into three differet zones, blue, yellow and green. To create an images with these zones, I will need to write four prompts.
- A general prompt describing the whole image
- A prompt describing the blue zone
- A prompt describing the yellow zone
- A prompt describing the green zone
This is an example of a workflow for creating an image with 3 different zones.
The workflow can be downloaded here: Regional Prompt
SETUP
- Load the checkpoint
- Load the CLIPs
- Load VAE
- Set image width
- Set image height
SAMPLING
6. Enter the general prompt describing the whole image
7. Your image is saved here
REGIONAL PROMPTING
8. Enter the prompt for the blue, yellow and green zones
9. Preview of where the zones are located
10. Specify the settings of each zone
REGIONAL PROMTING – SETTINGS
A. Set the shape of the zone (square, triangle or circle)
B. I’m honestly not sure about this one
C. The X coordinate you want the zone located
D. The Y coordinate you want the zone located
E. Grow mask can be used to smooth the edges between the zones
F. Imagine each zone as a separate image. This setting is to specify the width of that image.
G. Same as above, but height of the image instead of width.
H. Set the width of the item within the separate image/zone
I. Set the height of the item within the separate image/zone
The result from using the provided workflow together with the following prompts:
- A photo of a living room
- A man viewed from the side, standing up facing right
- A large dining table
- A woman viewed from behind, looking out a window
This is what the masking, or zones looks like.
And here are the final images.
You also might want to read about perspectives, prompting, outpainting, inpainting and camera control when working with generative AI. Or see if you can get some inspiration from my Gallery.
Sign up for my newsletter to get more news, tips and tricks for generative AI.