Collections

Edit images

These models allow editing and manipulating images in various ways. Key capabilities include:

  • Inpainting & object removal - Remove objects or fill in missing image regions. Useful for removing unwanted elements from photos.
  • Background removal - Delete and replace image backgrounds. Isolate subjects onto transparent or alternate backgrounds.
  • Guided editing - Make targeted edits to images by adding guiding information like depth maps, sketches, edge detection, human poses, or text prompts. Allows fine-grained creative control.

Note: For face restoration and photo colorization, see our Upscale Images collection.

Our Picks

Best Inpainting Model: logerzhu/ad-inpaint

For removing objects and filling in missing regions of an image, we recommend starting with logerzhu/ad-inpaint. It delivers great results and runs faster than alternatives like instruct-pix2pix.

Best Background Removal: pollinations/modnet

To isolate a subject and replace the background of an image, pollinations/modnet is the clear choice. It’s optimized for this specific task and widely used.

Best Guided Editing: alaradirik/t2i-adapter-sdxl-depth-midas and other t2i-adapter models

For the most control over editing an image, try the alaradirik/t2i-adapter-sdxl-depth-midas model. It lets you modify an image using an automatically generated depth map.

The other models in the t2i-adapter-sdxl-* series are also great for guided editing using different types of inputs:

Promising New Approaches

For even more advanced guided editing, two newer models are worth exploring:

adirik/masactrl-sdxl allows you to edit specific regions of an image using text prompts. It provides fine-grained control for local edits.

adirik/stylemc is a unique model that generates new images in the style of an input image based on a text prompt. While not a traditional editing model, it enables creative exploration.

Recommended models

tencentarc/gfpgan

Practical face restoration algorithm for *old photos* or *AI-generated faces*

71.7M runs

sczhou/codeformer

Robust face restoration algorithm for old photos / AI-generated faces

32.4M runs

rossjillian/controlnet

Control diffusion models

7.2M runs

cjwbw/rembg

Remove images background

5.1M runs

orpatashnik/styleclip

Text-Driven Manipulation of StyleGAN Imagery

1.1M runs

andreasjansson/stable-diffusion-inpainting

Inpainting using RunwayML's stable-diffusion-inpainting checkpoint

1.1M runs

timothybrooks/instruct-pix2pix

Edit images with human instructions

747.3K runs

pollinations/modnet

A deep learning approach to remove background & adding new background image

517.4K runs

logerzhu/ad-inpaint

Product advertising image generator

347.8K runs

arielreplicate/deoldify_​image

Add colours to old images

315.3K runs

alaradirik/t2i-adapter-sdxl-depth-midas

Modify images using depth maps

86.4K runs

naklecha/fashion-ai

This model can edit clothing found within an image, using a state of the art clothing segmentation algorithm.

59K runs

alaradirik/t2i-adapter-sdxl-lineart

Modify images using line art

47K runs

alaradirik/t2i-adapter-sdxl-openpose

Modify images using human pose

24.5K runs

storymy/take-off-eyeglasses

Remove eyeglasses and shadows from photo

21.3K runs

alaradirik/t2i-adapter-sdxl-canny

Modify images using canny edges

16.3K runs

sujaykhandekar/object-removal

Removes specified objects from image

13.2K runs

alaradirik/t2i-adapter-sdxl-sketch

Modify images using sketches

10.7K runs

lambdal/image-mixer

Image Mixer Stable Diffusion

8K runs

daanelson/plug_​and_​play_​image_​translation

Edit an image using features from diffusion models

6K runs

cjwbw/pix2pix-zero

Zero-shot Image-to-Image Translation

5.7K runs

cjwbw/repaint

Inpainting using Denoising Diffusion Probabilistic Models

3.6K runs

adirik/kosmos-g

Kosmos-G: Generating Images in Context with Multimodal Large Language Models

3.4K runs

adirik/masactrl-sdxl

Editable image generation with MasaCtrl-SDXL

3K runs

adirik/stylemc

Text-guided image generation and editing

1.3K runs

adirik/masactrl-stable-diffusion-v1-4

Edit real or generated images

1.2K runs