2. the input image is encoded into latent space with DDIM
3. the latents are decoded with the diffusion model conditioned on the text query, using the mask as a guide such that pixels outside the mask remain the same as in the input image  
This guide will show you how to use DiffEdit to edit images without manually creating a mask.  
Before you begin, make sure you have the following libraries installed:  
```py
# uncomment to install the necessary libraries in Colab