# DesignEdit: Multi-Layered Latent Decomposition and Fusion for Unified & Accurate Image Editing > *Stable Diffusion XL 1.0* Implementation  ### [Project Page](https://design-edit.github.io/) [Paper](https://arxiv.org/abs/2403.14487) [Hugging Face Demo](https://huggingface.co/spaces/YuhuiYuan/DesignEdit) ## ✨ News ✨ - [2024/4/4] We have supported the Gradio Application on Hugging Face 🤗, encouraging you to design online without the need for local deployment. - [2024/3/28] We release the code for DesignEdit! Let's design together! 😍 ## Setup The required Python version is 3.10.12. , and the [Pytorch](https://pytorch.org/) version is 2.0.1. The code's framework is built on [Prompt-to-prompt](https://github.com/google/prompt-to-prompt/) and [Stable Diffusion](https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0). Additional required packages are listed in the requirements file. ```bash conda create -n DesignEdit python=3.10.12 conda activate DesignEdit pip install -r requirements.txt ``` Notice that our model is entirely **training-free**💪!!! The base model is the Stable Diffusion XL-1.0. ## Demo We have created an interactive interface using Gradio, as shown below. You only need to simply run the following command in the environment we previously set up: ```bash python design_app.py ```  ### 🖱️Usage - We have 5 function pages for different editing operations. 💡**Object Removal** 💡**Zooming Out** 💡**Camera Panning** 💡**Object Moving, Resizing and Flipping** 💡**Multi-Layered Editing** - You can follow the "Usage" instructions within each page.  - For each page, we also provide some interesting examples for you to try.  - Notice that the **Multi-Layered Editing** page, which uses a multi-layered representation for multiple editing tasks, can achieve the same results as those of Object Removal and Object Moving, Resizing, and Flipping in a general representation. - Moreover, we have added the "Mask Preparation" page for you to utilize SAM or sketching to combine several masks together. This may be useful when you are on the **Multi-Layered Editing** page.  ## More Details If you are interested in exploring more details about the model implementation, we recommend checking out [`model.py`](design_copy/src/demo/model.py). Pay special attention to the `register_attention_control()` function and the `LayerFusion` class. ## Applications For more applications, we kindly invite you to explore our [project page](https://design-edit.github.io/) and refer to our [paper](https://arxiv.org/abs/2403.14487). ### 💡Object Removal You can choose more than one object to remove on the **Object Removal** page, and it is also possible to mask irregular regions for removal.