This project involves the editing of the background of any image while preserving the foreground scene, object, or people. It combines the ability of the GLIDE model to perform image inpainting and an off-the-shelf image segmentation model like DeepLabv3.
Original | On the beach | Star Wars | Effiel Tower |
---|---|---|---|
You can run the demo on Google Colab.
or
To get a local copy up and running, follow these simple example steps.
-
PyTorch (version 1.10.0)
Install using Anaconda:
conda install pytorch=1.10.0 -c pytorch
-
CUDA (version 11)
-
Install the official prebuilt GLIDE package.
pip install -q git+https://github.com/openai/glide-text2im
-
Clone the official GLIDE repo
git clone https://github.com/openai/glide-text2im.git
Distributed under the MIT License. See LICENSE
for more information.