img2img: Image changes Image to image

Change the weather, light or style of a picture you already have, using a prompt and denoising strength.

6 stepsBring a picture of your own

The same tutorial, three subjects

Step by step

Explanation detail
  1. Source image

    1 · Source mode

    Choose img2img under Source mode. The worker adds noise to your image, then generates from it using your prompt.Denoising strength controls how much it can change. A mask can limit the change to one area.
  2. Source image

    2 · Source image

    img2img generates from a noisy version of an existing image.Open , choose a Source mode to show the upload control, and attach your image. The tutorial cannot attach a file for you.The example uses an image at 1024×1024 pixels. Match those dimensions for a similar comparison.
  3. Source image

    3 · Denoising strength

    Set to 0.8.Lower values generally preserve more of the source. Higher values allow larger changes to appearance and composition. The value does not identify which objects can change.The examples compare k_euler_a with k_euler. Compare values within each set, since both the sampler and strength affect the result.
  4. Prompt

    4 · Prompt

    Describe the result you want. This example keeps the subject description and changes the weather and lighting:Prompt:
    a woman in her 30s with a sleek silver bob haircut, round copper goggles resting up in her silver hair, a patched teal canvas coat, a small brass compass on a cord around her neck, standing at the wooden railing of a zeppelin airship's open gondola deck in a night storm, lantern light on wet brass fittings, rain streaking past the taut rigging, the dark canvas envelope of the airship overhead, a lit thunderhead below the deck, cinematic lighting, rich detail, professional photography, high dynamic range
    Negative prompt:
    lowres, blurry, deformed, extra limbs, watermark, text, jpeg artifacts, ocean, sea, water surface, sailing ship, boat, cruise ship, sunglasses
    At denoising strength 0.8, other features can still change. Keeping the subject's wording does not restrict the edit to the weather. Use a mask for a local edit.
  5. Model & style

    5 · Model and dimensions

    Use AlbedoBase XL (SDXL) at 1024×1024. The tutorial sets both to match the recorded request.Matching the source's aspect ratio avoids stretching. You can use another model to change the appearance; the model that made the source is not required.The recorded sampling settings are k_euler_a, 30 steps, guidance 7.5, and seed 1234567890.Set to 1. The “Set this for me” button selects AlbedoBase XL (SDXL) and sets CLIP skip to 1. Models can need different CLIP skip settings; using the wrong one can give poor results.
  6. 6 · Generation

    Press Generate. The studio uploads the source with your prompt and settings.Upload time depends on file size and connection speed. The request then waits for a compatible worker. Follow the queue estimate. This run took about 28 seconds and cost 56 kudos.

Related tutorial

Try Inpainting to replace a selected area of an image. A mask identifies where the replacement should appear.