Skip to content

Use GLIDE, a diffusion-based image generation model to edit the background of a scene or people.

License

Notifications You must be signed in to change notification settings

stephenllh/glide-background-edit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Background Edit with GLIDE + DeepLabv3

About The Project

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.


Results

Original On the beach Star Wars Effiel Tower

Getting Started

You can run the demo on Google Colab.

or

To get a local copy up and running, follow these simple example steps.

Prerequisites

  • PyTorch (version 1.10.0)

    Install using Anaconda:

    conda install pytorch=1.10.0 -c pytorch
  • CUDA (version 11)


Installation

  1. Install the official prebuilt GLIDE package.

    pip install -q git+https://github.com/openai/glide-text2im
  2. Clone the official GLIDE repo

    git clone https://github.com/openai/glide-text2im.git

License

Distributed under the MIT License. See LICENSE for more information.

Contact

Stephen Lau - Email - Twitter - Kaggle

About

Use GLIDE, a diffusion-based image generation model to edit the background of a scene or people.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published