easy_image_inpainting icon indicating copy to clipboard operation
easy_image_inpainting copied to clipboard

Generative AI based image editing/inpainting made super easy to work with.

Easy Image Inpainting

In this repository, we provide a simple interface for editing images using the Generative AI(Grounding Dino & Glide-Diffusion). Try it in Colab: Open In Colab

We have several sections for an image to be modified:

Object Selection:

In this section, we choose the object we want to edit. To do this we use Grounding Dino model. A sample: Input Image:

Text for object selection: Hen Output Image:

TODO List:

  • [x] Add Grounding Dino model

Image Inpainting:

In this section, we replace the selected objects with generated images. A sample:

Text for object generation: Dead leaves

As you can see, the hen is replaced with dead leaves.

Output Image:

TODO List:

  • [x] Add GLIDE model

References:

  1. https://github.com/IDEA-Research/GroundingDINO
  2. https://github.com/openai/glide-text2im
  3. https://github.com/pooya-mohammadi/deep_utils