Giter Site home page Giter Site logo

xl-inpainting's Introduction

Stable Diffusion XL Inpainting

Static Badge Stable Diffuison Stable Diffuison

Stable Diffusion XL Inpainting is an image inpainting tool based on the Stable Diffusion generative model, designed to fill in missing or corrupted parts of an image with realistic and high-quality content. This project leverages the power of deep learning to perform inpainting tasks and offers state-of-the-art results.

Make Sure to follow me:

Github BioLink

Table of Contents

Installation

You can Also Try on Google Colab for free. Open Notebook:

Colab

Before using Stable Diffusion XL Inpainting, you need to set up the required environment. You can do this by following these steps:

  1. Clone the repository:

    git clone https://github.com/ayush-thakur02/xl-inpainting.git
    cd xl-inpainting
  2. Install the necessary dependencies. It is recommended to use a virtual environment:

    python -m venv venv
    source venv/bin/activate  # On Windows, use 'venv\Scripts\activate'
    pip install -r requirements.txt

Usage

To use Stable Diffusion XL Inpainting, simply run the following command in your terminal:

python inpaint.py

This command will launch the application, and a Gradio link will appear, allowing you to interactively inpaint images using the Stable Diffusion generative model. Gradio provides an intuitive and user-friendly interface for selecting input images, specifying masks, and instantly generating inpainted results. It streamlines the inpainting process and makes it accessible to users with minimal technical expertise.

Results Sample

Below is an example of inpainting results achieved with Stable Diffusion XL Inpainting:

Input Image

Input Image

Output Image

Output Image (Inpainting Result)

Contribute

If you come across any errors or bugs, please don't hesitate to reach out via email, or feel free to create an issue ticket. Also, if you have any ideas or suggestions for enhancements, we'd love to hear from you. Your feedback and contributions are invaluable in improving this resource. Thank you for your collaboration in making this even better! ๐Ÿ˜Š

xl-inpainting's People

Contributors

ayush-thakur02 avatar

Stargazers

Sai Kumar Dwivedi avatar

Watchers

 avatar

xl-inpainting's Issues

error "source"

(system windwos)

i run a lot of github pyton so i know a little ;)

i cloned
and installed and all is downloaded

but this error occurs:
"
(venv) d:\stable-A1111-inpaint\xl-inpainting>python inpaint.py
Loading pipeline components...: 57%|โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–‹ | 4/7 [00:00<00:00, 10.95it/s]The config attributes {'decay': 0.9999, 'inv_gamma': 1.0, 'min_decay': 0.0, 'optimization_step': 37000, 'power': 0.6666666666666666, 'update_after_step': 0, 'use_ema_warmup': False} were passed to UNet2DConditionModel, but are not expected and will be ignored. Please verify your config.json configuration file.
Loading pipeline components...: 100%|โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆ| 7/7 [00:00<00:00, 9.51it/s]
Traceback (most recent call last):
File "d:\stable-A1111-inpaint\xl-inpainting\inpaint.py", line 75, in
image = gr.Image(source='upload', tool='sketch', elem_id="image_upload", type="pil", label="Upload",height=400)
File "d:\stable-A1111-inpaint\xl-inpainting\venv\lib\site-packages\gradio\component_meta.py", line 146, in wrapper
return fn(self, **kwargs)
TypeError: Image.init() got an unexpected keyword argument 'source'!
"

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.