< Skip to content

Regional Prompting

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.

regional prompting zones

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.

  1. A general prompt describing the whole image
  2. A prompt describing the blue zone
  3. A prompt describing the yellow zone
  4. 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

Setup
  1. Load the checkpoint

  2. Load the CLIPs

  3. Load VAE

  4. Set image width

  5. 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

regional prompting, shapes

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:

  1. A photo of a living room
  2. A man viewed from the side, standing up facing right
  3. A large dining table
  4. 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.

Dela med dina vänner
Published inAIAI ImagesEnglishTech