Freak-ppa commited on
Commit
8d55e63
1 Parent(s): 422d177

Upload 4 files

Browse files
Files changed (4) hide show
  1. .env +4 -0
  2. object_remove_inpaint.json +314 -0
  3. outpaint.json +256 -0
  4. requirements.txt +119 -0
.env ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ URL=http://127.0.0.1:8188/prompt
2
+ OUTPUT_DIR=ComfyUI/output
3
+ INPUT_DIR=ComfyUI/output
4
+ COMF_PATH=ComfyUI/main.py
object_remove_inpaint.json ADDED
@@ -0,0 +1,314 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "12": {
3
+ "inputs": {
4
+ "images": [
5
+ "54",
6
+ 0
7
+ ]
8
+ },
9
+ "class_type": "PreviewImage",
10
+ "_meta": {
11
+ "title": "Preview Image"
12
+ }
13
+ },
14
+ "45": {
15
+ "inputs": {
16
+ "brushnet": "powerpaint\\diffusion_pytorch_model.safetensors",
17
+ "dtype": "float16"
18
+ },
19
+ "class_type": "BrushNetLoader",
20
+ "_meta": {
21
+ "title": "BrushNet Loader"
22
+ }
23
+ },
24
+ "47": {
25
+ "inputs": {
26
+ "ckpt_name": "realisticVisionV51_v51VAE.safetensors"
27
+ },
28
+ "class_type": "CheckpointLoaderSimple",
29
+ "_meta": {
30
+ "title": "Load Checkpoint"
31
+ }
32
+ },
33
+ "49": {
34
+ "inputs": {
35
+ "text": "nude girl wuth beauty breast, detailed, 8k",
36
+ "clip": [
37
+ "47",
38
+ 1
39
+ ]
40
+ },
41
+ "class_type": "CLIPTextEncode",
42
+ "_meta": {
43
+ "title": "CLIP Text Encode (Prompt)"
44
+ }
45
+ },
46
+ "50": {
47
+ "inputs": {
48
+ "text": "ugly",
49
+ "clip": [
50
+ "47",
51
+ 1
52
+ ]
53
+ },
54
+ "class_type": "CLIPTextEncode",
55
+ "_meta": {
56
+ "title": "CLIP Text Encode (Prompt)"
57
+ }
58
+ },
59
+ "52": {
60
+ "inputs": {
61
+ "seed": 2,
62
+ "steps": 20,
63
+ "cfg": 4,
64
+ "sampler_name": "euler",
65
+ "scheduler": "karras",
66
+ "denoise": 1,
67
+ "model": [
68
+ "65",
69
+ 0
70
+ ],
71
+ "positive": [
72
+ "65",
73
+ 1
74
+ ],
75
+ "negative": [
76
+ "65",
77
+ 2
78
+ ],
79
+ "latent_image": [
80
+ "65",
81
+ 3
82
+ ]
83
+ },
84
+ "class_type": "KSampler",
85
+ "_meta": {
86
+ "title": "KSampler"
87
+ }
88
+ },
89
+ "54": {
90
+ "inputs": {
91
+ "samples": [
92
+ "52",
93
+ 0
94
+ ],
95
+ "vae": [
96
+ "47",
97
+ 2
98
+ ]
99
+ },
100
+ "class_type": "VAEDecode",
101
+ "_meta": {
102
+ "title": "VAE Decode"
103
+ }
104
+ },
105
+ "58": {
106
+ "inputs": {
107
+ "image": "clipspace/clipspace-mask-63728.199999809265.png [input]",
108
+ "upload": "image"
109
+ },
110
+ "class_type": "LoadImage",
111
+ "_meta": {
112
+ "title": "Load Image"
113
+ }
114
+ },
115
+ "65": {
116
+ "inputs": {
117
+ "fitting": 0.30000000000000004,
118
+ "function": "object removal",
119
+ "scale": 1,
120
+ "start_at": 0,
121
+ "end_at": 10000,
122
+ "save_memory": "none",
123
+ "model": [
124
+ "47",
125
+ 0
126
+ ],
127
+ "vae": [
128
+ "47",
129
+ 2
130
+ ],
131
+ "image": [
132
+ "92",
133
+ 0
134
+ ],
135
+ "mask": [
136
+ "93",
137
+ 0
138
+ ],
139
+ "powerpaint": [
140
+ "45",
141
+ 0
142
+ ],
143
+ "clip": [
144
+ "66",
145
+ 0
146
+ ],
147
+ "positive": [
148
+ "96",
149
+ 0
150
+ ],
151
+ "negative": [
152
+ "50",
153
+ 0
154
+ ]
155
+ },
156
+ "class_type": "PowerPaint",
157
+ "_meta": {
158
+ "title": "PowerPaint"
159
+ }
160
+ },
161
+ "66": {
162
+ "inputs": {
163
+ "base": "model.fp16.safetensors",
164
+ "powerpaint": "powerpaint\\pytorch_model.bin"
165
+ },
166
+ "class_type": "PowerPaintCLIPLoader",
167
+ "_meta": {
168
+ "title": "PowerPaint CLIP Loader"
169
+ }
170
+ },
171
+ "79": {
172
+ "inputs": {
173
+ "kernel": 10,
174
+ "sigma": 10,
175
+ "inpaint": [
176
+ "54",
177
+ 0
178
+ ],
179
+ "original": [
180
+ "92",
181
+ 0
182
+ ],
183
+ "mask": [
184
+ "93",
185
+ 0
186
+ ]
187
+ },
188
+ "class_type": "BlendInpaint",
189
+ "_meta": {
190
+ "title": "Blend Inpaint"
191
+ }
192
+ },
193
+ "80": {
194
+ "inputs": {
195
+ "images": [
196
+ "79",
197
+ 0
198
+ ]
199
+ },
200
+ "class_type": "PreviewImage",
201
+ "_meta": {
202
+ "title": "Preview Image"
203
+ }
204
+ },
205
+ "81": {
206
+ "inputs": {
207
+ "mask": [
208
+ "92",
209
+ 1
210
+ ]
211
+ },
212
+ "class_type": "InvertMask",
213
+ "_meta": {
214
+ "title": "InvertMask"
215
+ }
216
+ },
217
+ "88": {
218
+ "inputs": {
219
+ "text": "empty scene ",
220
+ "clip": [
221
+ "47",
222
+ 1
223
+ ]
224
+ },
225
+ "class_type": "CLIPTextEncode",
226
+ "_meta": {
227
+ "title": "CLIP Text Encode (Prompt)"
228
+ }
229
+ },
230
+ "89": {
231
+ "inputs": {
232
+ "images": [
233
+ "92",
234
+ 0
235
+ ]
236
+ },
237
+ "class_type": "PreviewImage",
238
+ "_meta": {
239
+ "title": "Preview Image"
240
+ }
241
+ },
242
+ "92": {
243
+ "inputs": {
244
+ "action": "resize only",
245
+ "smaller_side": 0,
246
+ "larger_side": 1024,
247
+ "scale_factor": 0,
248
+ "resize_mode": "reduce size only",
249
+ "side_ratio": "4:3",
250
+ "crop_pad_position": 0.5,
251
+ "pad_feathering": 20,
252
+ "pixels": [
253
+ "58",
254
+ 0
255
+ ],
256
+ "mask_optional": [
257
+ "58",
258
+ 1
259
+ ]
260
+ },
261
+ "class_type": "ImageResize",
262
+ "_meta": {
263
+ "title": "Image Resize"
264
+ }
265
+ },
266
+ "93": {
267
+ "inputs": {
268
+ "expand": 3,
269
+ "tapered_corners": true,
270
+ "mask": [
271
+ "95",
272
+ 0
273
+ ]
274
+ },
275
+ "class_type": "GrowMask",
276
+ "_meta": {
277
+ "title": "GrowMask"
278
+ }
279
+ },
280
+ "95": {
281
+ "inputs": {
282
+ "DeTK": true,
283
+ "case1": [
284
+ "92",
285
+ 1
286
+ ],
287
+ "case2": [
288
+ "81",
289
+ 0
290
+ ]
291
+ },
292
+ "class_type": "NodeSwitch",
293
+ "_meta": {
294
+ "title": "NodeSwitch"
295
+ }
296
+ },
297
+ "96": {
298
+ "inputs": {
299
+ "DeTK": false,
300
+ "case1": [
301
+ "49",
302
+ 0
303
+ ],
304
+ "case2": [
305
+ "88",
306
+ 0
307
+ ]
308
+ },
309
+ "class_type": "NodeSwitch",
310
+ "_meta": {
311
+ "title": "NodeSwitch"
312
+ }
313
+ }
314
+ }
outpaint.json ADDED
@@ -0,0 +1,256 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "12": {
3
+ "inputs": {
4
+ "images": [
5
+ "54",
6
+ 0
7
+ ]
8
+ },
9
+ "class_type": "PreviewImage",
10
+ "_meta": {
11
+ "title": "Preview Image"
12
+ }
13
+ },
14
+ "45": {
15
+ "inputs": {
16
+ "brushnet": "powerpaint\\diffusion_pytorch_model.safetensors",
17
+ "dtype": "float16"
18
+ },
19
+ "class_type": "BrushNetLoader",
20
+ "_meta": {
21
+ "title": "BrushNet Loader"
22
+ }
23
+ },
24
+ "47": {
25
+ "inputs": {
26
+ "ckpt_name": "realisticVisionV51_v51VAE.safetensors"
27
+ },
28
+ "class_type": "CheckpointLoaderSimple",
29
+ "_meta": {
30
+ "title": "Load Checkpoint"
31
+ }
32
+ },
33
+ "49": {
34
+ "inputs": {
35
+ "text": "empty scene",
36
+ "clip": [
37
+ "47",
38
+ 1
39
+ ]
40
+ },
41
+ "class_type": "CLIPTextEncode",
42
+ "_meta": {
43
+ "title": "CLIP Text Encode (Prompt)"
44
+ }
45
+ },
46
+ "50": {
47
+ "inputs": {
48
+ "text": "",
49
+ "clip": [
50
+ "47",
51
+ 1
52
+ ]
53
+ },
54
+ "class_type": "CLIPTextEncode",
55
+ "_meta": {
56
+ "title": "CLIP Text Encode (Prompt)"
57
+ }
58
+ },
59
+ "52": {
60
+ "inputs": {
61
+ "seed": 2,
62
+ "steps": 20,
63
+ "cfg": 7.5,
64
+ "sampler_name": "euler",
65
+ "scheduler": "normal",
66
+ "denoise": 1,
67
+ "model": [
68
+ "65",
69
+ 0
70
+ ],
71
+ "positive": [
72
+ "65",
73
+ 1
74
+ ],
75
+ "negative": [
76
+ "65",
77
+ 2
78
+ ],
79
+ "latent_image": [
80
+ "65",
81
+ 3
82
+ ]
83
+ },
84
+ "class_type": "KSampler",
85
+ "_meta": {
86
+ "title": "KSampler"
87
+ }
88
+ },
89
+ "54": {
90
+ "inputs": {
91
+ "samples": [
92
+ "52",
93
+ 0
94
+ ],
95
+ "vae": [
96
+ "47",
97
+ 2
98
+ ]
99
+ },
100
+ "class_type": "VAEDecode",
101
+ "_meta": {
102
+ "title": "VAE Decode"
103
+ }
104
+ },
105
+ "58": {
106
+ "inputs": {
107
+ "image": "-CSFpIRYZcc.jpg",
108
+ "upload": "image"
109
+ },
110
+ "class_type": "LoadImage",
111
+ "_meta": {
112
+ "title": "Load Image"
113
+ }
114
+ },
115
+ "65": {
116
+ "inputs": {
117
+ "fitting": 1,
118
+ "function": "image outpainting",
119
+ "scale": 1,
120
+ "start_at": 0,
121
+ "end_at": 10000,
122
+ "save_memory": "none",
123
+ "model": [
124
+ "47",
125
+ 0
126
+ ],
127
+ "vae": [
128
+ "47",
129
+ 2
130
+ ],
131
+ "image": [
132
+ "70",
133
+ 0
134
+ ],
135
+ "mask": [
136
+ "70",
137
+ 1
138
+ ],
139
+ "powerpaint": [
140
+ "45",
141
+ 0
142
+ ],
143
+ "clip": [
144
+ "66",
145
+ 0
146
+ ],
147
+ "positive": [
148
+ "49",
149
+ 0
150
+ ],
151
+ "negative": [
152
+ "50",
153
+ 0
154
+ ]
155
+ },
156
+ "class_type": "PowerPaint",
157
+ "_meta": {
158
+ "title": "PowerPaint"
159
+ }
160
+ },
161
+ "66": {
162
+ "inputs": {
163
+ "base": "model.fp16.safetensors",
164
+ "powerpaint": "powerpaint\\pytorch_model.bin"
165
+ },
166
+ "class_type": "PowerPaintCLIPLoader",
167
+ "_meta": {
168
+ "title": "PowerPaint CLIP Loader"
169
+ }
170
+ },
171
+ "70": {
172
+ "inputs": {
173
+ "left": 200,
174
+ "top": 0,
175
+ "right": 200,
176
+ "bottom": 0,
177
+ "feathering": 0,
178
+ "image": [
179
+ "80",
180
+ 0
181
+ ]
182
+ },
183
+ "class_type": "ImagePadForOutpaint",
184
+ "_meta": {
185
+ "title": "Pad Image for Outpainting"
186
+ }
187
+ },
188
+ "80": {
189
+ "inputs": {
190
+ "action": "resize only",
191
+ "smaller_side": 0,
192
+ "larger_side": 1024,
193
+ "scale_factor": 0,
194
+ "resize_mode": "reduce size only",
195
+ "side_ratio": "4:3",
196
+ "crop_pad_position": 0.5,
197
+ "pad_feathering": 20,
198
+ "pixels": [
199
+ "58",
200
+ 0
201
+ ]
202
+ },
203
+ "class_type": "ImageResize",
204
+ "_meta": {
205
+ "title": "Image Resize"
206
+ }
207
+ },
208
+ "82": {
209
+ "inputs": {
210
+ "images": [
211
+ "83",
212
+ 0
213
+ ]
214
+ },
215
+ "class_type": "PreviewImage",
216
+ "_meta": {
217
+ "title": "Preview Image"
218
+ }
219
+ },
220
+ "83": {
221
+ "inputs": {
222
+ "kernel": 1,
223
+ "sigma": 1,
224
+ "inpaint": [
225
+ "54",
226
+ 0
227
+ ],
228
+ "original": [
229
+ "70",
230
+ 0
231
+ ],
232
+ "mask": [
233
+ "84",
234
+ 0
235
+ ]
236
+ },
237
+ "class_type": "BlendInpaint",
238
+ "_meta": {
239
+ "title": "Blend Inpaint"
240
+ }
241
+ },
242
+ "84": {
243
+ "inputs": {
244
+ "expand": 20,
245
+ "tapered_corners": true,
246
+ "mask": [
247
+ "70",
248
+ 1
249
+ ]
250
+ },
251
+ "class_type": "GrowMask",
252
+ "_meta": {
253
+ "title": "GrowMask"
254
+ }
255
+ }
256
+ }
requirements.txt ADDED
@@ -0,0 +1,119 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ absl-py==2.1.0
2
+ accelerate
3
+ aiofiles==23.2.1
4
+ aiohttp==3.9.5
5
+ aiosignal==1.3.1
6
+ altair==5.3.0
7
+ annotated-types==0.7.0
8
+ anyio==4.4.0
9
+ async-timeout==4.0.3
10
+ attrs==23.2.0
11
+ certifi==2024.6.2
12
+ cffi==1.16.0
13
+ charset-normalizer==3.3.2
14
+ click==8.1.7
15
+ colorama==0.4.6
16
+ contourpy==1.2.1
17
+ cycler==0.12.1
18
+ diffusers
19
+ dnspython==2.6.1
20
+ einops==0.8.0
21
+ email_validator==2.2.0
22
+ exceptiongroup==1.2.1
23
+ fastapi==0.111.0
24
+ fastapi-cli==0.0.4
25
+ ffmpy==0.3.2
26
+ filelock==3.15.4
27
+ fonttools==4.53.0
28
+ frozenlist==1.4.1
29
+ fsspec==2024.6.1
30
+ gevent==24.2.1
31
+ greenlet==3.0.3
32
+ h11==0.14.0
33
+ httpcore==1.0.5
34
+ httptools==0.6.1
35
+ httpx==0.27.0
36
+ huggingface-hub==0.23.4
37
+ idna==3.7
38
+ importlib_metadata==8.0.0
39
+ importlib_resources==6.4.0
40
+ intel-openmp==2021.4.0
41
+ Jinja2==3.1.4
42
+ jsonschema==4.22.0
43
+ jsonschema-specifications==2023.12.1
44
+ kiwisolver==1.4.5
45
+ kornia==0.7.3
46
+ kornia_rs==0.1.3
47
+ loguru==0.7.2
48
+ markdown-it-py==3.0.0
49
+ MarkupSafe==2.1.5
50
+ matplotlib==3.9.0
51
+ mdurl==0.1.2
52
+ mediapipe==0.10.9
53
+ mkl==2021.4.0
54
+ mpmath==1.3.0
55
+ multidict==6.0.5
56
+ networkx==3.3
57
+ numpy==1.26.4
58
+ opencv-contrib-python==4.9.0.80
59
+ orjson==3.10.5
60
+ packaging==24.1
61
+ pandas==2.2.2
62
+ peft==0.11.1
63
+ pillow==10.3.0
64
+ psutil==6.0.0
65
+ pycparser==2.22
66
+ pydantic==2.7.4
67
+ pydantic_core==2.18.4
68
+ pydub==0.25.1
69
+ Pygments==2.18.0
70
+ pyparsing==3.1.2
71
+ python-dateutil==2.9.0.post0
72
+ python-decouple==3.8
73
+ python-dotenv==1.0.1
74
+ python-multipart==0.0.9
75
+ pytz==2024.1
76
+ PyYAML==6.0.1
77
+ referencing==0.35.1
78
+ regex==2024.5.15
79
+ requests==2.32.3
80
+ rich==13.7.1
81
+ rpds-py==0.18.1
82
+ ruff==0.5.0
83
+ safetensors==0.4.3
84
+ scipy==1.14.0
85
+ semantic-version==2.10.0
86
+ shellingham==1.5.4
87
+ six==1.16.0
88
+ sniffio==1.3.1
89
+ sounddevice==0.4.6
90
+ soundfile==0.12.1
91
+ spandrel==0.3.4
92
+ starlette==0.37.2
93
+ sympy==1.12.1
94
+ tbb==2021.13.0
95
+ tokenizers==0.19.1
96
+ tomlkit==0.12.0
97
+ toolz==0.12.1
98
+ torch
99
+ torchaudio
100
+ torchsde
101
+ torchvision
102
+ tqdm==4.66.4
103
+ trampoline==0.1.2
104
+ transformers==4.42.3
105
+ typer==0.12.3
106
+ typing_extensions==4.12.2
107
+ tzdata==2024.1
108
+ ujson==5.10.0
109
+ urllib3==2.2.2
110
+ uvicorn==0.30.1
111
+ watchfiles==0.22.0
112
+ websocket==0.2.1
113
+ websocket-client==1.6.3
114
+ websockets==11.0.3
115
+ win32-setctime==1.1.0
116
+ yarl==1.9.4
117
+ zipp==3.19.2
118
+ zope.event==5.0
119
+ zope.interface==6.4.post2