Git Product home page Git Product logo

sd-webui-aaa's Introduction

SD Webui Add Anything Anywhere

This is an Extension for the Automatic1111 Webui, which automatically generates a mask for Inpainting, from the edges of the specified image.

But Why?

When you remove the background of a subject and place it on another image, the edge of the subject may still contain some blending artifacts or inconsistency. This can easily be sovlved by doing an Inpaint pass. However, manually drawing a mask around the edge can be a chore. Therefore, use this Extension to automatically generate one for you!

See also layerdiffusion for cleaner images with no background

Settings

Images

  • Background: Background to place the subject on
  • Foreground: The subject to place
    • Requires alpha channel (transparency)
  • Mask Thickness: The thickness of the generated mask
    • Adjust this based on the image resolution
  • Low/High Threshold: Parameters for the Canny edge detection
    • Default values should be fine for the most cases

Movements

  • X Offset: Move the subject horizontally
  • Y Offset: Move the subject vertically
  • Rotation: Rotate the subject
  • Scale: Scale the subject

Spamming this would generate a lot of images in the temporary Gradio directory. I recommend you to pre-place the subject instead of using these wacky sliders...

Example 1


1. A photo of a man


2. Remove background using rembg


3. A photo of a background


4. Place subject onto the background
Notice the grey outline around the subject


5. Generate a mask automatically
(Thickness = 10)


6. Inpaint!

Example 2


Place objects anywhere!

sd-webui-aaa's People

Contributors

haoming02 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

sd-webui-aaa's Issues

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.