Image-to-image
Image-to-image is a generation mode in which a model takes an existing image plus a prompt or instruction and produces a new image that keeps some of the original's structure while changing its content or style.
Text-to-image starts from pure noise. Image-to-image starts from a picture. In the common diffusion approach, the input image is partly buried in noise and the model then removes the noise again, guided by a text prompt. Because the noise only partly hides the original, the result inherits its composition, shapes and colours while the prompt reshapes the details. A rough sketch of a house can come out as a photorealistic render, or a daytime photo as a night scene.
The method was set out in SDEdit, a paper first posted in August 2021, which added noise to a user's rough painting or collage and then denoised it with a diffusion model. Its authors described the central trade-off: more noise gives a more realistic result that drifts further from the input, and less noise stays closer to the input but looks less finished. Most tools expose this as a strength or denoising setting. In the Hugging Face Diffusers library, a strength of 1.0 more or less ignores the original image, and with 50 steps and a strength of 0.8 the pipeline adds 40 steps of noise and then removes them.
Image-to-image is older than diffusion. The pix2pix paper of November 2016 used conditional generative adversarial networks to translate one kind of image into another, such as label maps into photos, edge drawings into objects and black-and-white images into colour. Each task, though, needed its own paired training data.
The newest form takes instructions instead of descriptions. InstructPix2Pix, published in November 2022, trained a diffusion model on a synthetic dataset of edits created with GPT-3 and Stable Diffusion, so it could carry out a written editing instruction on a real photo in seconds. Image models built into chat assistants now work the same way conversationally, editing an uploaded picture over several turns.
In practice, image-to-image covers restyling, variations, sketch-to-render and product shots in new settings. Related techniques narrow the change: inpainting regenerates only a masked region, and control methods such as ControlNet hold a pose or depth map fixed. Because it starts from a real picture, it is also how genuine photos of real people are altered, which raises the same consent issues as other synthetic media.
Text-to-image creates a picture from a written prompt alone, starting from random noise. Image-to-image starts from an existing picture and changes it according to a prompt or instruction, so the result keeps some of the original's layout and colours. Strength sets how much noise is added to the input image before the model rebuilds it. Low values keep the result close to the original; high values let the prompt take over, and a value of 1.0 in common tools largely ignores the original. No. Image-to-image reworks the whole picture, while inpainting regenerates only a selected area and leaves the rest untouched. Many editing tools offer both. At low strength it preserves faces reasonably well, but higher strength alters them. Keeping a specific person recognisable through large changes usually needs reference-image features or a model trained on that person.Common questions
What is the difference between text-to-image and image-to-image?
What does denoising strength do?
Is image-to-image the same as inpainting?
Can image-to-image keep a person's face the same?
Search for "image-to-image diffusion", "img2img strength" or "instruction-based image editing" to see how the mode works and compare tools. Reliable sources include research papers on arXiv such as SDEdit and InstructPix2Pix, the documentation of open libraries such as Hugging Face Diffusers, and the help pages of commercial image tools. Treat before-and-after showcase images with care, since they are usually picked from many attempts.Finding more
Working out what this means for your business?
Aileron Shift builds the systems behind this site: AI newsrooms that research, write and publish on their own, marketing automation and WordPress hosting for companies that need to move faster than their competitors.