# Edycja obrazu poleceniem i podmiana fragmentów (inpainting)

EN: **Instruction-based image editing and inpainting** · id `imageediting` · aliases: image editing, instruction-based image editing, inpainting, outpainting, image-to-image, generative fill, edycja obrazu, edycja poleceniem, uzupełnianie obrazu, rozszerzanie kadru

Path: [AI Atlas](https://aiatlasgraph.com/llms.txt) › [Język, obraz, audio](https://aiatlasgraph.com/t/modalities.md) › [Generowanie obrazu i wideo](https://aiatlasgraph.com/t/imagegen.md) › Edycja obrazu poleceniem i podmiana fragmentów (inpainting)

## Description

- PL: Zmiana istniejącego obrazu według polecenia tekstowego, przegenerowanie zaznaczonego maską fragmentu (inpainting) albo rozszerzenie obrazu poza pierwotny kadr (outpainting). Współczesne modele mogą łączyć generowanie i edycję, ale zachowanie tożsamości obiektów podczas kolejnych zmian pozostaje zależne od modelu i zadania.
- EN: Changing an existing image according to a text instruction, regenerating a masked region (inpainting), or extending the image beyond its original frame (outpainting). Contemporary models can combine generation and editing, but preserving object identity across repeated edits still depends on the model and task.

## In one sentence

- PL: To poprawianie gotowego zdjęcia przez opisanie zmiany słowami, na przykład „usuń przechodnia” albo „zmień niebo na zachód słońca”.
- EN: This changes an existing photo when you describe the change in words, such as “remove the passer-by” or “make the sky a sunset”.

## Problem it solves

- PL: Retusz w programie graficznym wymaga wprawy i czasu, a drobna zmiana potrafi zająć godzinę.
- EN: Retouching in a graphics program takes skill and time, and a small change can eat up an hour.

## What it does

- PL: Wskazany obszar lub polecenie kieruje zmianą, a model dobiera nową treść do otoczenia; szczegóły, które chcesz zachować, wymagają sprawdzenia.
- EN: A selected region or instruction guides the change, and the model matches new content to its surroundings; details you want preserved need checking.

## Everyday example

- PL: Na zdjęciu z wakacji zaznaczasz palcem obcą osobę w tle, a aplikacja zastępuje ją fragmentem plaży.
- EN: On a holiday photo you tap a stranger in the background, and the app replaces them with more beach.

## This concerns you if you…

- PL: poprawiasz zdjęcia bez znajomości programów graficznych
- PL: przygotowujesz zdjęcia produktów w różnych wersjach
- PL: chcesz wiedzieć, jak łatwo dziś zmienić zdjęcie
- EN: fix photos without knowing graphics software
- EN: prepare product photos in several versions
- EN: want to know how easily a photo can be altered today

## Keywords

InstructPix2Pix · FLUX.1 Kontext · Step1X-Edit · Qwen-Image · inpainting · outpainting · image-to-image · GEdit-Bench

## How it works

- PL: Obraz źródłowy i instrukcja warunkują generowanie zmienionej reprezentacji. Przy edycji maskowanej algorytm regeneruje wybrany obszar, korzystając z otoczenia i ograniczeń zachowania pozostałej treści.
- EN: Source images and instructions condition generation of modified representations. Masked editing regenerates selected regions using surrounding content and constraints preserving the rest.

## Limits

- PL: Maska nie zapewnia idealnej granicy ani zachowania tożsamości. Kolejne edycje mogą kumulować zmiany, a światło i geometria nowego fragmentu mogą nie pasować do otoczenia.
- EN: Masks cannot ensure perfect boundaries or identity preservation. Repeated edits can accumulate changes, while new-region lighting and geometry may not fit surrounding content.

## Key terms

- PL: **inpainting**: Generowanie treści we wskazanym brakującym lub zastępowanym obszarze.
- PL: **outpainting**: Rozszerzanie obrazu przez generowanie obszaru poza pierwotną ramą.
- EN: **inpainting**: Generating content within a specified missing or replaced region.
- EN: **outpainting**: Extending images by generating regions beyond the original frame.

## Know first

- [Modele dyfuzyjne (Diffusion models)](https://aiatlasgraph.com/t/diffusion.md)
- [Segmentacja obrazu (Image segmentation)](https://aiatlasgraph.com/t/segmentation.md)

## Examples

- PL: InstructPix2Pix · maska i inpainting · outpainting · image-to-image · FLUX.1 Kontext · Step1X-Edit · Qwen-Image · GEdit-Bench
- EN: InstructPix2Pix · mask and inpainting · outpainting · image-to-image · FLUX.1 Kontext · Step1X-Edit · Qwen-Image · GEdit-Bench

## Related topics

Untyped, symmetric "see also" links.

- [Przekładanie obrazu na obraz (pix2pix, CycleGAN) (Image-to-image translation (pix2pix, CycleGAN))](https://aiatlasgraph.com/t/imagetranslation.md)
- [Segmentacja na wskazanie (Segment Anything) (Promptable segmentation)](https://aiatlasgraph.com/t/promptseg.md)

## Sources

- [Qwen-Image Technical Report](<https://arxiv.org/abs/2508.02324>) `qwen-image-2025` · by Chenfei Wu, Jiahao Li, Jingren Zhou, Junyang Lin, Kaiyuan Gao, Kun Yan i in. (Qwen Team, Alibaba) · sponsored
- [InstructPix2Pix: Learning to Follow Image Editing Instructions](<https://arxiv.org/abs/2211.09800>) `instructpix2pix-2022` · by Tim Brooks, Aleksander Holynski, Alexei A. Efros
- [Inpainting (Diffusers docs)](<https://huggingface.co/docs/diffusers/using-diffusers/inpaint>) `hf-diffusers-inpaint` · by Hugging Face
- [Image-to-Image (Hugging Face Tasks)](<https://huggingface.co/tasks/image-to-image>) `hf-task-image-to-image` · by Hugging Face
- [FLUX.1 Kontext: Flow Matching for In-Context Image Generation and Editing in Latent Space](<https://arxiv.org/abs/2506.15742>) `flux-kontext-2025` · by Black Forest Labs (Stephen Batifol, Andreas Blattmann, … Robin Rombach, Axel Sauer, Luke Smith i in.) · sponsored
- [Step1X-Edit: A Practical Framework for General Image Editing](<https://arxiv.org/abs/2504.17761>) `step1x-edit-2025` · by Shiyu Liu, Yucheng Han, Peng Xing, … Gang Yu, Daxin Jiang (StepFun) · sponsored

---

AI Atlas revision 122 (2026-10-30) · HTML: https://aiatlasgraph.com/t/imageediting · index: https://aiatlasgraph.com/llms.txt · everything: https://aiatlasgraph.com/llms-full.txt · updated 2026-10-30
