Spaces:
Runtime error
Runtime error
A newer version of the Gradio SDK is available:
5.6.0
metadata
title: Edit Image
emoji: 💻
colorFrom: purple
colorTo: purple
sdk: gradio
sdk_version: 4.26.0
app_file: app.py
pinned: false
license: apache-2.0
Background_editor
#Setting up locally:
- git clone the repo and cd into the directory
cd Edit_image
- install the dependencies using
pip install -r requirements.txt
- run the app file using
gradio app.py
Approach:
Reference: 'https://huggingface.co/docs/diffusers/en/using-diffusers/inpaint'
Model used: runwayml/stable-diffusion-inpainting
- Loading the required image
- Creating a binary mask for the image
- Invert the mask created
- Convert the mask into an image to be passes into the model pipline
- Pass the inverted mask image into the pipeline along with the prompt
Collab Notebook link (easier and also can use gpu for faster compute)
Hosted on hugging face (https://huggingface.co/spaces/sharmaarush/Edit_image
) this might take time because running on cpu