Skip to content

portu-sim/sd-webui-ddsd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sd-webui-ddsd

A script that searches for specific keywords, inpaints them, and then upscales them

What is

Upscale

Upscaling an image by a specific factor. Utilizes a tiled approach to scale with less memory

Detect Detailer

Inpainting with additional prompts after mask search with specific keywords. Add counts separated by semicolons

Detect Detailer How to use

  1. Enable Inpaint Inner(or Outer) Mask Area(Use I2I Only)
    1. When using the inpaint inner option, the mask is created only inside the inpaint mask.
    2. When using the inpaint outer option, the mask is created only outside the inpaint mask.
  2. Input dino prompt
    1. Inpaint the dino prompt multiple times, separated by tabs.
    2. Additional options can be controlled.
    3. Each dino prompt can be calculated with AND, OR, XOR, NOR, and NAND gates.
      1. face OR (body NAND outfit) -> Create a body mask that does not overlap with the outfit. And composited with a face mask.
      2. Use parentheses sparingly. Parentheses operations consume more VRAM because they generate masks in advance.
    4. Option values ​​of each dino prompt can be entered by separating them with colons.
      1. face:0:0.4:4 OR outfit:2:0.5:8
      2. Each option, in order, is prompt, detection level (0-2:default 0), box threshold (0-1:default 0.3), and dilation value (0-128:default 8).
      3. You can omit it if you wish. Replace with default value if omitted.
  3. Input positive prompt
    1. Inpaint the positive prompt multiple times, separated by semicolons.
  4. Input negative prompt
    1. Inpaint the negative prompt multiple times, separated by semicolons.
  5. Check the option to separate and inpaint the unconnected mask.
    1. When separating and inpainting, the number of inpaintings increases. But quality rises.
  6. Select a small area of ​​pixels to remove from the inpainting area when inpainting by isolation.
  7. Generate!

Installation

  1. Download CUDA and cuDNN
    1. You need current CUDA and cuDNN version
    2. This is CUDA 117 and cuDNN
    3. After installing CUDA, overwrite cuDNN in the folder where you installed CUDA
    4. Easy install support version. (torch == 1.13.1+cu117, torch==2.0.0+cu117 , torch==2.0.0+cu118)
  2. Install from the extensions tab with url https://github.com/NeoGraph-K/sd-webui-ddsd
  3. Start Sd web UI
  4. It takes some time to install sam model and dino model

Credits

dustysys/ddetailer

AUTOMATIC1111/stable-diffusion-webui

facebookresearch/Segment Anything

IDEA-Research/GroundingDINO

IDEA-Research/Grounded-Segment-Anything

continue-revolution/sd-webui-segment-anything

About

ddetailer + sd-upscaler script

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%