1
1
# sd-webui-ddsd
2
- A script that searches for specific keywords, inpaints them, and then upscales them
2
+ 자동으로 동작하는 후보정 작업 확장.
3
3
4
4
## What is
5
5
### Upscale
6
- Upscaling an image by a specific factor. Utilizes a tiled approach to scale with less memory
6
+ 이미지를 특정 크기로 잘라내어 타일별 업스케일을 하는 도구. 업스케일시 VRAM을 적게 소모.
7
+ #### Upscale How to use
8
+ 1 . 크기를 키울때 사용할 upscaler 모델 선택
9
+ 2 . 크기를 키울 배수 선택
10
+ 3 . 가로, 세로를 내가 단일로 생성할 수 있는 이미지의 최대 크기로 선택(이미지 생성 속도를 최대한 빠르게 하기 위하여)
11
+ 4 . before running 체크
12
+ 1 . 체크시 업스케일을 먼저 돌려서 인페인팅의 퀄리티 상승. 단, 인페인팅시 더 많은 VRAM 요구
13
+ 5 . 생성!
7
14
### Detect Detailer
8
- Inpainting with additional prompts after mask search with specific keywords. Add counts separated by semicolons
15
+ 특정 키워드로 이미지를 탐색 후 인페인팅하는 도구.
9
16
#### Detect Detailer How to use
10
- 0 . Enable Inpaint Inner(or Outer) Mask Area(Use I2I Only)
11
- 1 . When using the inpaint inner option, the mask is created only inside the inpaint mask.
12
- 2 . When using the inpaint outer option, the mask is created only outside the inpaint mask.
13
- 1 . Input dino prompt
14
- 1 . Inpaint the dino prompt multiple times, separated by tabs.
15
- 2 . Additional options can be controlled.
16
- 3 . Each dino prompt can be calculated with AND, OR, XOR, NOR, and NAND gates.
17
- 1 . face OR (body NAND outfit) -> Create a body mask that does not overlap with the outfit. And composited with a face mask.
18
- 2 . Use parentheses sparingly. Parentheses operations consume more VRAM because they generate masks in advance.
19
- 4 . Option values of each dino prompt can be entered by separating them with colons.
17
+ 0 . 인페인팅의 범위 제한(I2I 전용)
18
+ 1 . Inner 옵션은 I2I의 인페인팅에서 칠한 범위 내부만 이미지를 탐색
19
+ 2 . Outer 옵션은 I2I의 인페인팅에서 칠한 범위 외부만 이미지를 탐색
20
+ 1 . 탐색 키워드 작성
21
+ 1 . 탐색할 키워드를 작성(face, person 등등)
22
+ 1 . 탐색할 키워드는 문장형도 가능(happy face, running dog)
23
+ 2 . 탐색할 키워드를 .으로 분할 가능(face. arm, face. chest)
24
+ 2 . 탐색할 키워드에 사용 가능한 추가 옵션 존재
25
+ 1 . < ; area: type > ; 을 이용하여 특정 범위 탐색 가능
26
+ 1 . 범위 종류는 left, right, top, bottom, all이 존재
27
+ 2 . < ; file: filename > ; 을 이용하여 특정 파일 탐색 가능
28
+ 1 . 특정 파일의 위치는 models/ddsdmask
29
+ 3 . < ; model: type > ; 을 이용하여 특정 모델 탐색 가능
30
+ 1 . type은 face_media_full, face_media_short와 파일명이 존재
31
+ 2 . 파일은 models/yolo에 위치
32
+ 4 . < ; type1:type2:dilation: confidence > ; 같이 type1과 type2외에 dilation과 confidence도 추가 입력 가능
33
+ 1 . confidence는 model 타입에서만 사용되는 값
34
+ 3 . 탐색한 범위를 AND, OR, XOR, NAND, NOR 등의 게이트 옵션으로 연산 가능
35
+ 1 . face OR (body NAND outfit) -> 괄호안의 body NAND outfit을 먼저 한 후에 face와 OR 연산을 동작
36
+ 2 . 괄호는 최대한 적게 이용. 많이 이용시 많은 VRAM 소모.
37
+ 3 . 동작은 왼쪽에서 오른쪽으로 순차적 동작.
38
+ 4 . 탐색할 키워드에 옵션으로 여러가지 옵션 조절 가능
20
39
1 . face:0:0.4:4 OR outfit:2:0.5:8
21
- 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).
22
- 3 . You can omit it if you wish. Replace with default value if omitted.
23
- 2 . Input positive prompt
24
- 1 . Inpaint the positive prompt multiple times, separated by semicolons.
25
- 3 . Input negative prompt
26
- 1 . Inpaint the negative prompt multiple times, separated by semicolons.
27
- 4 . Check the option to separate and inpaint the unconnected mask.
28
- 1 . When separating and inpainting, the number of inpaintings increases. But quality rises.
29
- 5 . Select a small area of pixels to remove from the inpainting area when inpainting by isolation.
30
- 6 . Generate!
40
+ 2 . 순서대로 탐색할 프롬프트, SAM 탐색 레벨(0-2), 민감도(0-1), 팽창값(0-512)을 가짐
41
+ 3 . 값을 생략하면 초기값으로 세팅
42
+ 2 . 긍정 프롬프트 입력
43
+ 1 . 인페인팅시 동작시킬 긍정 프롬프트 입력
44
+ 3 . 부정 프롬프트 입력
45
+ 1 . 인페인팅시 동작시킬 부정 프롬프트 입력
46
+ 4 . Denoising, CFG, Steps, Clip skip, Ckpt, Vae 수정
47
+ 1 . 인페인팅시 동작에 영향을 주는 옵션
48
+ 5 . Split Mask 옵션 체크
49
+ 1 . 체크시 마스크가 떨어져 있는것이 존재한다면 따로 인페인팅.
50
+ 1 . 따로 인페인팅시 퀄리티 상승. 하지만 더 많은 인페인팅을 요구하여 생성속도 하락.
51
+ 6 . Remove Area 옵션 체크
52
+ 1 . Split Mask 옵션이 Enable 되어야만 동작
53
+ 2 . 분할 인페인팅시 일정 크기 이하의 면적은 인페인팅에서 제외
54
+ 6 . 생성!
55
+ ### Postprocessing
56
+ 최종적으로 생성된 이미지에 가하는 후보정
57
+ #### Postprocessing How to use
58
+ 1 . 가하고자 하는 후보정을 선택
59
+ 2 . 생성!
60
+ ### Watermark
61
+ 이미지 생성 최종본에 자신의 증명을 기입하는 기능
62
+ #### Watermark How to use
63
+ 1 . 기입할 증명의 종류 선택(글자, 이미지)
64
+ 2 . 선택한 종류를 입력
65
+ 3 . 선택한 종류의 크기와 위치를 지정
66
+ 4 . Padding으로 해당 위치에서 얼만큼 떨어져 있을지 설정
67
+ 5 . Alpha로 얼만큼 투명할지 결정
68
+ 6 . 생성!
31
69
## Installation
32
- 1 . Download [ CUDA] ( https://developer.nvidia.com/cuda-toolkit-archive ) and [ cuDNN] ( https://developer.nvidia.com/rdp/cudnn-archive )
33
- 1 . You need current CUDA and cuDNN version
34
- 2 . This is [ CUDA 117] ( https://drive.google.com/file/d/1HRTOLTB44-pRcrwIw9lQak2OC2ohNle3/view?usp=share_link ) and [ cuDNN] ( https://drive.google.com/file/d/1QcgaxUra0WnCWrCLjsWp_QKw1PKcvqpj/view?usp=share_link )
35
- 3 . After installing CUDA, overwrite cuDNN in the folder where you installed CUDA
36
- 4 . Easy install support version. (torch == 1.13.1+cu117, torch==2.0.0+cu117 , torch==2.0.0+cu118)
37
- 2 . Install from the extensions tab with url ` https://github.com/NeoGraph-K/sd-webui-ddsd `
38
- 3 . Start Sd web UI
39
- 4 . It takes some time to install sam model and dino model
70
+ 1 . 다운로드 [ CUDA] ( https://developer.nvidia.com/cuda-toolkit-archive ) 와 [ cuDNN] ( https://developer.nvidia.com/rdp/cudnn-archive )
71
+ 1 . 자신이 가진 WebUI와 동일한 버전의 ` CUDA ` 와 ` cuDNN ` 버전으로 설치
72
+ 1 . 이것은 다운로드를 편하게 하기위한 구글링크. [ CUDA 117] ( https://drive.google.com/file/d/1HRTOLTB44-pRcrwIw9lQak2OC2ohNle3/view?usp=share_link ) 와 [ cuDNN] ( https://drive.google.com/file/d/1QcgaxUra0WnCWrCLjsWp_QKw1PKcvqpj/view?usp=share_link )
73
+ 2 . ` CUDA ` 설치 후 해당 폴더에 ` cuDNN ` 덮어쓰기
74
+ 3 . 일정 버전은 Easy Install을 지원. ` CUDA ` 와 ` cuDNN ` 불필요.
75
+ 1 . 지원버전 (torch == 1.13.1+cu117, torch==2.0.0+cu117 , torch==2.0.0+cu118)
76
+ 2 . 확장탭에서 설치 ` https://github.com/NeoGraph-K/sd-webui-ddsd ` 또는 다운로드 후 ` extension/ ` 에 풀어넣기
77
+ 3 . WebUI를 완전히 재시작
40
78
41
79
## Credits
42
80
@@ -51,3 +89,5 @@ IDEA-Research/[GroundingDINO](https://github.com/IDEA-Research/GroundingDINO)
51
89
IDEA-Research/[ Grounded-Segment-Anything] ( https://github.com/IDEA-Research/Grounded-Segment-Anything )
52
90
53
91
continue-revolution/[ sd-webui-segment-anything] ( https://github.com/continue-revolution/sd-webui-segment-anything )
92
+
93
+ Bing-su/[ adetailer] ( https://github.com/Bing-su/adetailer )
0 commit comments