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*

72.6M runs

sczhou/codeformer

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

32.6M runs

rossjillian/controlnet

Control diffusion models

7.2M runs

cjwbw/rembg

Remove images background

5.3M runs

andreasjansson/stable-diffusion-inpainting

Inpainting using RunwayML's stable-diffusion-inpainting checkpoint

1.4M runs

orpatashnik/styleclip

Text-Driven Manipulation of StyleGAN Imagery

1.2M runs

timothybrooks/instruct-pix2pix

Edit images with human instructions

756.3K runs

pollinations/modnet

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

518.5K runs

arielreplicate/deoldify_​image

Add colours to old images

380.9K runs

logerzhu/ad-inpaint

Product advertising image generator

355.2K runs

alaradirik/t2i-adapter-sdxl-depth-midas

Modify images using depth maps

102.4K runs

naklecha/fashion-ai

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

59.6K runs

alaradirik/t2i-adapter-sdxl-lineart

Modify images using line art

47.4K runs

alaradirik/t2i-adapter-sdxl-openpose

Modify images using human pose

35.4K runs

storymy/take-off-eyeglasses

Remove eyeglasses and shadows from photo

22.3K runs

alaradirik/t2i-adapter-sdxl-canny

Modify images using canny edges

18K runs

sujaykhandekar/object-removal

Removes specified objects from image

13.5K runs

alaradirik/t2i-adapter-sdxl-sketch

Modify images using sketches

10.9K runs

lambdal/image-mixer

Image Mixer Stable Diffusion

8.3K 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.5K runs

adirik/masactrl-stable-diffusion-v1-4

Edit real or generated images

1.4K runs