Sub topic 9
Refining Generative Results with Masks, Adjustments, and Iteration
This chapter assumes that you can make selections, use the Layers panel, and understand layer masks. It also assumes that your Photoshop version supports Generative Fill and Generative Expand.
A generated result is a starting point, not always a finished image. You can refine it without permanently changing the original pixels by combining generative layers, masks, adjustment layers, and additional generations.
Inspect the Generated Layer
After you apply Generative Fill or Generative Expand, Photoshop places the result on a generative layer. Keep this layer separate from the original image while you evaluate it.
First, zoom in to inspect important areas:
- Look at edges where the generated content meets the original image.
- Check repeated patterns, distorted text, incorrect reflections, and unnatural shadows.
- Compare color, brightness, sharpness, and perspective with nearby pixels.
- View the image at 100% and at its final display size.
Use the layer’s visibility control to compare the generated result with the original. Adjust the layer opacity to judge whether the new content is too strong. Lower opacity can help blend a result, but it cannot fix an incorrect object or structure.
Blend Results with Layer Masks
A layer mask controls which parts of a layer are visible. White areas reveal the layer, black areas hide it, and gray areas reveal it partially.
Add a mask when only part of the generated result works. For example, a generated sky may look convincing on the left but create an unwanted shape near a building. Paint black on the mask over the bad area so the original pixels show through.
A practical mask workflow is:
- Select the generated layer.
- Add a layer mask filled with white.
- Choose a soft brush with low opacity.
- Paint black on the mask to hide unwanted areas.
- Paint white to restore areas that you hid.
- Use gray or lower brush opacity to create a gradual transition.
Do not paint directly on the image when a mask will work. You can edit a mask repeatedly without losing the generated pixels.
Match Tone, Color, and Detail
Generated pixels can have a different color temperature or contrast from the surrounding image. Use adjustment layers instead of permanently changing the generative layer.
Common adjustments include:
- Curves or Levels to match brightness and contrast.
- Hue/Saturation to correct color intensity or hue.
- Color Balance to match warm or cool lighting.
- Selective Color for precise color corrections.
- Blur or texture adjustments when the generated area is sharper or softer than the source.
Clip an adjustment layer to the generated layer when the correction should affect only that result. To do this, place the adjustment layer directly above the generative layer and choose Create Clipping Mask, or use the clipping shortcut provided by your operating system.
| Problem | Useful refinement |
|---|---|
| Generated area is too bright | Curves or Levels adjustment clipped to the layer |
| Edge looks pasted on | Layer mask with a soft, low-opacity brush |
| Color temperature does not match | Color Balance or Photo Filter adjustment |
| Generated detail is too sharp | Local blur or reduced texture |
Iterate with Better Context
Masking is not a substitute for a poor generation. Regenerate when the object has the wrong shape, perspective, lighting, or relationship to nearby objects.
Before trying again, change the input rather than repeatedly submitting the same request:
- Expand the selection slightly to include shadows, reflections, or surrounding texture.
- Contract the selection when the generated area is bleeding into a clean edge.
- Include nearby pixels that show the correct lighting and perspective.
- Use a more specific prompt when the subject is wrong.
- Leave the prompt empty when Photoshop should reconstruct or remove content from the surrounding context.
Make one meaningful change at a time. This makes it easier to identify which adjustment improved the result. Save useful variations before regenerating if you may need to compare them later.
> callout note > Keep the original layer untouched and avoid rasterizing a generative layer until you are certain that you no longer need its variations or editable generation controls.
A Refinement Decision Process
Use this sequence when a result looks almost correct:
- Decide whether the problem is structural or cosmetic.
- Regenerate structural problems, such as incorrect anatomy, perspective, or object placement.
- Mask cosmetic problems, such as an unwanted edge or small region.
- Use clipped adjustments for brightness and color differences.
- Check the result at both 100% and the intended final size.
- Preserve the editable generative layer and document the final choice.
Exercise
A generated replacement has the correct shape but is noticeably warmer than the surrounding scene. Should you regenerate immediately?
Show answer
No. Keep the generative layer, add a clipped Color Balance or Hue/Saturation adjustment, and use a layer mask if only part of the replacement needs correction. Regenerate only if the lighting or structure is still wrong.