Ffgsd commited on
Commit
24e0815
ยท
verified ยท
1 Parent(s): bae6b19

Upload 327 files

Browse files
This view is limited to 50 files because it contains too many changes. ย  See raw diff
Files changed (50) hide show
  1. .gitattributes +5 -0
  2. zavodik/nodes/ComfyUI-Impact-Pack/.github/workflows/publish.yml +25 -0
  3. zavodik/nodes/ComfyUI-Impact-Pack/.gitignore +12 -0
  4. zavodik/nodes/ComfyUI-Impact-Pack/.gitmodules +3 -0
  5. zavodik/nodes/ComfyUI-Impact-Pack/LICENSE.txt +674 -0
  6. zavodik/nodes/ComfyUI-Impact-Pack/README.md +519 -0
  7. zavodik/nodes/ComfyUI-Impact-Pack/__init__.py +456 -0
  8. zavodik/nodes/ComfyUI-Impact-Pack/__pycache__/__init__.cpython-313.pyc +0 -0
  9. zavodik/nodes/ComfyUI-Impact-Pack/custom_wildcards/put_wildcards_here +0 -0
  10. zavodik/nodes/ComfyUI-Impact-Pack/docs/wildcards/README.md +39 -0
  11. zavodik/nodes/ComfyUI-Impact-Pack/docs/wildcards/SUMMARY.md +151 -0
  12. zavodik/nodes/ComfyUI-Impact-Pack/docs/wildcards/WILDCARD_SYSTEM_DESIGN.md +817 -0
  13. zavodik/nodes/ComfyUI-Impact-Pack/docs/wildcards/WILDCARD_SYSTEM_PRD.md +435 -0
  14. zavodik/nodes/ComfyUI-Impact-Pack/docs/wildcards/WILDCARD_TESTING_GUIDE.md +381 -0
  15. zavodik/nodes/ComfyUI-Impact-Pack/example_workflows/1-FaceDetailer.jpg +3 -0
  16. zavodik/nodes/ComfyUI-Impact-Pack/example_workflows/1-FaceDetailer.json +1269 -0
  17. zavodik/nodes/ComfyUI-Impact-Pack/example_workflows/2-MaskDetailer.jpg +3 -0
  18. zavodik/nodes/ComfyUI-Impact-Pack/example_workflows/2-MaskDetailer.json +596 -0
  19. zavodik/nodes/ComfyUI-Impact-Pack/example_workflows/3-SEGSDetailer.jpg +3 -0
  20. zavodik/nodes/ComfyUI-Impact-Pack/example_workflows/3-SEGSDetailer.json +1056 -0
  21. zavodik/nodes/ComfyUI-Impact-Pack/example_workflows/4-MakeTileSEGS-Upscale.jpg +3 -0
  22. zavodik/nodes/ComfyUI-Impact-Pack/example_workflows/4-MakeTileSEGS-Upscale.json +1627 -0
  23. zavodik/nodes/ComfyUI-Impact-Pack/example_workflows/5-PreviewDetailerHookProvider.jpg +3 -0
  24. zavodik/nodes/ComfyUI-Impact-Pack/example_workflows/5-PreviewDetailerHookProvider.json +1629 -0
  25. zavodik/nodes/ComfyUI-Impact-Pack/example_workflows/5-prompt-per-tile.jpg +3 -0
  26. zavodik/nodes/ComfyUI-Impact-Pack/example_workflows/5-prompt-per-tile.json +1290 -0
  27. zavodik/nodes/ComfyUI-Impact-Pack/example_workflows/6-DetailerWildcard.jpg +3 -0
  28. zavodik/nodes/ComfyUI-Impact-Pack/example_workflows/6-DetailerWildcard.json +1084 -0
  29. zavodik/nodes/ComfyUI-Impact-Pack/impact-pack.ini +7 -0
  30. zavodik/nodes/ComfyUI-Impact-Pack/install.py +116 -0
  31. zavodik/nodes/ComfyUI-Impact-Pack/js/common.js +281 -0
  32. zavodik/nodes/ComfyUI-Impact-Pack/js/impact-image-util.js +229 -0
  33. zavodik/nodes/ComfyUI-Impact-Pack/js/impact-pack.js +988 -0
  34. zavodik/nodes/ComfyUI-Impact-Pack/js/impact-sam-editor.js +641 -0
  35. zavodik/nodes/ComfyUI-Impact-Pack/js/impact-segs-picker.js +182 -0
  36. zavodik/nodes/ComfyUI-Impact-Pack/js/mask-rect-area-advanced.js +459 -0
  37. zavodik/nodes/ComfyUI-Impact-Pack/js/mask-rect-area.js +494 -0
  38. zavodik/nodes/ComfyUI-Impact-Pack/latent.png +3 -0
  39. zavodik/nodes/ComfyUI-Impact-Pack/locales/ko/nodeDefs.json +1241 -0
  40. zavodik/nodes/ComfyUI-Impact-Pack/modules/impact/__pycache__/animatediff_nodes.cpython-313.pyc +0 -0
  41. zavodik/nodes/ComfyUI-Impact-Pack/modules/impact/__pycache__/bridge_nodes.cpython-313.pyc +0 -0
  42. zavodik/nodes/ComfyUI-Impact-Pack/modules/impact/__pycache__/config.cpython-313.pyc +0 -0
  43. zavodik/nodes/ComfyUI-Impact-Pack/modules/impact/__pycache__/core.cpython-313.pyc +3 -0
  44. zavodik/nodes/ComfyUI-Impact-Pack/modules/impact/__pycache__/defs.cpython-313.pyc +0 -0
  45. zavodik/nodes/ComfyUI-Impact-Pack/modules/impact/__pycache__/detectors.cpython-313.pyc +0 -0
  46. zavodik/nodes/ComfyUI-Impact-Pack/modules/impact/__pycache__/hf_nodes.cpython-313.pyc +0 -0
  47. zavodik/nodes/ComfyUI-Impact-Pack/modules/impact/__pycache__/hook_nodes.cpython-313.pyc +0 -0
  48. zavodik/nodes/ComfyUI-Impact-Pack/modules/impact/__pycache__/hooks.cpython-313.pyc +0 -0
  49. zavodik/nodes/ComfyUI-Impact-Pack/modules/impact/__pycache__/impact_pack.cpython-313.pyc +3 -0
  50. zavodik/nodes/ComfyUI-Impact-Pack/modules/impact/__pycache__/impact_sampling.cpython-313.pyc +0 -0
.gitattributes CHANGED
@@ -53,3 +53,8 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
53
  *.jpg filter=lfs diff=lfs merge=lfs -text
54
  *.jpeg filter=lfs diff=lfs merge=lfs -text
55
  *.webp filter=lfs diff=lfs merge=lfs -text
 
 
 
 
 
 
53
  *.jpg filter=lfs diff=lfs merge=lfs -text
54
  *.jpeg filter=lfs diff=lfs merge=lfs -text
55
  *.webp filter=lfs diff=lfs merge=lfs -text
56
+ zavodik/nodes/ComfyUI_tinyterraNodes-main/arial.ttf filter=lfs diff=lfs merge=lfs -text
57
+ zavodik/nodes/ComfyUI_tinyterraNodes/arial.ttf filter=lfs diff=lfs merge=lfs -text
58
+ zavodik/nodes/ComfyUI_tinyterraNodes/ttNpy/__pycache__/tinyterraNodes.cpython-313.pyc filter=lfs diff=lfs merge=lfs -text
59
+ zavodik/nodes/ComfyUI-Impact-Pack/modules/impact/__pycache__/core.cpython-313.pyc filter=lfs diff=lfs merge=lfs -text
60
+ zavodik/nodes/ComfyUI-Impact-Pack/modules/impact/__pycache__/impact_pack.cpython-313.pyc filter=lfs diff=lfs merge=lfs -text
zavodik/nodes/ComfyUI-Impact-Pack/.github/workflows/publish.yml ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: Publish to Comfy registry
2
+ on:
3
+ workflow_dispatch:
4
+ push:
5
+ branches:
6
+ - main
7
+ paths:
8
+ - "pyproject.toml"
9
+
10
+ permissions:
11
+ issues: write
12
+
13
+ jobs:
14
+ publish-node:
15
+ name: Publish Custom Node to registry
16
+ runs-on: ubuntu-latest
17
+ if: ${{ github.repository_owner == 'ltdrdata' }}
18
+ steps:
19
+ - name: Check out code
20
+ uses: actions/checkout@v4
21
+ - name: Publish Custom Node
22
+ uses: Comfy-Org/publish-node-action@v1
23
+ with:
24
+ ## Add your own personal access token to your Github Repository secrets and reference it here.
25
+ personal_access_token: ${{ secrets.REGISTRY_ACCESS_TOKEN }}
zavodik/nodes/ComfyUI-Impact-Pack/.gitignore ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ __pycache__
2
+ *.ini
3
+ wildcards/**
4
+ .vscode/
5
+ .idea/
6
+ subpack
7
+ impact_subpack
8
+ *.txt
9
+ *.yaml
10
+ !requirements.txt
11
+ !LICENSE.txt
12
+ .claude/
zavodik/nodes/ComfyUI-Impact-Pack/.gitmodules ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ [submodule "subpack"]
2
+ path = subpack
3
+ url = https://github.com/ltdrdata/ComfyUI-Impact-Subpack
zavodik/nodes/ComfyUI-Impact-Pack/LICENSE.txt ADDED
@@ -0,0 +1,674 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ GNU GENERAL PUBLIC LICENSE
2
+ Version 3, 29 June 2007
3
+
4
+ Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
5
+ Everyone is permitted to copy and distribute verbatim copies
6
+ of this license document, but changing it is not allowed.
7
+
8
+ Preamble
9
+
10
+ The GNU General Public License is a free, copyleft license for
11
+ software and other kinds of works.
12
+
13
+ The licenses for most software and other practical works are designed
14
+ to take away your freedom to share and change the works. By contrast,
15
+ the GNU General Public License is intended to guarantee your freedom to
16
+ share and change all versions of a program--to make sure it remains free
17
+ software for all its users. We, the Free Software Foundation, use the
18
+ GNU General Public License for most of our software; it applies also to
19
+ any other work released this way by its authors. You can apply it to
20
+ your programs, too.
21
+
22
+ When we speak of free software, we are referring to freedom, not
23
+ price. Our General Public Licenses are designed to make sure that you
24
+ have the freedom to distribute copies of free software (and charge for
25
+ them if you wish), that you receive source code or can get it if you
26
+ want it, that you can change the software or use pieces of it in new
27
+ free programs, and that you know you can do these things.
28
+
29
+ To protect your rights, we need to prevent others from denying you
30
+ these rights or asking you to surrender the rights. Therefore, you have
31
+ certain responsibilities if you distribute copies of the software, or if
32
+ you modify it: responsibilities to respect the freedom of others.
33
+
34
+ For example, if you distribute copies of such a program, whether
35
+ gratis or for a fee, you must pass on to the recipients the same
36
+ freedoms that you received. You must make sure that they, too, receive
37
+ or can get the source code. And you must show them these terms so they
38
+ know their rights.
39
+
40
+ Developers that use the GNU GPL protect your rights with two steps:
41
+ (1) assert copyright on the software, and (2) offer you this License
42
+ giving you legal permission to copy, distribute and/or modify it.
43
+
44
+ For the developers' and authors' protection, the GPL clearly explains
45
+ that there is no warranty for this free software. For both users' and
46
+ authors' sake, the GPL requires that modified versions be marked as
47
+ changed, so that their problems will not be attributed erroneously to
48
+ authors of previous versions.
49
+
50
+ Some devices are designed to deny users access to install or run
51
+ modified versions of the software inside them, although the manufacturer
52
+ can do so. This is fundamentally incompatible with the aim of
53
+ protecting users' freedom to change the software. The systematic
54
+ pattern of such abuse occurs in the area of products for individuals to
55
+ use, which is precisely where it is most unacceptable. Therefore, we
56
+ have designed this version of the GPL to prohibit the practice for those
57
+ products. If such problems arise substantially in other domains, we
58
+ stand ready to extend this provision to those domains in future versions
59
+ of the GPL, as needed to protect the freedom of users.
60
+
61
+ Finally, every program is threatened constantly by software patents.
62
+ States should not allow patents to restrict development and use of
63
+ software on general-purpose computers, but in those that do, we wish to
64
+ avoid the special danger that patents applied to a free program could
65
+ make it effectively proprietary. To prevent this, the GPL assures that
66
+ patents cannot be used to render the program non-free.
67
+
68
+ The precise terms and conditions for copying, distribution and
69
+ modification follow.
70
+
71
+ TERMS AND CONDITIONS
72
+
73
+ 0. Definitions.
74
+
75
+ "This License" refers to version 3 of the GNU General Public License.
76
+
77
+ "Copyright" also means copyright-like laws that apply to other kinds of
78
+ works, such as semiconductor masks.
79
+
80
+ "The Program" refers to any copyrightable work licensed under this
81
+ License. Each licensee is addressed as "you". "Licensees" and
82
+ "recipients" may be individuals or organizations.
83
+
84
+ To "modify" a work means to copy from or adapt all or part of the work
85
+ in a fashion requiring copyright permission, other than the making of an
86
+ exact copy. The resulting work is called a "modified version" of the
87
+ earlier work or a work "based on" the earlier work.
88
+
89
+ A "covered work" means either the unmodified Program or a work based
90
+ on the Program.
91
+
92
+ To "propagate" a work means to do anything with it that, without
93
+ permission, would make you directly or secondarily liable for
94
+ infringement under applicable copyright law, except executing it on a
95
+ computer or modifying a private copy. Propagation includes copying,
96
+ distribution (with or without modification), making available to the
97
+ public, and in some countries other activities as well.
98
+
99
+ To "convey" a work means any kind of propagation that enables other
100
+ parties to make or receive copies. Mere interaction with a user through
101
+ a computer network, with no transfer of a copy, is not conveying.
102
+
103
+ An interactive user interface displays "Appropriate Legal Notices"
104
+ to the extent that it includes a convenient and prominently visible
105
+ feature that (1) displays an appropriate copyright notice, and (2)
106
+ tells the user that there is no warranty for the work (except to the
107
+ extent that warranties are provided), that licensees may convey the
108
+ work under this License, and how to view a copy of this License. If
109
+ the interface presents a list of user commands or options, such as a
110
+ menu, a prominent item in the list meets this criterion.
111
+
112
+ 1. Source Code.
113
+
114
+ The "source code" for a work means the preferred form of the work
115
+ for making modifications to it. "Object code" means any non-source
116
+ form of a work.
117
+
118
+ A "Standard Interface" means an interface that either is an official
119
+ standard defined by a recognized standards body, or, in the case of
120
+ interfaces specified for a particular programming language, one that
121
+ is widely used among developers working in that language.
122
+
123
+ The "System Libraries" of an executable work include anything, other
124
+ than the work as a whole, that (a) is included in the normal form of
125
+ packaging a Major Component, but which is not part of that Major
126
+ Component, and (b) serves only to enable use of the work with that
127
+ Major Component, or to implement a Standard Interface for which an
128
+ implementation is available to the public in source code form. A
129
+ "Major Component", in this context, means a major essential component
130
+ (kernel, window system, and so on) of the specific operating system
131
+ (if any) on which the executable work runs, or a compiler used to
132
+ produce the work, or an object code interpreter used to run it.
133
+
134
+ The "Corresponding Source" for a work in object code form means all
135
+ the source code needed to generate, install, and (for an executable
136
+ work) run the object code and to modify the work, including scripts to
137
+ control those activities. However, it does not include the work's
138
+ System Libraries, or general-purpose tools or generally available free
139
+ programs which are used unmodified in performing those activities but
140
+ which are not part of the work. For example, Corresponding Source
141
+ includes interface definition files associated with source files for
142
+ the work, and the source code for shared libraries and dynamically
143
+ linked subprograms that the work is specifically designed to require,
144
+ such as by intimate data communication or control flow between those
145
+ subprograms and other parts of the work.
146
+
147
+ The Corresponding Source need not include anything that users
148
+ can regenerate automatically from other parts of the Corresponding
149
+ Source.
150
+
151
+ The Corresponding Source for a work in source code form is that
152
+ same work.
153
+
154
+ 2. Basic Permissions.
155
+
156
+ All rights granted under this License are granted for the term of
157
+ copyright on the Program, and are irrevocable provided the stated
158
+ conditions are met. This License explicitly affirms your unlimited
159
+ permission to run the unmodified Program. The output from running a
160
+ covered work is covered by this License only if the output, given its
161
+ content, constitutes a covered work. This License acknowledges your
162
+ rights of fair use or other equivalent, as provided by copyright law.
163
+
164
+ You may make, run and propagate covered works that you do not
165
+ convey, without conditions so long as your license otherwise remains
166
+ in force. You may convey covered works to others for the sole purpose
167
+ of having them make modifications exclusively for you, or provide you
168
+ with facilities for running those works, provided that you comply with
169
+ the terms of this License in conveying all material for which you do
170
+ not control copyright. Those thus making or running the covered works
171
+ for you must do so exclusively on your behalf, under your direction
172
+ and control, on terms that prohibit them from making any copies of
173
+ your copyrighted material outside their relationship with you.
174
+
175
+ Conveying under any other circumstances is permitted solely under
176
+ the conditions stated below. Sublicensing is not allowed; section 10
177
+ makes it unnecessary.
178
+
179
+ 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
180
+
181
+ No covered work shall be deemed part of an effective technological
182
+ measure under any applicable law fulfilling obligations under article
183
+ 11 of the WIPO copyright treaty adopted on 20 December 1996, or
184
+ similar laws prohibiting or restricting circumvention of such
185
+ measures.
186
+
187
+ When you convey a covered work, you waive any legal power to forbid
188
+ circumvention of technological measures to the extent such circumvention
189
+ is effected by exercising rights under this License with respect to
190
+ the covered work, and you disclaim any intention to limit operation or
191
+ modification of the work as a means of enforcing, against the work's
192
+ users, your or third parties' legal rights to forbid circumvention of
193
+ technological measures.
194
+
195
+ 4. Conveying Verbatim Copies.
196
+
197
+ You may convey verbatim copies of the Program's source code as you
198
+ receive it, in any medium, provided that you conspicuously and
199
+ appropriately publish on each copy an appropriate copyright notice;
200
+ keep intact all notices stating that this License and any
201
+ non-permissive terms added in accord with section 7 apply to the code;
202
+ keep intact all notices of the absence of any warranty; and give all
203
+ recipients a copy of this License along with the Program.
204
+
205
+ You may charge any price or no price for each copy that you convey,
206
+ and you may offer support or warranty protection for a fee.
207
+
208
+ 5. Conveying Modified Source Versions.
209
+
210
+ You may convey a work based on the Program, or the modifications to
211
+ produce it from the Program, in the form of source code under the
212
+ terms of section 4, provided that you also meet all of these conditions:
213
+
214
+ a) The work must carry prominent notices stating that you modified
215
+ it, and giving a relevant date.
216
+
217
+ b) The work must carry prominent notices stating that it is
218
+ released under this License and any conditions added under section
219
+ 7. This requirement modifies the requirement in section 4 to
220
+ "keep intact all notices".
221
+
222
+ c) You must license the entire work, as a whole, under this
223
+ License to anyone who comes into possession of a copy. This
224
+ License will therefore apply, along with any applicable section 7
225
+ additional terms, to the whole of the work, and all its parts,
226
+ regardless of how they are packaged. This License gives no
227
+ permission to license the work in any other way, but it does not
228
+ invalidate such permission if you have separately received it.
229
+
230
+ d) If the work has interactive user interfaces, each must display
231
+ Appropriate Legal Notices; however, if the Program has interactive
232
+ interfaces that do not display Appropriate Legal Notices, your
233
+ work need not make them do so.
234
+
235
+ A compilation of a covered work with other separate and independent
236
+ works, which are not by their nature extensions of the covered work,
237
+ and which are not combined with it such as to form a larger program,
238
+ in or on a volume of a storage or distribution medium, is called an
239
+ "aggregate" if the compilation and its resulting copyright are not
240
+ used to limit the access or legal rights of the compilation's users
241
+ beyond what the individual works permit. Inclusion of a covered work
242
+ in an aggregate does not cause this License to apply to the other
243
+ parts of the aggregate.
244
+
245
+ 6. Conveying Non-Source Forms.
246
+
247
+ You may convey a covered work in object code form under the terms
248
+ of sections 4 and 5, provided that you also convey the
249
+ machine-readable Corresponding Source under the terms of this License,
250
+ in one of these ways:
251
+
252
+ a) Convey the object code in, or embodied in, a physical product
253
+ (including a physical distribution medium), accompanied by the
254
+ Corresponding Source fixed on a durable physical medium
255
+ customarily used for software interchange.
256
+
257
+ b) Convey the object code in, or embodied in, a physical product
258
+ (including a physical distribution medium), accompanied by a
259
+ written offer, valid for at least three years and valid for as
260
+ long as you offer spare parts or customer support for that product
261
+ model, to give anyone who possesses the object code either (1) a
262
+ copy of the Corresponding Source for all the software in the
263
+ product that is covered by this License, on a durable physical
264
+ medium customarily used for software interchange, for a price no
265
+ more than your reasonable cost of physically performing this
266
+ conveying of source, or (2) access to copy the
267
+ Corresponding Source from a network server at no charge.
268
+
269
+ c) Convey individual copies of the object code with a copy of the
270
+ written offer to provide the Corresponding Source. This
271
+ alternative is allowed only occasionally and noncommercially, and
272
+ only if you received the object code with such an offer, in accord
273
+ with subsection 6b.
274
+
275
+ d) Convey the object code by offering access from a designated
276
+ place (gratis or for a charge), and offer equivalent access to the
277
+ Corresponding Source in the same way through the same place at no
278
+ further charge. You need not require recipients to copy the
279
+ Corresponding Source along with the object code. If the place to
280
+ copy the object code is a network server, the Corresponding Source
281
+ may be on a different server (operated by you or a third party)
282
+ that supports equivalent copying facilities, provided you maintain
283
+ clear directions next to the object code saying where to find the
284
+ Corresponding Source. Regardless of what server hosts the
285
+ Corresponding Source, you remain obligated to ensure that it is
286
+ available for as long as needed to satisfy these requirements.
287
+
288
+ e) Convey the object code using peer-to-peer transmission, provided
289
+ you inform other peers where the object code and Corresponding
290
+ Source of the work are being offered to the general public at no
291
+ charge under subsection 6d.
292
+
293
+ A separable portion of the object code, whose source code is excluded
294
+ from the Corresponding Source as a System Library, need not be
295
+ included in conveying the object code work.
296
+
297
+ A "User Product" is either (1) a "consumer product", which means any
298
+ tangible personal property which is normally used for personal, family,
299
+ or household purposes, or (2) anything designed or sold for incorporation
300
+ into a dwelling. In determining whether a product is a consumer product,
301
+ doubtful cases shall be resolved in favor of coverage. For a particular
302
+ product received by a particular user, "normally used" refers to a
303
+ typical or common use of that class of product, regardless of the status
304
+ of the particular user or of the way in which the particular user
305
+ actually uses, or expects or is expected to use, the product. A product
306
+ is a consumer product regardless of whether the product has substantial
307
+ commercial, industrial or non-consumer uses, unless such uses represent
308
+ the only significant mode of use of the product.
309
+
310
+ "Installation Information" for a User Product means any methods,
311
+ procedures, authorization keys, or other information required to install
312
+ and execute modified versions of a covered work in that User Product from
313
+ a modified version of its Corresponding Source. The information must
314
+ suffice to ensure that the continued functioning of the modified object
315
+ code is in no case prevented or interfered with solely because
316
+ modification has been made.
317
+
318
+ If you convey an object code work under this section in, or with, or
319
+ specifically for use in, a User Product, and the conveying occurs as
320
+ part of a transaction in which the right of possession and use of the
321
+ User Product is transferred to the recipient in perpetuity or for a
322
+ fixed term (regardless of how the transaction is characterized), the
323
+ Corresponding Source conveyed under this section must be accompanied
324
+ by the Installation Information. But this requirement does not apply
325
+ if neither you nor any third party retains the ability to install
326
+ modified object code on the User Product (for example, the work has
327
+ been installed in ROM).
328
+
329
+ The requirement to provide Installation Information does not include a
330
+ requirement to continue to provide support service, warranty, or updates
331
+ for a work that has been modified or installed by the recipient, or for
332
+ the User Product in which it has been modified or installed. Access to a
333
+ network may be denied when the modification itself materially and
334
+ adversely affects the operation of the network or violates the rules and
335
+ protocols for communication across the network.
336
+
337
+ Corresponding Source conveyed, and Installation Information provided,
338
+ in accord with this section must be in a format that is publicly
339
+ documented (and with an implementation available to the public in
340
+ source code form), and must require no special password or key for
341
+ unpacking, reading or copying.
342
+
343
+ 7. Additional Terms.
344
+
345
+ "Additional permissions" are terms that supplement the terms of this
346
+ License by making exceptions from one or more of its conditions.
347
+ Additional permissions that are applicable to the entire Program shall
348
+ be treated as though they were included in this License, to the extent
349
+ that they are valid under applicable law. If additional permissions
350
+ apply only to part of the Program, that part may be used separately
351
+ under those permissions, but the entire Program remains governed by
352
+ this License without regard to the additional permissions.
353
+
354
+ When you convey a copy of a covered work, you may at your option
355
+ remove any additional permissions from that copy, or from any part of
356
+ it. (Additional permissions may be written to require their own
357
+ removal in certain cases when you modify the work.) You may place
358
+ additional permissions on material, added by you to a covered work,
359
+ for which you have or can give appropriate copyright permission.
360
+
361
+ Notwithstanding any other provision of this License, for material you
362
+ add to a covered work, you may (if authorized by the copyright holders of
363
+ that material) supplement the terms of this License with terms:
364
+
365
+ a) Disclaiming warranty or limiting liability differently from the
366
+ terms of sections 15 and 16 of this License; or
367
+
368
+ b) Requiring preservation of specified reasonable legal notices or
369
+ author attributions in that material or in the Appropriate Legal
370
+ Notices displayed by works containing it; or
371
+
372
+ c) Prohibiting misrepresentation of the origin of that material, or
373
+ requiring that modified versions of such material be marked in
374
+ reasonable ways as different from the original version; or
375
+
376
+ d) Limiting the use for publicity purposes of names of licensors or
377
+ authors of the material; or
378
+
379
+ e) Declining to grant rights under trademark law for use of some
380
+ trade names, trademarks, or service marks; or
381
+
382
+ f) Requiring indemnification of licensors and authors of that
383
+ material by anyone who conveys the material (or modified versions of
384
+ it) with contractual assumptions of liability to the recipient, for
385
+ any liability that these contractual assumptions directly impose on
386
+ those licensors and authors.
387
+
388
+ All other non-permissive additional terms are considered "further
389
+ restrictions" within the meaning of section 10. If the Program as you
390
+ received it, or any part of it, contains a notice stating that it is
391
+ governed by this License along with a term that is a further
392
+ restriction, you may remove that term. If a license document contains
393
+ a further restriction but permits relicensing or conveying under this
394
+ License, you may add to a covered work material governed by the terms
395
+ of that license document, provided that the further restriction does
396
+ not survive such relicensing or conveying.
397
+
398
+ If you add terms to a covered work in accord with this section, you
399
+ must place, in the relevant source files, a statement of the
400
+ additional terms that apply to those files, or a notice indicating
401
+ where to find the applicable terms.
402
+
403
+ Additional terms, permissive or non-permissive, may be stated in the
404
+ form of a separately written license, or stated as exceptions;
405
+ the above requirements apply either way.
406
+
407
+ 8. Termination.
408
+
409
+ You may not propagate or modify a covered work except as expressly
410
+ provided under this License. Any attempt otherwise to propagate or
411
+ modify it is void, and will automatically terminate your rights under
412
+ this License (including any patent licenses granted under the third
413
+ paragraph of section 11).
414
+
415
+ However, if you cease all violation of this License, then your
416
+ license from a particular copyright holder is reinstated (a)
417
+ provisionally, unless and until the copyright holder explicitly and
418
+ finally terminates your license, and (b) permanently, if the copyright
419
+ holder fails to notify you of the violation by some reasonable means
420
+ prior to 60 days after the cessation.
421
+
422
+ Moreover, your license from a particular copyright holder is
423
+ reinstated permanently if the copyright holder notifies you of the
424
+ violation by some reasonable means, this is the first time you have
425
+ received notice of violation of this License (for any work) from that
426
+ copyright holder, and you cure the violation prior to 30 days after
427
+ your receipt of the notice.
428
+
429
+ Termination of your rights under this section does not terminate the
430
+ licenses of parties who have received copies or rights from you under
431
+ this License. If your rights have been terminated and not permanently
432
+ reinstated, you do not qualify to receive new licenses for the same
433
+ material under section 10.
434
+
435
+ 9. Acceptance Not Required for Having Copies.
436
+
437
+ You are not required to accept this License in order to receive or
438
+ run a copy of the Program. Ancillary propagation of a covered work
439
+ occurring solely as a consequence of using peer-to-peer transmission
440
+ to receive a copy likewise does not require acceptance. However,
441
+ nothing other than this License grants you permission to propagate or
442
+ modify any covered work. These actions infringe copyright if you do
443
+ not accept this License. Therefore, by modifying or propagating a
444
+ covered work, you indicate your acceptance of this License to do so.
445
+
446
+ 10. Automatic Licensing of Downstream Recipients.
447
+
448
+ Each time you convey a covered work, the recipient automatically
449
+ receives a license from the original licensors, to run, modify and
450
+ propagate that work, subject to this License. You are not responsible
451
+ for enforcing compliance by third parties with this License.
452
+
453
+ An "entity transaction" is a transaction transferring control of an
454
+ organization, or substantially all assets of one, or subdividing an
455
+ organization, or merging organizations. If propagation of a covered
456
+ work results from an entity transaction, each party to that
457
+ transaction who receives a copy of the work also receives whatever
458
+ licenses to the work the party's predecessor in interest had or could
459
+ give under the previous paragraph, plus a right to possession of the
460
+ Corresponding Source of the work from the predecessor in interest, if
461
+ the predecessor has it or can get it with reasonable efforts.
462
+
463
+ You may not impose any further restrictions on the exercise of the
464
+ rights granted or affirmed under this License. For example, you may
465
+ not impose a license fee, royalty, or other charge for exercise of
466
+ rights granted under this License, and you may not initiate litigation
467
+ (including a cross-claim or counterclaim in a lawsuit) alleging that
468
+ any patent claim is infringed by making, using, selling, offering for
469
+ sale, or importing the Program or any portion of it.
470
+
471
+ 11. Patents.
472
+
473
+ A "contributor" is a copyright holder who authorizes use under this
474
+ License of the Program or a work on which the Program is based. The
475
+ work thus licensed is called the contributor's "contributor version".
476
+
477
+ A contributor's "essential patent claims" are all patent claims
478
+ owned or controlled by the contributor, whether already acquired or
479
+ hereafter acquired, that would be infringed by some manner, permitted
480
+ by this License, of making, using, or selling its contributor version,
481
+ but do not include claims that would be infringed only as a
482
+ consequence of further modification of the contributor version. For
483
+ purposes of this definition, "control" includes the right to grant
484
+ patent sublicenses in a manner consistent with the requirements of
485
+ this License.
486
+
487
+ Each contributor grants you a non-exclusive, worldwide, royalty-free
488
+ patent license under the contributor's essential patent claims, to
489
+ make, use, sell, offer for sale, import and otherwise run, modify and
490
+ propagate the contents of its contributor version.
491
+
492
+ In the following three paragraphs, a "patent license" is any express
493
+ agreement or commitment, however denominated, not to enforce a patent
494
+ (such as an express permission to practice a patent or covenant not to
495
+ sue for patent infringement). To "grant" such a patent license to a
496
+ party means to make such an agreement or commitment not to enforce a
497
+ patent against the party.
498
+
499
+ If you convey a covered work, knowingly relying on a patent license,
500
+ and the Corresponding Source of the work is not available for anyone
501
+ to copy, free of charge and under the terms of this License, through a
502
+ publicly available network server or other readily accessible means,
503
+ then you must either (1) cause the Corresponding Source to be so
504
+ available, or (2) arrange to deprive yourself of the benefit of the
505
+ patent license for this particular work, or (3) arrange, in a manner
506
+ consistent with the requirements of this License, to extend the patent
507
+ license to downstream recipients. "Knowingly relying" means you have
508
+ actual knowledge that, but for the patent license, your conveying the
509
+ covered work in a country, or your recipient's use of the covered work
510
+ in a country, would infringe one or more identifiable patents in that
511
+ country that you have reason to believe are valid.
512
+
513
+ If, pursuant to or in connection with a single transaction or
514
+ arrangement, you convey, or propagate by procuring conveyance of, a
515
+ covered work, and grant a patent license to some of the parties
516
+ receiving the covered work authorizing them to use, propagate, modify
517
+ or convey a specific copy of the covered work, then the patent license
518
+ you grant is automatically extended to all recipients of the covered
519
+ work and works based on it.
520
+
521
+ A patent license is "discriminatory" if it does not include within
522
+ the scope of its coverage, prohibits the exercise of, or is
523
+ conditioned on the non-exercise of one or more of the rights that are
524
+ specifically granted under this License. You may not convey a covered
525
+ work if you are a party to an arrangement with a third party that is
526
+ in the business of distributing software, under which you make payment
527
+ to the third party based on the extent of your activity of conveying
528
+ the work, and under which the third party grants, to any of the
529
+ parties who would receive the covered work from you, a discriminatory
530
+ patent license (a) in connection with copies of the covered work
531
+ conveyed by you (or copies made from those copies), or (b) primarily
532
+ for and in connection with specific products or compilations that
533
+ contain the covered work, unless you entered into that arrangement,
534
+ or that patent license was granted, prior to 28 March 2007.
535
+
536
+ Nothing in this License shall be construed as excluding or limiting
537
+ any implied license or other defenses to infringement that may
538
+ otherwise be available to you under applicable patent law.
539
+
540
+ 12. No Surrender of Others' Freedom.
541
+
542
+ If conditions are imposed on you (whether by court order, agreement or
543
+ otherwise) that contradict the conditions of this License, they do not
544
+ excuse you from the conditions of this License. If you cannot convey a
545
+ covered work so as to satisfy simultaneously your obligations under this
546
+ License and any other pertinent obligations, then as a consequence you may
547
+ not convey it at all. For example, if you agree to terms that obligate you
548
+ to collect a royalty for further conveying from those to whom you convey
549
+ the Program, the only way you could satisfy both those terms and this
550
+ License would be to refrain entirely from conveying the Program.
551
+
552
+ 13. Use with the GNU Affero General Public License.
553
+
554
+ Notwithstanding any other provision of this License, you have
555
+ permission to link or combine any covered work with a work licensed
556
+ under version 3 of the GNU Affero General Public License into a single
557
+ combined work, and to convey the resulting work. The terms of this
558
+ License will continue to apply to the part which is the covered work,
559
+ but the special requirements of the GNU Affero General Public License,
560
+ section 13, concerning interaction through a network will apply to the
561
+ combination as such.
562
+
563
+ 14. Revised Versions of this License.
564
+
565
+ The Free Software Foundation may publish revised and/or new versions of
566
+ the GNU General Public License from time to time. Such new versions will
567
+ be similar in spirit to the present version, but may differ in detail to
568
+ address new problems or concerns.
569
+
570
+ Each version is given a distinguishing version number. If the
571
+ Program specifies that a certain numbered version of the GNU General
572
+ Public License "or any later version" applies to it, you have the
573
+ option of following the terms and conditions either of that numbered
574
+ version or of any later version published by the Free Software
575
+ Foundation. If the Program does not specify a version number of the
576
+ GNU General Public License, you may choose any version ever published
577
+ by the Free Software Foundation.
578
+
579
+ If the Program specifies that a proxy can decide which future
580
+ versions of the GNU General Public License can be used, that proxy's
581
+ public statement of acceptance of a version permanently authorizes you
582
+ to choose that version for the Program.
583
+
584
+ Later license versions may give you additional or different
585
+ permissions. However, no additional obligations are imposed on any
586
+ author or copyright holder as a result of your choosing to follow a
587
+ later version.
588
+
589
+ 15. Disclaimer of Warranty.
590
+
591
+ THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
592
+ APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
593
+ HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
594
+ OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
595
+ THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
596
+ PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
597
+ IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
598
+ ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
599
+
600
+ 16. Limitation of Liability.
601
+
602
+ IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
603
+ WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
604
+ THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
605
+ GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
606
+ USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
607
+ DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
608
+ PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
609
+ EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
610
+ SUCH DAMAGES.
611
+
612
+ 17. Interpretation of Sections 15 and 16.
613
+
614
+ If the disclaimer of warranty and limitation of liability provided
615
+ above cannot be given local legal effect according to their terms,
616
+ reviewing courts shall apply local law that most closely approximates
617
+ an absolute waiver of all civil liability in connection with the
618
+ Program, unless a warranty or assumption of liability accompanies a
619
+ copy of the Program in return for a fee.
620
+
621
+ END OF TERMS AND CONDITIONS
622
+
623
+ How to Apply These Terms to Your New Programs
624
+
625
+ If you develop a new program, and you want it to be of the greatest
626
+ possible use to the public, the best way to achieve this is to make it
627
+ free software which everyone can redistribute and change under these terms.
628
+
629
+ To do so, attach the following notices to the program. It is safest
630
+ to attach them to the start of each source file to most effectively
631
+ state the exclusion of warranty; and each file should have at least
632
+ the "copyright" line and a pointer to where the full notice is found.
633
+
634
+ <one line to give the program's name and a brief idea of what it does.>
635
+ Copyright (C) <year> <name of author>
636
+
637
+ This program is free software: you can redistribute it and/or modify
638
+ it under the terms of the GNU General Public License as published by
639
+ the Free Software Foundation, either version 3 of the License, or
640
+ (at your option) any later version.
641
+
642
+ This program is distributed in the hope that it will be useful,
643
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
644
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
645
+ GNU General Public License for more details.
646
+
647
+ You should have received a copy of the GNU General Public License
648
+ along with this program. If not, see <https://www.gnu.org/licenses/>.
649
+
650
+ Also add information on how to contact you by electronic and paper mail.
651
+
652
+ If the program does terminal interaction, make it output a short
653
+ notice like this when it starts in an interactive mode:
654
+
655
+ <program> Copyright (C) <year> <name of author>
656
+ This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
657
+ This is free software, and you are welcome to redistribute it
658
+ under certain conditions; type `show c' for details.
659
+
660
+ The hypothetical commands `show w' and `show c' should show the appropriate
661
+ parts of the General Public License. Of course, your program's commands
662
+ might be different; for a GUI interface, you would use an "about box".
663
+
664
+ You should also get your employer (if you work as a programmer) or school,
665
+ if any, to sign a "copyright disclaimer" for the program, if necessary.
666
+ For more information on this, and how to apply and follow the GNU GPL, see
667
+ <https://www.gnu.org/licenses/>.
668
+
669
+ The GNU General Public License does not permit incorporating your program
670
+ into proprietary programs. If your program is a subroutine library, you
671
+ may consider it more useful to permit linking proprietary applications with
672
+ the library. If this is what you want to do, use the GNU Lesser General
673
+ Public License instead of this License. But first, please read
674
+ <https://www.gnu.org/licenses/why-not-lgpl.html>.
zavodik/nodes/ComfyUI-Impact-Pack/README.md ADDED
@@ -0,0 +1,519 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [![Youtube Badge](https://img.shields.io/badge/Youtube-FF0000?style=for-the-badge&logo=Youtube&logoColor=white&link=https://www.youtube.com/watch?v=AccoxDZIg3Y&list=PL_Ej2RDzjQLGfEeizq4GISeY3FtVyFmGP)](https://www.youtube.com/watch?v=AccoxDZIg3Y&list=PL_Ej2RDzjQLGfEeizq4GISeY3FtVyFmGP)
2
+
3
+ # ComfyUI-Impact-Pack
4
+
5
+ **Custom node pack for ComfyUI**
6
+ This node pack helps to conveniently enhance images through Detector, Detailer, Upscaler, Pipe, and more.
7
+
8
+ NOTE: The UltralyticsDetectorProvider node is not part of the ComfyUI-Impact-Pack. To use the UltralyticsDetectorProvider node, please install the ComfyUI-Impact-Subpack separately.
9
+
10
+ ## NOTICE
11
+ * V8.24: This compatibility patch requires ComfyUI version 0.3.63 or higher due to structural changes in DifferentialDiffusion.
12
+ * V8.19: legacy nodes (mmdet and etc.) are removed
13
+ * V8.18: Support [facebookresearch/sam2](https://github.com/facebookresearch/sam2) models
14
+ * V8.0: The `Impact Subpack` is no longer installed automatically. To use `UltralyticsDetectorProvider` nodes, please install the `Impact Subpack` separately.
15
+ * V7.6: Automatic installation is no longer supported. Please install using ComfyUI-Manager, or manually install requirements.txt and run install.py to complete the installation.
16
+ * V7.0: Supports Switch based on Execution Model Inversion.
17
+ * V6.0: Supports FLUX.1 model in Impact KSampler, Detailers, PreviewBridgeLatent
18
+ * V5.0: It is no longer compatible with versions of ComfyUI before 2024.04.08.
19
+ * V4.87.4: Update to a version of ComfyUI after 2024.04.08 for proper functionality.
20
+ * V4.85: Incompatible with the outdated **ComfyUI IPAdapter Plus**. (A version dated March 24th or later is required.)
21
+ * V4.77: Compatibility patch applied. Requires ComfyUI version (Oct. 8th) or later.
22
+ * V4.73.3: ControlNetApply (SEGS) supports AnimateDiff
23
+ * V4.20.1: Due to the feature update in `RegionalSampler`, the parameter order has changed, causing malfunctions in previously created `RegionalSamplers`. Please adjust the parameters accordingly.
24
+ * V4.12: `MASKS` is changed to `MASK`.
25
+ * V4.7.2 isn't compatible with old version of `ControlNet Auxiliary Preprocessor`. If you will use `MediaPipe FaceMesh to SEGS` update to latest version(Sep. 17th).
26
+ * Selection weight syntax is changed(: -> ::) since V3.16. ([tutorial](https://github.com/ltdrdata/ComfyUI-extension-tutorials/blob/Main/ComfyUI-Impact-Pack/tutorial/ImpactWildcardProcessor.md))
27
+ * Starting from V3.6, requires latest version(Aug 8, 9ccc965) of ComfyUI.
28
+ * **In versions below V3.3.1, there was an issue with the image quality generated after using the UltralyticsDetectorProvider. Please make sure to upgrade to a newer version.**
29
+ * Starting from V3.0, nodes related to `mmdet` are optional nodes that are activated only based on the configuration settings.
30
+ - Through ComfyUI-Impact-Subpack, you can utilize UltralyticsDetectorProvider to access various detection models.
31
+ * Between versions 2.22 and 2.21, there is partial compatibility loss regarding the Detailer workflow. If you continue to use the existing workflow, errors may occur during execution. An additional output called "enhanced_alpha_list" has been added to Detailer-related nodes.
32
+ * The permission error related to cv2 that occurred during the installation of Impact Pack has been patched in version 2.21.4. However, please note that the latest versions of ComfyUI and ComfyUI-Manager are required.
33
+ * The "PreviewBridge" feature may not function correctly on ComfyUI versions released before July 1, 2023.
34
+ * Attempting to load the "ComfyUI-Impact-Pack" on ComfyUI versions released before June 27, 2023, will result in a failure.
35
+ * With the addition of wildcard support in FaceDetailer, the structure of DETAILER_PIPE-related nodes and Detailer nodes has changed. There may be malfunctions when using the existing workflow.
36
+
37
+
38
+ ## How To Install
39
+
40
+ ### **Recommended**
41
+ * Install via [ComfyUI-Manager](https://github.com/ltdrdata/ComfyUI-Manager).
42
+
43
+ ### **Manual**
44
+ * Navigate to `ComfyUI/custom_nodes` in your terminal (cmd).
45
+ * Clone the repository under the `custom_nodes` directory using the following command:
46
+ ```
47
+ git clone https://github.com/ltdrdata/ComfyUI-Impact-Pack comfyui-impact-pack
48
+ cd comfyui-impact-pack
49
+ ```
50
+ * Install dependencies in your Python environment.
51
+ * For Windows Portable, run the following command inside `ComfyUI\custom_nodes\comfyui-impact-pack`:
52
+ ```
53
+ ..\..\..\python_embeded\python.exe -m pip install -r requirements.txt
54
+ ```
55
+ * If using venv or conda, activate your Python environment first, then run:
56
+ ```
57
+ pip install -r requirements.txt
58
+ ```
59
+
60
+ ### Companion Pack
61
+ * If you need the `Ultralytics Detector Provider` to use various YOLO detection models, you should also install [ComfyUI-Impact-Subpack](https://github.com/ltdrdata/ComfyUI-Impact-Subpack).
62
+
63
+
64
+ ## Custom Nodes
65
+ ### [Detector nodes](https://github.com/ltdrdata/ComfyUI-extension-tutorials/blob/Main/ComfyUI-Impact-Pack/tutorial/detectors.md)
66
+ * `SAMLoader (Impact)` - Loads the SAM model.
67
+ * `ONNXDetectorProvider` - Loads the ONNX model to provide BBOX_DETECTOR.
68
+ * `CLIPSegDetectorProvider` - Wrapper for CLIPSeg to provide BBOX_DETECTOR.
69
+ * You need to install the ComfyUI-CLIPSeg node extension.
70
+ * `SEGM Detector (combined)` - Detects segmentation and returns a mask from the input image.
71
+ * `BBOX Detector (combined)` - Detects bounding boxes and returns a mask from the input image.
72
+ * `SAMDetector (combined)` - Utilizes the SAM technology to extract the segment at the location indicated by the input SEGS on the input image and outputs it as a unified mask.
73
+ * `SAMDetector (Segmented)` - It is similar to `SAMDetector (combined)`, but it separates and outputs the detected segments. Multiple segments can be found for the same detected area, and currently, a policy is in place to group them arbitrarily in sets of three. This aspect is expected to be improved in the future.
74
+ * As a result, it outputs the `combined_mask`, which is a unified mask, and `batch_masks`, which are multiple masks grouped together in batch form.
75
+ * While `batch_masks` may not be completely separated, it provides functionality to perform some level of segmentation.
76
+ * `Simple Detector (SEGS)` - Operating primarily with `BBOX_DETECTOR`, and with the additional provision of `SAM_MODEL` or `SEGM_DETECTOR`, this node internally generates improved SEGS through mask operations on both *bbox* and *silhouette*. It serves as a convenient tool to simplify a somewhat intricate workflow.
77
+ * `Simple Detector for Video (SEGS)` โ€“ Performs detection on videos composed of image frames. Instead of using a single mask, it performs detection individually on each image frame and generates a SEGS object with a batch of masks.
78
+ * `SAM2 Video Detector (SEGS)` โ€“ Similar to `Simple Detector for Video (SEGS)`, but utilizes SAM2โ€™s video tracking technology to generate a SEGS object with a batch of masks.
79
+ * To use this node, you must select a SAM2 model in the SAMLoader.
80
+
81
+
82
+ ### ControlNet, IPAdapter
83
+ * `ControlNetApply (SEGS)` - To apply ControlNet in SEGS, you need to use the Preprocessor Provider node from the Inspire Pack to utilize this node.
84
+ * `segs_preprocessor` and `control_image` can be selectively applied. If a `control_image` is given, `segs_preprocessor` will be ignored.
85
+ * If set to `control_image`, you can preview the cropped cnet image through `SEGSPreview (CNET Image)`. Images generated by `segs_preprocessor` should be verified through the `cnet_images` output of each Detailer.
86
+ * The `segs_preprocessor` operates by applying preprocessing on-the-fly based on the cropped image during the detailing process, while `control_image` will be cropped and used as input to `ControlNetApply (SEGS)`.
87
+ * `ControlNetClear (SEGS)` - Clear applied ControlNet in SEGS
88
+ * `IPAdapterApply (SEGS)` - To apply IPAdapter in SEGS, you need to use the Preprocessor Provider node from the Inspire Pack to utilize this node.
89
+
90
+
91
+ ### Mask operation
92
+ * `Pixelwise(SEGS & SEGS)` - Performs a 'pixelwise and' operation between two SEGS.
93
+ * `Pixelwise(SEGS - SEGS)` - Subtracts one SEGS from another.
94
+ * `Pixelwise(SEGS & MASK)` - Performs a pixelwise AND operation between SEGS and MASK.
95
+ * `Pixelwise(SEGS & MASKS ForEach)` - Performs a pixelwise AND operation between SEGS and MASKS.
96
+ * Please note that this operation is performed with batches of MASKS, not just a single MASK.
97
+ * `Pixelwise(MASK & MASK)` - Performs a 'pixelwise and' operation between two masks.
98
+ * `Pixelwise(MASK - MASK)` - Subtracts one mask from another.
99
+ * `Pixelwise(MASK + MASK)` - Combine two masks.
100
+ * `SEGM Detector (SEGS)` - Detects segmentation and returns SEGS from the input image.
101
+ * `BBOX Detector (SEGS)` - Detects bounding boxes and returns SEGS from the input image.
102
+ * `Dilate Mask` - Dilate Mask.
103
+ * Support erosion for negative value.
104
+ * `Gaussian Blur Mask` - Apply Gaussian Blur to Mask. You can utilize this for mask feathering.
105
+ * `Mask Rect Area` - Create a rectangular mask defined by percentages with preview canvas.
106
+ * `Mask Rect Area (Advanced)` - Create a rectangular mask defined by pixels and image size.
107
+
108
+
109
+ ### [Detailer nodes](https://github.com/ltdrdata/ComfyUI-extension-tutorials/blob/Main/ComfyUI-Impact-Pack/tutorial/detailers.md)
110
+ * `Detailer (SEGS)` - Refines the image based on SEGS.
111
+ * `Detailer (SEGS) with auto retry` - Refines the image based on SEGS and will automatically retry if the patch is all black.
112
+ * `DetailerDebug (SEGS)` - Refines the image based on SEGS. Additionally, it provides the ability to monitor the cropped image and the refined image of the cropped image.
113
+ * To prevent regeneration caused by the seed that does not change every time when using 'external_seed', please disable the 'seed random generate' option in the 'Detailer...' node.
114
+ * `MASK to SEGS` - Generates SEGS based on the mask.
115
+ * `MASK to SEGS For Video` - Generates SEGS based on the mask for Video. (Renamed from `MASK to SEGS For AnimateDiff`)
116
+ * When using a single mask, convert it to SEGS to apply it to the entire frame.
117
+ * When using a batch mask, the contour fill feature is disabled.
118
+ * `MediaPipe FaceMesh to SEGS` - Separate each landmark from the mediapipe facemesh image to create labeled SEGS.
119
+ * Usually, the size of images created through the MediaPipe facemesh preprocessor is downscaled. It resizes the MediaPipe facemesh image to the original size given as reference_image_opt for matching sizes during processing.
120
+ * `ToBinaryMask` - Separates the mask generated with alpha values between 0 and 255 into 0 and 255. The non-zero parts are always set to 255.
121
+ * `Masks to Mask List` - This node converts the MASKS in batch form to a list of individual masks.
122
+ * `Mask List to Masks` - This node converts the MASK list to MASK batch form.
123
+ * `EmptySEGS` - Provides an empty SEGS.
124
+ * `MaskPainter` - Provides a feature to draw masks.
125
+ * `FaceDetailer` - Easily detects faces and improves them.
126
+ * `FaceDetailer (pipe)` - Easily detects faces and improves them (for multipass).
127
+ * `MaskDetailer (pipe)` - This is a simple inpaint node that applies the Detailer to the mask area.
128
+
129
+ * `FromDetailer (SDXL/pipe)`, `BasicPipe -> DetailerPipe (SDXL)`, `Edit DetailerPipe (SDXL)` - These are pipe functions used in Detailer for utilizing the refiner model of SDXL.
130
+ * `Any PIPE -> BasicPipe` - Convert the PIPE Value of other custom nodes that are not BASIC_PIPE but internally have the same structure as BASIC_PIPE to BASIC_PIPE. If an incompatible type is applied, it may cause runtime errors.
131
+
132
+
133
+ ### SEGS Manipulation nodes
134
+ * `SEGSDetailer` - Performs detailed work on SEGS without pasting it back onto the original image.
135
+ * `SEGSPaste` - Pastes the results of SEGS onto the original image.
136
+ * If `ref_image_opt` is present, the images contained within SEGS are ignored. Instead, the image within `ref_image_opt` corresponding to the crop area of SEGS is taken and pasted. The size of the image in `ref_image_opt` should be the same as the original image size.
137
+ * This node can be used in conjunction with the processing results of AnimateDiff.
138
+ * `SEGSPreview` - Provides a preview of SEGS.
139
+ * This option is used to preview the improved image through `SEGSDetailer` before merging it into the original. Prior to going through ```SEGSDetailer```, SEGS only contains mask information without image information. If fallback_image_opt is connected to the original image, SEGS without image information will generate a preview using the original image. However, if SEGS already contains image information, fallback_image_opt will be ignored.
140
+ * This node can be used in conjunction with the processing results of AnimateDiff.
141
+ * `SEGSPreview (CNET Image)` - Show images configured with `ControlNetApply (SEGS)` for debugging purposes.
142
+ * `SEGSToImageList` - Convert SEGS To Image List
143
+ * `SEGSToMaskList` - Convert SEGS To Mask List
144
+ * `SEGS Filter (label)` - This node filters SEGS based on the label of the detected areas.
145
+ * `SEGS Filter (ordered)` - This node sorts SEGS based on size and position and retrieves SEGs within a certain range.
146
+ * `SEGS Filter (range)` - This node retrieves only SEGs from SEGS that have a size and position within a certain range.
147
+ * `SEGS Filter (non max suppression)` - This node filters SEGS by removing those with high overlap based on the Intersection over Union (IoU) threshold, keeping only the most confident detections.
148
+ * `SEGS Filter (intersection)` - This node filters segs1, keeping only the SEGS that do not significantly overlap with any SEGS in segs2, based on the Intersection over Area (IoA) threshold.
149
+ * `SEGS Assign (label)` - Assign labels sequentially to SEGS. This node is useful when used with `[LAB]` of FaceDetailer.
150
+ * `SEGSConcat` - Concatenate segs1 and segs2. If source shape of segs1 and segs2 are different from segs2 will be ignored.
151
+ * `SEGS Merge` - SEGS contains multiple SEGs. SEGS Merge integrates several SEGs into a single merged SEG. The label is changed to `merged` and the confidence becomes the minimum confidence. The applied controlnet and cropped_image are removed.
152
+ * `Picker (SEGS)` - Among the input SEGS, you can select a specific SEG through a dialog. If no SEG is selected, it outputs an empty SEGS. Increasing the batch_size of SEGSDetailer can be used for the purpose of selecting from the candidates.
153
+ * `Set Default Image For SEGS` - Set a default image for SEGS. SEGS with images set this way do not need to have a fallback image set. When override is set to false, the original image is preserved.
154
+ * `Remove Image from SEGS` - Remove the image set for the SEGS that has been configured by "Set Default Image for SEGS" or SEGSDetailer. When the image for the SEGS is removed, the Detailer node will operate based on the currently processed image instead of the SEGS.
155
+ * `Make Tile SEGS` - [experimental] Create SEGS in the form of tiles from an image to facilitate experiments for Tiled Upscale using the Detailer.
156
+ * The `filter_in_segs_opt` and `filter_out_segs_opt` are optional inputs. If these inputs are provided, when creating the tiles, the mask for each tile is generated by overlapping with the mask of `filter_in_segs_opt` and excluding the overlap with the mask of `filter_out_segs_opt`. Tiles with an empty mask will not be created as SEGS.
157
+ * `Dilate Mask (SEGS)` - Dilate/Erosion Mask in SEGS
158
+ * `Gaussian Blur Mask (SEGS)` - Apply Gaussian Blur to Mask in SEGS
159
+ * `SEGS_ELT Manipulation` - experimental nodes
160
+ * `DecomposeSEGS` - Decompose SEGS to allow for detailed manipulation.
161
+ * `AssembleSEGS` - Reassemble the decomposed SEGS.
162
+ * `From SEG_ELT` - Extract detailed information from SEG_ELT.
163
+ * `Edit SEG_ELT` - Modify some of the information in SEG_ELT.
164
+ * `Dilate SEG_ELT` - Dilate the mask of SEG_ELT.
165
+ * `From SEG_ELT` bbox - Extract coordinate from bbox in SEG_ELT
166
+ * `From SEG_ELT` crop_region - Extract coordinate from crop_region in SEG_ELT
167
+ * `Count Elt in SEGS` - Number of Elts ins SEGS
168
+
169
+
170
+ ### Pipe nodes
171
+ * `ToDetailerPipe`, `FromDetailerPipe` - These nodes are used to bundle multiple inputs used in the detailer, such as models and vae, ..., into a single DETAILER_PIPE or extract the elements that are bundled in the DETAILER_PIPE.
172
+ * `ToBasicPipe`, `FromBasicPipe` - These nodes are used to bundle model, clip, vae, positive conditioning, and negative conditioning into a single BASIC_PIPE, or extract each element from the BASIC_PIPE.
173
+ * `EditBasicPipe`, `EditDetailerPipe` - These nodes are used to replace some elements in BASIC_PIPE or DETAILER_PIPE.
174
+ * `FromDetailerPipe_v2`, `FromBasicPipe_v2` - It has the same functionality as `FromDetailerPipe` and `FromBasicPipe`, but it has an additional output that directly exports the input pipe. It is useful when editing EditBasicPipe and EditDetailerPipe.
175
+ * `Latent Scale (on Pixel Space)` - This node converts latent to pixel space, upscales it, and then converts it back to latent.
176
+ * If upscale_model_opt is provided, it uses the model to upscale the pixel and then downscales it using the interpolation method provided in scale_method to the target resolution.
177
+ * `PixelKSampleUpscalerProvider` - An upscaler is provided that converts latent to pixels using VAEDecode, performs upscaling, converts back to latent using VAEEncode, and then performs k-sampling. This upscaler can be attached to nodes such as `Iterative Upscale` for use.
178
+ * Similar to `Latent Scale (on Pixel Space)`, if upscale_model_opt is provided, it performs pixel upscaling using the model.
179
+ * `PixelTiledKSampleUpscalerProvider` - It is similar to `PixelKSampleUpscalerProvider`, but it uses `ComfyUI_TiledKSampler` and Tiled VAE Decoder/Encoder to avoid GPU VRAM issues at high resolutions.
180
+ * You need to install the [BlenderNeko/ComfyUI_TiledKSampler](https://github.com/BlenderNeko/ComfyUI_TiledKSampler) node extension.
181
+
182
+
183
+ ### PK_HOOK
184
+ * `DenoiseScheduleHookProvider` - IterativeUpscale provides a hook that gradually changes the denoise to target_denoise as the iterative-step progresses.
185
+ * `CfgScheduleHookProvider` - IterativeUpscale provides a hook that gradually changes the cfg to target_cfg as the iterative-step progresses.
186
+ * `StepsScheduleHookProvider` - IterativeUpscale provides a hook that gradually changes the sampling-steps to target_steps as the iterative-step progresses.
187
+ * `NoiseInjectionHookProvider` - During each iteration of IterativeUpscale, noise is injected into the latent space while varying the strength according to a schedule.
188
+ * You need to install the [BlenderNeko/ComfyUI_Noise](https://github.com/BlenderNeko/ComfyUI_Noise) node extension.
189
+ * The seed serves as the initial value required for generating noise, and it increments by 1 with each iteration as the process unfolds.
190
+ * The source determines the types of CPU noise and GPU noise to be configured.
191
+ * Currently, there is only a simple schedule available, where the strength of the noise varies from start_strength to end_strength during the progression of each iteration.
192
+ * `UnsamplerHookProvider` - Apply Unsampler during each iteration. To use this node, ComfyUI_Noise must be installed.
193
+ * `PixelKSampleHookCombine` - This is used to connect two PK_HOOKs. hook1 is executed first and then hook2 is executed.
194
+ * If you want to simultaneously change cfg and denoise, you can combine the PK_HOOKs of CfgScheduleHookProvider and PixelKSampleHookCombine.
195
+
196
+
197
+ ### DETAILER_HOOK
198
+ * `NoiseInjectionDetailerHookProvider` - The `detailer_hook` is a hook in the `Detailer` that injects noise during the processing of each SEGS.
199
+ * `UnsamplerDetailerHookProvider` - Apply Unsampler during each cycle. To use this node, ComfyUI_Noise must be installed.
200
+ * `DenoiseSchedulerDetailerHookProvider` - During the progress of the cycle, the detailer's denoise is altered up to the `target_denoise`.
201
+ * `CoreMLDetailerHookProvider` - CoreML supports only 512x512, 512x768, 768x512, 768x768 size sampling. CoreMLDetailerHookProvider precisely fixes the upscale of the crop_region to this size. When using this hook, it will always be selected size, regardless of the guide_size. However, if the guide_size is too small, skipping will occur.
202
+ * `DetailerHookCombine` - This is used to connect two DETAILER_HOOKs. Similar to PixelKSampleHookCombine.
203
+ * `SEGSOrderedFilterDetailerHook`, SEGSRangeFilterDetailerHook, SEGSLabelFilterDetailerHook - There are a wrapper node that provides SEGSFilter nodes to be applied in FaceDetailer or Detector by creating DETAILER_HOOK.
204
+ * `PreviewDetailerHook` - Connecting this hook node helps provide assistance for viewing previews whenever SEGS Detailing tasks are completed. When working with a large number of SEGS, such as Make Tile SEGS, it allows for monitoring the situation as improvements progress incrementally.
205
+ * Since this is the hook applied when pasting onto the original image, it has no effect on nodes like `SEGSDetailer`.
206
+ * `VariationNoiseDetailerHookProvider` - Apply variation seed to the detailer. It can be applied in multiple stages through combine.
207
+ * `CustomSamplerDetailerHookProvider` - Apply a hook that allows you to use a custom sampler in the Detailer nodes. When using `DetailerHookCombine`, the sampler from the first hook is applied.
208
+ * `LamaRemoverDetailerHookProvider` โ€“ Applies Lama Remover to the upscaled image during the detailing stage. If `skip_sampling` is set to True, Lama Remover can be used alone without the detailing stage, allowing it to simply remove detected regions.
209
+ * Not applicable for **AnimateDiff** detailers. When using `DetailerHookCombine`, `skip_sampling` is only applied if it is set to `True` for all hooks.
210
+ * To use this node, the node pack at [Layer-norm/comfyui-lama-remover](https://github.com/Layer-norm/comfyui-lama-remover) must be installed.
211
+
212
+
213
+ ### Iterative Upscale nodes
214
+ * `Iterative Upscale (Latent/on Pixel Space)` - The upscaler takes the input upscaler and splits the scale_factor into steps, then iteratively performs upscaling.
215
+ This takes latent as input and outputs latent as the result.
216
+ * `Iterative Upscale (Image)` - The upscaler takes the input upscaler and splits the scale_factor into steps, then iteratively performs upscaling. This takes image as input and outputs image as the result.
217
+ * Internally, this node uses 'Iterative Upscale (Latent)'.
218
+
219
+
220
+ ### TwoSamplers nodes
221
+ * `TwoSamplersForMask` - This node can apply two samplers depending on the mask area. The base_sampler is applied to the area where the mask is 0, while the mask_sampler is applied to the area where the mask is 1.
222
+ * Note: The latent encoded through VAEEncodeForInpaint cannot be used.
223
+ * `KSamplerProvider` - This is a wrapper that enables KSampler to be used in TwoSamplersForMask TwoSamplersForMaskUpscalerProvider.
224
+ * `TiledKSamplerProvider` - ComfyUI_TiledKSampler is a wrapper that provides KSAMPLER.
225
+ * You need to install the [BlenderNeko/ComfyUI_TiledKSampler](https://github.com/BlenderNeko/ComfyUI_TiledKSampler) node extension.
226
+
227
+ * `TwoAdvancedSamplersForMask` - TwoSamplersForMask is similar to TwoAdvancedSamplersForMask, but they differ in their operation. TwoSamplersForMask performs sampling in the mask area only after all the samples in the base area are finished. On the other hand, TwoAdvancedSamplersForMask performs sampling in both the base area and the mask area sequentially at each step.
228
+ * `KSamplerAdvancedProvider` - This is a wrapper that enables KSampler to be used in TwoAdvancedSamplersForMask, RegionalSampler.
229
+ * sigma_factor: By multiplying the denoise schedule by the sigma_factor, you can adjust the amount of denoising based on the configured denoise.
230
+
231
+ * `TwoSamplersForMaskUpscalerProvider` - This is an Upscaler that extends TwoSamplersForMask to be used in Iterative Upscale.
232
+ * TwoSamplersForMaskUpscalerProviderPipe - pipe version of TwoSamplersForMaskUpscalerProvider.
233
+
234
+
235
+ ### Image Utils
236
+ * `PreviewBridge (image)` - This custom node can be used with a bridge for image when using the MaskEditor feature of Clipspace.
237
+ * `PreviewBridge (latent)` - This custom node can be used with a bridge for latent image when using the MaskEditor feature of Clipspace.
238
+ * If a latent with a mask is provided as input, it displays the mask. Additionally, the mask output provides the mask set in the latent.
239
+ * If a latent without a mask is provided as input, it outputs the original latent as is, but the mask output provides an output with the entire region set as a mask.
240
+ * When set mask through MaskEditor, a mask is applied to the latent, and the output includes the stored mask. The same mask is also output as the mask output.
241
+ * When connected to `vae_opt`, it takes higher priority than the `preview_method`.
242
+ * `ImageSender`, `ImageReceiver` - The images generated in ImageSender are automatically sent to the ImageReceiver with the same link_id.
243
+ * `LatentSender`, `LatentReceiver` - The latent generated in LatentSender are automatically sent to the LatentReceiver with the same link_id.
244
+ * Furthermore, LatentSender is implemented with PreviewLatent, which stores the latent in payload form within the image thumbnail.
245
+ * Due to the current structure of ComfyUI, it is unable to distinguish between SDXL latent and SD1.5/SD2.1 latent. Therefore, it generates thumbnails by decoding them using the SD1.5 method.
246
+
247
+
248
+ ### Switch nodes
249
+ * `Switch (image,mask)`, `Switch (latent)`, `Switch (SEGS)` - Among multiple inputs, it selects the input designated by the selector and outputs it. The first input must be provided, while the others are optional. However, if the input specified by the selector is not connected, an error may occur.
250
+ * `Switch (Any)` - This is a Switch node that takes an arbitrary number of inputs and produces a single output. Its type is determined when connected to any node, and connecting inputs increases the available slots for connections.
251
+ * `Inversed Switch (Any)` - In contrast to `Switch (Any)`, it takes a single input and outputs one of many.
252
+ * NOTE: See this [tutorial](https://github.com/ltdrdata/ComfyUI-extension-tutorials/blob/Main/ComfyUI-Impact-Pack/tutorial/switch.md)
253
+
254
+
255
+ ### [Wildcards](http://github.com/ltdrdata/ComfyUI-extension-tutorials/blob/Main/ComfyUI-Impact-Pack/tutorial/ImpactWildcard.md) nodes
256
+ * These are nodes that supports syntax in the form of `__wildcard-name__` and dynamic prompt syntax like `{a|b|c}`.
257
+ * Wildcard files can be used by placing `.txt` or `.yaml` files under either `ComfyUI-Impact-Pack/wildcards` or `ComfyUI-Impact-Pack/custom_wildcards` paths.
258
+ * You can download and use [Wildcard YAML](https://civitai.com/models/138970/billions-of-wildcards-all-in-one) files in this format.
259
+ * After the first execution, you can change the custom wildcards path in the `custom_wildcards` entry within the `ComfyUI-Impact-Pack/impact-pack.ini` file created.
260
+ * `ImpactWildcardProcessor` - The text is generated by processing the wildcard in the Text. If the mode is set to "populate", a dynamic prompt is generated with each execution and the input is filled in the second textbox. If the mode is set to "fixed", the content of the second textbox remains unchanged.
261
+ * When an image is generated with the "fixed" mode, the prompt used for that particular generation is stored in the metadata.
262
+ * `ImpactWildcardEncode` - Similar to ImpactWildcardProcessor, this provides the loading functionality of LoRAs (e.g. `<lora:some_awesome_lora:0.7:1.2>`). Populated prompts are encoded using the clip after all the lora loading is done.
263
+ * If the `Inspire Pack` is installed, you can use **Lora Block Weight** in the form of `LBW=lbw spec;`
264
+ * `<lora:chunli:1.0:1.0:LBW=B11:0,0,0,0,0,0,0,0,0,0,A,0,0,0,0,0,0;A=0.;>`, `<lora:chunli:1.0:1.0:LBW=0,0,0,0,0,0,0,0,0,0,A,B,0,0,0,0,0;A=0.5;B=0.2;>`, `<lora:chunli:1.0:1.0:LBW=SD-MIDD;>`
265
+
266
+
267
+ ### Regional Sampling
268
+ * These nodes offer the capability to divide regions and perform partial sampling using a mask. Unlike TwoSamplersForMask, sampling for each region is applied during each step.
269
+ * `RegionalPrompt` - This node combines a **mask** for specifying regions and the **sampler** to apply to each region to create `REGIONAL_PROMPTS`.
270
+ * `CombineRegionalPrompts` - Combine multiple `REGIONAL_PROMPTS` to create a single `REGIONAL_PROMPTS`.
271
+ * `RegionalSampler` - This node performs sampling using a base sampler and regional prompts. Sampling by the base sampler is executed at each step, while sampling for each region is performed through the sampler bound to each region.
272
+ * overlap_factor - Specifies the amount of overlap for each region to blend well with the area outside the mask.
273
+ * restore_latent - When sampling each region, restore the areas outside the mask to the base latent, preventing additional noise from being introduced outside the mask during region sampling.
274
+ * `RegionalSamplerAdvanced` - This is the Advanced version of the RegionalSampler. You can control it using `step` instead of `denoise`.
275
+ > NOTE: The `sde` sampler and `uni_pc` sampler introduce additional noise during each step of the sampling process. To mitigate this, when sampling each region, the `uni_pc` sampler applies additional `dpmpp_fast`, and the sde sampler applies the `dpmpp_2m` sampler as an additional measure.
276
+
277
+
278
+ ### Impact KSampler
279
+ * These samplers support basic_pipe and AYS/OSS/GITS scheduler
280
+ * `KSampler (pipe)` - pipe version of KSampler
281
+ * `KSampler (advanced/pipe)` - pipe version of KSamplerAdvacned
282
+ * When converting the scheduler widget to input, refer to the `Impact Scheduler Adapter` node to resolve compatibility issues.
283
+ * `GITSScheduler Func Provider` - provider scheduler function for GITSScheduler
284
+
285
+
286
+ ### Batch/List Util
287
+ * `Image Batch to Image List` - Convert Image batch to Image List
288
+ - You can use images generated in a multi batch to handle them
289
+ * `Image List to Image Batch` - Convert Image List to Image Batch
290
+ * `Make Image List` - Convert multiple images into a single image list
291
+ * `Make Image Batch` - Convert multiple images into a single image batch
292
+ - The input of images can be scaled up as needed
293
+ * `Masks to Mask List`, `Mask List to Masks`, `Make Mask List`, `Make Mask Batch` - It has the same functionality as the nodes above, but uses mask as input instead of image.
294
+ * `Flatten Mask Batch` - Flattens a Mask Batch into a single Mask. Normal operation is not guaranteed for non-binary masks.
295
+ * `Make List (Any)` - Create a list with arbitrary values.
296
+ * `Select Nth Item (Any list)` - Selects the Nth item from a list. If the index is out of range, it returns the last item in the list.
297
+
298
+
299
+ ### Logics (experimental)
300
+ * These nodes are experimental nodes designed to implement the logic for loops and dynamic switching.
301
+ * `ImpactCompare`, `ImpactConditionalBranch`, `ImpactConditionalBranchSelMode`, `ImpactInt`, `ImpactBoolean`, `ImpactValueSender`, `ImpactValueReceiver`, `ImpactImageInfo`, `ImpactMinMax`, `ImpactNeg`, `ImpactConditionalStopIteration`
302
+ * `ImpactIsNotEmptySEGS` - This node returns `true` only if the input SEGS is not empty.
303
+ * `ImpactIfNone` - Returns `true` if any_input is None, and returns `false` if it is not None.
304
+ * `Queue Trigger` - When this node is executed, it adds a new queue to assist with repetitive tasks. It will only execute if the signal's status changes.
305
+ * `Queue Trigger (Countdown)` - Like the Queue Trigger, it adds a queue, but only adds it if it's greater than 1, and decrements the count by one each time it runs.
306
+ * `Sleep` - Waits for the specified time (in seconds).
307
+ * `Set Widget Value` - This node sets one of the optional inputs to the specified node's widget. An error may occur if the types do not match.
308
+ * `Set Mute State` - This node changes the mute state of a specific node.
309
+ * `Control Bridge` - This node modifies the state of the connected control nodes based on the `mode` and `behavior` . If there are nodes that require a change, the current execution is paused, the mute status is updated, and a new prompt queue is inserted.
310
+ * When the `mode` is `active`, it makes the connected control nodes active regardless of the behavior.
311
+ * When the `mode` is `Bypass/Mute`, it changes the state of the connected nodes based on whether the behavior is `Bypass` or `Mute`.
312
+ * **Limitation**: Due to these characteristics, it does not function correctly when the batch count exceeds 1. Additionally, it does not guarantee proper operation when the seed is randomized or when the state of nodes is altered by actions such as `Queue Trigger`, `Set Widget Value`, `Set Mute`, before the Control Bridge.
313
+ * When utilizing this node, please structure the workflow in such a way that `Queue Trigger`, `Set Widget Value`, `Set Mute State`, and similar actions are executed at the end of the workflow.
314
+ * If you want to change the value of the seed at each iteration, please ensure that Set Widget Value is executed at the end of the workflow instead of using randomization.
315
+ * It is not a problem if the seed changes due to randomization as long as it occurs after the Control Bridge section.
316
+ * `Remote Boolean (on prompt)`, `Remote Int (on prompt)` - At the start of the prompt, this node forcibly sets the `widget_value` of `node_id`. It is disregarded if the target widget type is different.
317
+ * You can find the `node_id` by checking through [ComfyUI-Manager](https://github.com/ltdrdata/ComfyUI-Manager) using the format `Badge: #ID Nickname`.
318
+ * Experimental set of nodes for implementing loop functionality (tutorial to be prepared later / [example workflow](test/loop-test.json)).
319
+
320
+
321
+ ### Limitation
322
+ * Many nodes in the `Impact Pack` use a wildcard type to allow arbitrary input/output connections. This approach will be replaced once ComfyUI officially supports **dynamic types**. Until then, while it functions without issues, type validation may still produce error messages.
323
+
324
+
325
+ ### HuggingFace nodes
326
+ * These nodes provide functionalities based on HuggingFace repository models.
327
+ * The path where the HuggingFace model cache is stored can be changed through the `HF_HOME` environment variable.
328
+ * `HF Transformers Classifier Provider` - This is a node that provides a classifier based on HuggingFace's transformers models.
329
+ * The 'repo id' parameter should contain HuggingFace's repo id. When `preset_repo_id` is set to `Manual repo id`, use the manually entered repo id in `manual_repo_id`.
330
+ * e.g. 'rizvandwiki/gender-classification-2' is a repository that provides a model for gender classification.
331
+ * `SEGS Classify` - This node utilizes the `TRANSFORMERS_CLASSIFIER` loaded with 'HF Transformers Classifier Provider' to classify `SEGS`.
332
+ * The 'expr' allows for forms like `label > number`, and in the case of `preset_expr` being `Manual expr`, it uses the expression entered in `manual_expr`.
333
+ * For example, in the case of `male <= 0.4`, if the score of the `male` label in the classification result is less than or equal to 0.4, it is categorized as `filtered_SEGS`, otherwise, it is categorized as `remained_SEGS`.
334
+ * For supported labels, please refer to the `config.json` of the respective HuggingFace repository.
335
+ * `#Female` and `#Male` are symbols that group multiple labels such as `Female, women, woman, ...`, for convenience, rather than being single labels.
336
+
337
+
338
+ ### Etc nodes
339
+ * `Impact Scheduler Adapter` - With the addition of AYS to the scheduler of the Impact Pack and Inspire Pack, there is an issue of incompatibility when the existing scheduler widget is converted to input. The Impact Scheduler Adapter allows for an indirect connection to be possible.
340
+ * `StringListToString` - Convert String List to String
341
+ * `WildcardPromptFromString` - Create labeled wildcard for detailer from string.
342
+ * This node works well when used with MakeTileSEGS. [[Link](https://github.com/ltdrdata/ComfyUI-Impact-Pack/pull/536#discussion_r1586060779)]
343
+
344
+ * `String Selector` - It selects and returns a portion of the string. When `multiline` mode is disabled, it simply returns the string of the line pointed to by the selector. When `multiline` mode is enabled, it divides the string based on lines that start with `#` and returns them. If the `select` value is larger than the number of items, it will start counting from the first line again and return accordingly.
345
+ * `Combine Conditionings` - It takes multiple conditionings as input and combines them into a single conditioning.
346
+ * `Concat Conditionings` - It takes multiple conditionings as input and concat them into a single conditioning.
347
+ * `Negative Cond Placeholder` - Models like FLUX.1 do not use Negative Conditioning. This is a placeholder node for them. You can use FLUX.1 by replacing the Negative Conditioning used in Impact KSampler, KSampler (Inspire), and Detailer with this node.
348
+ * `Execution Order Controller` - A helper node that can forcibly control the execution order of nodes.
349
+ * Connect the output of the node that should be executed first to the signal, and make the input of the node that should be executed later pass through this node.
350
+ * `List Bridge` - When passing the list output through this node, it collects and organizes the data before forwarding it, which ensures that the previous stage's sub-workflow has been completed.
351
+
352
+
353
+ ## Feature
354
+ * `Interactive SAM Detector (Clipspace)` - When you right-click on a node that has 'MASK' and 'IMAGE' outputs, a context menu will open. From this menu, you can either open a dialog to create a SAM Mask using 'Open in SAM Detector', or copy the content (likely mask data) using 'Copy (Clipspace)' and generate a mask using 'Impact SAM Detector' from the clipspace menu, and then paste it using 'Paste (Clipspace)'.
355
+ * Providing a feature to detect errors that occur when mixing models and clips from checkpoints such as `SDXL Base`, `SDXL Refiner`, `SD1.x`, `SD2.x` during sample execution, and reporting appropriate errors.
356
+
357
+
358
+ ## How To Install?
359
+
360
+ ### Install via ComfyUI-Manager (Recommended)
361
+ * Search `ComfyUI Impact Pack` in ComfyUI-Manager and click `Install` button.
362
+
363
+ ### Manual Install (Not Recommended)
364
+ 1. `cd custom_nodes`
365
+ 2. `git clone https://github.com/ltdrdata/ComfyUI-Impact-Pack`
366
+ 3. `cd ComfyUI-Impact-Pack`
367
+ 4. `pip install -r requirements.txt`
368
+ * **IMPORTANT**:
369
+ * You must install it within the Python environment where ComfyUI is running.
370
+ * For the portable version, use `<installed path>\python_embeded\python.exe -m pip` instead of `pip`. For a `venv`, activate the `venv` first and then use `pip`.
371
+ 5. Restart ComfyUI
372
+
373
+ * NOTE1: If an error occurs during the installation process, please refer to [Troubleshooting Page](troubleshooting/TROUBLESHOOTING.md) for assistance.
374
+ * NOTE2: You can use this colab notebook [colab notebook](https://colab.research.google.com/github/ltdrdata/ComfyUI-Impact-Pack/blob/Main/notebook/comfyui_colab_impact_pack.ipynb) to launch it. This notebook automatically downloads the impact pack to the custom_nodes directory, installs the tested dependencies, and runs it.
375
+ * NOTE3: If you create an empty file named `skip_download_model` in the `ComfyUI/custom_nodes/` directory, it will skip the model download step during the installation of the impact pack.
376
+
377
+
378
+ ## Package Dependencies (If you need to manual setup.)
379
+
380
+ * pip install
381
+ * segment-anything
382
+ * scikit-image
383
+ * piexif
384
+ * opencv-python
385
+ * scipy
386
+ * numpy<2
387
+ * dill
388
+ * matplotlib
389
+ * (optional) onnxruntime
390
+ * (deprecated) openmim # for mim
391
+ * (deprecated) pycocotools # for mim
392
+
393
+ * linux packages (ubuntu)
394
+ * libgl1-mesa-glx
395
+ * libglib2.0-0
396
+
397
+
398
+ ## Config example
399
+ * Once you run the Impact Pack for the first time, an `impact-pack.ini` file will be automatically generated in the Impact Pack directory. You can modify this configuration file to customize the default behavior.
400
+ * `dependency_version` - don't touch this
401
+ * `sam_editor_cpu` - use cpu for `SAM editor` instead of gpu
402
+ * sam_editor_model: Specify the SAM model for the SAM editor.
403
+ * You can download various SAM models using ComfyUI-Manager.
404
+ * Path to SAM model: `ComfyUI/models/sams`
405
+ ```
406
+ [default]
407
+ sam_editor_cpu = False
408
+ sam_editor_model = sam_vit_b_01ec64.pth
409
+ ```
410
+
411
+
412
+ ## Other Materials (auto-download when installing)
413
+
414
+ * ComfyUI/models/sams <= https://dl.fbaipublicfiles.com/segment_anything/sam_vit_b_01ec64.pth
415
+
416
+
417
+ ## Troubleshooting page
418
+ * [Troubleshooting Page](troubleshooting/TROUBLESHOOTING.md)
419
+
420
+
421
+ ## How To Use (DDetailer feature)
422
+
423
+ #### 1. Basic auto face detection and refine exapmle.
424
+ ![simple](https://github.com/ltdrdata/ComfyUI-extension-tutorials/raw/Main/ComfyUI-Impact-Pack/images/simple.png)
425
+ * The face that has been damaged due to low resolution is restored with high resolution by generating and synthesizing it, in order to restore the details.
426
+ * The FaceDetailer node is a combination of a Detector node for face detection and a Detailer node for image enhancement. See the [Advanced Tutorial](https://github.com/ltdrdata/ComfyUI-extension-tutorials/raw/Main/ComfyUI-Impact-Pack/tutorial/advanced.md) for a more detailed explanation.
427
+ * The MASK output of FaceDetailer provides a visualization of where the detected and enhanced areas are.
428
+
429
+ ![simple-orig](https://github.com/ltdrdata/ComfyUI-extension-tutorials/raw/Main/ComfyUI-Impact-Pack/images/simple-original.png) ![simple-refined](https://github.com/ltdrdata/ComfyUI-extension-tutorials/raw/Main/ComfyUI-Impact-Pack/images/simple-refined.png)
430
+ * You can see that the face in the image on the left has increased detail as in the image on the right.
431
+
432
+ #### 2. 2Pass refine (restore a severely damaged face)
433
+ ![2pass-workflow-example](https://github.com/ltdrdata/ComfyUI-extension-tutorials/raw/Main/ComfyUI-Impact-Pack/images/2pass-simple.png)
434
+ * Although two FaceDetailers can be attached together for a 2-pass configuration, various common inputs used in KSampler can be passed through DETAILER_PIPE, so FaceDetailerPipe can be used to configure easily.
435
+ * In 1pass, only rough outline recovery is required, so restore with a reasonable resolution and low options. However, if you increase the dilation at this time, not only the face but also the surrounding parts are included in the recovery range, so it is useful when you need to reshape the face other than the facial part.
436
+
437
+ ![2pass-example-original](https://github.com/ltdrdata/ComfyUI-extension-tutorials/raw/Main/ComfyUI-Impact-Pack/images/2pass-original.png) ![2pass-example-middle](https://github.com/ltdrdata/ComfyUI-extension-tutorials/raw/Main/ComfyUI-Impact-Pack/images/2pass-1pass.png) ![2pass-example-result](https://github.com/ltdrdata/ComfyUI-extension-tutorials/raw/Main/ComfyUI-Impact-Pack/images/2pass-2pass.png)
438
+ * In the first stage, the severely damaged face is restored to some extent, and in the second stage, the details are restored
439
+
440
+ #### 3. Face Bbox(bounding box) + Person silhouette segmentation (prevent distortion of the background.)
441
+ ![combination-workflow-example](https://github.com/ltdrdata/ComfyUI-extension-tutorials/raw/Main/ComfyUI-Impact-Pack/images/combination.jpg)
442
+ ![combination-example-original](https://github.com/ltdrdata/ComfyUI-extension-tutorials/raw/Main/ComfyUI-Impact-Pack/images/combination-original.png) ![combination-example-refined](https://github.com/ltdrdata/ComfyUI-extension-tutorials/raw/Main/ComfyUI-Impact-Pack/images/combination-refined.png)
443
+
444
+ * Facial synthesis that emphasizes details is delicately aligned with the contours of the face, and it can be observed that it does not affect the image outside of the face.
445
+
446
+ * The BBoxDetectorForEach node is used to detect faces, and the SAMDetectorCombined node is used to find the segment related to the detected face. By using the Segs & Mask node with the two masks obtained in this way, an accurate mask that intersects based on segs can be generated. If this generated mask is input to the DetailerForEach node, only the target area can be created in high resolution from the image and then composited.
447
+
448
+ #### 4. Iterative Upscale
449
+ ![upscale-workflow-example](https://github.com/ltdrdata/ComfyUI-extension-tutorials/raw/Main/ComfyUI-Impact-Pack/images/upscale-workflow.png)
450
+
451
+ * The IterativeUpscale node is a node that enlarges an image/latent by a scale_factor. In this process, the upscale is carried out progressively by dividing it into steps.
452
+ * IterativeUpscale takes an Upscaler as an input, similar to a plugin, and uses it during each iteration. PixelKSampleUpscalerProvider is an Upscaler that converts the latent representation to pixel space and applies ksampling.
453
+ * The upscale_model_opt is an optional parameter that determines whether to use the upscale function of the model base if available. Using the upscale function of the model base can significantly reduce the number of iterative steps required. If an x2 upscaler is used, the image/latent is first upscaled by a factor of 2 and then downscaled to the target scale at each step before further processing is done.
454
+
455
+ * The following image is an image of 304x512 pixels and the same image scaled up to three times its original size using IterativeUpscale.
456
+
457
+ ![combination-example-original](https://github.com/ltdrdata/ComfyUI-extension-tutorials/raw/Main/ComfyUI-Impact-Pack/images/upscale-original.png) ![combination-example-refined](https://github.com/ltdrdata/ComfyUI-extension-tutorials/raw/Main/ComfyUI-Impact-Pack/images/upscale-3x.png)
458
+
459
+
460
+ #### 5. Interactive SAM Detector (Clipspace)
461
+
462
+ * When you right-click on the node that outputs 'MASK' and 'IMAGE', a menu called "Open in SAM Detector" appears, as shown in the following picture. Clicking on the menu opens a dialog in SAM's functionality, allowing you to generate a segment mask.
463
+ ![samdetector-menu](https://github.com/ltdrdata/ComfyUI-extension-tutorials/raw/Main/ComfyUI-Impact-Pack/images/SAMDetector-menu.png)
464
+
465
+ * By clicking the left mouse button on a coordinate, a positive prompt in blue color is entered, indicating the area that should be included. Clicking the right mouse button on a coordinate enters a negative prompt in red color, indicating the area that should be excluded. Positive prompts represent the areas that should be included, while negative prompts represent the areas that should be excluded.
466
+ * You can remove the points that were added by using the "undo" button. After selecting the points, pressing the "detect" button generates the mask. Additionally, you can adjust the fidelity slider to determine the extent to which the mask belongs to the confidence region.
467
+
468
+ ![samdetector-dialog](https://github.com/ltdrdata/ComfyUI-extension-tutorials/raw/Main/ComfyUI-Impact-Pack/images/SAMDetector-dialog.jpg)
469
+
470
+ * If you opened the dialog through "Open in SAM Detector" from the node, you can directly apply the changes by clicking the "Save to node" button. However, if you opened the dialog through the "clipspace" menu, you can save it to clipspace by clicking the "Save" button.
471
+
472
+ ![samdetector-result](https://github.com/ltdrdata/ComfyUI-extension-tutorials/raw/Main/ComfyUI-Impact-Pack/images/SAMDetector-result.jpg)
473
+
474
+ * When you execute using the reflected mask in the node, you can observe that the image and mask are displayed separately.
475
+
476
+
477
+ ## Others Tutorials
478
+ * [ComfyUI-extension-tutorials/ComfyUI-Impact-Pack](https://github.com/ltdrdata/ComfyUI-extension-tutorials/tree/Main/ComfyUI-Impact-Pack) - You can find various tutorials and workflows on this page.
479
+ * [Advanced Tutorial](https://github.com/ltdrdata/ComfyUI-extension-tutorials/blob/Main/ComfyUI-Impact-Pack/tutorial/advanced.md)
480
+ * [SAM Application](https://github.com/ltdrdata/ComfyUI-extension-tutorials/blob/Main/ComfyUI-Impact-Pack/tutorial/sam.md)
481
+ * [PreviewBridge](https://github.com/ltdrdata/ComfyUI-extension-tutorials/blob/Main/ComfyUI-Impact-Pack/tutorial/previewbridge.md)
482
+ * [Mask Pointer](https://github.com/ltdrdata/ComfyUI-extension-tutorials/blob/Main/ComfyUI-Impact-Pack/tutorial/maskpointer.md)
483
+ * [ONNX Tutorial](https://github.com/ltdrdata/ComfyUI-extension-tutorials/blob/Main/ComfyUI-Impact-Pack/tutorial/ONNX.md)
484
+ * [CLIPSeg Tutorial](https://github.com/ltdrdata/ComfyUI-extension-tutorials/blob/Main/ComfyUI-Impact-Pack/tutorial/clipseg.md)
485
+ * [Extreme Highresolution Upscale](https://github.com/ltdrdata/ComfyUI-extension-tutorials/blob/Main/ComfyUI-Impact-Pack/tutorial/extreme-upscale.md)
486
+ * [TwoSamplersForMask](https://github.com/ltdrdata/ComfyUI-extension-tutorials/blob/Main/ComfyUI-Impact-Pack/tutorial/TwoSamplers.md)
487
+ * [TwoAdvancedSamplersForMask](https://github.com/ltdrdata/ComfyUI-extension-tutorials/blob/Main/ComfyUI-Impact-Pack/tutorial/TwoAdvancedSamplers.md)
488
+ * [Advanced Iterative Upscale: PK_HOOK](https://github.com/ltdrdata/ComfyUI-extension-tutorials/blob/Main/ComfyUI-Impact-Pack/tutorial/pk_hook.md)
489
+ * [Advanced Iterative Upscale: TwoSamplersForMask Upscale Provider](https://github.com/ltdrdata/ComfyUI-extension-tutorials/blob/Main/ComfyUI-Impact-Pack/tutorial/TwoSamplersUpscale.md)
490
+ * [Interactive SAM + PreviewBridge](https://github.com/ltdrdata/ComfyUI-extension-tutorials/blob/Main/ComfyUI-Impact-Pack/tutorial/sam_with_preview_bridge.md)
491
+ * [ImageSender/ImageReceiver/LatentSender/LatentReceiver](https://github.com/ltdrdata/ComfyUI-extension-tutorials/blob/Main/ComfyUI-Impact-Pack/tutorial/sender_receiver.md)
492
+ * [ImpactWildcardProcessor](https://github.com/ltdrdata/ComfyUI-extension-tutorials/blob/Main/ComfyUI-Impact-Pack/tutorial/ImpactWildcardProcessor.md)
493
+
494
+
495
+ ## Credits
496
+
497
+ ComfyUI/[ComfyUI](https://github.com/comfyanonymous/ComfyUI) - A powerful and modular stable diffusion GUI.
498
+
499
+ dustysys/[ddetailer](https://github.com/dustysys/ddetailer) - DDetailer for Stable-diffusion-webUI extension.
500
+
501
+ Bing-su/[dddetailer](https://github.com/Bing-su/dddetailer) - The anime-face-detector used in ddetailer has been updated to be compatible with mmdet 3.0.0, and we have also applied a patch to the pycocotools dependency for Windows environment in ddetailer.
502
+
503
+ facebook/[segment-anything](https://github.com/facebookresearch/segment-anything) - Segmentation Anything!
504
+
505
+ hysts/[anime-face-detector](https://github.com/hysts/anime-face-detector) - Creator of `anime-face_yolov3`, which has impressive performance on a variety of art styles.
506
+
507
+ open-mmlab/[mmdetection](https://github.com/open-mmlab/mmdetection) - Object detection toolset. `dd-person_mask2former` was trained via transfer learning using their [R-50 Mask2Former instance segmentation model](https://github.com/open-mmlab/mmdetection/tree/master/configs/mask2former#instance-segmentation) as a base.
508
+
509
+ biegert/[ComfyUI-CLIPSeg](https://github.com/biegert/ComfyUI-CLIPSeg) - This is a custom node that enables the use of CLIPSeg technology, which can find segments through prompts, in ComfyUI.
510
+
511
+ BlenderNeok/[ComfyUI-TiledKSampler](https://github.com/BlenderNeko/ComfyUI_TiledKSampler) - The tile sampler allows high-resolution sampling even in places with low GPU VRAM.
512
+
513
+ BlenderNeok/[ComfyUI_Noise](https://github.com/BlenderNeko/ComfyUI_Noise) - The noise injection feature relies on this function and slerp code for noise variation
514
+
515
+ WASasquatch/[was-node-suite-comfyui](https://github.com/WASasquatch/was-node-suite-comfyui) - A powerful custom node extensions of ComfyUI.
516
+
517
+ Trung0246/[ComfyUI-0246](https://github.com/Trung0246/ComfyUI-0246) - Nice bypass hack!
518
+
519
+ Layer-norm/[comfyui-lama-remover](https://github.com/Layer-norm/comfyui-lama-remover) - Required for using `LamaRemoverDetailerHook`.
zavodik/nodes/ComfyUI-Impact-Pack/__init__.py ADDED
@@ -0,0 +1,456 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """
2
+ @author: Dr.Lt.Data
3
+ @title: Impact Pack
4
+ @nickname: Impact Pack
5
+ @description: This extension offers various detector nodes and detailer nodes that allow you to configure a workflow that automatically enhances facial details. And provide iterative upscaler.
6
+ """
7
+
8
+ import folder_paths
9
+ import os
10
+ import sys
11
+ import logging
12
+
13
+ comfy_path = os.path.dirname(folder_paths.__file__)
14
+ impact_path = os.path.join(os.path.dirname(__file__))
15
+ modules_path = os.path.join(os.path.dirname(__file__), "modules")
16
+
17
+ sys.path.append(modules_path)
18
+
19
+ import impact.config
20
+ logging.info(f"### Loading: ComfyUI-Impact-Pack ({impact.config.version})")
21
+
22
+ # Core
23
+ # recheck dependencies for colab
24
+ try:
25
+ import folder_paths
26
+ import torch # noqa: F401
27
+ import cv2 # noqa: F401
28
+ from cv2 import setNumThreads # noqa: F401
29
+ import numpy as np # noqa: F401
30
+ import comfy.samplers
31
+ import comfy.sd # noqa: F401
32
+ from PIL import Image, ImageFilter # noqa: F401
33
+ from skimage.measure import label, regionprops # noqa: F401
34
+ from collections import namedtuple # noqa: F401
35
+ import piexif # noqa: F401
36
+ import nodes
37
+ except Exception as e:
38
+ import logging
39
+ logging.error("[Impact Pack] Failed to import due to several dependencies are missing!!!!")
40
+ raise e
41
+
42
+
43
+ import impact.impact_server # to load server api
44
+
45
+ from .modules.impact.impact_pack import * # noqa: F403
46
+ from .modules.impact.detectors import * # noqa: F403
47
+ from .modules.impact.pipe import * # noqa: F403
48
+ from .modules.impact.logics import * # noqa: F403
49
+ from .modules.impact.util_nodes import * # noqa: F403
50
+ from .modules.impact.segs_nodes import * # noqa: F403
51
+ from .modules.impact.special_samplers import * # noqa: F403
52
+ from .modules.impact.hf_nodes import * # noqa: F403
53
+ from .modules.impact.bridge_nodes import * # noqa: F403
54
+ from .modules.impact.hook_nodes import * # noqa: F403
55
+ from .modules.impact.animatediff_nodes import * # noqa: F403
56
+ from .modules.impact.segs_upscaler import * # noqa: F403
57
+
58
+ import threading
59
+
60
+
61
+ threading.Thread(target=impact.wildcards.wildcard_load).start()
62
+
63
+
64
+ NODE_CLASS_MAPPINGS = {
65
+ "SAMLoader": SAMLoader, # noqa: F405
66
+ "CLIPSegDetectorProvider": CLIPSegDetectorProvider, # noqa: F405
67
+ "ONNXDetectorProvider": ONNXDetectorProvider, # noqa: F405
68
+
69
+ "BitwiseAndMaskForEach": BitwiseAndMaskForEach, # noqa: F405
70
+ "SubtractMaskForEach": SubtractMaskForEach, # noqa: F405
71
+
72
+ "DetailerForEach": DetailerForEach, # noqa: F405
73
+ "DetailerForEachAutoRetry": DetailerForEachAutoRetry, # noqa: F405
74
+ "DetailerForEachDebug": DetailerForEachTest, # noqa: F405
75
+ "DetailerForEachPipe": DetailerForEachPipe, # noqa: F405
76
+ "DetailerForEachDebugPipe": DetailerForEachTestPipe, # noqa: F405
77
+ "DetailerForEachPipeForAnimateDiff": DetailerForEachPipeForAnimateDiff, # noqa: F405
78
+
79
+ "SAMDetectorCombined": SAMDetectorCombined, # noqa: F405
80
+ "SAMDetectorSegmented": SAMDetectorSegmented, # noqa: F405
81
+
82
+ "FaceDetailer": FaceDetailer, # noqa: F405
83
+ "FaceDetailerPipe": FaceDetailerPipe, # noqa: F405
84
+ "MaskDetailerPipe": MaskDetailerPipe, # noqa: F405
85
+
86
+ "ToDetailerPipe": ToDetailerPipe, # noqa: F405
87
+ "ToDetailerPipeSDXL": ToDetailerPipeSDXL, # noqa: F405
88
+ "FromDetailerPipe": FromDetailerPipe, # noqa: F405
89
+ "FromDetailerPipe_v2": FromDetailerPipe_v2, # noqa: F405
90
+ "FromDetailerPipeSDXL": FromDetailerPipe_SDXL, # noqa: F405
91
+ "AnyPipeToBasic": AnyPipeToBasic, # noqa: F405
92
+ "ToBasicPipe": ToBasicPipe, # noqa: F405
93
+ "FromBasicPipe": FromBasicPipe, # noqa: F405
94
+ "FromBasicPipe_v2": FromBasicPipe_v2, # noqa: F405
95
+ "BasicPipeToDetailerPipe": BasicPipeToDetailerPipe, # noqa: F405
96
+ "BasicPipeToDetailerPipeSDXL": BasicPipeToDetailerPipeSDXL, # noqa: F405
97
+ "DetailerPipeToBasicPipe": DetailerPipeToBasicPipe, # noqa: F405
98
+ "EditBasicPipe": EditBasicPipe, # noqa: F405
99
+ "EditDetailerPipe": EditDetailerPipe, # noqa: F405
100
+ "EditDetailerPipeSDXL": EditDetailerPipeSDXL, # noqa: F405
101
+
102
+ "LatentPixelScale": LatentPixelScale, # noqa: F405
103
+ "PixelKSampleUpscalerProvider": PixelKSampleUpscalerProvider, # noqa: F405
104
+ "PixelKSampleUpscalerProviderPipe": PixelKSampleUpscalerProviderPipe, # noqa: F405
105
+ "IterativeLatentUpscale": IterativeLatentUpscale, # noqa: F405
106
+ "IterativeImageUpscale": IterativeImageUpscale, # noqa: F405
107
+ "PixelTiledKSampleUpscalerProvider": PixelTiledKSampleUpscalerProvider, # noqa: F405
108
+ "PixelTiledKSampleUpscalerProviderPipe": PixelTiledKSampleUpscalerProviderPipe, # noqa: F405
109
+ "TwoSamplersForMaskUpscalerProvider": TwoSamplersForMaskUpscalerProvider, # noqa: F405
110
+ "TwoSamplersForMaskUpscalerProviderPipe": TwoSamplersForMaskUpscalerProviderPipe, # noqa: F405
111
+
112
+ "PixelKSampleHookCombine": PixelKSampleHookCombine, # noqa: F405
113
+ "DenoiseScheduleHookProvider": DenoiseScheduleHookProvider, # noqa: F405
114
+ "StepsScheduleHookProvider": StepsScheduleHookProvider, # noqa: F405
115
+ "CfgScheduleHookProvider": CfgScheduleHookProvider, # noqa: F405
116
+ "NoiseInjectionHookProvider": NoiseInjectionHookProvider, # noqa: F405
117
+ "UnsamplerHookProvider": UnsamplerHookProvider, # noqa: F405
118
+ "CoreMLDetailerHookProvider": CoreMLDetailerHookProvider, # noqa: F405
119
+ "PreviewDetailerHookProvider": PreviewDetailerHookProvider, # noqa: F405
120
+ "BlackPatchRetryHookProvider": BlackPatchRetryHookProvider, # noqa: F405
121
+ "CustomSamplerDetailerHookProvider": CustomSamplerDetailerHookProvider, # noqa: F405
122
+ "LamaRemoverDetailerHookProvider": LamaRemoverDetailerHookProvider, # noqa: F405
123
+
124
+ "DetailerHookCombine": DetailerHookCombine, # noqa: F405
125
+ "NoiseInjectionDetailerHookProvider": NoiseInjectionDetailerHookProvider, # noqa: F405
126
+ "UnsamplerDetailerHookProvider": UnsamplerDetailerHookProvider, # noqa: F405
127
+ "DenoiseSchedulerDetailerHookProvider": DenoiseSchedulerDetailerHookProvider, # noqa: F405
128
+ "SEGSOrderedFilterDetailerHookProvider": SEGSOrderedFilterDetailerHookProvider, # noqa: F405
129
+ "SEGSRangeFilterDetailerHookProvider": SEGSRangeFilterDetailerHookProvider, # noqa: F405
130
+ "SEGSLabelFilterDetailerHookProvider": SEGSLabelFilterDetailerHookProvider, # noqa: F405
131
+ "VariationNoiseDetailerHookProvider": VariationNoiseDetailerHookProvider, # noqa: F405
132
+ # "CustomNoiseDetailerHookProvider": CustomNoiseDetailerHookProvider,
133
+
134
+ "BitwiseAndMask": BitwiseAndMask, # noqa: F405
135
+ "SubtractMask": SubtractMask, # noqa: F405
136
+ "AddMask": AddMask, # noqa: F405
137
+ "MaskRectArea": MaskRectArea, # noqa: F405
138
+ "MaskRectAreaAdvanced": MaskRectAreaAdvanced, # noqa: F405
139
+ "ImpactSegsAndMask": SegsBitwiseAndMask, # noqa: F405
140
+ "ImpactSegsAndMaskForEach": SegsBitwiseAndMaskForEach, # noqa: F405
141
+ "EmptySegs": EmptySEGS, # noqa: F405
142
+ "ImpactFlattenMask": FlattenMask, # noqa: F405
143
+
144
+ "MediaPipeFaceMeshToSEGS": MediaPipeFaceMeshToSEGS, # noqa: F405
145
+ "MaskToSEGS": MaskToSEGS, # noqa: F405
146
+ "MaskToSEGS_for_AnimateDiff": MaskToSEGS_for_AnimateDiff, # noqa: F405
147
+ "ToBinaryMask": ToBinaryMask, # noqa: F405
148
+ "MasksToMaskList": MasksToMaskList, # noqa: F405
149
+ "MaskListToMaskBatch": MaskListToMaskBatch, # noqa: F405
150
+ "ImageListToImageBatch": ImageListToImageBatch, # noqa: F405
151
+ "SetDefaultImageForSEGS": DefaultImageForSEGS, # noqa: F405
152
+ "RemoveImageFromSEGS": RemoveImageFromSEGS, # noqa: F405
153
+
154
+ "BboxDetectorSEGS": BboxDetectorForEach, # noqa: F405
155
+ "SegmDetectorSEGS": SegmDetectorForEach, # noqa: F405
156
+ "ONNXDetectorSEGS": BboxDetectorForEach, # noqa: F405
157
+ "ImpactSimpleDetectorSEGS_for_AD": SimpleDetectorForAnimateDiff, # noqa: F405
158
+ "ImpactSAM2VideoDetectorSEGS": SAM2VideoDetectorSEGS, # noqa: F405
159
+ "ImpactSimpleDetectorSEGS": SimpleDetectorForEach, # noqa: F405
160
+ "ImpactSimpleDetectorSEGSPipe": SimpleDetectorForEachPipe, # noqa: F405
161
+ "ImpactControlNetApplySEGS": ControlNetApplySEGS, # noqa: F405
162
+ "ImpactControlNetApplyAdvancedSEGS": ControlNetApplyAdvancedSEGS, # noqa: F405
163
+ "ImpactControlNetClearSEGS": ControlNetClearSEGS, # noqa: F405
164
+ "ImpactIPAdapterApplySEGS": IPAdapterApplySEGS, # noqa: F405
165
+
166
+ "ImpactDecomposeSEGS": DecomposeSEGS, # noqa: F405
167
+ "ImpactAssembleSEGS": AssembleSEGS, # noqa: F405
168
+ "ImpactFrom_SEG_ELT": From_SEG_ELT, # noqa: F405
169
+ "ImpactEdit_SEG_ELT": Edit_SEG_ELT, # noqa: F405
170
+ "ImpactDilate_Mask_SEG_ELT": Dilate_SEG_ELT, # noqa: F405
171
+ "ImpactDilateMask": DilateMask, # noqa: F405
172
+ "ImpactGaussianBlurMask": GaussianBlurMask, # noqa: F405
173
+ "ImpactDilateMaskInSEGS": DilateMaskInSEGS, # noqa: F405
174
+ "ImpactGaussianBlurMaskInSEGS": GaussianBlurMaskInSEGS, # noqa: F405
175
+ "ImpactScaleBy_BBOX_SEG_ELT": SEG_ELT_BBOX_ScaleBy, # noqa: F405
176
+ "ImpactFrom_SEG_ELT_bbox": From_SEG_ELT_bbox, # noqa: F405
177
+ "ImpactFrom_SEG_ELT_crop_region": From_SEG_ELT_crop_region, # noqa: F405
178
+ "ImpactCount_Elts_in_SEGS": Count_Elts_in_SEGS, # noqa: F405
179
+
180
+ "BboxDetectorCombined_v2": BboxDetectorCombined, # noqa: F405
181
+ "SegmDetectorCombined_v2": SegmDetectorCombined, # noqa: F405
182
+ "SegsToCombinedMask": SegsToCombinedMask, # noqa: F405
183
+
184
+ "KSamplerProvider": KSamplerProvider, # noqa: F405
185
+ "TwoSamplersForMask": TwoSamplersForMask, # noqa: F405
186
+ "TiledKSamplerProvider": TiledKSamplerProvider, # noqa: F405
187
+
188
+ "KSamplerAdvancedProvider": KSamplerAdvancedProvider, # noqa: F405
189
+ "TwoAdvancedSamplersForMask": TwoAdvancedSamplersForMask, # noqa: F405
190
+
191
+ "ImpactNegativeConditioningPlaceholder": NegativeConditioningPlaceholder, # noqa: F405
192
+
193
+ "PreviewBridge": PreviewBridge, # noqa: F405
194
+ "PreviewBridgeLatent": PreviewBridgeLatent, # noqa: F405
195
+ "ImageSender": ImageSender, # noqa: F405
196
+ "ImageReceiver": ImageReceiver, # noqa: F405
197
+ "LatentSender": LatentSender, # noqa: F405
198
+ "LatentReceiver": LatentReceiver, # noqa: F405
199
+ "ImageMaskSwitch": ImageMaskSwitch, # noqa: F405
200
+ "LatentSwitch": GeneralSwitch, # noqa: F405
201
+ "SEGSSwitch": GeneralSwitch, # noqa: F405
202
+ "ImpactSwitch": GeneralSwitch, # noqa: F405
203
+ "ImpactInversedSwitch": GeneralInversedSwitch, # noqa: F405
204
+
205
+ "ImpactWildcardProcessor": ImpactWildcardProcessor, # noqa: F405
206
+ "ImpactWildcardEncode": ImpactWildcardEncode, # noqa: F405
207
+
208
+ "SEGSUpscaler": SEGSUpscaler, # noqa: F405
209
+ "SEGSUpscalerPipe": SEGSUpscalerPipe, # noqa: F405
210
+ "SEGSDetailer": SEGSDetailer, # noqa: F405
211
+ "SEGSPaste": SEGSPaste, # noqa: F405
212
+ "SEGSPreview": SEGSPreview, # noqa: F405
213
+ "SEGSPreviewCNet": SEGSPreviewCNet, # noqa: F405
214
+ "SEGSToImageList": SEGSToImageList, # noqa: F405
215
+ "ImpactSEGSToMaskList": SEGSToMaskList, # noqa: F405
216
+ "ImpactSEGSToMaskBatch": SEGSToMaskBatch, # noqa: F405
217
+ "ImpactSEGSConcat": SEGSConcat, # noqa: F405
218
+ "ImpactSEGSPicker": SEGSPicker, # noqa: F405
219
+ "ImpactMakeTileSEGS": MakeTileSEGS, # noqa: F405
220
+ "ImpactSEGSMerge": SEGSMerge, # noqa: F405
221
+
222
+ "SEGSDetailerForAnimateDiff": SEGSDetailerForAnimateDiff, # noqa: F405
223
+
224
+ "ImpactKSamplerBasicPipe": KSamplerBasicPipe, # noqa: F405
225
+ "ImpactKSamplerAdvancedBasicPipe": KSamplerAdvancedBasicPipe, # noqa: F405
226
+
227
+ "ReencodeLatent": ReencodeLatent, # noqa: F405
228
+ "ReencodeLatentPipe": ReencodeLatentPipe, # noqa: F405
229
+
230
+ "ImpactImageBatchToImageList": ImageBatchToImageList, # noqa: F405
231
+ "ImpactMakeImageList": MakeImageList, # noqa: F405
232
+ "ImpactMakeImageBatch": MakeImageBatch, # noqa: F405
233
+ "ImpactMakeAnyList": MakeAnyList, # noqa: F405
234
+ "ImpactMakeMaskList": MakeMaskList, # noqa: F405
235
+ "ImpactMakeMaskBatch": MakeMaskBatch, # noqa: F405
236
+ "ImpactSelectNthItemOfAnyList": NthItemOfAnyList, # noqa: F405
237
+
238
+ "RegionalSampler": RegionalSampler, # noqa: F405
239
+ "RegionalSamplerAdvanced": RegionalSamplerAdvanced, # noqa: F405
240
+ "CombineRegionalPrompts": CombineRegionalPrompts, # noqa: F405
241
+ "RegionalPrompt": RegionalPrompt, # noqa: F405
242
+
243
+ "ImpactCombineConditionings": CombineConditionings, # noqa: F405
244
+ "ImpactConcatConditionings": ConcatConditionings, # noqa: F405
245
+
246
+ "ImpactSEGSLabelAssign": SEGSLabelAssign, # noqa: F405
247
+ "ImpactSEGSLabelFilter": SEGSLabelFilter, # noqa: F405
248
+ "ImpactSEGSRangeFilter": SEGSRangeFilter, # noqa: F405
249
+ "ImpactSEGSOrderedFilter": SEGSOrderedFilter, # noqa: F405
250
+ "ImpactSEGSIntersectionFilter": SEGSIntersectionFilter, # noqa: F405
251
+ "ImpactSEGSNMSFilter": SEGSNMSFilter, # noqa: F405
252
+
253
+ "ImpactCompare": ImpactCompare, # noqa: F405
254
+ "ImpactConditionalBranch": ImpactConditionalBranch, # noqa: F405
255
+ "ImpactConditionalBranchSelMode": ImpactConditionalBranchSelMode, # noqa: F405
256
+ "ImpactIfNone": ImpactIfNone, # noqa: F405
257
+ "ImpactConvertDataType": ImpactConvertDataType, # noqa: F405
258
+ "ImpactLogicalOperators": ImpactLogicalOperators, # noqa: F405
259
+ "ImpactInt": ImpactInt, # noqa: F405
260
+ "ImpactFloat": ImpactFloat, # noqa: F405
261
+ "ImpactBoolean": ImpactBoolean, # noqa: F405
262
+ "ImpactValueSender": ImpactValueSender, # noqa: F405
263
+ "ImpactValueReceiver": ImpactValueReceiver, # noqa: F405
264
+ "ImpactImageInfo": ImpactImageInfo, # noqa: F405
265
+ "ImpactLatentInfo": ImpactLatentInfo, # noqa: F405
266
+ "ImpactMinMax": ImpactMinMax, # noqa: F405
267
+ "ImpactNeg": ImpactNeg, # noqa: F405
268
+ "ImpactConditionalStopIteration": ImpactConditionalStopIteration, # noqa: F405
269
+ "ImpactStringSelector": StringSelector, # noqa: F405
270
+ "StringListToString": StringListToString, # noqa: F405
271
+ "WildcardPromptFromString": WildcardPromptFromString, # noqa: F405
272
+ "ImpactExecutionOrderController": ImpactExecutionOrderController, # noqa: F405
273
+ "ImpactListBridge": ImpactListBridge, # noqa: F405
274
+
275
+ "RemoveNoiseMask": RemoveNoiseMask, # noqa: F405
276
+
277
+ "ImpactLogger": ImpactLogger, # noqa: F405
278
+ "ImpactDummyInput": ImpactDummyInput, # noqa: F405
279
+
280
+ "ImpactQueueTrigger": ImpactQueueTrigger, # noqa: F405
281
+ "ImpactQueueTriggerCountdown": ImpactQueueTriggerCountdown, # noqa: F405
282
+ "ImpactSetWidgetValue": ImpactSetWidgetValue, # noqa: F405
283
+ "ImpactNodeSetMuteState": ImpactNodeSetMuteState, # noqa: F405
284
+ "ImpactControlBridge": ImpactControlBridge, # noqa: F405
285
+ "ImpactIsNotEmptySEGS": ImpactNotEmptySEGS, # noqa: F405
286
+ "ImpactSleep": ImpactSleep, # noqa: F405
287
+ "ImpactRemoteBoolean": ImpactRemoteBoolean, # noqa: F405
288
+ "ImpactRemoteInt": ImpactRemoteInt, # noqa: F405
289
+
290
+ "ImpactHFTransformersClassifierProvider": HF_TransformersClassifierProvider, # noqa: F405
291
+ "ImpactSEGSClassify": SEGS_Classify, # noqa: F405
292
+
293
+ "ImpactSchedulerAdapter": ImpactSchedulerAdapter, # noqa: F405
294
+ "GITSSchedulerFuncProvider": GITSSchedulerFuncProvider # noqa: F405
295
+ }
296
+
297
+
298
+ NODE_DISPLAY_NAME_MAPPINGS = {
299
+ "SAMLoader": "SAMLoader (Impact)",
300
+
301
+ "BboxDetectorSEGS": "BBOX Detector (SEGS)",
302
+ "SegmDetectorSEGS": "SEGM Detector (SEGS)",
303
+ "ONNXDetectorSEGS": "ONNX Detector (SEGS/legacy) - use BBOXDetector",
304
+ "ImpactSimpleDetectorSEGS_for_AD": "Simple Detector for Video (SEGS)",
305
+ "ImpactSAM2VideoDetectorSEGS": "SAM2 Video Detector (SEGS)",
306
+ "ImpactSimpleDetectorSEGS": "Simple Detector (SEGS)",
307
+ "ImpactSimpleDetectorSEGSPipe": "Simple Detector (SEGS/pipe)",
308
+ "ImpactControlNetApplySEGS": "ControlNetApply (SEGS) - DEPRECATED",
309
+ "ImpactControlNetApplyAdvancedSEGS": "ControlNetApply (SEGS)",
310
+ "ImpactIPAdapterApplySEGS": "IPAdapterApply (SEGS)",
311
+
312
+ "BboxDetectorCombined_v2": "BBOX Detector (combined)",
313
+ "SegmDetectorCombined_v2": "SEGM Detector (combined)",
314
+ "SegsToCombinedMask": "SEGS to MASK (combined)",
315
+ "MediaPipeFaceMeshToSEGS": "MediaPipe FaceMesh to SEGS",
316
+ "MaskToSEGS": "MASK to SEGS",
317
+ "MaskToSEGS_for_AnimateDiff": "MASK to SEGS for Video",
318
+ "BitwiseAndMaskForEach": "Pixelwise(SEGS & SEGS)",
319
+ "SubtractMaskForEach": "Pixelwise(SEGS - SEGS)",
320
+ "ImpactSegsAndMask": "Pixelwise(SEGS & MASK)",
321
+ "ImpactSegsAndMaskForEach": "Pixelwise(SEGS & MASKS ForEach)",
322
+ "BitwiseAndMask": "Pixelwise(MASK & MASK)",
323
+ "SubtractMask": "Pixelwise(MASK - MASK)",
324
+ "AddMask": "Pixelwise(MASK + MASK)",
325
+ "MaskRectArea": "Mask Rect Area",
326
+ "MaskRectAreaAdvanced": "Mask Rect Area (Advanced)",
327
+ "ImpactFlattenMask": "Flatten Mask Batch",
328
+ "DetailerForEach": "Detailer (SEGS)",
329
+ "DetailerForEachAutoRetry": "Detailer (SEGS) with auto retry",
330
+ "DetailerForEachPipe": "Detailer (SEGS/pipe)",
331
+ "DetailerForEachDebug": "DetailerDebug (SEGS)",
332
+ "DetailerForEachDebugPipe": "DetailerDebug (SEGS/pipe)",
333
+ "SEGSDetailerForAnimateDiff": "SEGSDetailer For Video (SEGS/pipe)",
334
+ "DetailerForEachPipeForAnimateDiff": "Detailer For Video (SEGS/pipe)",
335
+ "SEGSUpscaler": "Upscaler (SEGS)",
336
+ "SEGSUpscalerPipe": "Upscaler (SEGS/pipe)",
337
+
338
+ "SAMDetectorCombined": "SAMDetector (combined)",
339
+ "SAMDetectorSegmented": "SAMDetector (segmented)",
340
+ "FaceDetailerPipe": "FaceDetailer (pipe)",
341
+ "MaskDetailerPipe": "MaskDetailer (pipe)",
342
+
343
+ "FromDetailerPipeSDXL": "FromDetailer (SDXL/pipe)",
344
+ "BasicPipeToDetailerPipeSDXL": "BasicPipe -> DetailerPipe (SDXL)",
345
+ "EditDetailerPipeSDXL": "Edit DetailerPipe (SDXL)",
346
+
347
+ "BasicPipeToDetailerPipe": "BasicPipe -> DetailerPipe",
348
+ "DetailerPipeToBasicPipe": "DetailerPipe -> BasicPipe",
349
+ "EditBasicPipe": "Edit BasicPipe",
350
+ "EditDetailerPipe": "Edit DetailerPipe",
351
+ "AnyPipeToBasic": "Any PIPE -> BasicPipe",
352
+
353
+ "LatentPixelScale": "Latent Scale (on Pixel Space)",
354
+ "IterativeLatentUpscale": "Iterative Upscale (Latent/on Pixel Space)",
355
+ "IterativeImageUpscale": "Iterative Upscale (Image)",
356
+
357
+ "TwoSamplersForMaskUpscalerProvider": "TwoSamplersForMask Upscaler Provider",
358
+ "TwoSamplersForMaskUpscalerProviderPipe": "TwoSamplersForMask Upscaler Provider (pipe)",
359
+
360
+ "ReencodeLatent": "Reencode Latent",
361
+ "ReencodeLatentPipe": "Reencode Latent (pipe)",
362
+
363
+ "ImpactKSamplerBasicPipe": "KSampler (pipe)",
364
+ "ImpactKSamplerAdvancedBasicPipe": "KSampler (Advanced/pipe)",
365
+ "ImpactSEGSLabelAssign": "SEGS Assign (label)",
366
+ "ImpactSEGSLabelFilter": "SEGS Filter (label)",
367
+ "ImpactSEGSRangeFilter": "SEGS Filter (range)",
368
+ "ImpactSEGSOrderedFilter": "SEGS Filter (ordered)",
369
+ "ImpactSEGSIntersectionFilter": "SEGS Filter (intersection)",
370
+ "ImpactSEGSNMSFilter": "SEGS Filter (non max suppression)",
371
+ "ImpactSEGSConcat": "SEGS Concat",
372
+ "ImpactSEGSToMaskList": "SEGS to Mask List",
373
+ "ImpactSEGSToMaskBatch": "SEGS to Mask Batch",
374
+ "ImpactSEGSPicker": "Picker (SEGS)",
375
+ "ImpactMakeTileSEGS": "Make Tile SEGS",
376
+ "ImpactSEGSMerge": "SEGS Merge",
377
+
378
+ "ImpactDecomposeSEGS": "Decompose (SEGS)",
379
+ "ImpactAssembleSEGS": "Assemble (SEGS)",
380
+ "ImpactFrom_SEG_ELT": "From SEG_ELT",
381
+ "ImpactEdit_SEG_ELT": "Edit SEG_ELT",
382
+ "ImpactFrom_SEG_ELT_bbox": "From SEG_ELT bbox",
383
+ "ImpactFrom_SEG_ELT_crop_region": "From SEG_ELT crop_region",
384
+ "ImpactDilate_Mask_SEG_ELT": "Dilate Mask (SEG_ELT)",
385
+ "ImpactScaleBy_BBOX_SEG_ELT": "ScaleBy BBOX (SEG_ELT)",
386
+ "ImpactCount_Elts_in_SEGS": "Count Elts in SEGS",
387
+ "ImpactDilateMask": "Dilate Mask",
388
+ "ImpactGaussianBlurMask": "Gaussian Blur Mask",
389
+ "ImpactDilateMaskInSEGS": "Dilate Mask (SEGS)",
390
+ "ImpactGaussianBlurMaskInSEGS": "Gaussian Blur Mask (SEGS)",
391
+
392
+ "PreviewBridge": "Preview Bridge (Image)",
393
+ "PreviewBridgeLatent": "Preview Bridge (Latent)",
394
+ "ImageSender": "Image Sender",
395
+ "ImageReceiver": "Image Receiver",
396
+ "ImageMaskSwitch": "Switch (images, mask)",
397
+ "ImpactSwitch": "Switch (Any)",
398
+ "ImpactInversedSwitch": "Inversed Switch (Any)",
399
+ "ImpactExecutionOrderController": "Execution Order Controller",
400
+ "ImpactListBridge": "List Bridge",
401
+
402
+ "MasksToMaskList": "Mask Batch to Mask List",
403
+ "MaskListToMaskBatch": "Mask List to Mask Batch",
404
+ "ImpactImageBatchToImageList": "Image Batch to Image List",
405
+ "ImageListToImageBatch": "Image List to Image Batch",
406
+
407
+ "ImpactMakeImageList": "Make Image List",
408
+ "ImpactMakeImageBatch": "Make Image Batch",
409
+ "ImpactMakeMaskList": "Make Mask List",
410
+ "ImpactMakeMaskBatch": "Make Mask Batch",
411
+ "ImpactMakeAnyList": "Make List (Any)",
412
+ "ImpactSelectNthItemOfAnyList": "Select Nth Item (Any list)",
413
+
414
+ "ImpactStringSelector": "String Selector",
415
+ "StringListToString": "String List to String",
416
+ "WildcardPromptFromString": "Wildcard Prompt from String",
417
+ "ImpactIsNotEmptySEGS": "SEGS isn't Empty",
418
+ "SetDefaultImageForSEGS": "Set Default Image for SEGS",
419
+ "RemoveImageFromSEGS": "Remove Image from SEGS",
420
+
421
+ "RemoveNoiseMask": "Remove Noise Mask",
422
+
423
+ "ImpactCombineConditionings": "Combine Conditionings",
424
+ "ImpactConcatConditionings": "Concat Conditionings",
425
+
426
+ "ImpactQueueTrigger": "Queue Trigger",
427
+ "ImpactQueueTriggerCountdown": "Queue Trigger (Countdown)",
428
+ "ImpactSetWidgetValue": "Set Widget Value",
429
+ "ImpactNodeSetMuteState": "Set Mute State",
430
+ "ImpactControlBridge": "Control Bridge",
431
+ "ImpactSleep": "Sleep",
432
+ "ImpactRemoteBoolean": "Remote Boolean (on prompt)",
433
+ "ImpactRemoteInt": "Remote Int (on prompt)",
434
+
435
+ "ImpactHFTransformersClassifierProvider": "HF Transformers Classifier Provider",
436
+ "ImpactSEGSClassify": "SEGS Classify",
437
+
438
+ "LatentSwitch": "Switch (latent/legacy)",
439
+ "SEGSSwitch": "Switch (SEGS/legacy)",
440
+
441
+ "SEGSPreviewCNet": "SEGSPreview (CNET Image)",
442
+
443
+ "ImpactSchedulerAdapter": "Impact Scheduler Adapter",
444
+ "GITSSchedulerFuncProvider": "GITSScheduler Func Provider",
445
+ "ImpactNegativeConditioningPlaceholder": "Negative Cond Placeholder"
446
+ }
447
+
448
+
449
+ # NOTE: Inject directly into EXTENSION_WEB_DIRS instead of WEB_DIRECTORY
450
+ # Provide the js path fixed as ComfyUI-Impact-Pack instead of the path name, making it available for external use
451
+
452
+ # WEB_DIRECTORY = "js" -- deprecated method
453
+ nodes.EXTENSION_WEB_DIRS["ComfyUI-Impact-Pack"] = os.path.join(os.path.dirname(os.path.realpath(__file__)), 'js')
454
+
455
+
456
+ __all__ = ['NODE_CLASS_MAPPINGS', 'NODE_DISPLAY_NAME_MAPPINGS']
zavodik/nodes/ComfyUI-Impact-Pack/__pycache__/__init__.cpython-313.pyc ADDED
Binary file (19.3 kB). View file
 
zavodik/nodes/ComfyUI-Impact-Pack/custom_wildcards/put_wildcards_here ADDED
File without changes
zavodik/nodes/ComfyUI-Impact-Pack/docs/wildcards/README.md ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Wildcard System Documentation
2
+
3
+ Progressive on-demand wildcard loading system for ComfyUI Impact Pack.
4
+
5
+ ## Documentation Structure
6
+
7
+ - **[WILDCARD_SYSTEM_PRD.md](WILDCARD_SYSTEM_PRD.md)** - Product requirements and specifications
8
+ - **[WILDCARD_SYSTEM_DESIGN.md](WILDCARD_SYSTEM_DESIGN.md)** - Technical architecture and implementation
9
+ - **[WILDCARD_TESTING_GUIDE.md](WILDCARD_TESTING_GUIDE.md)** - Testing procedures and validation
10
+
11
+ ## Quick Links
12
+
13
+ - Test Suite: `../../tests/`
14
+ - Test Samples: `../../tests/wildcards/samples/`
15
+ - Implementation: `../../modules/impact/wildcards.py`
16
+ - Server API: `../../modules/impact/impact_server.py`
17
+
18
+ ## Test Execution
19
+
20
+ ```bash
21
+ cd tests/
22
+
23
+ # Run all test suites
24
+ bash test_encoding.sh # UTF-8 multi-language (15 tests)
25
+ bash test_error_handling.sh # Error handling (10 tests)
26
+ bash test_edge_cases.sh # Edge cases (20 tests)
27
+ bash test_deep_nesting.sh # 7-level nesting (15 tests)
28
+ bash test_ondemand_loading.sh # On-demand loading (8 tests)
29
+ bash test_config_quotes.sh # Config quotes (5 tests)
30
+ ```
31
+
32
+ ## Status
33
+
34
+ โœ… **Production Ready**
35
+ - 73 tests, 100% pass rate (6 test suites)
36
+ - Complete PRD coverage
37
+ - Zero implementation bugs
38
+ - UTF-8 encoding verified
39
+ - Error handling validated
zavodik/nodes/ComfyUI-Impact-Pack/docs/wildcards/SUMMARY.md ADDED
@@ -0,0 +1,151 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Wildcard System - Project Summary
2
+
3
+ ## Overview
4
+
5
+ Progressive on-demand wildcard loading system for ComfyUI Impact Pack with dynamic prompt support, UTF-8 encoding, and comprehensive testing.
6
+
7
+ **Status**: โœ… Production Ready
8
+ **Test Coverage**: 86 tests, 100% pass rate
9
+ **Documentation**: Complete PRD, design docs, and testing guide
10
+
11
+ ---
12
+
13
+ ## Core Features
14
+
15
+ - **Wildcard Expansion**: `__wildcard__` syntax with transitive multi-level expansion
16
+ - **Dynamic Prompts**:
17
+ - Basic selection: `{option1|option2|option3}`
18
+ - Weighted selection: `{10::common|1::rare}` (weight comes first)
19
+ - Multi-select: `{2$$, $$red|blue|green}` with custom separators
20
+ - **UTF-8 Support**: Korean, Chinese, Arabic, emoji, special characters
21
+ - **Pattern Matching**: Depth-agnostic `__*/name__` syntax
22
+ - **On-Demand Loading**: Progressive lazy loading with configurable cache limits
23
+ - **Error Handling**: Circular reference detection, graceful fallbacks
24
+
25
+ ---
26
+
27
+ ## Architecture
28
+
29
+ ### Implementation
30
+ - `modules/impact/wildcards.py` - Core LazyWildcardLoader and expansion engine
31
+ - `modules/impact/impact_server.py` - Server API endpoint (/impact/wildcards)
32
+ - `modules/impact/config.py` - Configuration with quoted path support
33
+
34
+ ### Key Design Decisions
35
+ - **Lazy Loading**: Memory-efficient progressive loading strategy
36
+ - **Transitive Expansion**: Multi-level wildcard references through directory hierarchy
37
+ - **Case-Insensitive Matching**: Fuzzy matching for user convenience
38
+ - **Circular Reference Detection**: Max 100 iterations with clear error messages
39
+
40
+ ---
41
+
42
+ ## Testing
43
+
44
+ ### Test Suites (86 tests)
45
+ 1. **UTF-8 Encoding** (15 tests) - Multi-language support validation
46
+ 2. **Error Handling** (10 tests) - Graceful error recovery
47
+ 3. **Edge Cases** (20 tests) - Boundary conditions and special scenarios
48
+ 4. **Deep Nesting** (17 tests) - 7-level transitive expansion + pattern matching
49
+ 5. **On-Demand Loading** (8 tests) - Progressive loading with cache limits
50
+ 6. **Config Quotes** (5 tests) - Configuration path handling
51
+ 7. **Dynamic Prompts** (11 tests) - Statistical validation of dynamic features
52
+
53
+ ### Test Infrastructure
54
+ - Dedicated ports per suite (8188-8198)
55
+ - Automated server lifecycle management
56
+ - Comprehensive logging in `/tmp/`
57
+ - 100% pass rate with statistical validation
58
+
59
+ ---
60
+
61
+ ## Documentation
62
+
63
+ - **[README](README.md)** - Quick start and feature overview
64
+ - **[PRD](WILDCARD_SYSTEM_PRD.md)** - Complete product requirements
65
+ - **[Design](WILDCARD_SYSTEM_DESIGN.md)** - Technical architecture
66
+ - **[Testing Guide](WILDCARD_TESTING_GUIDE.md)** - Test procedures and validation
67
+
68
+ ---
69
+
70
+ ## Quick Start
71
+
72
+ ### Basic Usage
73
+ ```python
74
+ # Simple wildcard
75
+ "a photo of __animal__"
76
+
77
+ # Dynamic prompt
78
+ "a {red|blue|green} __vehicle__"
79
+
80
+ # Weighted selection (weight comes FIRST)
81
+ "{10::common|1::rare} scene"
82
+
83
+ # Multi-select
84
+ "{2$$, $$happy|sad|angry|excited} person"
85
+ ```
86
+
87
+ ### Running Tests
88
+ ```bash
89
+ cd tests/
90
+ bash test_encoding.sh
91
+ bash test_error_handling.sh
92
+ bash test_edge_cases.sh
93
+ bash test_deep_nesting.sh
94
+ bash test_ondemand_loading.sh
95
+ bash test_config_quotes.sh
96
+ bash test_dynamic_prompts_full.sh
97
+ ```
98
+
99
+ ---
100
+
101
+ ## Key Implementations
102
+
103
+ ### Weighted Selection Syntax
104
+ **Correct**: `{weight::option}` - Weight comes FIRST
105
+ - `{10::common|1::rare}` โ†’ 91% common, 9% rare โœ…
106
+ - `{5::red|3::green|2::blue}` โ†’ 50%, 30%, 20% โœ…
107
+
108
+ **Incorrect**: `{option::weight}` - Treated as equal weights
109
+ - `{common::10|rare::1}` โ†’ 50% each โŒ
110
+
111
+ ### Empty Line Filtering
112
+ Filter empty lines AND comment lines:
113
+ ```python
114
+ [x for x in lines if x.strip() and not x.strip().startswith('#')]
115
+ ```
116
+
117
+ ### Config Path Quotes
118
+ Strip quotes from configuration paths:
119
+ ```python
120
+ custom_wildcards_path = default_conf.get('custom_wildcards', '').strip('\'"')
121
+ ```
122
+
123
+ ---
124
+
125
+ ## Limitations
126
+
127
+ - Weighted selection supports integers and simple decimals only
128
+ - Complex decimal weights may conflict with multiselect pattern detection
129
+ - Circular references limited to 100 iterations
130
+ - Prefer integer weight ratios for clarity
131
+
132
+ ---
133
+
134
+ ## Performance
135
+
136
+ - **Lazy Loading**: Only load wildcards when needed
137
+ - **On-Demand Mode**: Progressive loading based on cache limits
138
+ - **Memory Efficient**: Configurable cache size (0.5MB - 100MB)
139
+ - **Fast Lookup**: Optimized directory traversal with pattern matching
140
+
141
+ ---
142
+
143
+ ## Production Ready
144
+
145
+ โœ… Zero known bugs
146
+ โœ… Complete PRD coverage
147
+ โœ… 100% test pass rate
148
+ โœ… Statistical validation
149
+ โœ… Comprehensive documentation
150
+ โœ… Multi-language support
151
+ โœ… Graceful error handling
zavodik/nodes/ComfyUI-Impact-Pack/docs/wildcards/WILDCARD_SYSTEM_DESIGN.md ADDED
@@ -0,0 +1,817 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Wildcard System - Design Document
2
+
3
+ **Document Type**: Technical Design Document
4
+ **Product**: ComfyUI Impact Pack Wildcard System
5
+ **Version**: 2.0 (Depth-Agnostic Matching)
6
+ **Last Updated**: 2025-11-18
7
+ **Status**: Released
8
+
9
+ ---
10
+
11
+ ## 1. System Architecture
12
+
13
+ ### 1.1 High-Level Architecture
14
+
15
+ ```
16
+ โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
17
+ โ”‚ ComfyUI Frontend โ”‚
18
+ โ”‚ โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”‚
19
+ โ”‚ โ”‚ ImpactWildcardProcessor / ImpactWildcardEncode โ”‚ โ”‚
20
+ โ”‚ โ”‚ - Wildcard Prompt (editable) โ”‚ โ”‚
21
+ โ”‚ โ”‚ - Populated Prompt (read-only in Populate mode) โ”‚ โ”‚
22
+ โ”‚ โ”‚ - Mode: Populate / Fixed โ”‚ โ”‚
23
+ โ”‚ โ”‚ - UI Indicator: ๐ŸŸข Full Cache / ๐Ÿ”ต On-Demand โ”‚ โ”‚
24
+ โ”‚ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ”‚
25
+ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
26
+ โ”‚
27
+ โ–ผ
28
+ โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
29
+ โ”‚ Impact Server (API) โ”‚
30
+ โ”‚ โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”‚
31
+ โ”‚ โ”‚ POST /impact/wildcards โ”‚ โ”‚
32
+ โ”‚ โ”‚ GET /impact/wildcards/list โ”‚ โ”‚
33
+ โ”‚ โ”‚ GET /impact/wildcards/list/loaded โ”‚ โ”‚
34
+ โ”‚ โ”‚ GET /impact/wildcards/refresh โ”‚ โ”‚
35
+ โ”‚ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ”‚
36
+ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
37
+ โ”‚
38
+ โ–ผ
39
+ โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
40
+ โ”‚ Wildcard Processing Engine โ”‚
41
+ โ”‚ โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”‚
42
+ โ”‚ โ”‚ process() - Main entry point โ”‚ โ”‚
43
+ โ”‚ โ”‚ โ”œโ”€ process_comment_out() โ”‚ โ”‚
44
+ โ”‚ โ”‚ โ”œโ”€ replace_options() - {a|b|c} โ”‚ โ”‚
45
+ โ”‚ โ”‚ โ””โ”€ replace_wildcard() - __wildcard__ โ”‚ โ”‚
46
+ โ”‚ โ”‚ โ”‚ โ”‚
47
+ โ”‚ โ”‚ get_wildcard_value() โ”‚ โ”‚
48
+ โ”‚ โ”‚ โ”œโ”€ Direct lookup โ”‚ โ”‚
49
+ โ”‚ โ”‚ โ”œโ”€ Depth-agnostic fallback โญ NEW โ”‚ โ”‚
50
+ โ”‚ โ”‚ โ””โ”€ On-demand file loading โ”‚ โ”‚
51
+ โ”‚ โ”‚ โ”‚ โ”‚
52
+ โ”‚ โ”‚ get_wildcard_options() - {option1|__wild__|option3} โ”‚ โ”‚
53
+ โ”‚ โ”‚ โ””โ”€ Pattern matching for wildcards in options โ”‚ โ”‚
54
+ โ”‚ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ”‚
55
+ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
56
+ โ”‚
57
+ โ–ผ
58
+ โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
59
+ โ”‚ Loading System โ”‚
60
+ โ”‚ โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”‚
61
+ โ”‚ โ”‚ Startup Phase โ”‚ โ”‚
62
+ โ”‚ โ”‚ โ”œโ”€ calculate_directory_size() - Early termination โ”‚ โ”‚
63
+ โ”‚ โ”‚ โ”œโ”€ Determine mode (Full Cache / On-Demand) โ”‚ โ”‚
64
+ โ”‚ โ”‚ โ””โ”€ scan_wildcard_metadata() - TXT metadata only โ”‚ โ”‚
65
+ โ”‚ โ”‚ โ”‚ โ”‚
66
+ โ”‚ โ”‚ Full Cache Mode โ”‚ โ”‚
67
+ โ”‚ โ”‚ โ””โ”€ load_wildcards() - Load all data โ”‚ โ”‚
68
+ โ”‚ โ”‚ โ”‚ โ”‚
69
+ โ”‚ โ”‚ On-Demand Mode โญ NEW โ”‚ โ”‚
70
+ โ”‚ โ”‚ โ”œโ”€ Pre-load: YAML files (keys in content) โ”‚ โ”‚
71
+ โ”‚ โ”‚ โ””โ”€ On-demand: TXT files (path = key) โ”‚ โ”‚
72
+ โ”‚ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ”‚
73
+ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
74
+ โ”‚
75
+ โ–ผ
76
+ โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
77
+ โ”‚ Data Storage โ”‚
78
+ โ”‚ โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”‚
79
+ โ”‚ โ”‚ wildcard_dict = {} โ”‚ โ”‚
80
+ โ”‚ โ”‚ - Full cache: All wildcard data โ”‚ โ”‚
81
+ โ”‚ โ”‚ - On-demand: Not used โ”‚ โ”‚
82
+ โ”‚ โ”‚ โ”‚ โ”‚
83
+ โ”‚ โ”‚ available_wildcards = {} โญ NEW โ”‚ โ”‚
84
+ โ”‚ โ”‚ - On-demand only: Metadata (path โ†’ file) โ”‚ โ”‚
85
+ โ”‚ โ”‚ - Example: {"dragon": "/path/dragon.txt"} โ”‚ โ”‚
86
+ โ”‚ โ”‚ โ”‚ โ”‚
87
+ โ”‚ โ”‚ loaded_wildcards = {} โญ NEW โ”‚ โ”‚
88
+ โ”‚ โ”‚ - On-demand only: Loaded data cache โ”‚ โ”‚
89
+ โ”‚ โ”‚ - Example: {"dragon": ["red dragon", "blue..."]} โ”‚ โ”‚
90
+ โ”‚ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ”‚
91
+ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
92
+ โ”‚
93
+ โ–ผ
94
+ โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
95
+ โ”‚ File System โ”‚
96
+ โ”‚ โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”‚
97
+ โ”‚ โ”‚ wildcards/ (bundled) โ”‚ โ”‚
98
+ โ”‚ โ”‚ custom_wildcards/ (user-defined) โ”‚ โ”‚
99
+ โ”‚ โ”‚ โ”œโ”€ *.txt files (one option per line) โ”‚ โ”‚
100
+ โ”‚ โ”‚ โ””โ”€ *.yaml files (nested structure) โ”‚ โ”‚
101
+ โ”‚ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ”‚
102
+ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
103
+ ```
104
+
105
+ ---
106
+
107
+ ## 2. Core Components
108
+
109
+ ### 2.1 Processing Engine
110
+
111
+ #### 2.1.1 process()
112
+
113
+ **Purpose**: Main entry point for wildcard text processing
114
+
115
+ **Flow**:
116
+ ```python
117
+ def process(text, seed=None):
118
+ 1. process_comment_out(text) # Remove # comments
119
+ 2. random.seed(seed) # Deterministic generation
120
+ 3. replace_options(text) # Process {a|b|c}
121
+ 4. replace_wildcard(text) # Process __wildcard__
122
+ 5. return processed_text
123
+ ```
124
+
125
+ **Features**:
126
+ - Maximum 100 iterations for nested expansion
127
+ - Deterministic with seed
128
+ - Supports transitive wildcards
129
+
130
+ ---
131
+
132
+ #### 2.1.2 replace_options()
133
+
134
+ **Purpose**: Process dynamic prompts `{option1|option2}`
135
+
136
+ **Supported Syntax**:
137
+ ```python
138
+ {a|b|c} # Random selection
139
+ {3::a|2::b|c} # Weighted (3:2:1 ratio)
140
+ {2$$, $$a|b|c|d} # Multi-select 2, comma-separated
141
+ {2-4$$; $$a|b|c|d} # Multi-select 2-4, semicolon-separated
142
+ {a|{b|c}|d} # Nested options
143
+ ```
144
+
145
+ **Algorithm**:
146
+ 1. Parse weight prefix (`::`)
147
+ 2. Calculate normalized probabilities
148
+ 3. Use `np.random.choice()` with probabilities
149
+ 4. Handle multi-select with custom separators
150
+
151
+ ---
152
+
153
+ #### 2.1.3 replace_wildcard()
154
+
155
+ **Purpose**: Process wildcard references `__wildcard__`
156
+
157
+ **Flow**:
158
+ ```python
159
+ def replace_wildcard(string):
160
+ for each __match__:
161
+ 1. keyword = normalize(match)
162
+ 2. options = get_wildcard_value(keyword)
163
+ 3. if options:
164
+ random select from options
165
+ elif '*' in keyword:
166
+ pattern matching (for __*/name__)
167
+ else:
168
+ keep unchanged
169
+ 4. replace in string
170
+ ```
171
+
172
+ **Pattern Matching** (`__*/name__`):
173
+ ```python
174
+ if keyword.startswith('*/'):
175
+ base_name = keyword[2:] # "*/dragon" โ†’ "dragon"
176
+ for k in wildcards:
177
+ if matches_pattern(k, base_name):
178
+ collect options
179
+ combine all options
180
+ ```
181
+
182
+ ---
183
+
184
+ ### 2.2 Depth-Agnostic Matching โญ NEW
185
+
186
+ #### 2.2.1 get_wildcard_value()
187
+
188
+ **Purpose**: Retrieve wildcard data with automatic depth-agnostic fallback
189
+
190
+ **Algorithm**:
191
+ ```python
192
+ def get_wildcard_value(key):
193
+ # Phase 1: Direct lookup
194
+ if key in loaded_wildcards:
195
+ return loaded_wildcards[key]
196
+
197
+ # Phase 2: File discovery
198
+ file_path = find_wildcard_file(key)
199
+ if file_path:
200
+ load and cache
201
+ return data
202
+
203
+ # Phase 3: Depth-agnostic fallback โญ NEW
204
+ matched_keys = []
205
+ for k in available_wildcards:
206
+ if matches_depth_agnostic(k, key):
207
+ matched_keys.append(k)
208
+
209
+ if matched_keys:
210
+ # Combine all matched wildcards
211
+ all_options = []
212
+ for mk in matched_keys:
213
+ all_options.extend(get_wildcard_value(mk))
214
+
215
+ # Cache combined result
216
+ loaded_wildcards[key] = all_options
217
+ return all_options
218
+
219
+ return None
220
+ ```
221
+
222
+ **Pattern Matching Logic**:
223
+ ```python
224
+ def matches_depth_agnostic(stored_key, search_key):
225
+ """
226
+ Examples:
227
+ search_key = "dragon"
228
+ stored_key = "dragon" โ†’ True (exact)
229
+ stored_key = "custom_wildcards/dragon" โ†’ True (ends with)
230
+ stored_key = "dragon/wizard" โ†’ True (starts with)
231
+ stored_key = "a/b/dragon/c/d" โ†’ True (contains)
232
+ """
233
+ return (stored_key == search_key or
234
+ stored_key.endswith('/' + search_key) or
235
+ stored_key.startswith(search_key + '/') or
236
+ ('/' + search_key + '/') in stored_key)
237
+ ```
238
+
239
+ **Benefits**:
240
+ - Works with any directory structure
241
+ - No configuration needed
242
+ - Combines multiple sources for variety
243
+ - Cached for performance
244
+
245
+ ---
246
+
247
+ ### 2.3 Loading System
248
+
249
+ #### 2.3.1 Mode Detection
250
+
251
+ **Decision Algorithm**:
252
+ ```python
253
+ def determine_loading_mode():
254
+ total_size = calculate_directory_size()
255
+ cache_limit = config.wildcard_cache_limit_mb * 1024 * 1024
256
+
257
+ if total_size >= cache_limit:
258
+ return ON_DEMAND_MODE
259
+ else:
260
+ return FULL_CACHE_MODE
261
+ ```
262
+
263
+ **Early Termination**:
264
+ ```python
265
+ def calculate_directory_size():
266
+ size = 0
267
+ for file in walk(directory):
268
+ size += file_size
269
+ if size >= cache_limit:
270
+ return size # Early termination
271
+ return size
272
+ ```
273
+
274
+ **Performance**: < 1 second for 10GB+ collections
275
+
276
+ ---
277
+
278
+ #### 2.3.2 Metadata Scanning โญ NEW
279
+
280
+ **Purpose**: Discover TXT wildcards without loading data
281
+
282
+ **Algorithm**:
283
+ ```python
284
+ def scan_wildcard_metadata(path):
285
+ for file in walk(path):
286
+ if file.endswith('.txt'):
287
+ rel_path = relpath(file, path)
288
+ key = normalize(remove_extension(rel_path))
289
+ available_wildcards[key] = file # Store path only
290
+ ```
291
+
292
+ **Storage**:
293
+ ```python
294
+ available_wildcards = {
295
+ "dragon": "/path/custom_wildcards/dragon.txt",
296
+ "custom_wildcards/dragon": "/path/custom_wildcards/dragon.txt",
297
+ "dragon/wizard": "/path/dragon/wizard.txt",
298
+ ...
299
+ }
300
+ ```
301
+
302
+ **Memory**: ~50 bytes per file (path string)
303
+
304
+ ---
305
+
306
+ #### 2.3.3 On-Demand Loading โญ NEW
307
+
308
+ **Purpose**: Load wildcard data only when accessed
309
+
310
+ **Flow**:
311
+ ```
312
+ User request: __dragon__
313
+ โ†“
314
+ get_wildcard_value("dragon")
315
+ โ†“
316
+ Not in cache โ†’ find_wildcard_file("dragon")
317
+ โ†“
318
+ File not found โ†’ Depth-agnostic fallback
319
+ โ†“
320
+ Pattern match: ["custom_wildcards/dragon", "dragon/wizard", ...]
321
+ โ†“
322
+ Load each matched file
323
+ โ†“
324
+ Combine all options
325
+ โ†“
326
+ Cache result: loaded_wildcards["dragon"] = combined_options
327
+ โ†“
328
+ Return combined_options
329
+ ```
330
+
331
+ **YAML Pre-Loading**:
332
+ ```python
333
+ def load_yaml_wildcards():
334
+ """
335
+ YAML wildcards CANNOT be on-demand because:
336
+ - Keys are inside file content, not file path
337
+ - Must parse entire file to discover keys
338
+
339
+ Example:
340
+ File: colors.yaml
341
+ Content:
342
+ warm: [red, orange, yellow]
343
+ cold: [blue, green, purple]
344
+
345
+ To know "__colors/warm__" exists, must parse entire file.
346
+ """
347
+ for yaml_file in find_yaml_files():
348
+ data = yaml.load(yaml_file)
349
+ for key, value in data.items():
350
+ loaded_wildcards[key] = value
351
+ ```
352
+
353
+ ---
354
+
355
+ ### 2.4 Data Structures
356
+
357
+ #### 2.4.1 Global State
358
+
359
+ ```python
360
+ # Configuration
361
+ _on_demand_mode = False # True if on-demand mode active
362
+ wildcard_dict = {} # Full cache mode storage
363
+ available_wildcards = {} # On-demand metadata (key โ†’ file path)
364
+ loaded_wildcards = {} # On-demand loaded data (key โ†’ options)
365
+
366
+ # Thread safety
367
+ wildcard_lock = threading.Lock()
368
+ ```
369
+
370
+ #### 2.4.2 Key Normalization
371
+
372
+ ```python
373
+ def wildcard_normalize(x):
374
+ """
375
+ Normalize wildcard keys for consistent lookup
376
+
377
+ Examples:
378
+ "Dragon" โ†’ "dragon" (lowercase)
379
+ "dragon.txt" โ†’ "dragon" (remove extension)
380
+ "folder/Dragon" โ†’ "folder/dragon" (lowercase)
381
+ """
382
+ return x.lower().replace('\\', '/')
383
+ ```
384
+
385
+ ---
386
+
387
+ ## 3. API Design
388
+
389
+ ### 3.1 POST /impact/wildcards
390
+
391
+ **Purpose**: Process wildcard text
392
+
393
+ **Request**:
394
+ ```json
395
+ {
396
+ "text": "a {red|blue} __flowers__",
397
+ "seed": 42
398
+ }
399
+ ```
400
+
401
+ **Response**:
402
+ ```json
403
+ {
404
+ "text": "a red rose"
405
+ }
406
+ ```
407
+
408
+ **Implementation**:
409
+ ```python
410
+ @app.post("/impact/wildcards")
411
+ def process_wildcards(request):
412
+ text = request.json["text"]
413
+ seed = request.json.get("seed")
414
+ result = process(text, seed)
415
+ return {"text": result}
416
+ ```
417
+
418
+ ---
419
+
420
+ ### 3.2 GET /impact/wildcards/list/loaded โญ NEW
421
+
422
+ **Purpose**: Track progressive loading
423
+
424
+ **Response**:
425
+ ```json
426
+ {
427
+ "data": ["__dragon__", "__flowers__"],
428
+ "on_demand_mode": true,
429
+ "total_available": 1000
430
+ }
431
+ ```
432
+
433
+ **Implementation**:
434
+ ```python
435
+ @app.get("/impact/wildcards/list/loaded")
436
+ def get_loaded_wildcards():
437
+ with wildcard_lock:
438
+ if _on_demand_mode:
439
+ return {
440
+ "data": [f"__{k}__" for k in loaded_wildcards.keys()],
441
+ "on_demand_mode": True,
442
+ "total_available": len(available_wildcards)
443
+ }
444
+ else:
445
+ return {
446
+ "data": [f"__{k}__" for k in wildcard_dict.keys()],
447
+ "on_demand_mode": False,
448
+ "total_available": len(wildcard_dict)
449
+ }
450
+ ```
451
+
452
+ ---
453
+
454
+ ### 3.3 GET /impact/wildcards/refresh
455
+
456
+ **Purpose**: Reload all wildcards
457
+
458
+ **Implementation**:
459
+ ```python
460
+ @app.get("/impact/wildcards/refresh")
461
+ def refresh_wildcards():
462
+ global wildcard_dict, loaded_wildcards, available_wildcards
463
+
464
+ with wildcard_lock:
465
+ # Clear all caches
466
+ wildcard_dict.clear()
467
+ loaded_wildcards.clear()
468
+ available_wildcards.clear()
469
+
470
+ # Re-initialize
471
+ wildcard_load()
472
+
473
+ return {"status": "ok"}
474
+ ```
475
+
476
+ ---
477
+
478
+ ## 4. File Format Support
479
+
480
+ ### 4.1 TXT Format
481
+
482
+ **Structure**:
483
+ ```
484
+ # flowers.txt
485
+ rose
486
+ tulip
487
+ # Comments start with #
488
+ sunflower
489
+ ```
490
+
491
+ **Parsing**:
492
+ ```python
493
+ def load_txt_wildcard(file_path):
494
+ with open(file_path) as f:
495
+ lines = f.read().splitlines()
496
+ return [x for x in lines if not x.strip().startswith('#')]
497
+ ```
498
+
499
+ **On-Demand**: โœ… Fully supported
500
+
501
+ ---
502
+
503
+ ### 4.2 YAML Format
504
+
505
+ **Structure**:
506
+ ```yaml
507
+ # colors.yaml
508
+ warm:
509
+ - red
510
+ - orange
511
+ - yellow
512
+
513
+ cold:
514
+ - blue
515
+ - green
516
+ - purple
517
+ ```
518
+
519
+ **Usage**: `__colors/warm__`, `__colors/cold__`
520
+
521
+ **Parsing**:
522
+ ```python
523
+ def load_yaml_wildcard(file_path):
524
+ data = yaml.load(file_path)
525
+ for key, value in data.items():
526
+ if isinstance(value, list):
527
+ loaded_wildcards[key] = value
528
+ elif isinstance(value, dict):
529
+ # Recursive for nested structure
530
+ load_nested(key, value)
531
+ ```
532
+
533
+ **On-Demand**: โš ๏ธ Always pre-loaded (keys in content)
534
+
535
+ ---
536
+
537
+ ## 5. UI Integration
538
+
539
+ ### 5.1 ImpactWildcardProcessor Node
540
+
541
+ **Features**:
542
+ - **Wildcard Prompt**: User input with wildcard syntax
543
+ - **Populated Prompt**: Processed result
544
+ - **Mode Selector**: Populate / Fixed
545
+ - **Populate**: Process wildcards on queue, populate result
546
+ - **Fixed**: Use populated text as-is (for saved images)
547
+
548
+ **UI Indicator**:
549
+ - ๐ŸŸข **Full Cache**: All wildcards loaded
550
+ - ๐Ÿ”ต **On-Demand**: Progressive loading active (shows count)
551
+
552
+ ---
553
+
554
+ ### 5.2 ImpactWildcardEncode Node
555
+
556
+ **Additional Features**:
557
+ - **LoRA Loading**: `<lora:name:model_weight:clip_weight>`
558
+ - **LoRA Block Weight**: `<lora:name:1.0:1.0:LBW=spec;>`
559
+ - **BREAK Syntax**: Separate encoding with Concat
560
+ - **Clip Integration**: Returns processed model + clip
561
+
562
+ **Special Syntax**:
563
+ ```
564
+ <lora:chunli:1.0:1.0:LBW=B11:0,0,0,0,0,0,0,0,0,0,A,0,0,0,0,0,0;A=0.;>
565
+ ```
566
+
567
+ ---
568
+
569
+ ### 5.3 Detailer Wildcard Features
570
+
571
+ **Ordering**:
572
+ - `[ASC]`: Ascending order (x, y)
573
+ - `[DSC]`: Descending order (x, y)
574
+ - `[ASC-SIZE]`: Ascending by area
575
+ - `[DSC-SIZE]`: Descending by area
576
+ - `[RND]`: Random order
577
+
578
+ **Control**:
579
+ - `[SEP]`: Separate prompts per detection area
580
+ - `[SKIP]`: Skip detailing for this area
581
+ - `[STOP]`: Stop detailing (including current area)
582
+ - `[LAB]`: Label-based application
583
+ - `[CONCAT]`: Concatenate with positive conditioning
584
+
585
+ **Example**:
586
+ ```
587
+ [ASC]
588
+ 1girl, blue eyes, smile [SEP]
589
+ 1boy, brown eyes [SEP]
590
+ ```
591
+
592
+ ---
593
+
594
+ ## 6. Performance Optimization
595
+
596
+ ### 6.1 Startup Optimization
597
+
598
+ **Techniques**:
599
+ 1. **Early Termination**: Stop size calculation at cache limit
600
+ 2. **Metadata Only**: Don't load TXT file content
601
+ 3. **YAML Pre-loading**: Small files, pre-load is acceptable
602
+
603
+ **Results**:
604
+ - 10GB collection: 20-60 min โ†’ < 1 min (95%+ improvement)
605
+
606
+ ---
607
+
608
+ ### 6.2 Runtime Optimization
609
+
610
+ **Techniques**:
611
+ 1. **Caching**: Store loaded wildcards in memory
612
+ 2. **Depth-Agnostic Caching**: Cache combined pattern results
613
+ 3. **NumPy Random**: Fast random generation
614
+
615
+ **Results**:
616
+ - First access: < 50ms
617
+ - Cached access: < 1ms
618
+
619
+ ---
620
+
621
+ ### 6.3 Memory Optimization
622
+
623
+ **Techniques**:
624
+ 1. **Progressive Loading**: Load only accessed wildcards
625
+ 2. **Metadata Storage**: Store paths, not data
626
+ 3. **Combined Caching**: Cache pattern match results
627
+
628
+ **Results**:
629
+ - Initial: < 100MB (vs 1GB+ in old implementation)
630
+ - Growth: Linear with usage, not total size
631
+
632
+ ---
633
+
634
+ ## 7. Error Handling
635
+
636
+ ### 7.1 File Not Found
637
+
638
+ **Scenario**: Wildcard file doesn't exist
639
+
640
+ **Handling**:
641
+ ```python
642
+ def get_wildcard_value(key):
643
+ file_path = find_wildcard_file(key)
644
+ if file_path is None:
645
+ # Try depth-agnostic fallback
646
+ matched = find_pattern_matches(key)
647
+ if matched:
648
+ return combine_matched(matched)
649
+
650
+ # No match found - log warning, return None
651
+ logging.warning(f"Wildcard not found: {key}")
652
+ return None
653
+ ```
654
+
655
+ **User Impact**: Wildcard remains unexpanded
656
+
657
+ ---
658
+
659
+ ### 7.2 File Read Error
660
+
661
+ **Scenario**: Cannot read file (permissions, encoding, etc.)
662
+
663
+ **Handling**:
664
+ ```python
665
+ def load_txt_wildcard(file_path):
666
+ try:
667
+ with open(file_path, 'r', encoding="ISO-8859-1") as f:
668
+ return f.read().splitlines()
669
+ except Exception as e:
670
+ logging.error(f"Failed to load {file_path}: {e}")
671
+ return None
672
+ ```
673
+
674
+ **User Impact**: Wildcard not loaded, error logged
675
+
676
+ ---
677
+
678
+ ### 7.3 Infinite Loop Protection
679
+
680
+ **Scenario**: Circular wildcard references
681
+
682
+ **Protection**:
683
+ ```python
684
+ def process(text, seed=None):
685
+ max_iterations = 100
686
+ for i in range(max_iterations):
687
+ new_text = process_one_pass(text)
688
+ if new_text == text:
689
+ break # No changes, done
690
+ text = new_text
691
+
692
+ if i == max_iterations - 1:
693
+ logging.warning("Max iterations reached")
694
+
695
+ return text
696
+ ```
697
+
698
+ **User Impact**: Processing stops after 100 iterations
699
+
700
+ ---
701
+
702
+ ## 8. Testing Strategy
703
+
704
+ ### 8.1 Unit Tests
705
+
706
+ **Coverage**:
707
+ - `process()`: All syntax variations
708
+ - `replace_options()`: Weight, multi-select, nested
709
+ - `replace_wildcard()`: Direct, pattern, depth-agnostic
710
+ - `get_wildcard_value()`: Direct, fallback, caching
711
+
712
+ ---
713
+
714
+ ### 8.2 Integration Tests
715
+
716
+ **Scenarios**:
717
+ - Full cache mode activation
718
+ - On-demand mode activation
719
+ - Progressive loading tracking
720
+ - Depth-agnostic matching
721
+ - API endpoints
722
+
723
+ **Test Suite**: `tests/test_dragon_wildcard_expansion.sh`
724
+
725
+ ---
726
+
727
+ ### 8.3 Performance Tests
728
+
729
+ **Metrics**:
730
+ - Startup time (10GB collection)
731
+ - Memory usage (initial, after 100 accesses)
732
+ - First access latency
733
+ - Cached access latency
734
+ - Pattern matching latency
735
+
736
+ **Test Tool**: `/tmp/test_depth_agnostic.sh`
737
+
738
+ ---
739
+
740
+ ## 9. Security Considerations
741
+
742
+ ### 9.1 Path Traversal
743
+
744
+ **Risk**: Malicious wildcard names could access files outside wildcard directory
745
+
746
+ **Mitigation**:
747
+ ```python
748
+ def find_wildcard_file(key):
749
+ # Normalize and validate path
750
+ safe_key = os.path.normpath(key)
751
+ if '..' in safe_key or safe_key.startswith('/'):
752
+ logging.error(f"Invalid wildcard path: {key}")
753
+ return None
754
+
755
+ # Ensure result is within wildcard directory
756
+ file_path = os.path.join(wildcards_path, safe_key)
757
+ if not file_path.startswith(wildcards_path):
758
+ logging.error(f"Path traversal attempt: {key}")
759
+ return None
760
+
761
+ return file_path
762
+ ```
763
+
764
+ ---
765
+
766
+ ### 9.2 Resource Exhaustion
767
+
768
+ **Risk**: Very large wildcards or infinite loops
769
+
770
+ **Mitigation**:
771
+ 1. **Iteration Limit**: Max 100 expansions
772
+ 2. **File Size Limit**: Reasonable file size checks
773
+ 3. **Memory Monitoring**: Track loaded wildcard count
774
+
775
+ ---
776
+
777
+ ## 10. Future Enhancements
778
+
779
+ ### 10.1 Planned Features
780
+
781
+ 1. **LRU Cache**: Automatic eviction of least-used wildcards
782
+ 2. **Background Preloading**: Preload frequently-used wildcards
783
+ 3. **Persistent Cache**: Save loaded wildcards across restarts
784
+ 4. **Usage Statistics**: Track wildcard access patterns
785
+ 5. **Compression**: Compress infrequently-used wildcards
786
+
787
+ ### 10.2 Performance Improvements
788
+
789
+ 1. **Parallel Loading**: Load multiple wildcards concurrently
790
+ 2. **Index Structure**: B-tree for faster lookups
791
+ 3. **Memory Pooling**: Reduce allocation overhead
792
+
793
+ ---
794
+
795
+ ## 11. References
796
+
797
+ ### 11.1 External Documentation
798
+
799
+ - [Product Requirements Document](WILDCARD_SYSTEM_PRD.md)
800
+ - [User Guide](WILDCARD_SYSTEM_OVERVIEW.md)
801
+ - [Testing Guide](WILDCARD_TESTING_GUIDE.md)
802
+ - [Tutorial](../../ComfyUI-extension-tutorials/ComfyUI-Impact-Pack/tutorial/ImpactWildcard.md)
803
+
804
+ ### 11.2 Code References
805
+
806
+ - **Core Engine**: `modules/impact/wildcards.py`
807
+ - **API Server**: `modules/impact/impact_server.py`
808
+ - **UI Nodes**: `nodes.py` (ImpactWildcardProcessor, ImpactWildcardEncode)
809
+
810
+ ---
811
+
812
+ **Document Approval**:
813
+ - Engineering Lead: โœ… Approved
814
+ - Architecture Review: โœ… Approved
815
+ - Security Review: โœ… Approved
816
+
817
+ **Last Review**: 2025-11-18
zavodik/nodes/ComfyUI-Impact-Pack/docs/wildcards/WILDCARD_SYSTEM_PRD.md ADDED
@@ -0,0 +1,435 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Wildcard System - Product Requirements Document
2
+
3
+ **Product**: ComfyUI Impact Pack Wildcard System
4
+ **Version**: 2.0 (Depth-Agnostic Matching)
5
+ **Status**: Released
6
+ **Last Updated**: 2025-11-18
7
+
8
+ ---
9
+
10
+ ## 1. Overview
11
+
12
+ ### 1.1 Product Vision
13
+
14
+ The Wildcard System provides **dynamic text generation** for AI prompts, enabling users to create rich, varied prompts with minimal manual effort.
15
+
16
+ ### 1.2 Target Users
17
+
18
+ - **AI Artists**: Creating varied prompts for image generation
19
+ - **Content Creators**: Generating diverse text content
20
+ - **Game Designers**: Dynamic NPC dialogue and procedural content
21
+ - **ComfyUI Users**: Workflow automation with dynamic text
22
+
23
+ ---
24
+
25
+ ## 2. Core Features
26
+
27
+ > **Note**: For detailed syntax examples and usage guides, see the [ImpactWildcard Tutorial](../../../ComfyUI-extension-tutorials/ComfyUI-Impact-Pack/tutorial/ImpactWildcard.md).
28
+
29
+ ### 2.1 Wildcard Syntax
30
+
31
+ **Basic Wildcards**:
32
+ - `__wildcard_name__` - Simple text replacement (e.g., `__flower__` โ†’ random flower from flower.txt)
33
+ - `__category/subcategory__` - Hierarchical organization with subdirectories (e.g., `__obj/person__`)
34
+ - Transitive wildcards - Wildcards can reference other wildcards
35
+ - Case-insensitive matching - `__Jewel__` and `__jewel__` are identical
36
+ - `*` aggregation pattern (V4.15.1+) - Groups all items from path and subdirectories into one collection
37
+
38
+ **Quantifiers**:
39
+ - `N#__wildcard__` - Repeat wildcard N times
40
+ - Example: `5#__wildcards__` expands to `__wildcards__|__wildcards__|__wildcards__|__wildcards__|__wildcards__`
41
+ - Can be combined with multi-select: `{2$$, $$5#__wildcards__}`
42
+
43
+ **Comments**:
44
+ - Lines starting with `#` are treated as comments and removed
45
+ - Text following a comment is separated by single blank space from text before comment
46
+ - Example:
47
+ ```
48
+ first {a|b|c} second # not a comment,
49
+ # this is a comment
50
+ trailing text
51
+ ```
52
+ Becomes: `first a second # not a comment, trailing text`
53
+
54
+ **Pattern Matching**:
55
+ - `__*/wildcard__` - Depth-agnostic pattern matching at any directory level
56
+ - Automatic fallback when direct lookup fails
57
+
58
+ ---
59
+
60
+ ### 2.2 Dynamic Prompts
61
+
62
+ **Basic Selection**:
63
+ - `{option1|option2|option3}` - Random selection from options
64
+ - Unlimited nesting: `{a|{d|e|f}|c}` - Nested options are evaluated
65
+ - Example: `{blue apple|red {cherry|berry}|green melon}` โ†’ `blue apple`, `red cherry`, `red berry`, or `green melon`
66
+ - Complex nesting: `1{girl is holding {blue pencil|red __fruit__|colorful __flower__}|boy is riding __vehicle__}`
67
+
68
+ **Weighted Selection**:
69
+ - `{weight::option}` - Control selection probability
70
+ - **Syntax**: Weight comes FIRST, then `::`, then the option value
71
+ - **Correct**: `{10::common|1::rare}` โ†’ 10:1 ratio (โ‰ˆ91% vs โ‰ˆ9%)
72
+ - **Incorrect**: `{common::10|rare::1}` โ†’ Will be treated as equal weights (50% vs 50%)
73
+ - Weights are normalized: `{5::red|3::green|2::blue}` โ†’ 50% red, 30% green, 20% blue
74
+ - Unweighted options default to weight 1: `{5::red|green|2::blue}` โ†’ 5:1:2 ratio
75
+
76
+ **Limitations**:
77
+ - Weights must be integers or simple decimals (e.g., `5`, `10`, `0.5`)
78
+ - Complex decimal weights may cause parsing issues due to multiselect pattern conflicts
79
+ - For decimal ratios, prefer integer equivalents: use `{5::a|3::b|2::c}` instead of `{0.5::a|0.3::b|0.2::c}`
80
+
81
+ **Multi-Select**:
82
+ - `{n$$opt1|opt2|opt3}` - Select exactly n items
83
+ - `{n1-n2$$opt1|opt2|opt3}` - Select between n1 and n2 items (excess ignored if range exceeds options)
84
+ - `{-n$$opt1|opt2|opt3}` - Select between 1 and n items
85
+ - **Custom separator**: `{n$$ separator $$opt1|opt2|opt3}`
86
+ - Example: `{2$$ and $$red|blue|green}` โ†’ "red and blue"
87
+ - Example: `{1-2$$ or $$apple|orange|banana}` โ†’ "apple" or "apple or orange"
88
+
89
+ ---
90
+
91
+ ### 2.3 ComfyUI Nodes
92
+
93
+ **ImpactWildcardProcessor**:
94
+ - **Purpose**: Browser-level wildcard processing for prompt generation
95
+ - **Dual Input Fields**:
96
+ - Upper field: Wildcard Prompt (accepts wildcard syntax)
97
+ - Lower field: Populated Prompt (displays generated result)
98
+ - **Mode Control**:
99
+ - **Populate**: Processes wildcards on queue prompt, populates result (read-only)
100
+ - **Fixed**: Ignores wildcard prompt, allows manual editing of populated prompt
101
+ - **Seed Input**:
102
+ - Supports seed-based deterministic generation
103
+ - Compatible seed inputs: `ImpactInt`, `Seed (rgthree)` only
104
+ - Limitation: Reads superficial input only, does not use execution results from other nodes
105
+ - **UI Indicator**:
106
+ - ๐ŸŸข Full Cache: All wildcards pre-loaded
107
+ - ๐Ÿ”ต On-Demand: Shows count of loaded wildcards
108
+
109
+ **ImpactWildcardEncode**:
110
+ - All features of ImpactWildcardProcessor
111
+ - **LoRA Loading**: `<lora:name:model_weight:clip_weight>` syntax
112
+ - If `clip_weight` omitted, uses same value as `model_weight`
113
+ - All loaded LoRAs applied to both `model` and `clip` outputs
114
+ - **LoRA Block Weight (LBW)** (requires Inspire Pack):
115
+ - Syntax: `<lora:name:model_weight:clip_weight:LBW=spec;>`
116
+ - Use `;` as separator within spec, recommended to end with `;`
117
+ - Specs without `A=` or `B=` โ†’ used in `Lora Loader (Block Weight)` node
118
+ - Specs with `A=` or `B=` โ†’ parameters for `A` and `B` in loader node
119
+ - Examples:
120
+ - `<lora:chunli:1.0:1.0:LBW=B11:0,0,0,0,0,0,0,0,0,0,A,0,0,0,0,0,0;A=0.;>`
121
+ - `<lora:chunli:1.0:1.0:LBW=0,0,0,0,0,0,0,0,0,0,A,B,0,0,0,0,0;A=0.5;B=0.2;>`
122
+ - `<lora:chunli:1.0:1.0:LBW=SD-MIDD;>`
123
+ - **BREAK Syntax**: Separately encode prompts and connect using `Conditioning (Concat)`
124
+ - **Output**: Returns processed conditioning with all LoRAs applied
125
+
126
+ ---
127
+
128
+ ### 2.4 Detailer Integration
129
+
130
+ Special syntax for Detailer Wildcard nodes (region-specific prompt application).
131
+
132
+ **Ordering Control** (place at very beginning of prompt):
133
+ - `[ASC]` - Ascending order by (x, y) coordinates (left takes precedence, then top)
134
+ - `[DSC]` - Descending order by (x, y) coordinates
135
+ - `[ASC-SIZE]` - Ascending order by area size
136
+ - `[DSC-SIZE]` - Descending order by area size
137
+ - `[RND]` - Random order
138
+ - Example: `[ASC]\n1girl, blue eyes, smile [SEP]\n1boy, brown eyes [SEP]`
139
+
140
+ **Area Control**:
141
+ - `[SEP]` - Separator for different prompts per detection area (SEG)
142
+ - `[SKIP]` - Skip detailing for current SEG
143
+ - `[STOP]` - Stop detailing, including current SEG
144
+ - `[CONCAT]` - Concatenate wildcard conditioning with positive conditioning (instead of replacing)
145
+
146
+ **Label-Based Application**:
147
+ - `[LAB]` - Apply prompts based on labels (each label appears once)
148
+ - `[ALL]` - Prefix that applies to all labels
149
+ - Example:
150
+ ```
151
+ [LAB]
152
+ [ALL] laugh, detailed eyes
153
+ [Female] blue eyes
154
+ [Male] brown eyes
155
+ ```
156
+ Female labels get: "laugh, detailed eyes, blue eyes"
157
+ Male labels get: "laugh, detailed eyes, brown eyes"
158
+
159
+ **Complete Example**:
160
+ ```
161
+ [DSC-SIZE]
162
+ sun glasses[SEP]
163
+ [SKIP][SEP]
164
+ blue glasses[SEP]
165
+ [STOP]
166
+ ```
167
+ Result: Faces sorted by size descending, largest gets "sun glasses", second largest skipped, third gets "blue glasses", rest not detailed.
168
+
169
+ ---
170
+
171
+ ### 2.5 File Formats
172
+
173
+ **TXT Files**:
174
+ - **Format**: One option per line (comma-separated on single line = one item)
175
+ - **Comments**: Lines starting with `#` are comments
176
+ - **Encoding**: UTF-8
177
+ - **Loading**: Supports on-demand loading (loaded only when used)
178
+ - **Subfolder Support**: Use path in wildcard name (e.g., `custom_wildcards/obj/person.txt` โ†’ `__obj/person__`)
179
+ - **Example** (flower.txt):
180
+ ```
181
+ rose
182
+ orchid
183
+ iris
184
+ carnation
185
+ lily
186
+ ```
187
+
188
+ **YAML Files** (V4.18.4+):
189
+ - **Format**: Nested hierarchical structure with multiple levels
190
+ - **Usage**: Keys become wildcard paths (e.g., `astronomy.Celestial-Bodies` โ†’ `__astronomy/Celestial-Bodies__`)
191
+ - **Loading**: Always pre-loaded at startup (keys exist in file content, not path)
192
+ - **Example**:
193
+ ```yaml
194
+ astronomy:
195
+ Celestial-Bodies:
196
+ - Star
197
+ - Planet
198
+ surface-swap:
199
+ - swap the surfaces for
200
+ - replace the surfaces with
201
+ ```
202
+ - **Performance Note**: For large collections with on-demand loading, prefer TXT file structure over YAML
203
+
204
+ **Wildcard Directories**:
205
+ - Default directories: `ComfyUI-Impact-Pack/wildcards/` and `ComfyUI-Impact-Pack/custom_wildcards/`
206
+ - Recommendation: Use `custom_wildcards/` to avoid conflicts during updates
207
+ - Custom path: Configure via `impact-pack.ini` โ†’ `custom_wildcards` setting
208
+
209
+ ---
210
+
211
+ ### 2.6 System Features
212
+
213
+ **Progressive On-Demand Loading** โญ:
214
+ - **Automatic Mode Detection**: System chooses optimal loading strategy based on collection size
215
+ - **Full Cache Mode** (total size < 50MB):
216
+ - All wildcards loaded into memory at startup
217
+ - Instant access with no load delays
218
+ - UI Indicator: ๐ŸŸข `Select Wildcard ๐ŸŸข Full Cache`
219
+ - Startup log: `Using full cache mode.`
220
+ - **On-Demand Mode** (total size โ‰ฅ 50MB):
221
+ - Only metadata scanned at startup (< 1 minute for 10GB+)
222
+ - Actual wildcard data loaded progressively as accessed
223
+ - Low initial memory (< 100MB)
224
+ - UI Indicator: ๐Ÿ”ต `Select Wildcard ๐Ÿ”ต On-Demand: X loaded`
225
+ - Startup log: `Using on-demand loading mode (metadata scan only).`
226
+ - **Configuration**: Adjust threshold via `impact-pack.ini` โ†’ `wildcard_cache_limit_mb = 50`
227
+ - **File Type Behavior**:
228
+ - TXT files: Full on-demand loading support
229
+ - YAML files: Always pre-loaded (keys embedded in content)
230
+ - **Refresh Behavior**: Clears all cached data, re-scans directories, re-determines mode
231
+
232
+ **Depth-Agnostic Matching** โญ:
233
+ - **Automatic Fallback**: When direct lookup fails, searches for pattern matches at any depth
234
+ - **Pattern Matching**: Finds keys that end with, start with, or contain the wildcard name
235
+ - **Multi-Source Combination**: Combines all matched wildcards into single selection pool
236
+ - **Zero Configuration**: Works automatically with any directory structure
237
+ - **Performance**: Results cached for subsequent access
238
+
239
+ **Wildcard Refresh API**:
240
+ - `GET /impact/wildcards/refresh` - Reload wildcards without restarting ComfyUI
241
+ - Clears all cached data (full cache and on-demand loaded)
242
+ - Re-scans wildcard directories
243
+ - Re-determines loading mode
244
+
245
+ **Other APIs**:
246
+ - `POST /impact/wildcards` - Process wildcard text with seed
247
+ - `GET /impact/wildcards/list` - List all available wildcards
248
+ - `GET /impact/wildcards/list/loaded` - Show currently loaded wildcards (on-demand mode)
249
+
250
+ **Deterministic Generation**:
251
+ - Seed-based random selection ensures reproducibility
252
+ - Same seed + same wildcard = same result
253
+ - Compatible with ImpactInt and Seed(rgthree) nodes
254
+
255
+ ---
256
+
257
+ ## 3. Requirements
258
+
259
+ ### 3.1 Functional Requirements
260
+
261
+ **FR-1: Wildcard Processing**
262
+ - Support all documented syntax patterns
263
+ - Deterministic results with seed control
264
+ - Up to 100 levels of nested expansion
265
+ - Graceful error handling
266
+
267
+ **FR-2: Dynamic Prompts**
268
+ - Random, weighted, and multi-select
269
+ - Unlimited nesting depth
270
+ - Custom separators
271
+
272
+ **FR-3: Progressive Loading**
273
+ - Automatic mode detection
274
+ - On-demand loading for large collections
275
+ - Real-time tracking
276
+
277
+ **FR-4: Depth-Agnostic Matching**
278
+ - Automatic fallback pattern matching
279
+ - Combine all matched wildcards
280
+ - Support any directory structure
281
+
282
+ **FR-5: ComfyUI Integration**
283
+ - ImpactWildcardProcessor node
284
+ - ImpactWildcardEncode node with LoRA
285
+ - Detailer special syntax
286
+
287
+ ---
288
+
289
+ ### 3.2 Non-Functional Requirements
290
+
291
+ **NFR-1: Usability**
292
+ - Time to first success: < 5 minutes
293
+ - Zero configuration for basic use
294
+ - Clear error messages
295
+
296
+ **NFR-2: Reliability**
297
+ - 100% deterministic with same seed
298
+ - Graceful error handling
299
+ - No data loss on refresh
300
+
301
+ **NFR-3: Compatibility**
302
+ - Python 3.8+
303
+ - Windows, Linux, macOS
304
+ - Backward compatible with v1.x
305
+
306
+ **NFR-4: Scalability**
307
+ - Collections up to 100GB
308
+ - Up to 1M wildcard files
309
+ - Concurrent multi-user access
310
+
311
+ ---
312
+
313
+ ## 4. Configuration
314
+
315
+ **File**: `impact-pack.ini` (in ComfyUI-Impact-Pack directory)
316
+
317
+ ```ini
318
+ [default]
319
+ # Custom wildcard directory (optional)
320
+ # Use this to specify additional wildcard directory path
321
+ custom_wildcards = /path/to/wildcards
322
+
323
+ # Cache size limit in MB (default: 50)
324
+ # Determines threshold for Full Cache vs On-Demand mode
325
+ wildcard_cache_limit_mb = 50
326
+ ```
327
+
328
+ **Default Wildcard Directories**:
329
+ - `ComfyUI-Impact-Pack/wildcards/` - System wildcards (avoid modifying)
330
+ - `ComfyUI-Impact-Pack/custom_wildcards/` - User wildcards (recommended)
331
+ - Custom path via `custom_wildcards` setting (optional)
332
+
333
+ **Configuration Best Practices**:
334
+ - No configuration required for basic use
335
+ - Use `custom_wildcards/` to avoid conflicts during updates
336
+ - Adjust `wildcard_cache_limit_mb` based on system memory and collection size:
337
+ - Lower limit โ†’ More likely to use on-demand mode (slower first access, lower memory)
338
+ - Higher limit โ†’ More likely to use full cache mode (faster access, higher memory)
339
+ - For large collections (10GB+), consider organizing into subdirectories for better performance
340
+
341
+ ---
342
+
343
+ ## 5. User Workflows
344
+
345
+ ### 5.1 Getting Started
346
+
347
+ **Goal**: First wildcard in < 5 minutes
348
+
349
+ 1. Create file: `custom_wildcards/flower.txt`
350
+ 2. Add content (one per line):
351
+ ```
352
+ rose
353
+ orchid
354
+ iris
355
+ carnation
356
+ lily
357
+ ```
358
+ 3. Use in ImpactWildcardProcessor: `a beautiful __flower__`
359
+ 4. Set mode to Populate and run queue prompt
360
+ 5. Result: Random selection like "a beautiful rose"
361
+
362
+ ### 5.2 Reusable Prompt Templates
363
+
364
+ **Goal**: Save frequently used prompts
365
+
366
+ 1. Create `custom_wildcards/ppos.txt` with:
367
+ ```
368
+ photorealistic:1.4, best quality:1.4
369
+ ```
370
+ 2. Use concise prompt: `__ppos__, beautiful nature`
371
+ 3. Result: "photorealistic:1.4, best quality:1.4, beautiful nature"
372
+
373
+ ### 5.3 Large Collections
374
+
375
+ **Goal**: Import 10GB+ seamlessly
376
+
377
+ 1. Copy large wildcard collection to directory
378
+ 2. Start ComfyUI (< 1 minute startup with on-demand mode)
379
+ 3. Check UI indicator: ๐Ÿ”ต On-Demand mode active
380
+ 4. Use wildcards immediately (loaded on first access)
381
+ 5. Subsequent uses are cached for speed
382
+
383
+ ### 5.4 LoRA + Wildcards
384
+
385
+ **Goal**: Dynamic character with LoRA
386
+
387
+ 1. Create `custom_wildcards/characters.txt`:
388
+ ```
389
+ <lora:char1:1.0:1.0> young girl with blue dress
390
+ <lora:char2:1.0:1.0> warrior with armor
391
+ <lora:char3:1.0:1.0> mage with robe
392
+ ```
393
+ 2. Use ImpactWildcardEncode node
394
+ 3. Prompt: `__characters__, {day|night} scene, detailed face`
395
+ 4. Result: Random character with LoRA loaded + random time of day
396
+
397
+ ### 5.5 Multi-Face Detailing
398
+
399
+ **Goal**: Different prompts for multiple detected faces
400
+
401
+ 1. Create Detailer Wildcard prompt:
402
+ ```
403
+ [DSC-SIZE]
404
+ blue eyes, smile[SEP]
405
+ brown eyes, serious[SEP]
406
+ green eyes, laugh
407
+ ```
408
+ 2. Result: Largest face gets "blue eyes, smile", second gets "brown eyes, serious", third gets "green eyes, laugh"
409
+
410
+ ---
411
+
412
+ ## 6. References
413
+
414
+ ### User Documentation
415
+ - **[ImpactWildcard Tutorial](../../../ComfyUI-extension-tutorials/ComfyUI-Impact-Pack/tutorial/ImpactWildcard.md)** - Complete feature documentation
416
+
417
+ ### Technical Documentation
418
+ - **[Design Document](WILDCARD_SYSTEM_DESIGN.md)** - Architecture details
419
+ - **[Testing Guide](WILDCARD_TESTING_GUIDE.md)** - Test procedures
420
+
421
+ ---
422
+
423
+ ## Appendix: Glossary
424
+
425
+ - **Wildcard**: Reusable text snippet (`__name__`)
426
+ - **Dynamic Prompt**: Inline options (`{a|b|c}`)
427
+ - **Pattern Matching**: Finding wildcards by partial match
428
+ - **Depth-Agnostic**: Works with any directory structure
429
+ - **On-Demand Loading**: Load data when accessed
430
+ - **LoRA**: Low-Rank Adaptation models
431
+ - **Detailer**: Node for region-specific processing
432
+
433
+ ---
434
+
435
+ **Last Updated**: 2025-11-18
zavodik/nodes/ComfyUI-Impact-Pack/docs/wildcards/WILDCARD_TESTING_GUIDE.md ADDED
@@ -0,0 +1,381 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Wildcard System Testing Guide
2
+
3
+ Complete testing guide for the ComfyUI Impact Pack wildcard system.
4
+
5
+ ---
6
+
7
+ ## ๐Ÿ“‹ Table of Contents
8
+
9
+ 1. [Test Overview](#test-overview)
10
+ 2. [Test Suites](#test-suites)
11
+ 3. [Quick Start](#quick-start)
12
+ 4. [Running Tests](#running-tests)
13
+ 5. [Test Validation](#test-validation)
14
+
15
+ ---
16
+
17
+ ## Test Overview
18
+
19
+ ### Test Statistics
20
+ - **Total Tests**: 86 tests across 7 suites
21
+ - **Coverage**: 100% of PRD core requirements
22
+ - **Pass Rate**: 100%
23
+ - **Test Types**: UTF-8, error handling, edge cases, nesting, on-demand, config, dynamic prompts
24
+
25
+ ### Test Structure
26
+
27
+ ```
28
+ tests/
29
+ โ”œโ”€โ”€ Test Suites (7 suites, 86 tests)
30
+ โ”‚ โ”œโ”€โ”€ test_encoding.sh # 15 tests - UTF-8 multi-language support
31
+ โ”‚ โ”œโ”€โ”€ test_error_handling.sh # 10 tests - Error recovery and graceful handling
32
+ โ”‚ โ”œโ”€โ”€ test_edge_cases.sh # 20 tests - Boundary conditions and special cases
33
+ โ”‚ โ”œโ”€โ”€ test_deep_nesting.sh # 17 tests - 7-level transitive expansion + pattern matching
34
+ โ”‚ โ”œโ”€โ”€ test_ondemand_loading.sh # 8 tests - Progressive lazy loading with cache limits
35
+ โ”‚ โ”œโ”€โ”€ test_config_quotes.sh # 5 tests - Configuration path handling
36
+ โ”‚ โ””โ”€โ”€ test_dynamic_prompts_full.sh # 11 tests - Weighted/multiselect with statistical validation
37
+ โ”‚
38
+ โ”œโ”€โ”€ Documentation
39
+ โ”‚ โ”œโ”€โ”€ README.md # Test suite overview
40
+ โ”‚ โ””โ”€โ”€ RUN_ALL_TESTS.md # Execution guide
41
+ โ”‚
42
+ โ”œโ”€โ”€ Test Samples
43
+ โ”‚ โ””โ”€โ”€ wildcards/samples/ # Test wildcard files
44
+ โ”‚ โ”œโ”€โ”€ level1/.../level7/ # 7-level nesting structure
45
+ โ”‚ โ”œโ”€โ”€ *.txt # Various test wildcards
46
+ โ”‚ โ””โ”€โ”€ ์•„๋ฆ„๋‹ค์šด์ƒ‰.txt # Korean UTF-8 sample
47
+ โ”‚
48
+ โ””โ”€โ”€ Utilities
49
+ โ””โ”€โ”€ restart_test_server.sh # Server management utility
50
+ ```
51
+
52
+ ---
53
+
54
+ ## Test Suites
55
+
56
+ ### 1. UTF-8 Encoding Tests (15 tests)
57
+ **File**: `test_encoding.sh`
58
+ **Port**: 8188
59
+ **Purpose**: Multi-language support validation
60
+
61
+ **Test Coverage**:
62
+ - Korean text (ํ•œ๊ธ€)
63
+ - Chinese text (ไธญๆ–‡)
64
+ - Arabic text (ุงู„ุนุฑุจูŠุฉ)
65
+ - Emoji support (๐Ÿ‰๐Ÿ”ฅโšก)
66
+ - Special characters
67
+ - Mixed multi-language content
68
+ - Case-insensitive Korean matching
69
+
70
+ **Key Validations**:
71
+ - All non-ASCII characters preserved
72
+ - UTF-8 encoding consistency
73
+ - No character corruption
74
+ - Proper string comparison
75
+
76
+ ---
77
+
78
+ ### 2. Error Handling Tests (10 tests)
79
+ **File**: `test_error_handling.sh`
80
+ **Port**: 8189
81
+ **Purpose**: Graceful error recovery
82
+
83
+ **Test Coverage**:
84
+ - Non-existent wildcards
85
+ - Missing files
86
+ - Circular reference detection (direct and indirect)
87
+ - Malformed dynamic prompt syntax
88
+ - Deep nesting without crashes
89
+ - Invalid quantifiers
90
+
91
+ **Key Validations**:
92
+ - No server crashes
93
+ - Clear error messages
94
+ - Original text preserved on error
95
+ - Circular detection within 100 iterations
96
+
97
+ ---
98
+
99
+ ### 3. Edge Cases Tests (20 tests)
100
+ **File**: `test_edge_cases.sh`
101
+ **Port**: 8190
102
+ **Purpose**: Boundary conditions and special scenarios
103
+
104
+ **Test Coverage**:
105
+ - Empty lines and comments in wildcard files
106
+ - Very long lines (>1000 chars)
107
+ - Basic wildcard expansion
108
+ - Case-insensitive matching
109
+ - Quantifiers (1-10 repetitions)
110
+ - Pattern matching (`__*/name__`)
111
+
112
+ **Key Validations**:
113
+ - Empty lines filtered correctly
114
+ - Comments ignored properly
115
+ - Long text handling
116
+ - Quantifier accuracy
117
+ - Pattern matching at any depth
118
+
119
+ ---
120
+
121
+ ### 4. Deep Nesting Tests (17 tests)
122
+ **File**: `test_deep_nesting.sh`
123
+ **Port**: 8194
124
+ **Purpose**: 7-level transitive expansion and pattern matching
125
+
126
+ **Test Coverage**:
127
+ - Direct level access (Level 1-7)
128
+ - Transitive expansion through all levels
129
+ - Multiple wildcard nesting
130
+ - Mixed depth combinations
131
+ - Quantifiers with nesting
132
+ - Weighted selection with nesting
133
+ - Depth-agnostic pattern matching
134
+
135
+ **Key Validations**:
136
+ - All 7 levels fully expanded
137
+ - No unexpanded wildcards remain
138
+ - Pattern matching ignores directory depth
139
+ - Complex combinations work correctly
140
+
141
+ **Directory Structure**:
142
+ ```
143
+ samples/level1/level2/level3/level4/level5/level6/level7/
144
+ ```
145
+
146
+ ---
147
+
148
+ ### 5. On-Demand Loading Tests (8 tests)
149
+ **File**: `test_ondemand_loading.sh`
150
+ **Port**: 8191
151
+ **Purpose**: Progressive lazy loading with configurable cache limits
152
+
153
+ **Test Coverage**:
154
+ - Small cache (1MB) - On-demand mode
155
+ - Medium cache (10MB) - Hybrid mode
156
+ - Large cache (100MB) - Full cache mode
157
+ - Aggressive lazy (0.5MB)
158
+ - Various thresholds (5MB, 20MB, 50MB)
159
+
160
+ **Key Validations**:
161
+ - Correct loading mode selection
162
+ - Progressive loading functionality
163
+ - Cache limit enforcement
164
+ - No performance degradation
165
+
166
+ **Note**: Uses temporary samples in `/tmp/` with auto-cleanup
167
+
168
+ ---
169
+
170
+ ### 6. Config Quotes Tests (5 tests)
171
+ **File**: `test_config_quotes.sh`
172
+ **Port**: 8192
173
+ **Purpose**: Configuration path handling with quotes
174
+
175
+ **Test Coverage**:
176
+ - Paths with single quotes
177
+ - Paths with double quotes
178
+ - Paths with spaces (quoted)
179
+ - Mixed quote scenarios
180
+ - Unquoted baseline
181
+
182
+ **Key Validations**:
183
+ - Quotes stripped correctly
184
+ - Paths with spaces handled
185
+ - Wildcards loaded from quoted paths
186
+
187
+ ---
188
+
189
+ ### 7. Dynamic Prompts Tests (11 tests)
190
+ **File**: `test_dynamic_prompts_full.sh`
191
+ **Port**: 8193
192
+ **Purpose**: Statistical validation of weighted and multiselect features
193
+
194
+ **Test Coverage**:
195
+ - Multiselect (2-5 items) with custom separators
196
+ - Weighted selection (various ratios: 10:1, 1:1:1, 5:3:2)
197
+ - Nested dynamic prompts
198
+ - Basic random selection
199
+ - Seed variation validation
200
+
201
+ **Statistical Validation**:
202
+ - 100 iterations for weighted selection
203
+ - 20 iterations for multiselect
204
+ - Distribution verification (ยฑ15% tolerance)
205
+ - Duplicate detection
206
+ - Separator validation
207
+
208
+ **Key Validations**:
209
+ - Exact item count for multiselect
210
+ - No duplicates in multiselect
211
+ - Correct separators
212
+ - Statistical distribution matches weight ratios
213
+ - Nested prompt expansion
214
+
215
+ ---
216
+
217
+ ## Quick Start
218
+
219
+ ### Run All Tests
220
+ ```bash
221
+ cd tests/
222
+ bash test_encoding.sh && \
223
+ bash test_error_handling.sh && \
224
+ bash test_edge_cases.sh && \
225
+ bash test_deep_nesting.sh && \
226
+ bash test_ondemand_loading.sh && \
227
+ bash test_config_quotes.sh && \
228
+ bash test_dynamic_prompts_full.sh
229
+ ```
230
+
231
+ ### Run Individual Suite
232
+ ```bash
233
+ cd tests/
234
+ bash test_encoding.sh
235
+ ```
236
+
237
+ ### Check Test Results
238
+ All tests output:
239
+ - โœ… PASS - Test succeeded with validation
240
+ - โŒ FAIL - Test failed (should not occur)
241
+ - โš ๏ธ WARNING - Partial success or non-critical issue
242
+
243
+ ---
244
+
245
+ ## Running Tests
246
+
247
+ ### Prerequisites
248
+ - ComfyUI server must be installable
249
+ - Port availability (8188-8194)
250
+ - Network access to 127.0.0.1
251
+ - Python 3 with json module
252
+
253
+ ### Automatic Server Management
254
+ All test suites automatically:
255
+ 1. Kill any existing server on target port
256
+ 2. Create temporary configuration file
257
+ 3. Start ComfyUI server
258
+ 4. Wait for server ready (up to 60s)
259
+ 5. Execute tests
260
+ 6. Clean up (kill server, remove config)
261
+
262
+ ### Test Execution Flow
263
+ ```
264
+ 1. Setup
265
+ โ”œโ”€ Kill existing server on port
266
+ โ”œโ”€ Create impact-pack.ini config
267
+ โ””โ”€ Start ComfyUI server
268
+
269
+ 2. Wait for Ready
270
+ โ”œโ”€ Poll server every second
271
+ โ”œโ”€ Max 60 seconds timeout
272
+ โ””โ”€ Log tail on failure
273
+
274
+ 3. Execute Tests
275
+ โ”œโ”€ Call /impact/wildcards API
276
+ โ”œโ”€ Validate responses
277
+ โ””โ”€ Check behavior
278
+
279
+ 4. Cleanup
280
+ โ”œโ”€ Kill server process
281
+ โ””โ”€ Remove config file
282
+ ```
283
+
284
+ ---
285
+
286
+ ## Test Validation
287
+
288
+ ### What Tests Validate
289
+
290
+ **Behavioral Validation** (Not just "no errors"):
291
+ - **Weighted Selection**: Statistical distribution matches weight ratios
292
+ - **Multiselect**: Exact count, no duplicates, correct separator
293
+ - **Nesting**: All levels fully expanded, no remaining wildcards
294
+ - **Pattern Matching**: Depth-agnostic matching works correctly
295
+ - **UTF-8**: Character preservation and proper encoding
296
+ - **Error Handling**: Graceful recovery with meaningful messages
297
+
298
+ ### Success Criteria
299
+ - All 86 tests must pass (100% pass rate)
300
+ - No server crashes or hangs
301
+ - API responses within expected format
302
+ - Statistical distributions within ยฑ15% tolerance
303
+ - No unexpanded wildcards in final output
304
+
305
+ ### Validation Examples
306
+
307
+ **Weighted Selection**:
308
+ ```bash
309
+ # Test 10:1 ratio with 100 iterations
310
+ # Expected: ~91% common, ~9% rare
311
+ # Actual: Count distribution within ยฑ15%
312
+ ```
313
+
314
+ **Multiselect**:
315
+ ```bash
316
+ # Test {2$$, $$red|blue|green}
317
+ # Expected: Exactly 2 items, comma-space separator, no duplicates
318
+ # Validation: Count words, check separator, detect duplicates
319
+ ```
320
+
321
+ **Pattern Matching**:
322
+ ```bash
323
+ # Test __*/dragon__
324
+ # Expected: Matches dragon.txt, fantasy/dragon.txt, dragon/fire.txt
325
+ # Validation: No unexpanded wildcards remain
326
+ ```
327
+
328
+ ---
329
+
330
+ ## Troubleshooting
331
+
332
+ ### Common Issues
333
+
334
+ **Server Fails to Start**:
335
+ ```bash
336
+ # Check log file
337
+ tail -20 /tmp/{test_name}_test.log
338
+
339
+ # Check port availability
340
+ lsof -i :8188
341
+
342
+ # Kill conflicting process
343
+ pkill -f "python.*main.py.*--port 8188"
344
+ ```
345
+
346
+ **Tests Timeout**:
347
+ - Increase wait time in test script (default 60s)
348
+ - Check server performance and resources
349
+ - Verify network connectivity to 127.0.0.1
350
+
351
+ **Statistical Tests Fail**:
352
+ - Expected for very small sample sizes
353
+ - ยฑ15% tolerance accounts for randomness
354
+ - Rerun test to verify consistency
355
+
356
+ **UTF-8 Issues**:
357
+ - Ensure terminal supports UTF-8
358
+ - Check file encoding: `file -i tests/wildcards/samples/*.txt`
359
+ - Verify locale: `locale | grep UTF-8`
360
+
361
+ ---
362
+
363
+ ## Test Maintenance
364
+
365
+ ### Adding New Tests
366
+ 1. Create new test function in appropriate suite
367
+ 2. Follow existing test patterns (setup, execute, validate, cleanup)
368
+ 3. Update test counts in README.md and SUMMARY.md
369
+ 4. Update this guide with new test description
370
+
371
+ ### Modifying Existing Tests
372
+ 1. Preserve behavioral validation (not just "no errors")
373
+ 2. Maintain statistical rigor for dynamic prompt tests
374
+ 3. Update documentation if test purpose changes
375
+ 4. Verify all 86 tests still pass after modification
376
+
377
+ ### Test Philosophy
378
+ - **Tests validate behavior**, not just execution success
379
+ - **Statistical validation** for probabilistic features
380
+ - **Real-world scenarios** with production-like setup
381
+ - **Comprehensive coverage** of all PRD requirements
zavodik/nodes/ComfyUI-Impact-Pack/example_workflows/1-FaceDetailer.jpg ADDED

Git LFS Details

  • SHA256: c1a4ed7a9079d45a01a52043d9672d2646fdd28b88eac958e51dc2b38aa438c0
  • Pointer size: 130 Bytes
  • Size of remote file: 64.9 kB
zavodik/nodes/ComfyUI-Impact-Pack/example_workflows/1-FaceDetailer.json ADDED
@@ -0,0 +1,1269 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "last_node_id": 61,
3
+ "last_link_id": 170,
4
+ "nodes": [
5
+ {
6
+ "id": 28,
7
+ "type": "KSampler",
8
+ "pos": [
9
+ 530,
10
+ 840
11
+ ],
12
+ "size": [
13
+ 320,
14
+ 600
15
+ ],
16
+ "flags": {},
17
+ "order": 14,
18
+ "mode": 0,
19
+ "inputs": [
20
+ {
21
+ "name": "model",
22
+ "type": "MODEL",
23
+ "link": 65
24
+ },
25
+ {
26
+ "name": "positive",
27
+ "type": "CONDITIONING",
28
+ "link": 57
29
+ },
30
+ {
31
+ "name": "negative",
32
+ "type": "CONDITIONING",
33
+ "link": 170
34
+ },
35
+ {
36
+ "name": "latent_image",
37
+ "type": "LATENT",
38
+ "link": 59,
39
+ "slot_index": 3
40
+ }
41
+ ],
42
+ "outputs": [
43
+ {
44
+ "name": "LATENT",
45
+ "type": "LATENT",
46
+ "links": [
47
+ 60
48
+ ],
49
+ "slot_index": 0
50
+ }
51
+ ],
52
+ "properties": {
53
+ "Node name for S&R": "KSampler"
54
+ },
55
+ "widgets_values": [
56
+ 431433362471142,
57
+ "fixed",
58
+ 20,
59
+ 8,
60
+ "euler",
61
+ "normal",
62
+ 1
63
+ ],
64
+ "color": "#322",
65
+ "bgcolor": "#533"
66
+ },
67
+ {
68
+ "id": 43,
69
+ "type": "PreviewImage",
70
+ "pos": [
71
+ 2390,
72
+ -140
73
+ ],
74
+ "size": [
75
+ 230,
76
+ 300
77
+ ],
78
+ "flags": {},
79
+ "order": 19,
80
+ "mode": 0,
81
+ "inputs": [
82
+ {
83
+ "name": "images",
84
+ "type": "IMAGE",
85
+ "link": 142
86
+ }
87
+ ],
88
+ "outputs": [],
89
+ "title": "Cropped (refined)",
90
+ "properties": {
91
+ "Node name for S&R": "PreviewImage"
92
+ },
93
+ "widgets_values": [],
94
+ "color": "#223",
95
+ "bgcolor": "#335"
96
+ },
97
+ {
98
+ "id": 52,
99
+ "type": "PreviewImage",
100
+ "pos": [
101
+ 2390,
102
+ 210
103
+ ],
104
+ "size": [
105
+ 230,
106
+ 310
107
+ ],
108
+ "flags": {},
109
+ "order": 20,
110
+ "mode": 0,
111
+ "inputs": [
112
+ {
113
+ "name": "images",
114
+ "type": "IMAGE",
115
+ "link": 146
116
+ }
117
+ ],
118
+ "outputs": [],
119
+ "properties": {
120
+ "Node name for S&R": "PreviewImage"
121
+ },
122
+ "widgets_values": [],
123
+ "color": "#223",
124
+ "bgcolor": "#335"
125
+ },
126
+ {
127
+ "id": 53,
128
+ "type": "UltralyticsDetectorProvider",
129
+ "pos": [
130
+ 1290,
131
+ 200
132
+ ],
133
+ "size": [
134
+ 315,
135
+ 78
136
+ ],
137
+ "flags": {},
138
+ "order": 0,
139
+ "mode": 0,
140
+ "inputs": [],
141
+ "outputs": [
142
+ {
143
+ "name": "BBOX_DETECTOR",
144
+ "type": "BBOX_DETECTOR",
145
+ "shape": 3,
146
+ "links": [
147
+ 150
148
+ ],
149
+ "slot_index": 0
150
+ },
151
+ {
152
+ "name": "SEGM_DETECTOR",
153
+ "type": "SEGM_DETECTOR",
154
+ "shape": 3,
155
+ "links": null
156
+ }
157
+ ],
158
+ "properties": {
159
+ "Node name for S&R": "UltralyticsDetectorProvider"
160
+ },
161
+ "widgets_values": [
162
+ "bbox/face_yolov8m.pt"
163
+ ],
164
+ "color": "#223",
165
+ "bgcolor": "#335"
166
+ },
167
+ {
168
+ "id": 16,
169
+ "type": "SAMLoader",
170
+ "pos": [
171
+ 1290,
172
+ 340
173
+ ],
174
+ "size": [
175
+ 320,
176
+ 82
177
+ ],
178
+ "flags": {},
179
+ "order": 1,
180
+ "mode": 0,
181
+ "inputs": [],
182
+ "outputs": [
183
+ {
184
+ "name": "SAM_MODEL",
185
+ "type": "SAM_MODEL",
186
+ "links": [
187
+ 151
188
+ ],
189
+ "slot_index": 0
190
+ }
191
+ ],
192
+ "properties": {
193
+ "Node name for S&R": "SAMLoader"
194
+ },
195
+ "widgets_values": [
196
+ "sam_vit_b_01ec64.pth",
197
+ "AUTO"
198
+ ],
199
+ "color": "#223",
200
+ "bgcolor": "#335"
201
+ },
202
+ {
203
+ "id": 30,
204
+ "type": "VAEDecode",
205
+ "pos": [
206
+ 1010,
207
+ 840
208
+ ],
209
+ "size": [
210
+ 140,
211
+ 50
212
+ ],
213
+ "flags": {},
214
+ "order": 15,
215
+ "mode": 0,
216
+ "inputs": [
217
+ {
218
+ "name": "samples",
219
+ "type": "LATENT",
220
+ "link": 60
221
+ },
222
+ {
223
+ "name": "vae",
224
+ "type": "VAE",
225
+ "link": 164
226
+ }
227
+ ],
228
+ "outputs": [
229
+ {
230
+ "name": "IMAGE",
231
+ "type": "IMAGE",
232
+ "links": [
233
+ 78,
234
+ 152
235
+ ],
236
+ "slot_index": 0
237
+ }
238
+ ],
239
+ "properties": {
240
+ "Node name for S&R": "VAEDecode"
241
+ },
242
+ "widgets_values": [],
243
+ "color": "#322",
244
+ "bgcolor": "#533"
245
+ },
246
+ {
247
+ "id": 4,
248
+ "type": "CheckpointLoaderSimple",
249
+ "pos": [
250
+ -640,
251
+ 190
252
+ ],
253
+ "size": [
254
+ 312.0885314941406,
255
+ 98
256
+ ],
257
+ "flags": {},
258
+ "order": 2,
259
+ "mode": 0,
260
+ "inputs": [],
261
+ "outputs": [
262
+ {
263
+ "name": "MODEL",
264
+ "type": "MODEL",
265
+ "links": [
266
+ 64,
267
+ 157
268
+ ],
269
+ "slot_index": 0
270
+ },
271
+ {
272
+ "name": "CLIP",
273
+ "type": "CLIP",
274
+ "links": [
275
+ 148,
276
+ 149,
277
+ 159
278
+ ],
279
+ "slot_index": 1
280
+ },
281
+ {
282
+ "name": "VAE",
283
+ "type": "VAE",
284
+ "links": [
285
+ 161,
286
+ 163
287
+ ],
288
+ "slot_index": 2
289
+ }
290
+ ],
291
+ "properties": {
292
+ "Node name for S&R": "CheckpointLoaderSimple"
293
+ },
294
+ "widgets_values": [
295
+ "SD1.5/fantexiRealistic_v10.safetensors"
296
+ ],
297
+ "color": "#222",
298
+ "bgcolor": "#000"
299
+ },
300
+ {
301
+ "id": 58,
302
+ "type": "Reroute",
303
+ "pos": [
304
+ 850,
305
+ 220
306
+ ],
307
+ "size": [
308
+ 75,
309
+ 26
310
+ ],
311
+ "flags": {},
312
+ "order": 10,
313
+ "mode": 0,
314
+ "inputs": [
315
+ {
316
+ "name": "",
317
+ "type": "*",
318
+ "link": 163
319
+ }
320
+ ],
321
+ "outputs": [
322
+ {
323
+ "name": "",
324
+ "type": "VAE",
325
+ "links": [
326
+ 164
327
+ ],
328
+ "slot_index": 0
329
+ }
330
+ ],
331
+ "properties": {
332
+ "showOutputText": false,
333
+ "horizontal": false
334
+ }
335
+ },
336
+ {
337
+ "id": 5,
338
+ "type": "CLIPTextEncode",
339
+ "pos": [
340
+ -120,
341
+ 300
342
+ ],
343
+ "size": [
344
+ 310,
345
+ 180
346
+ ],
347
+ "flags": {},
348
+ "order": 6,
349
+ "mode": 0,
350
+ "inputs": [
351
+ {
352
+ "name": "clip",
353
+ "type": "CLIP",
354
+ "link": 148
355
+ }
356
+ ],
357
+ "outputs": [
358
+ {
359
+ "name": "CONDITIONING",
360
+ "type": "CONDITIONING",
361
+ "links": [
362
+ 57,
363
+ 165
364
+ ],
365
+ "slot_index": 0
366
+ }
367
+ ],
368
+ "title": "Positive",
369
+ "properties": {
370
+ "Node name for S&R": "CLIPTextEncode"
371
+ },
372
+ "widgets_values": [
373
+ "(photorealistic:1.4), best quality, masterpiece, 1girl, (detailed eyes), perfect anatomy, smile, details, perfect eyes, perfect face, (SpringGreen+letter_printed_sleeveless_turtleneck), ((white_low_waist_jeans)), (thigh_gap:1.2), at_the_top_of_mountain, snow, daytime, windy, path, mountain_villa, sky_view, slender, looking_away, (small breast:1.2)"
374
+ ],
375
+ "color": "#322",
376
+ "bgcolor": "#533"
377
+ },
378
+ {
379
+ "id": 6,
380
+ "type": "CLIPTextEncode",
381
+ "pos": [
382
+ -120,
383
+ 540
384
+ ],
385
+ "size": [
386
+ 310,
387
+ 120
388
+ ],
389
+ "flags": {},
390
+ "order": 7,
391
+ "mode": 0,
392
+ "inputs": [
393
+ {
394
+ "name": "clip",
395
+ "type": "CLIP",
396
+ "link": 149
397
+ }
398
+ ],
399
+ "outputs": [
400
+ {
401
+ "name": "CONDITIONING",
402
+ "type": "CONDITIONING",
403
+ "links": [
404
+ 167
405
+ ],
406
+ "slot_index": 0
407
+ }
408
+ ],
409
+ "title": "Negative",
410
+ "properties": {
411
+ "Node name for S&R": "CLIPTextEncode"
412
+ },
413
+ "widgets_values": [
414
+ "embedding:easynegative, embedding:badhandv4, paintings, sketches, (worst quality:1.4, low quality, normal quality), lowres, normal quality, (monochrome), (grayscale), skin spots, acnes, skin blemishes, age spot, glans, nsfw, watermark, signature, text, bikini, bad anatomy, (six_fingers), (nail_art), nail polish, blush, fruit,"
415
+ ],
416
+ "color": "#322",
417
+ "bgcolor": "#533"
418
+ },
419
+ {
420
+ "id": 60,
421
+ "type": "Reroute",
422
+ "pos": [
423
+ 340,
424
+ 540
425
+ ],
426
+ "size": [
427
+ 75,
428
+ 26
429
+ ],
430
+ "flags": {},
431
+ "order": 12,
432
+ "mode": 0,
433
+ "inputs": [
434
+ {
435
+ "name": "",
436
+ "type": "*",
437
+ "link": 167
438
+ }
439
+ ],
440
+ "outputs": [
441
+ {
442
+ "name": "",
443
+ "type": "CONDITIONING",
444
+ "links": [
445
+ 168,
446
+ 170
447
+ ],
448
+ "slot_index": 0
449
+ }
450
+ ],
451
+ "properties": {
452
+ "showOutputText": false,
453
+ "horizontal": false
454
+ }
455
+ },
456
+ {
457
+ "id": 31,
458
+ "type": "Reroute",
459
+ "pos": [
460
+ 130,
461
+ 190
462
+ ],
463
+ "size": [
464
+ 82,
465
+ 26
466
+ ],
467
+ "flags": {},
468
+ "order": 4,
469
+ "mode": 0,
470
+ "inputs": [
471
+ {
472
+ "name": "",
473
+ "type": "*",
474
+ "link": 64
475
+ }
476
+ ],
477
+ "outputs": [
478
+ {
479
+ "name": "MODEL",
480
+ "type": "MODEL",
481
+ "links": [
482
+ 65
483
+ ],
484
+ "slot_index": 0
485
+ }
486
+ ],
487
+ "properties": {
488
+ "showOutputText": true,
489
+ "horizontal": false
490
+ }
491
+ },
492
+ {
493
+ "id": 29,
494
+ "type": "EmptyLatentImage",
495
+ "pos": [
496
+ -120,
497
+ 900
498
+ ],
499
+ "size": [
500
+ 310,
501
+ 130
502
+ ],
503
+ "flags": {},
504
+ "order": 3,
505
+ "mode": 0,
506
+ "inputs": [],
507
+ "outputs": [
508
+ {
509
+ "name": "LATENT",
510
+ "type": "LATENT",
511
+ "links": [
512
+ 59
513
+ ]
514
+ }
515
+ ],
516
+ "properties": {
517
+ "Node name for S&R": "EmptyLatentImage"
518
+ },
519
+ "widgets_values": [
520
+ 296,
521
+ 512,
522
+ 1
523
+ ],
524
+ "color": "#322",
525
+ "bgcolor": "#533"
526
+ },
527
+ {
528
+ "id": 51,
529
+ "type": "FaceDetailer",
530
+ "pos": [
531
+ 1720,
532
+ -330
533
+ ],
534
+ "size": [
535
+ 350,
536
+ 1180
537
+ ],
538
+ "flags": {},
539
+ "order": 17,
540
+ "mode": 0,
541
+ "inputs": [
542
+ {
543
+ "name": "image",
544
+ "type": "IMAGE",
545
+ "link": 152
546
+ },
547
+ {
548
+ "name": "model",
549
+ "type": "MODEL",
550
+ "link": 158
551
+ },
552
+ {
553
+ "name": "clip",
554
+ "type": "CLIP",
555
+ "link": 160
556
+ },
557
+ {
558
+ "name": "vae",
559
+ "type": "VAE",
560
+ "link": 162
561
+ },
562
+ {
563
+ "name": "positive",
564
+ "type": "CONDITIONING",
565
+ "link": 166
566
+ },
567
+ {
568
+ "name": "negative",
569
+ "type": "CONDITIONING",
570
+ "link": 169
571
+ },
572
+ {
573
+ "name": "bbox_detector",
574
+ "type": "BBOX_DETECTOR",
575
+ "link": 150
576
+ },
577
+ {
578
+ "name": "sam_model_opt",
579
+ "type": "SAM_MODEL",
580
+ "shape": 7,
581
+ "link": 151
582
+ },
583
+ {
584
+ "name": "segm_detector_opt",
585
+ "type": "SEGM_DETECTOR",
586
+ "shape": 7,
587
+ "link": null
588
+ },
589
+ {
590
+ "name": "detailer_hook",
591
+ "type": "DETAILER_HOOK",
592
+ "shape": 7,
593
+ "link": null
594
+ },
595
+ {
596
+ "name": "scheduler_func_opt",
597
+ "type": "SCHEDULER_FUNC",
598
+ "shape": 7,
599
+ "link": null
600
+ }
601
+ ],
602
+ "outputs": [
603
+ {
604
+ "name": "image",
605
+ "type": "IMAGE",
606
+ "shape": 3,
607
+ "links": [
608
+ 141
609
+ ],
610
+ "slot_index": 0
611
+ },
612
+ {
613
+ "name": "cropped_refined",
614
+ "type": "IMAGE",
615
+ "shape": 6,
616
+ "links": [
617
+ 142
618
+ ],
619
+ "slot_index": 1
620
+ },
621
+ {
622
+ "name": "cropped_enhanced_alpha",
623
+ "type": "IMAGE",
624
+ "shape": 6,
625
+ "links": [
626
+ 146
627
+ ],
628
+ "slot_index": 2
629
+ },
630
+ {
631
+ "name": "mask",
632
+ "type": "MASK",
633
+ "shape": 3,
634
+ "links": [
635
+ 153
636
+ ],
637
+ "slot_index": 3
638
+ },
639
+ {
640
+ "name": "detailer_pipe",
641
+ "type": "DETAILER_PIPE",
642
+ "shape": 3,
643
+ "links": null
644
+ },
645
+ {
646
+ "name": "cnet_images",
647
+ "type": "IMAGE",
648
+ "shape": 6,
649
+ "links": null
650
+ }
651
+ ],
652
+ "properties": {
653
+ "Node name for S&R": "FaceDetailer"
654
+ },
655
+ "widgets_values": [
656
+ 360,
657
+ true,
658
+ 768,
659
+ 0,
660
+ "fixed",
661
+ 20,
662
+ 8,
663
+ "euler",
664
+ "normal",
665
+ 0.5,
666
+ 5,
667
+ true,
668
+ false,
669
+ 0.5,
670
+ 15,
671
+ 3,
672
+ "center-1",
673
+ 0,
674
+ 0.93,
675
+ 0,
676
+ 0.7,
677
+ "False",
678
+ 10,
679
+ "",
680
+ 1,
681
+ false,
682
+ 20,
683
+ false,
684
+ false
685
+ ],
686
+ "color": "#223",
687
+ "bgcolor": "#335"
688
+ },
689
+ {
690
+ "id": 17,
691
+ "type": "MaskToImage",
692
+ "pos": [
693
+ 2150,
694
+ 590
695
+ ],
696
+ "size": [
697
+ 176.39999389648438,
698
+ 26
699
+ ],
700
+ "flags": {},
701
+ "order": 21,
702
+ "mode": 0,
703
+ "inputs": [
704
+ {
705
+ "name": "mask",
706
+ "type": "MASK",
707
+ "link": 153
708
+ }
709
+ ],
710
+ "outputs": [
711
+ {
712
+ "name": "IMAGE",
713
+ "type": "IMAGE",
714
+ "links": [
715
+ 107
716
+ ],
717
+ "slot_index": 0
718
+ }
719
+ ],
720
+ "properties": {
721
+ "Node name for S&R": "MaskToImage"
722
+ },
723
+ "widgets_values": [],
724
+ "color": "#223",
725
+ "bgcolor": "#335"
726
+ },
727
+ {
728
+ "id": 18,
729
+ "type": "PreviewImage",
730
+ "pos": [
731
+ 2390,
732
+ 590
733
+ ],
734
+ "size": [
735
+ 230,
736
+ 290
737
+ ],
738
+ "flags": {},
739
+ "order": 22,
740
+ "mode": 0,
741
+ "inputs": [
742
+ {
743
+ "name": "images",
744
+ "type": "IMAGE",
745
+ "link": 107
746
+ }
747
+ ],
748
+ "outputs": [],
749
+ "title": "Mask",
750
+ "properties": {
751
+ "Node name for S&R": "PreviewImage"
752
+ },
753
+ "widgets_values": [],
754
+ "color": "#223",
755
+ "bgcolor": "#335"
756
+ },
757
+ {
758
+ "id": 7,
759
+ "type": "PreviewImage",
760
+ "pos": [
761
+ 2660,
762
+ -320
763
+ ],
764
+ "size": [
765
+ 430,
766
+ 650
767
+ ],
768
+ "flags": {},
769
+ "order": 18,
770
+ "mode": 0,
771
+ "inputs": [
772
+ {
773
+ "name": "images",
774
+ "type": "IMAGE",
775
+ "link": 141
776
+ }
777
+ ],
778
+ "outputs": [],
779
+ "title": "Enhanced",
780
+ "properties": {
781
+ "Node name for S&R": "PreviewImage"
782
+ },
783
+ "widgets_values": [],
784
+ "color": "#223",
785
+ "bgcolor": "#335"
786
+ },
787
+ {
788
+ "id": 33,
789
+ "type": "PreviewImage",
790
+ "pos": [
791
+ 1250,
792
+ 840
793
+ ],
794
+ "size": [
795
+ 360,
796
+ 630
797
+ ],
798
+ "flags": {},
799
+ "order": 16,
800
+ "mode": 0,
801
+ "inputs": [
802
+ {
803
+ "name": "images",
804
+ "type": "IMAGE",
805
+ "link": 78
806
+ }
807
+ ],
808
+ "outputs": [],
809
+ "properties": {
810
+ "Node name for S&R": "PreviewImage"
811
+ },
812
+ "widgets_values": [],
813
+ "color": "#322",
814
+ "bgcolor": "#533"
815
+ },
816
+ {
817
+ "id": 55,
818
+ "type": "Reroute",
819
+ "pos": [
820
+ -190,
821
+ -310
822
+ ],
823
+ "size": [
824
+ 75,
825
+ 26
826
+ ],
827
+ "flags": {},
828
+ "order": 5,
829
+ "mode": 0,
830
+ "inputs": [
831
+ {
832
+ "name": "",
833
+ "type": "*",
834
+ "link": 157
835
+ }
836
+ ],
837
+ "outputs": [
838
+ {
839
+ "name": "",
840
+ "type": "MODEL",
841
+ "links": [
842
+ 158
843
+ ],
844
+ "slot_index": 0
845
+ }
846
+ ],
847
+ "properties": {
848
+ "showOutputText": false,
849
+ "horizontal": false
850
+ }
851
+ },
852
+ {
853
+ "id": 56,
854
+ "type": "Reroute",
855
+ "pos": [
856
+ -190,
857
+ -290
858
+ ],
859
+ "size": [
860
+ 75,
861
+ 26
862
+ ],
863
+ "flags": {},
864
+ "order": 8,
865
+ "mode": 0,
866
+ "inputs": [
867
+ {
868
+ "name": "",
869
+ "type": "*",
870
+ "link": 159
871
+ }
872
+ ],
873
+ "outputs": [
874
+ {
875
+ "name": "",
876
+ "type": "CLIP",
877
+ "links": [
878
+ 160
879
+ ],
880
+ "slot_index": 0
881
+ }
882
+ ],
883
+ "properties": {
884
+ "showOutputText": false,
885
+ "horizontal": false
886
+ }
887
+ },
888
+ {
889
+ "id": 57,
890
+ "type": "Reroute",
891
+ "pos": [
892
+ -190,
893
+ -270
894
+ ],
895
+ "size": [
896
+ 75,
897
+ 26
898
+ ],
899
+ "flags": {},
900
+ "order": 9,
901
+ "mode": 0,
902
+ "inputs": [
903
+ {
904
+ "name": "",
905
+ "type": "*",
906
+ "link": 161
907
+ }
908
+ ],
909
+ "outputs": [
910
+ {
911
+ "name": "",
912
+ "type": "VAE",
913
+ "links": [
914
+ 162
915
+ ],
916
+ "slot_index": 0
917
+ }
918
+ ],
919
+ "properties": {
920
+ "showOutputText": false,
921
+ "horizontal": false
922
+ }
923
+ },
924
+ {
925
+ "id": 59,
926
+ "type": "Reroute",
927
+ "pos": [
928
+ 290,
929
+ -250
930
+ ],
931
+ "size": [
932
+ 75,
933
+ 26
934
+ ],
935
+ "flags": {},
936
+ "order": 11,
937
+ "mode": 0,
938
+ "inputs": [
939
+ {
940
+ "name": "",
941
+ "type": "*",
942
+ "link": 165
943
+ }
944
+ ],
945
+ "outputs": [
946
+ {
947
+ "name": "",
948
+ "type": "CONDITIONING",
949
+ "links": [
950
+ 166
951
+ ],
952
+ "slot_index": 0
953
+ }
954
+ ],
955
+ "properties": {
956
+ "showOutputText": false,
957
+ "horizontal": false
958
+ }
959
+ },
960
+ {
961
+ "id": 61,
962
+ "type": "Reroute",
963
+ "pos": [
964
+ 520,
965
+ -230
966
+ ],
967
+ "size": [
968
+ 75,
969
+ 26
970
+ ],
971
+ "flags": {},
972
+ "order": 13,
973
+ "mode": 0,
974
+ "inputs": [
975
+ {
976
+ "name": "",
977
+ "type": "*",
978
+ "link": 168
979
+ }
980
+ ],
981
+ "outputs": [
982
+ {
983
+ "name": "",
984
+ "type": "CONDITIONING",
985
+ "links": [
986
+ 169
987
+ ],
988
+ "slot_index": 0
989
+ }
990
+ ],
991
+ "properties": {
992
+ "showOutputText": false,
993
+ "horizontal": false
994
+ }
995
+ }
996
+ ],
997
+ "links": [
998
+ [
999
+ 57,
1000
+ 5,
1001
+ 0,
1002
+ 28,
1003
+ 1,
1004
+ "CONDITIONING"
1005
+ ],
1006
+ [
1007
+ 59,
1008
+ 29,
1009
+ 0,
1010
+ 28,
1011
+ 3,
1012
+ "LATENT"
1013
+ ],
1014
+ [
1015
+ 60,
1016
+ 28,
1017
+ 0,
1018
+ 30,
1019
+ 0,
1020
+ "LATENT"
1021
+ ],
1022
+ [
1023
+ 64,
1024
+ 4,
1025
+ 0,
1026
+ 31,
1027
+ 0,
1028
+ "*"
1029
+ ],
1030
+ [
1031
+ 65,
1032
+ 31,
1033
+ 0,
1034
+ 28,
1035
+ 0,
1036
+ "MODEL"
1037
+ ],
1038
+ [
1039
+ 78,
1040
+ 30,
1041
+ 0,
1042
+ 33,
1043
+ 0,
1044
+ "IMAGE"
1045
+ ],
1046
+ [
1047
+ 107,
1048
+ 17,
1049
+ 0,
1050
+ 18,
1051
+ 0,
1052
+ "IMAGE"
1053
+ ],
1054
+ [
1055
+ 141,
1056
+ 51,
1057
+ 0,
1058
+ 7,
1059
+ 0,
1060
+ "IMAGE"
1061
+ ],
1062
+ [
1063
+ 142,
1064
+ 51,
1065
+ 1,
1066
+ 43,
1067
+ 0,
1068
+ "IMAGE"
1069
+ ],
1070
+ [
1071
+ 146,
1072
+ 51,
1073
+ 2,
1074
+ 52,
1075
+ 0,
1076
+ "IMAGE"
1077
+ ],
1078
+ [
1079
+ 148,
1080
+ 4,
1081
+ 1,
1082
+ 5,
1083
+ 0,
1084
+ "CLIP"
1085
+ ],
1086
+ [
1087
+ 149,
1088
+ 4,
1089
+ 1,
1090
+ 6,
1091
+ 0,
1092
+ "CLIP"
1093
+ ],
1094
+ [
1095
+ 150,
1096
+ 53,
1097
+ 0,
1098
+ 51,
1099
+ 6,
1100
+ "BBOX_DETECTOR"
1101
+ ],
1102
+ [
1103
+ 151,
1104
+ 16,
1105
+ 0,
1106
+ 51,
1107
+ 7,
1108
+ "SAM_MODEL"
1109
+ ],
1110
+ [
1111
+ 152,
1112
+ 30,
1113
+ 0,
1114
+ 51,
1115
+ 0,
1116
+ "IMAGE"
1117
+ ],
1118
+ [
1119
+ 153,
1120
+ 51,
1121
+ 3,
1122
+ 17,
1123
+ 0,
1124
+ "MASK"
1125
+ ],
1126
+ [
1127
+ 157,
1128
+ 4,
1129
+ 0,
1130
+ 55,
1131
+ 0,
1132
+ "*"
1133
+ ],
1134
+ [
1135
+ 158,
1136
+ 55,
1137
+ 0,
1138
+ 51,
1139
+ 1,
1140
+ "MODEL"
1141
+ ],
1142
+ [
1143
+ 159,
1144
+ 4,
1145
+ 1,
1146
+ 56,
1147
+ 0,
1148
+ "*"
1149
+ ],
1150
+ [
1151
+ 160,
1152
+ 56,
1153
+ 0,
1154
+ 51,
1155
+ 2,
1156
+ "CLIP"
1157
+ ],
1158
+ [
1159
+ 161,
1160
+ 4,
1161
+ 2,
1162
+ 57,
1163
+ 0,
1164
+ "*"
1165
+ ],
1166
+ [
1167
+ 162,
1168
+ 57,
1169
+ 0,
1170
+ 51,
1171
+ 3,
1172
+ "VAE"
1173
+ ],
1174
+ [
1175
+ 163,
1176
+ 4,
1177
+ 2,
1178
+ 58,
1179
+ 0,
1180
+ "*"
1181
+ ],
1182
+ [
1183
+ 164,
1184
+ 58,
1185
+ 0,
1186
+ 30,
1187
+ 1,
1188
+ "VAE"
1189
+ ],
1190
+ [
1191
+ 165,
1192
+ 5,
1193
+ 0,
1194
+ 59,
1195
+ 0,
1196
+ "*"
1197
+ ],
1198
+ [
1199
+ 166,
1200
+ 59,
1201
+ 0,
1202
+ 51,
1203
+ 4,
1204
+ "CONDITIONING"
1205
+ ],
1206
+ [
1207
+ 167,
1208
+ 6,
1209
+ 0,
1210
+ 60,
1211
+ 0,
1212
+ "*"
1213
+ ],
1214
+ [
1215
+ 168,
1216
+ 60,
1217
+ 0,
1218
+ 61,
1219
+ 0,
1220
+ "*"
1221
+ ],
1222
+ [
1223
+ 169,
1224
+ 61,
1225
+ 0,
1226
+ 51,
1227
+ 5,
1228
+ "CONDITIONING"
1229
+ ],
1230
+ [
1231
+ 170,
1232
+ 60,
1233
+ 0,
1234
+ 28,
1235
+ 2,
1236
+ "CONDITIONING"
1237
+ ]
1238
+ ],
1239
+ "groups": [],
1240
+ "config": {},
1241
+ "extra": {
1242
+ "ds": {
1243
+ "scale": 1,
1244
+ "offset": [
1245
+ 740,
1246
+ 430
1247
+ ]
1248
+ },
1249
+ "groupNodes": {},
1250
+ "controller_panel": {
1251
+ "controllers": {},
1252
+ "hidden": true,
1253
+ "highlight": true,
1254
+ "version": 2,
1255
+ "default_order": []
1256
+ },
1257
+ "node_versions": {
1258
+ "comfy-core": "0.3.14",
1259
+ "comfyui-impact-subpack": "74db20c95eca152a6d686c914edc0ef4e4762cb8",
1260
+ "comfyui-impact-pack": "1ae7cae2df8cca06027edfa3a24512671239d6c4"
1261
+ },
1262
+ "ue_links": [],
1263
+ "VHS_latentpreview": false,
1264
+ "VHS_latentpreviewrate": 0,
1265
+ "VHS_MetadataImage": true,
1266
+ "VHS_KeepIntermediate": true
1267
+ },
1268
+ "version": 0.4
1269
+ }
zavodik/nodes/ComfyUI-Impact-Pack/example_workflows/2-MaskDetailer.jpg ADDED

Git LFS Details

  • SHA256: 1abd1823bed26d5e8c92707c0369d41b4f7c6a0629e70c3fa92fcc914585dc8a
  • Pointer size: 131 Bytes
  • Size of remote file: 114 kB
zavodik/nodes/ComfyUI-Impact-Pack/example_workflows/2-MaskDetailer.json ADDED
@@ -0,0 +1,596 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "last_node_id": 5,
3
+ "last_link_id": 5,
4
+ "nodes": [
5
+ {
6
+ "id": 1,
7
+ "type": "LoadImage",
8
+ "pos": [
9
+ 30,
10
+ 210
11
+ ],
12
+ "size": [
13
+ 390,
14
+ 320
15
+ ],
16
+ "flags": {},
17
+ "order": 0,
18
+ "mode": 0,
19
+ "inputs": [],
20
+ "outputs": [
21
+ {
22
+ "name": "IMAGE",
23
+ "type": "IMAGE",
24
+ "shape": 3,
25
+ "links": [
26
+ 1
27
+ ]
28
+ },
29
+ {
30
+ "name": "MASK",
31
+ "type": "MASK",
32
+ "shape": 3,
33
+ "links": [
34
+ 2
35
+ ]
36
+ }
37
+ ],
38
+ "properties": {
39
+ "Node name for S&R": "LoadImage"
40
+ },
41
+ "widgets_values": [
42
+ "clipspace/clipspace-mask-609196.2000000011.png [input]",
43
+ "image"
44
+ ]
45
+ },
46
+ {
47
+ "id": 5,
48
+ "type": "PreviewImage",
49
+ "pos": [
50
+ 1230,
51
+ 210
52
+ ],
53
+ "size": [
54
+ 210,
55
+ 246
56
+ ],
57
+ "flags": {},
58
+ "order": 3,
59
+ "mode": 0,
60
+ "inputs": [
61
+ {
62
+ "name": "images",
63
+ "type": "IMAGE",
64
+ "link": 5
65
+ }
66
+ ],
67
+ "outputs": [],
68
+ "properties": {
69
+ "Node name for S&R": "PreviewImage"
70
+ },
71
+ "widgets_values": []
72
+ },
73
+ {
74
+ "id": 3,
75
+ "type": "workflow>Impact::MAKE_BASIC_PIPE",
76
+ "pos": [
77
+ 20,
78
+ 620
79
+ ],
80
+ "size": [
81
+ 400,
82
+ 200
83
+ ],
84
+ "flags": {},
85
+ "order": 1,
86
+ "mode": 0,
87
+ "inputs": [],
88
+ "outputs": [
89
+ {
90
+ "name": "basic_pipe",
91
+ "type": "BASIC_PIPE",
92
+ "shape": 3,
93
+ "links": [
94
+ 3
95
+ ]
96
+ }
97
+ ],
98
+ "properties": {
99
+ "Node name for S&R": "workflow/Impact::MAKE_BASIC_PIPE"
100
+ },
101
+ "widgets_values": [
102
+ "SD1.5/realcartoon3d_v13.safetensors",
103
+ "(best quality:1.4), fox girl",
104
+ "(worst quality:1.4), nsfw"
105
+ ]
106
+ },
107
+ {
108
+ "id": 2,
109
+ "type": "MaskDetailerPipe",
110
+ "pos": [
111
+ 530,
112
+ 210
113
+ ],
114
+ "size": [
115
+ 569.4000244140625,
116
+ 850
117
+ ],
118
+ "flags": {},
119
+ "order": 2,
120
+ "mode": 0,
121
+ "inputs": [
122
+ {
123
+ "name": "image",
124
+ "type": "IMAGE",
125
+ "link": 1
126
+ },
127
+ {
128
+ "name": "mask",
129
+ "type": "MASK",
130
+ "link": 2
131
+ },
132
+ {
133
+ "name": "basic_pipe",
134
+ "type": "BASIC_PIPE",
135
+ "link": 3,
136
+ "slot_index": 2
137
+ },
138
+ {
139
+ "name": "refiner_basic_pipe_opt",
140
+ "type": "BASIC_PIPE",
141
+ "shape": 7,
142
+ "link": null
143
+ },
144
+ {
145
+ "name": "detailer_hook",
146
+ "type": "DETAILER_HOOK",
147
+ "shape": 7,
148
+ "link": null
149
+ },
150
+ {
151
+ "name": "scheduler_func_opt",
152
+ "type": "SCHEDULER_FUNC",
153
+ "shape": 7,
154
+ "link": null
155
+ }
156
+ ],
157
+ "outputs": [
158
+ {
159
+ "name": "image",
160
+ "type": "IMAGE",
161
+ "shape": 3,
162
+ "links": [
163
+ 5
164
+ ],
165
+ "slot_index": 0
166
+ },
167
+ {
168
+ "name": "cropped_refined",
169
+ "type": "IMAGE",
170
+ "shape": 6,
171
+ "links": null
172
+ },
173
+ {
174
+ "name": "cropped_enhanced_alpha",
175
+ "type": "IMAGE",
176
+ "shape": 6,
177
+ "links": [
178
+ 4
179
+ ],
180
+ "slot_index": 2
181
+ },
182
+ {
183
+ "name": "basic_pipe",
184
+ "type": "BASIC_PIPE",
185
+ "shape": 3,
186
+ "links": null
187
+ },
188
+ {
189
+ "name": "refiner_basic_pipe_opt",
190
+ "type": "BASIC_PIPE",
191
+ "shape": 3,
192
+ "links": null
193
+ }
194
+ ],
195
+ "properties": {
196
+ "Node name for S&R": "MaskDetailerPipe"
197
+ },
198
+ "widgets_values": [
199
+ 512,
200
+ true,
201
+ 1024,
202
+ true,
203
+ 1003,
204
+ "fixed",
205
+ 20,
206
+ 8,
207
+ "euler",
208
+ "normal",
209
+ 0.75,
210
+ 5,
211
+ 3,
212
+ 10,
213
+ 0.2,
214
+ 1,
215
+ 1,
216
+ false,
217
+ 20,
218
+ false,
219
+ false
220
+ ],
221
+ "color": "#322",
222
+ "bgcolor": "#533"
223
+ },
224
+ {
225
+ "id": 4,
226
+ "type": "PreviewImage",
227
+ "pos": [
228
+ 1230,
229
+ 560
230
+ ],
231
+ "size": [
232
+ 210,
233
+ 246
234
+ ],
235
+ "flags": {},
236
+ "order": 4,
237
+ "mode": 0,
238
+ "inputs": [
239
+ {
240
+ "name": "images",
241
+ "type": "IMAGE",
242
+ "link": 4
243
+ }
244
+ ],
245
+ "outputs": [],
246
+ "properties": {
247
+ "Node name for S&R": "PreviewImage"
248
+ },
249
+ "widgets_values": []
250
+ }
251
+ ],
252
+ "links": [
253
+ [
254
+ 1,
255
+ 1,
256
+ 0,
257
+ 2,
258
+ 0,
259
+ "IMAGE"
260
+ ],
261
+ [
262
+ 2,
263
+ 1,
264
+ 1,
265
+ 2,
266
+ 1,
267
+ "MASK"
268
+ ],
269
+ [
270
+ 3,
271
+ 3,
272
+ 0,
273
+ 2,
274
+ 2,
275
+ "BASIC_PIPE"
276
+ ],
277
+ [
278
+ 4,
279
+ 2,
280
+ 2,
281
+ 4,
282
+ 0,
283
+ "IMAGE"
284
+ ],
285
+ [
286
+ 5,
287
+ 2,
288
+ 0,
289
+ 5,
290
+ 0,
291
+ "IMAGE"
292
+ ]
293
+ ],
294
+ "groups": [],
295
+ "config": {},
296
+ "extra": {
297
+ "ds": {
298
+ "scale": 1,
299
+ "offset": [
300
+ 80,
301
+ -110
302
+ ]
303
+ },
304
+ "groupNodes": {
305
+ "Impact::MAKE_BASIC_PIPE": {
306
+ "author": "Dr.Lt.Data",
307
+ "category": "",
308
+ "config": {
309
+ "1": {
310
+ "input": {
311
+ "text": {
312
+ "name": "Positive prompt"
313
+ }
314
+ }
315
+ },
316
+ "2": {
317
+ "input": {
318
+ "text": {
319
+ "name": "Negative prompt"
320
+ }
321
+ }
322
+ }
323
+ },
324
+ "datetime": 1708272471445,
325
+ "external": [],
326
+ "links": [
327
+ [
328
+ 0,
329
+ 1,
330
+ 1,
331
+ 0,
332
+ 1,
333
+ "CLIP"
334
+ ],
335
+ [
336
+ 0,
337
+ 1,
338
+ 2,
339
+ 0,
340
+ 1,
341
+ "CLIP"
342
+ ],
343
+ [
344
+ 0,
345
+ 0,
346
+ 3,
347
+ 0,
348
+ 1,
349
+ "MODEL"
350
+ ],
351
+ [
352
+ 0,
353
+ 1,
354
+ 3,
355
+ 1,
356
+ 1,
357
+ "CLIP"
358
+ ],
359
+ [
360
+ 0,
361
+ 2,
362
+ 3,
363
+ 2,
364
+ 1,
365
+ "VAE"
366
+ ],
367
+ [
368
+ 1,
369
+ 0,
370
+ 3,
371
+ 3,
372
+ 3,
373
+ "CONDITIONING"
374
+ ],
375
+ [
376
+ 2,
377
+ 0,
378
+ 3,
379
+ 4,
380
+ 4,
381
+ "CONDITIONING"
382
+ ]
383
+ ],
384
+ "nodes": [
385
+ {
386
+ "flags": {},
387
+ "index": 0,
388
+ "mode": 0,
389
+ "order": 0,
390
+ "outputs": [
391
+ {
392
+ "links": [],
393
+ "name": "MODEL",
394
+ "shape": 3,
395
+ "slot_index": 0,
396
+ "type": "MODEL",
397
+ "localized_name": "MODEL"
398
+ },
399
+ {
400
+ "links": [],
401
+ "name": "CLIP",
402
+ "shape": 3,
403
+ "slot_index": 1,
404
+ "type": "CLIP",
405
+ "localized_name": "CLIP"
406
+ },
407
+ {
408
+ "links": [],
409
+ "name": "VAE",
410
+ "shape": 3,
411
+ "slot_index": 2,
412
+ "type": "VAE",
413
+ "localized_name": "VAE"
414
+ }
415
+ ],
416
+ "pos": [
417
+ 550,
418
+ 360
419
+ ],
420
+ "properties": {
421
+ "Node name for S&R": "CheckpointLoaderSimple"
422
+ },
423
+ "size": {
424
+ "0": 315,
425
+ "1": 98
426
+ },
427
+ "type": "CheckpointLoaderSimple",
428
+ "widgets_values": [
429
+ "SDXL/sd_xl_base_1.0_0.9vae.safetensors"
430
+ ],
431
+ "inputs": []
432
+ },
433
+ {
434
+ "flags": {},
435
+ "index": 1,
436
+ "inputs": [
437
+ {
438
+ "link": null,
439
+ "name": "clip",
440
+ "type": "CLIP",
441
+ "localized_name": "clip"
442
+ }
443
+ ],
444
+ "mode": 0,
445
+ "order": 1,
446
+ "outputs": [
447
+ {
448
+ "links": [],
449
+ "name": "CONDITIONING",
450
+ "shape": 3,
451
+ "slot_index": 0,
452
+ "type": "CONDITIONING",
453
+ "localized_name": "CONDITIONING"
454
+ }
455
+ ],
456
+ "pos": [
457
+ 940,
458
+ 480
459
+ ],
460
+ "properties": {
461
+ "Node name for S&R": "CLIPTextEncode"
462
+ },
463
+ "size": {
464
+ "0": 263,
465
+ "1": 99
466
+ },
467
+ "title": "Positive",
468
+ "type": "CLIPTextEncode",
469
+ "widgets_values": [
470
+ ""
471
+ ]
472
+ },
473
+ {
474
+ "flags": {},
475
+ "index": 2,
476
+ "inputs": [
477
+ {
478
+ "link": null,
479
+ "name": "clip",
480
+ "type": "CLIP",
481
+ "localized_name": "clip"
482
+ }
483
+ ],
484
+ "mode": 0,
485
+ "order": 2,
486
+ "outputs": [
487
+ {
488
+ "links": [],
489
+ "name": "CONDITIONING",
490
+ "shape": 3,
491
+ "slot_index": 0,
492
+ "type": "CONDITIONING",
493
+ "localized_name": "CONDITIONING"
494
+ }
495
+ ],
496
+ "pos": [
497
+ 940,
498
+ 640
499
+ ],
500
+ "properties": {
501
+ "Node name for S&R": "CLIPTextEncode"
502
+ },
503
+ "size": {
504
+ "0": 263,
505
+ "1": 99
506
+ },
507
+ "title": "Negative",
508
+ "type": "CLIPTextEncode",
509
+ "widgets_values": [
510
+ ""
511
+ ]
512
+ },
513
+ {
514
+ "flags": {},
515
+ "index": 3,
516
+ "inputs": [
517
+ {
518
+ "link": null,
519
+ "name": "model",
520
+ "type": "MODEL",
521
+ "localized_name": "model"
522
+ },
523
+ {
524
+ "link": null,
525
+ "name": "clip",
526
+ "type": "CLIP",
527
+ "localized_name": "clip"
528
+ },
529
+ {
530
+ "link": null,
531
+ "name": "vae",
532
+ "type": "VAE",
533
+ "localized_name": "vae"
534
+ },
535
+ {
536
+ "link": null,
537
+ "name": "positive",
538
+ "type": "CONDITIONING",
539
+ "localized_name": "positive"
540
+ },
541
+ {
542
+ "link": null,
543
+ "name": "negative",
544
+ "type": "CONDITIONING",
545
+ "localized_name": "negative"
546
+ }
547
+ ],
548
+ "mode": 0,
549
+ "order": 3,
550
+ "outputs": [
551
+ {
552
+ "links": null,
553
+ "name": "basic_pipe",
554
+ "shape": 3,
555
+ "slot_index": 0,
556
+ "type": "BASIC_PIPE",
557
+ "localized_name": "basic_pipe"
558
+ }
559
+ ],
560
+ "pos": [
561
+ 1320,
562
+ 360
563
+ ],
564
+ "properties": {
565
+ "Node name for S&R": "ToBasicPipe"
566
+ },
567
+ "size": {
568
+ "0": 241.79998779296875,
569
+ "1": 106
570
+ },
571
+ "type": "ToBasicPipe"
572
+ }
573
+ ],
574
+ "packname": "Impact",
575
+ "version": "1.0"
576
+ }
577
+ },
578
+ "controller_panel": {
579
+ "controllers": {},
580
+ "hidden": true,
581
+ "highlight": true,
582
+ "version": 2,
583
+ "default_order": []
584
+ },
585
+ "node_versions": {
586
+ "comfy-core": "0.3.14",
587
+ "comfyui-impact-pack": "1ae7cae2df8cca06027edfa3a24512671239d6c4"
588
+ },
589
+ "ue_links": [],
590
+ "VHS_latentpreview": false,
591
+ "VHS_latentpreviewrate": 0,
592
+ "VHS_MetadataImage": true,
593
+ "VHS_KeepIntermediate": true
594
+ },
595
+ "version": 0.4
596
+ }
zavodik/nodes/ComfyUI-Impact-Pack/example_workflows/3-SEGSDetailer.jpg ADDED

Git LFS Details

  • SHA256: 9f4aed9e96b46408fba0ed644ce1a86ffa7ca3cfd373c2849a2cc1fc5f243175
  • Pointer size: 130 Bytes
  • Size of remote file: 42.8 kB
zavodik/nodes/ComfyUI-Impact-Pack/example_workflows/3-SEGSDetailer.json ADDED
@@ -0,0 +1,1056 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "last_node_id": 19,
3
+ "last_link_id": 30,
4
+ "nodes": [
5
+ {
6
+ "id": 8,
7
+ "type": "SAMLoader",
8
+ "pos": [
9
+ 60,
10
+ 530
11
+ ],
12
+ "size": [
13
+ 315,
14
+ 82
15
+ ],
16
+ "flags": {},
17
+ "order": 0,
18
+ "mode": 0,
19
+ "inputs": [],
20
+ "outputs": [
21
+ {
22
+ "name": "SAM_MODEL",
23
+ "type": "SAM_MODEL",
24
+ "shape": 3,
25
+ "links": [
26
+ 7
27
+ ]
28
+ }
29
+ ],
30
+ "properties": {
31
+ "Node name for S&R": "SAMLoader"
32
+ },
33
+ "widgets_values": [
34
+ "sam_vit_b_01ec64.pth",
35
+ "AUTO"
36
+ ],
37
+ "color": "#322",
38
+ "bgcolor": "#533"
39
+ },
40
+ {
41
+ "id": 7,
42
+ "type": "UltralyticsDetectorProvider",
43
+ "pos": [
44
+ 60,
45
+ 390
46
+ ],
47
+ "size": [
48
+ 315,
49
+ 78
50
+ ],
51
+ "flags": {},
52
+ "order": 1,
53
+ "mode": 0,
54
+ "inputs": [],
55
+ "outputs": [
56
+ {
57
+ "name": "BBOX_DETECTOR",
58
+ "type": "BBOX_DETECTOR",
59
+ "shape": 3,
60
+ "links": [
61
+ 6
62
+ ]
63
+ },
64
+ {
65
+ "name": "SEGM_DETECTOR",
66
+ "type": "SEGM_DETECTOR",
67
+ "shape": 3,
68
+ "links": null
69
+ }
70
+ ],
71
+ "properties": {
72
+ "Node name for S&R": "UltralyticsDetectorProvider"
73
+ },
74
+ "widgets_values": [
75
+ "bbox/face_yolov8m.pt"
76
+ ],
77
+ "color": "#322",
78
+ "bgcolor": "#533"
79
+ },
80
+ {
81
+ "id": 14,
82
+ "type": "Reroute",
83
+ "pos": [
84
+ 570,
85
+ 330
86
+ ],
87
+ "size": [
88
+ 75,
89
+ 26
90
+ ],
91
+ "flags": {},
92
+ "order": 5,
93
+ "mode": 0,
94
+ "inputs": [
95
+ {
96
+ "name": "",
97
+ "type": "*",
98
+ "link": 18
99
+ }
100
+ ],
101
+ "outputs": [
102
+ {
103
+ "name": "",
104
+ "type": "IMAGE",
105
+ "links": [
106
+ 19
107
+ ],
108
+ "slot_index": 0
109
+ }
110
+ ],
111
+ "properties": {
112
+ "showOutputText": false,
113
+ "horizontal": false
114
+ },
115
+ "color": "#322",
116
+ "bgcolor": "#533"
117
+ },
118
+ {
119
+ "id": 15,
120
+ "type": "Reroute",
121
+ "pos": [
122
+ 1240,
123
+ 330
124
+ ],
125
+ "size": [
126
+ 75,
127
+ 26
128
+ ],
129
+ "flags": {},
130
+ "order": 7,
131
+ "mode": 0,
132
+ "inputs": [
133
+ {
134
+ "name": "",
135
+ "type": "*",
136
+ "link": 19
137
+ }
138
+ ],
139
+ "outputs": [
140
+ {
141
+ "name": "",
142
+ "type": "IMAGE",
143
+ "links": [
144
+ 24,
145
+ 26
146
+ ],
147
+ "slot_index": 0
148
+ }
149
+ ],
150
+ "properties": {
151
+ "showOutputText": false,
152
+ "horizontal": false
153
+ },
154
+ "color": "#322",
155
+ "bgcolor": "#533"
156
+ },
157
+ {
158
+ "id": 16,
159
+ "type": "Reroute",
160
+ "pos": [
161
+ 1740,
162
+ 330
163
+ ],
164
+ "size": [
165
+ 75,
166
+ 26
167
+ ],
168
+ "flags": {},
169
+ "order": 8,
170
+ "mode": 0,
171
+ "inputs": [
172
+ {
173
+ "name": "",
174
+ "type": "*",
175
+ "link": 24
176
+ }
177
+ ],
178
+ "outputs": [
179
+ {
180
+ "name": "",
181
+ "type": "IMAGE",
182
+ "links": [
183
+ 25
184
+ ],
185
+ "slot_index": 0
186
+ }
187
+ ],
188
+ "properties": {
189
+ "showOutputText": false,
190
+ "horizontal": false
191
+ },
192
+ "color": "#322",
193
+ "bgcolor": "#533"
194
+ },
195
+ {
196
+ "id": 17,
197
+ "type": "Reroute",
198
+ "pos": [
199
+ 1390,
200
+ 390
201
+ ],
202
+ "size": [
203
+ 75,
204
+ 26
205
+ ],
206
+ "flags": {},
207
+ "order": 9,
208
+ "mode": 0,
209
+ "inputs": [
210
+ {
211
+ "name": "",
212
+ "type": "*",
213
+ "pos": [
214
+ 37.5,
215
+ 0
216
+ ],
217
+ "link": 26
218
+ }
219
+ ],
220
+ "outputs": [
221
+ {
222
+ "name": "",
223
+ "type": "IMAGE",
224
+ "links": [
225
+ 27,
226
+ 28
227
+ ],
228
+ "slot_index": 0
229
+ }
230
+ ],
231
+ "properties": {
232
+ "showOutputText": false,
233
+ "horizontal": true
234
+ },
235
+ "color": "#322",
236
+ "bgcolor": "#533"
237
+ },
238
+ {
239
+ "id": 13,
240
+ "type": "SEGSPaste",
241
+ "pos": [
242
+ 1860,
243
+ 510
244
+ ],
245
+ "size": [
246
+ 570,
247
+ 122
248
+ ],
249
+ "flags": {},
250
+ "order": 10,
251
+ "mode": 0,
252
+ "inputs": [
253
+ {
254
+ "name": "image",
255
+ "type": "IMAGE",
256
+ "link": 25
257
+ },
258
+ {
259
+ "name": "segs",
260
+ "type": "SEGS",
261
+ "link": 22
262
+ },
263
+ {
264
+ "name": "ref_image_opt",
265
+ "type": "IMAGE",
266
+ "shape": 7,
267
+ "link": null
268
+ }
269
+ ],
270
+ "outputs": [
271
+ {
272
+ "name": "IMAGE",
273
+ "type": "IMAGE",
274
+ "shape": 3,
275
+ "links": [
276
+ 29
277
+ ],
278
+ "slot_index": 0
279
+ }
280
+ ],
281
+ "properties": {
282
+ "Node name for S&R": "SEGSPaste"
283
+ },
284
+ "widgets_values": [
285
+ 5,
286
+ 255
287
+ ],
288
+ "color": "#322",
289
+ "bgcolor": "#533"
290
+ },
291
+ {
292
+ "id": 1,
293
+ "type": "LoadImage",
294
+ "pos": [
295
+ 60,
296
+ 680
297
+ ],
298
+ "size": [
299
+ 315,
300
+ 314
301
+ ],
302
+ "flags": {},
303
+ "order": 2,
304
+ "mode": 0,
305
+ "inputs": [],
306
+ "outputs": [
307
+ {
308
+ "name": "IMAGE",
309
+ "type": "IMAGE",
310
+ "shape": 3,
311
+ "links": [
312
+ 1,
313
+ 8,
314
+ 18
315
+ ],
316
+ "slot_index": 0
317
+ },
318
+ {
319
+ "name": "MASK",
320
+ "type": "MASK",
321
+ "shape": 3,
322
+ "links": null
323
+ }
324
+ ],
325
+ "properties": {
326
+ "Node name for S&R": "LoadImage"
327
+ },
328
+ "widgets_values": [
329
+ "ComfyUI_temp_xltgv_00001_.png",
330
+ "image"
331
+ ],
332
+ "color": "#322",
333
+ "bgcolor": "#533"
334
+ },
335
+ {
336
+ "id": 19,
337
+ "type": "workflow>MAKE_BASIC_PIPE",
338
+ "pos": [
339
+ 60,
340
+ 70
341
+ ],
342
+ "size": [
343
+ 400,
344
+ 200
345
+ ],
346
+ "flags": {},
347
+ "order": 3,
348
+ "mode": 0,
349
+ "inputs": [],
350
+ "outputs": [
351
+ {
352
+ "name": "basic_pipe",
353
+ "type": "BASIC_PIPE",
354
+ "shape": 3,
355
+ "links": [
356
+ 30
357
+ ]
358
+ }
359
+ ],
360
+ "properties": {
361
+ "Node name for S&R": "workflow/MAKE_BASIC_PIPE"
362
+ },
363
+ "widgets_values": [
364
+ "SD1.5/V07_v07.safetensors",
365
+ "best quality:1.4, detailed, (goth:0.8)",
366
+ "low quality:1.4, worst quality:1.4"
367
+ ],
368
+ "color": "#222",
369
+ "bgcolor": "#000"
370
+ },
371
+ {
372
+ "id": 6,
373
+ "type": "SEGSPreview",
374
+ "pos": [
375
+ 1460,
376
+ 600
377
+ ],
378
+ "size": [
379
+ 320,
380
+ 314
381
+ ],
382
+ "flags": {},
383
+ "order": 11,
384
+ "mode": 0,
385
+ "inputs": [
386
+ {
387
+ "name": "segs",
388
+ "type": "SEGS",
389
+ "link": 5
390
+ },
391
+ {
392
+ "name": "fallback_image_opt",
393
+ "type": "IMAGE",
394
+ "shape": 7,
395
+ "link": 27
396
+ }
397
+ ],
398
+ "outputs": [
399
+ {
400
+ "name": "IMAGE",
401
+ "type": "IMAGE",
402
+ "shape": 6,
403
+ "links": null
404
+ }
405
+ ],
406
+ "properties": {
407
+ "Node name for S&R": "SEGSPreview"
408
+ },
409
+ "widgets_values": [
410
+ true,
411
+ 0.2
412
+ ],
413
+ "color": "#322",
414
+ "bgcolor": "#533"
415
+ },
416
+ {
417
+ "id": 4,
418
+ "type": "SEGSDetailer",
419
+ "pos": [
420
+ 960,
421
+ 530
422
+ ],
423
+ "size": [
424
+ 440,
425
+ 734
426
+ ],
427
+ "flags": {},
428
+ "order": 6,
429
+ "mode": 0,
430
+ "inputs": [
431
+ {
432
+ "name": "image",
433
+ "type": "IMAGE",
434
+ "link": 8
435
+ },
436
+ {
437
+ "name": "segs",
438
+ "type": "SEGS",
439
+ "link": 3
440
+ },
441
+ {
442
+ "name": "basic_pipe",
443
+ "type": "BASIC_PIPE",
444
+ "link": 30,
445
+ "slot_index": 2
446
+ },
447
+ {
448
+ "name": "refiner_basic_pipe_opt",
449
+ "type": "BASIC_PIPE",
450
+ "shape": 7,
451
+ "link": null
452
+ },
453
+ {
454
+ "name": "scheduler_func_opt",
455
+ "type": "SCHEDULER_FUNC",
456
+ "shape": 7,
457
+ "link": null
458
+ }
459
+ ],
460
+ "outputs": [
461
+ {
462
+ "name": "segs",
463
+ "type": "SEGS",
464
+ "shape": 3,
465
+ "links": [
466
+ 5,
467
+ 22
468
+ ],
469
+ "slot_index": 0
470
+ },
471
+ {
472
+ "name": "cnet_images",
473
+ "type": "IMAGE",
474
+ "shape": 6,
475
+ "links": [],
476
+ "slot_index": 1
477
+ }
478
+ ],
479
+ "properties": {
480
+ "Node name for S&R": "SEGSDetailer"
481
+ },
482
+ "widgets_values": [
483
+ 256,
484
+ true,
485
+ 768,
486
+ 1021210429641780,
487
+ "fixed",
488
+ 20,
489
+ 8,
490
+ "euler",
491
+ "normal",
492
+ 0.3,
493
+ true,
494
+ false,
495
+ 0.2,
496
+ 1,
497
+ 1,
498
+ false,
499
+ 20
500
+ ],
501
+ "color": "#322",
502
+ "bgcolor": "#533"
503
+ },
504
+ {
505
+ "id": 5,
506
+ "type": "PreviewImage",
507
+ "pos": [
508
+ 1460,
509
+ 940
510
+ ],
511
+ "size": [
512
+ 320,
513
+ 310
514
+ ],
515
+ "flags": {},
516
+ "order": 12,
517
+ "mode": 0,
518
+ "inputs": [
519
+ {
520
+ "name": "images",
521
+ "type": "IMAGE",
522
+ "link": 28
523
+ }
524
+ ],
525
+ "outputs": [],
526
+ "properties": {
527
+ "Node name for S&R": "PreviewImage"
528
+ },
529
+ "widgets_values": [],
530
+ "color": "#322",
531
+ "bgcolor": "#533"
532
+ },
533
+ {
534
+ "id": 18,
535
+ "type": "PreviewImage",
536
+ "pos": [
537
+ 1860,
538
+ 690
539
+ ],
540
+ "size": [
541
+ 570,
542
+ 560
543
+ ],
544
+ "flags": {},
545
+ "order": 13,
546
+ "mode": 0,
547
+ "inputs": [
548
+ {
549
+ "name": "images",
550
+ "type": "IMAGE",
551
+ "link": 29
552
+ }
553
+ ],
554
+ "outputs": [],
555
+ "properties": {
556
+ "Node name for S&R": "PreviewImage"
557
+ },
558
+ "widgets_values": [],
559
+ "color": "#322",
560
+ "bgcolor": "#533"
561
+ },
562
+ {
563
+ "id": 2,
564
+ "type": "ImpactSimpleDetectorSEGS",
565
+ "pos": [
566
+ 570,
567
+ 530
568
+ ],
569
+ "size": [
570
+ 315,
571
+ 310
572
+ ],
573
+ "flags": {},
574
+ "order": 4,
575
+ "mode": 0,
576
+ "inputs": [
577
+ {
578
+ "name": "bbox_detector",
579
+ "type": "BBOX_DETECTOR",
580
+ "link": 6,
581
+ "slot_index": 0
582
+ },
583
+ {
584
+ "name": "image",
585
+ "type": "IMAGE",
586
+ "link": 1
587
+ },
588
+ {
589
+ "name": "sam_model_opt",
590
+ "type": "SAM_MODEL",
591
+ "shape": 7,
592
+ "link": 7,
593
+ "slot_index": 2
594
+ },
595
+ {
596
+ "name": "segm_detector_opt",
597
+ "type": "SEGM_DETECTOR",
598
+ "shape": 7,
599
+ "link": null
600
+ }
601
+ ],
602
+ "outputs": [
603
+ {
604
+ "name": "SEGS",
605
+ "type": "SEGS",
606
+ "shape": 3,
607
+ "links": [
608
+ 3
609
+ ],
610
+ "slot_index": 0
611
+ }
612
+ ],
613
+ "properties": {
614
+ "Node name for S&R": "ImpactSimpleDetectorSEGS"
615
+ },
616
+ "widgets_values": [
617
+ 0.5,
618
+ 0,
619
+ 3,
620
+ 10,
621
+ 0.5,
622
+ 0,
623
+ 0,
624
+ 0.7,
625
+ 0
626
+ ],
627
+ "color": "#322",
628
+ "bgcolor": "#533"
629
+ }
630
+ ],
631
+ "links": [
632
+ [
633
+ 1,
634
+ 1,
635
+ 0,
636
+ 2,
637
+ 1,
638
+ "IMAGE"
639
+ ],
640
+ [
641
+ 3,
642
+ 2,
643
+ 0,
644
+ 4,
645
+ 1,
646
+ "SEGS"
647
+ ],
648
+ [
649
+ 5,
650
+ 4,
651
+ 0,
652
+ 6,
653
+ 0,
654
+ "SEGS"
655
+ ],
656
+ [
657
+ 6,
658
+ 7,
659
+ 0,
660
+ 2,
661
+ 0,
662
+ "BBOX_DETECTOR"
663
+ ],
664
+ [
665
+ 7,
666
+ 8,
667
+ 0,
668
+ 2,
669
+ 2,
670
+ "SAM_MODEL"
671
+ ],
672
+ [
673
+ 8,
674
+ 1,
675
+ 0,
676
+ 4,
677
+ 0,
678
+ "IMAGE"
679
+ ],
680
+ [
681
+ 18,
682
+ 1,
683
+ 0,
684
+ 14,
685
+ 0,
686
+ "*"
687
+ ],
688
+ [
689
+ 19,
690
+ 14,
691
+ 0,
692
+ 15,
693
+ 0,
694
+ "*"
695
+ ],
696
+ [
697
+ 22,
698
+ 4,
699
+ 0,
700
+ 13,
701
+ 1,
702
+ "SEGS"
703
+ ],
704
+ [
705
+ 24,
706
+ 15,
707
+ 0,
708
+ 16,
709
+ 0,
710
+ "*"
711
+ ],
712
+ [
713
+ 25,
714
+ 16,
715
+ 0,
716
+ 13,
717
+ 0,
718
+ "IMAGE"
719
+ ],
720
+ [
721
+ 26,
722
+ 15,
723
+ 0,
724
+ 17,
725
+ 0,
726
+ "*"
727
+ ],
728
+ [
729
+ 27,
730
+ 17,
731
+ 0,
732
+ 6,
733
+ 1,
734
+ "IMAGE"
735
+ ],
736
+ [
737
+ 28,
738
+ 17,
739
+ 0,
740
+ 5,
741
+ 0,
742
+ "IMAGE"
743
+ ],
744
+ [
745
+ 29,
746
+ 13,
747
+ 0,
748
+ 18,
749
+ 0,
750
+ "IMAGE"
751
+ ],
752
+ [
753
+ 30,
754
+ 19,
755
+ 0,
756
+ 4,
757
+ 2,
758
+ "BASIC_PIPE"
759
+ ]
760
+ ],
761
+ "groups": [],
762
+ "config": {},
763
+ "extra": {
764
+ "groupNodes": {
765
+ "MAKE_BASIC_PIPE": {
766
+ "nodes": [
767
+ {
768
+ "type": "CheckpointLoaderSimple",
769
+ "pos": [
770
+ 140,
771
+ 150
772
+ ],
773
+ "size": {
774
+ "0": 421.5882568359375,
775
+ "1": 98
776
+ },
777
+ "flags": {},
778
+ "order": 3,
779
+ "mode": 0,
780
+ "outputs": [
781
+ {
782
+ "name": "MODEL",
783
+ "type": "MODEL",
784
+ "links": [],
785
+ "shape": 3,
786
+ "slot_index": 0,
787
+ "localized_name": "MODEL"
788
+ },
789
+ {
790
+ "name": "CLIP",
791
+ "type": "CLIP",
792
+ "links": [],
793
+ "shape": 3,
794
+ "slot_index": 1,
795
+ "localized_name": "CLIP"
796
+ },
797
+ {
798
+ "name": "VAE",
799
+ "type": "VAE",
800
+ "links": [],
801
+ "shape": 3,
802
+ "localized_name": "VAE"
803
+ }
804
+ ],
805
+ "properties": {
806
+ "Node name for S&R": "CheckpointLoaderSimple"
807
+ },
808
+ "widgets_values": [
809
+ "SD1.5/V07_v07.safetensors"
810
+ ],
811
+ "color": "#222",
812
+ "bgcolor": "#000",
813
+ "index": 0,
814
+ "inputs": []
815
+ },
816
+ {
817
+ "type": "CLIPTextEncode",
818
+ "pos": [
819
+ 740,
820
+ 60
821
+ ],
822
+ "size": {
823
+ "0": 256.9515686035156,
824
+ "1": 76.1346435546875
825
+ },
826
+ "flags": {},
827
+ "order": 6,
828
+ "mode": 0,
829
+ "inputs": [
830
+ {
831
+ "name": "clip",
832
+ "type": "CLIP",
833
+ "link": null,
834
+ "localized_name": "clip"
835
+ }
836
+ ],
837
+ "outputs": [
838
+ {
839
+ "name": "CONDITIONING",
840
+ "type": "CONDITIONING",
841
+ "links": [],
842
+ "shape": 3,
843
+ "slot_index": 0,
844
+ "localized_name": "CONDITIONING"
845
+ }
846
+ ],
847
+ "properties": {
848
+ "Node name for S&R": "CLIPTextEncode"
849
+ },
850
+ "widgets_values": [
851
+ "best quality:1.4, detailed, (goth:0.8)"
852
+ ],
853
+ "color": "#222",
854
+ "bgcolor": "#000",
855
+ "index": 1
856
+ },
857
+ {
858
+ "type": "CLIPTextEncode",
859
+ "pos": [
860
+ 740,
861
+ 270
862
+ ],
863
+ "size": {
864
+ "0": 258.04248046875,
865
+ "1": 79.95282745361328
866
+ },
867
+ "flags": {},
868
+ "order": 7,
869
+ "mode": 0,
870
+ "inputs": [
871
+ {
872
+ "name": "clip",
873
+ "type": "CLIP",
874
+ "link": null,
875
+ "slot_index": 0,
876
+ "localized_name": "clip"
877
+ }
878
+ ],
879
+ "outputs": [
880
+ {
881
+ "name": "CONDITIONING",
882
+ "type": "CONDITIONING",
883
+ "links": [],
884
+ "shape": 3,
885
+ "slot_index": 0,
886
+ "localized_name": "CONDITIONING"
887
+ }
888
+ ],
889
+ "properties": {
890
+ "Node name for S&R": "CLIPTextEncode"
891
+ },
892
+ "widgets_values": [
893
+ "low quality:1.4, worst quality:1.4"
894
+ ],
895
+ "color": "#222",
896
+ "bgcolor": "#000",
897
+ "index": 2
898
+ },
899
+ {
900
+ "type": "ToBasicPipe",
901
+ "pos": [
902
+ 1240,
903
+ 150
904
+ ],
905
+ "size": {
906
+ "0": 241.79998779296875,
907
+ "1": 106
908
+ },
909
+ "flags": {},
910
+ "order": 9,
911
+ "mode": 0,
912
+ "inputs": [
913
+ {
914
+ "name": "model",
915
+ "type": "MODEL",
916
+ "link": null,
917
+ "localized_name": "model"
918
+ },
919
+ {
920
+ "name": "clip",
921
+ "type": "CLIP",
922
+ "link": null,
923
+ "localized_name": "clip"
924
+ },
925
+ {
926
+ "name": "vae",
927
+ "type": "VAE",
928
+ "link": null,
929
+ "slot_index": 2,
930
+ "localized_name": "vae"
931
+ },
932
+ {
933
+ "name": "positive",
934
+ "type": "CONDITIONING",
935
+ "link": null,
936
+ "localized_name": "positive"
937
+ },
938
+ {
939
+ "name": "negative",
940
+ "type": "CONDITIONING",
941
+ "link": null,
942
+ "localized_name": "negative"
943
+ }
944
+ ],
945
+ "outputs": [
946
+ {
947
+ "name": "basic_pipe",
948
+ "type": "BASIC_PIPE",
949
+ "links": [],
950
+ "shape": 3,
951
+ "slot_index": 0,
952
+ "localized_name": "basic_pipe"
953
+ }
954
+ ],
955
+ "properties": {
956
+ "Node name for S&R": "ToBasicPipe"
957
+ },
958
+ "color": "#222",
959
+ "bgcolor": "#000",
960
+ "index": 3
961
+ }
962
+ ],
963
+ "links": [
964
+ [
965
+ 0,
966
+ 1,
967
+ 1,
968
+ 0,
969
+ 9,
970
+ "CLIP"
971
+ ],
972
+ [
973
+ 0,
974
+ 1,
975
+ 2,
976
+ 0,
977
+ 9,
978
+ "CLIP"
979
+ ],
980
+ [
981
+ 0,
982
+ 0,
983
+ 3,
984
+ 0,
985
+ 9,
986
+ "MODEL"
987
+ ],
988
+ [
989
+ 0,
990
+ 1,
991
+ 3,
992
+ 1,
993
+ 9,
994
+ "CLIP"
995
+ ],
996
+ [
997
+ 0,
998
+ 2,
999
+ 3,
1000
+ 2,
1001
+ 9,
1002
+ "VAE"
1003
+ ],
1004
+ [
1005
+ 1,
1006
+ 0,
1007
+ 3,
1008
+ 3,
1009
+ 10,
1010
+ "CONDITIONING"
1011
+ ],
1012
+ [
1013
+ 2,
1014
+ 0,
1015
+ 3,
1016
+ 4,
1017
+ 11,
1018
+ "CONDITIONING"
1019
+ ]
1020
+ ],
1021
+ "external": [
1022
+ [
1023
+ 3,
1024
+ 0,
1025
+ "BASIC_PIPE"
1026
+ ]
1027
+ ]
1028
+ }
1029
+ },
1030
+ "controller_panel": {
1031
+ "controllers": {},
1032
+ "hidden": true,
1033
+ "highlight": true,
1034
+ "version": 2,
1035
+ "default_order": []
1036
+ },
1037
+ "ds": {
1038
+ "scale": 0.7513148009015777,
1039
+ "offset": [
1040
+ 158.41700000000017,
1041
+ 158.82600000000025
1042
+ ]
1043
+ },
1044
+ "node_versions": {
1045
+ "comfyui-impact-pack": "1ae7cae2df8cca06027edfa3a24512671239d6c4",
1046
+ "comfyui-impact-subpack": "74db20c95eca152a6d686c914edc0ef4e4762cb8",
1047
+ "comfy-core": "0.3.14"
1048
+ },
1049
+ "ue_links": [],
1050
+ "VHS_latentpreview": false,
1051
+ "VHS_latentpreviewrate": 0,
1052
+ "VHS_MetadataImage": true,
1053
+ "VHS_KeepIntermediate": true
1054
+ },
1055
+ "version": 0.4
1056
+ }
zavodik/nodes/ComfyUI-Impact-Pack/example_workflows/4-MakeTileSEGS-Upscale.jpg ADDED

Git LFS Details

  • SHA256: b1d3d9a3563821ba82a6277610e83ec2fe20473679ebb25c70c811a252e06ecd
  • Pointer size: 131 Bytes
  • Size of remote file: 109 kB
zavodik/nodes/ComfyUI-Impact-Pack/example_workflows/4-MakeTileSEGS-Upscale.json ADDED
@@ -0,0 +1,1627 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "last_node_id": 67,
3
+ "last_link_id": 115,
4
+ "nodes": [
5
+ {
6
+ "id": 31,
7
+ "type": "Reroute",
8
+ "pos": [
9
+ 1170,
10
+ 730
11
+ ],
12
+ "size": [
13
+ 75,
14
+ 26
15
+ ],
16
+ "flags": {},
17
+ "order": 15,
18
+ "mode": 0,
19
+ "inputs": [
20
+ {
21
+ "name": "",
22
+ "type": "*",
23
+ "link": 61
24
+ }
25
+ ],
26
+ "outputs": [
27
+ {
28
+ "name": "",
29
+ "type": "IMAGE",
30
+ "links": [
31
+ 59,
32
+ 60
33
+ ],
34
+ "slot_index": 0
35
+ }
36
+ ],
37
+ "properties": {
38
+ "showOutputText": false,
39
+ "horizontal": false
40
+ }
41
+ },
42
+ {
43
+ "id": 32,
44
+ "type": "SAMLoader",
45
+ "pos": [
46
+ -160,
47
+ 840
48
+ ],
49
+ "size": [
50
+ 315,
51
+ 82
52
+ ],
53
+ "flags": {},
54
+ "order": 0,
55
+ "mode": 0,
56
+ "inputs": [],
57
+ "outputs": [
58
+ {
59
+ "name": "SAM_MODEL",
60
+ "type": "SAM_MODEL",
61
+ "shape": 3,
62
+ "links": [
63
+ 62
64
+ ]
65
+ }
66
+ ],
67
+ "properties": {
68
+ "Node name for S&R": "SAMLoader"
69
+ },
70
+ "widgets_values": [
71
+ "sam_vit_b_01ec64.pth",
72
+ "AUTO"
73
+ ]
74
+ },
75
+ {
76
+ "id": 24,
77
+ "type": "UltralyticsDetectorProvider",
78
+ "pos": [
79
+ -160,
80
+ 700
81
+ ],
82
+ "size": [
83
+ 315,
84
+ 78
85
+ ],
86
+ "flags": {},
87
+ "order": 1,
88
+ "mode": 0,
89
+ "inputs": [],
90
+ "outputs": [
91
+ {
92
+ "name": "BBOX_DETECTOR",
93
+ "type": "BBOX_DETECTOR",
94
+ "shape": 3,
95
+ "links": [
96
+ 35
97
+ ]
98
+ },
99
+ {
100
+ "name": "SEGM_DETECTOR",
101
+ "type": "SEGM_DETECTOR",
102
+ "shape": 3,
103
+ "links": [],
104
+ "slot_index": 1
105
+ }
106
+ ],
107
+ "properties": {
108
+ "Node name for S&R": "UltralyticsDetectorProvider"
109
+ },
110
+ "widgets_values": [
111
+ "segm/person_yolov8m-seg.pt"
112
+ ]
113
+ },
114
+ {
115
+ "id": 9,
116
+ "type": "ImageScaleBy",
117
+ "pos": [
118
+ 280,
119
+ 290
120
+ ],
121
+ "size": [
122
+ 315,
123
+ 82
124
+ ],
125
+ "flags": {},
126
+ "order": 12,
127
+ "mode": 0,
128
+ "inputs": [
129
+ {
130
+ "name": "image",
131
+ "type": "IMAGE",
132
+ "link": 8,
133
+ "slot_index": 0
134
+ }
135
+ ],
136
+ "outputs": [
137
+ {
138
+ "name": "IMAGE",
139
+ "type": "IMAGE",
140
+ "shape": 3,
141
+ "links": [
142
+ 10,
143
+ 28
144
+ ],
145
+ "slot_index": 0
146
+ }
147
+ ],
148
+ "properties": {
149
+ "Node name for S&R": "ImageScaleBy"
150
+ },
151
+ "widgets_values": [
152
+ "lanczos",
153
+ 2
154
+ ]
155
+ },
156
+ {
157
+ "id": 52,
158
+ "type": "Reroute",
159
+ "pos": [
160
+ 1816.5716552734375,
161
+ 473.7144470214844
162
+ ],
163
+ "size": [
164
+ 75,
165
+ 26
166
+ ],
167
+ "flags": {},
168
+ "order": 21,
169
+ "mode": 0,
170
+ "inputs": [
171
+ {
172
+ "name": "",
173
+ "type": "*",
174
+ "link": 106
175
+ }
176
+ ],
177
+ "outputs": [
178
+ {
179
+ "name": "",
180
+ "type": "SEGS",
181
+ "links": [
182
+ 98
183
+ ],
184
+ "slot_index": 0
185
+ }
186
+ ],
187
+ "properties": {
188
+ "showOutputText": false,
189
+ "horizontal": false
190
+ }
191
+ },
192
+ {
193
+ "id": 53,
194
+ "type": "Reroute",
195
+ "pos": [
196
+ 1180,
197
+ 1540
198
+ ],
199
+ "size": [
200
+ 75,
201
+ 26
202
+ ],
203
+ "flags": {},
204
+ "order": 19,
205
+ "mode": 0,
206
+ "inputs": [
207
+ {
208
+ "name": "",
209
+ "type": "*",
210
+ "link": 110
211
+ }
212
+ ],
213
+ "outputs": [
214
+ {
215
+ "name": "",
216
+ "type": "SEGS",
217
+ "links": [
218
+ 100
219
+ ],
220
+ "slot_index": 0
221
+ }
222
+ ],
223
+ "properties": {
224
+ "showOutputText": false,
225
+ "horizontal": false
226
+ }
227
+ },
228
+ {
229
+ "id": 19,
230
+ "type": "workflow>MAKE_BASIC_PIPE",
231
+ "pos": [
232
+ 1440,
233
+ 850
234
+ ],
235
+ "size": [
236
+ 420,
237
+ 170
238
+ ],
239
+ "flags": {},
240
+ "order": 2,
241
+ "mode": 0,
242
+ "inputs": [],
243
+ "outputs": [
244
+ {
245
+ "name": "basic_pipe",
246
+ "type": "BASIC_PIPE",
247
+ "shape": 3,
248
+ "links": [
249
+ 76
250
+ ],
251
+ "slot_index": 0
252
+ }
253
+ ],
254
+ "properties": {
255
+ "Node name for S&R": "workflow/MAKE_BASIC_PIPE"
256
+ },
257
+ "widgets_values": [
258
+ "SDXL/MOHAWK_v20BackedVAE.safetensors",
259
+ "photograph of a girl, metalic robotic body, sun rising, snow field, hdr, cropped,",
260
+ "deformed, blurry, leather, fabric\n"
261
+ ]
262
+ },
263
+ {
264
+ "id": 16,
265
+ "type": "PreviewImage",
266
+ "pos": [
267
+ 2990,
268
+ 730
269
+ ],
270
+ "size": [
271
+ 610.069580078125,
272
+ 774.6857299804688
273
+ ],
274
+ "flags": {},
275
+ "order": 25,
276
+ "mode": 0,
277
+ "inputs": [
278
+ {
279
+ "name": "images",
280
+ "type": "IMAGE",
281
+ "link": 96
282
+ }
283
+ ],
284
+ "outputs": [],
285
+ "properties": {
286
+ "Node name for S&R": "PreviewImage"
287
+ },
288
+ "widgets_values": []
289
+ },
290
+ {
291
+ "id": 54,
292
+ "type": "Reroute",
293
+ "pos": [
294
+ 2390,
295
+ 1540
296
+ ],
297
+ "size": [
298
+ 75,
299
+ 26
300
+ ],
301
+ "flags": {},
302
+ "order": 22,
303
+ "mode": 0,
304
+ "inputs": [
305
+ {
306
+ "name": "",
307
+ "type": "*",
308
+ "link": 100
309
+ }
310
+ ],
311
+ "outputs": [
312
+ {
313
+ "name": "",
314
+ "type": "SEGS",
315
+ "links": [
316
+ 101
317
+ ],
318
+ "slot_index": 0
319
+ }
320
+ ],
321
+ "properties": {
322
+ "showOutputText": false,
323
+ "horizontal": false
324
+ }
325
+ },
326
+ {
327
+ "id": 51,
328
+ "type": "DetailerForEachDebugPipe",
329
+ "pos": [
330
+ 2510,
331
+ 730
332
+ ],
333
+ "size": [
334
+ 410,
335
+ 996
336
+ ],
337
+ "flags": {},
338
+ "order": 24,
339
+ "mode": 0,
340
+ "inputs": [
341
+ {
342
+ "name": "image",
343
+ "type": "IMAGE",
344
+ "link": 95,
345
+ "slot_index": 0
346
+ },
347
+ {
348
+ "name": "segs",
349
+ "type": "SEGS",
350
+ "link": 101
351
+ },
352
+ {
353
+ "name": "basic_pipe",
354
+ "type": "BASIC_PIPE",
355
+ "link": 94
356
+ },
357
+ {
358
+ "name": "detailer_hook",
359
+ "type": "DETAILER_HOOK",
360
+ "shape": 7,
361
+ "link": null
362
+ },
363
+ {
364
+ "name": "refiner_basic_pipe_opt",
365
+ "type": "BASIC_PIPE",
366
+ "shape": 7,
367
+ "link": null
368
+ },
369
+ {
370
+ "name": "scheduler_func_opt",
371
+ "type": "SCHEDULER_FUNC",
372
+ "shape": 7,
373
+ "link": null
374
+ }
375
+ ],
376
+ "outputs": [
377
+ {
378
+ "name": "image",
379
+ "type": "IMAGE",
380
+ "shape": 3,
381
+ "links": [
382
+ 96
383
+ ],
384
+ "slot_index": 0
385
+ },
386
+ {
387
+ "name": "segs",
388
+ "type": "SEGS",
389
+ "shape": 3,
390
+ "links": null
391
+ },
392
+ {
393
+ "name": "basic_pipe",
394
+ "type": "BASIC_PIPE",
395
+ "shape": 3,
396
+ "links": null
397
+ },
398
+ {
399
+ "name": "cropped",
400
+ "type": "IMAGE",
401
+ "shape": 6,
402
+ "links": null
403
+ },
404
+ {
405
+ "name": "cropped_refined",
406
+ "type": "IMAGE",
407
+ "shape": 6,
408
+ "links": [],
409
+ "slot_index": 4
410
+ },
411
+ {
412
+ "name": "cropped_refined_alpha",
413
+ "type": "IMAGE",
414
+ "shape": 6,
415
+ "links": [],
416
+ "slot_index": 5
417
+ },
418
+ {
419
+ "name": "cnet_images",
420
+ "type": "IMAGE",
421
+ "shape": 6,
422
+ "links": [],
423
+ "slot_index": 6
424
+ }
425
+ ],
426
+ "properties": {
427
+ "Node name for S&R": "DetailerForEachDebugPipe"
428
+ },
429
+ "widgets_values": [
430
+ 64,
431
+ true,
432
+ 1024,
433
+ 522790177337692,
434
+ "fixed",
435
+ 20,
436
+ 8,
437
+ "dpmpp_3m_sde_gpu",
438
+ "karras",
439
+ 0.4,
440
+ 10,
441
+ true,
442
+ true,
443
+ "[CONCAT] red double bun, metalic arm, zoey",
444
+ 0.2,
445
+ 1,
446
+ false,
447
+ 50,
448
+ false,
449
+ false
450
+ ]
451
+ },
452
+ {
453
+ "id": 20,
454
+ "type": "Reroute",
455
+ "pos": [
456
+ 660,
457
+ 730
458
+ ],
459
+ "size": [
460
+ 75,
461
+ 26
462
+ ],
463
+ "flags": {},
464
+ "order": 14,
465
+ "mode": 0,
466
+ "inputs": [
467
+ {
468
+ "name": "",
469
+ "type": "*",
470
+ "link": 28
471
+ }
472
+ ],
473
+ "outputs": [
474
+ {
475
+ "name": "",
476
+ "type": "IMAGE",
477
+ "links": [
478
+ 61,
479
+ 107,
480
+ 111
481
+ ],
482
+ "slot_index": 0
483
+ }
484
+ ],
485
+ "properties": {
486
+ "showOutputText": false,
487
+ "horizontal": false
488
+ }
489
+ },
490
+ {
491
+ "id": 28,
492
+ "type": "SEGSPreview",
493
+ "pos": [
494
+ 1279,
495
+ 1610
496
+ ],
497
+ "size": [
498
+ 315,
499
+ 314
500
+ ],
501
+ "flags": {},
502
+ "order": 18,
503
+ "mode": 0,
504
+ "inputs": [
505
+ {
506
+ "name": "segs",
507
+ "type": "SEGS",
508
+ "link": 109,
509
+ "slot_index": 0
510
+ },
511
+ {
512
+ "name": "fallback_image_opt",
513
+ "type": "IMAGE",
514
+ "shape": 7,
515
+ "link": 59,
516
+ "slot_index": 1
517
+ }
518
+ ],
519
+ "outputs": [
520
+ {
521
+ "name": "IMAGE",
522
+ "type": "IMAGE",
523
+ "shape": 6,
524
+ "links": [],
525
+ "slot_index": 0
526
+ }
527
+ ],
528
+ "properties": {
529
+ "Node name for S&R": "SEGSPreview"
530
+ },
531
+ "widgets_values": [
532
+ true,
533
+ 0.1
534
+ ]
535
+ },
536
+ {
537
+ "id": 56,
538
+ "type": "ImpactMakeTileSEGS",
539
+ "pos": [
540
+ 780,
541
+ 470
542
+ ],
543
+ "size": [
544
+ 315,
545
+ 218
546
+ ],
547
+ "flags": {},
548
+ "order": 17,
549
+ "mode": 0,
550
+ "inputs": [
551
+ {
552
+ "name": "images",
553
+ "type": "IMAGE",
554
+ "link": 111
555
+ },
556
+ {
557
+ "name": "filter_in_segs_opt",
558
+ "type": "SEGS",
559
+ "shape": 7,
560
+ "link": null
561
+ },
562
+ {
563
+ "name": "filter_out_segs_opt",
564
+ "type": "SEGS",
565
+ "shape": 7,
566
+ "link": 114
567
+ }
568
+ ],
569
+ "outputs": [
570
+ {
571
+ "name": "SEGS",
572
+ "type": "SEGS",
573
+ "shape": 3,
574
+ "links": [
575
+ 105,
576
+ 106
577
+ ]
578
+ }
579
+ ],
580
+ "properties": {
581
+ "Node name for S&R": "ImpactMakeTileSEGS"
582
+ },
583
+ "widgets_values": [
584
+ 768,
585
+ 1.5,
586
+ 200,
587
+ 30,
588
+ 0.7000000000000001,
589
+ "Reuse fast"
590
+ ],
591
+ "color": "#322",
592
+ "bgcolor": "#533"
593
+ },
594
+ {
595
+ "id": 6,
596
+ "type": "SEGSPreview",
597
+ "pos": [
598
+ 1292,
599
+ 268
600
+ ],
601
+ "size": [
602
+ 430.35296630859375,
603
+ 388.4536437988281
604
+ ],
605
+ "flags": {},
606
+ "order": 20,
607
+ "mode": 0,
608
+ "inputs": [
609
+ {
610
+ "name": "segs",
611
+ "type": "SEGS",
612
+ "link": 105,
613
+ "slot_index": 0
614
+ },
615
+ {
616
+ "name": "fallback_image_opt",
617
+ "type": "IMAGE",
618
+ "shape": 7,
619
+ "link": 10,
620
+ "slot_index": 1
621
+ }
622
+ ],
623
+ "outputs": [
624
+ {
625
+ "name": "IMAGE",
626
+ "type": "IMAGE",
627
+ "shape": 6,
628
+ "links": [],
629
+ "slot_index": 0
630
+ }
631
+ ],
632
+ "properties": {
633
+ "Node name for S&R": "SEGSPreview"
634
+ },
635
+ "widgets_values": [
636
+ true,
637
+ 0.1
638
+ ]
639
+ },
640
+ {
641
+ "id": 60,
642
+ "type": "Note",
643
+ "pos": [
644
+ -1033,
645
+ 292
646
+ ],
647
+ "size": [
648
+ 638.3837890625,
649
+ 178.84756469726562
650
+ ],
651
+ "flags": {},
652
+ "order": 3,
653
+ "mode": 0,
654
+ "inputs": [],
655
+ "outputs": [],
656
+ "title": "1.Intro",
657
+ "properties": {
658
+ "text": ""
659
+ },
660
+ "widgets_values": [
661
+ "This video demonstrates how to apply the newly added \"Make Tile SEGS\" in the Impact Pack to upscale using the upscale method.\n\n\"Make Tile SEGS\" node splits the image into tiles and creates SEGS.\n\nBy using this, you can mimic the tile-based upscale function and, if the detected SEGS is too large, you can also split it for detailing."
662
+ ],
663
+ "color": "#222",
664
+ "bgcolor": "#000"
665
+ },
666
+ {
667
+ "id": 2,
668
+ "type": "LoadImage",
669
+ "pos": [
670
+ -160,
671
+ 290
672
+ ],
673
+ "size": [
674
+ 315,
675
+ 314
676
+ ],
677
+ "flags": {},
678
+ "order": 4,
679
+ "mode": 0,
680
+ "inputs": [],
681
+ "outputs": [
682
+ {
683
+ "name": "IMAGE",
684
+ "type": "IMAGE",
685
+ "shape": 3,
686
+ "links": [
687
+ 8,
688
+ 34
689
+ ],
690
+ "slot_index": 0
691
+ },
692
+ {
693
+ "name": "MASK",
694
+ "type": "MASK",
695
+ "shape": 3,
696
+ "links": null
697
+ }
698
+ ],
699
+ "properties": {
700
+ "Node name for S&R": "LoadImage"
701
+ },
702
+ "widgets_values": [
703
+ "20240107_013.webp",
704
+ "image"
705
+ ]
706
+ },
707
+ {
708
+ "id": 62,
709
+ "type": "Note",
710
+ "pos": [
711
+ 190,
712
+ 60
713
+ ],
714
+ "size": [
715
+ 396.33758544921875,
716
+ 127.46672821044922
717
+ ],
718
+ "flags": {},
719
+ "order": 5,
720
+ "mode": 0,
721
+ "inputs": [],
722
+ "outputs": [],
723
+ "title": "2. Simple Upscale",
724
+ "properties": {
725
+ "text": ""
726
+ },
727
+ "widgets_values": [
728
+ "First, let's upscale the original 1024x1536 image to double its size.\n\nSimply upscale by 2x using the \"Upscale Image Scale By\". \nThe result will, of course, be blurry.\n"
729
+ ],
730
+ "color": "#222",
731
+ "bgcolor": "#000"
732
+ },
733
+ {
734
+ "id": 61,
735
+ "type": "Note",
736
+ "pos": [
737
+ 780,
738
+ 35
739
+ ],
740
+ "size": [
741
+ 677.756591796875,
742
+ 157.3253173828125
743
+ ],
744
+ "flags": {},
745
+ "order": 6,
746
+ "mode": 0,
747
+ "inputs": [],
748
+ "outputs": [],
749
+ "title": "3. Make Tile SEGS",
750
+ "properties": {
751
+ "text": ""
752
+ },
753
+ "widgets_values": [
754
+ "Let's process this image into SEGS using \"Make Tile SEGS\".\n\nYou can see that SEGS is structured so that every part of the image can be included in the mask area.\n\nUnlike the traditional tile upscaler, this method uses Detailer, so you can improve tile heterogeneity using the 'crop_factor'.\n\nAlso, setting 'mask_irregularity' to 0.7 will make the mask border irregular, improving the heterogeneity of the junctions."
755
+ ],
756
+ "color": "#222",
757
+ "bgcolor": "#000"
758
+ },
759
+ {
760
+ "id": 63,
761
+ "type": "Note",
762
+ "pos": [
763
+ -108,
764
+ 1056
765
+ ],
766
+ "size": [
767
+ 709.2979736328125,
768
+ 143.4364013671875
769
+ ],
770
+ "flags": {},
771
+ "order": 7,
772
+ "mode": 0,
773
+ "inputs": [],
774
+ "outputs": [],
775
+ "title": "4.Human SEGS",
776
+ "properties": {
777
+ "text": ""
778
+ },
779
+ "widgets_values": [
780
+ "Next, let's separate the background and the person to alleviate the noticeable artifacts, especially in the case of humans.\n\nApply the person ultralytics model to the \"Simple Detector\" to create SEGS containing the entire person.\n\nConnect the SEGS to the 'filter_out_segs_opt' in one \"Make Tile SEGS\" node, \nand in the other \"Make Tile SEGS\" node, connect it to the 'filter_in_segs_opt'."
781
+ ],
782
+ "color": "#222",
783
+ "bgcolor": "#000"
784
+ },
785
+ {
786
+ "id": 65,
787
+ "type": "Note",
788
+ "pos": [
789
+ 776,
790
+ 803
791
+ ],
792
+ "size": [
793
+ 620.825927734375,
794
+ 163.94039916992188
795
+ ],
796
+ "flags": {},
797
+ "order": 8,
798
+ "mode": 0,
799
+ "inputs": [],
800
+ "outputs": [],
801
+ "title": "5. filter_out_segs_opt",
802
+ "properties": {
803
+ "text": ""
804
+ },
805
+ "widgets_values": [
806
+ "The node connected to 'filter_out_segs_opt' creates SEGS excluding the mask of the input SEGS, allowing you to detail the background tiles.\n\n'min_overlap' determines how much the masks of each SEGS should overlap, and 'filter_segs_dilation' dilates the mask of the input SEGS.\n\nIncreasing 'filter_segs_dilation' in 'filter_out_segs_opt' generates masks further away from the person."
807
+ ],
808
+ "color": "#222",
809
+ "bgcolor": "#000"
810
+ },
811
+ {
812
+ "id": 66,
813
+ "type": "Note",
814
+ "pos": [
815
+ 814,
816
+ 2007
817
+ ],
818
+ "size": [
819
+ 620.825927734375,
820
+ 163.94039916992188
821
+ ],
822
+ "flags": {},
823
+ "order": 9,
824
+ "mode": 0,
825
+ "inputs": [],
826
+ "outputs": [],
827
+ "title": "6. filter_in_segs_opt",
828
+ "properties": {
829
+ "text": ""
830
+ },
831
+ "widgets_values": [
832
+ "On the other hand, the node connected to 'filter_in_segs_opt' creates SEGS with masks overlapping the input SEGS, allowing you to detail the person.\n\nSince detailing the person requires more attention than the background, increase 'bbox_size' to avoid creating small pieces, and increase 'min_overlap' to reduce junction artifacts and allow overlapping detailing.\n"
833
+ ],
834
+ "color": "#222",
835
+ "bgcolor": "#000"
836
+ },
837
+ {
838
+ "id": 67,
839
+ "type": "Note",
840
+ "pos": [
841
+ 1955,
842
+ 1805
843
+ ],
844
+ "size": [
845
+ 620.825927734375,
846
+ 163.94039916992188
847
+ ],
848
+ "flags": {},
849
+ "order": 10,
850
+ "mode": 0,
851
+ "inputs": [],
852
+ "outputs": [],
853
+ "title": "7. Detailing",
854
+ "properties": {
855
+ "text": ""
856
+ },
857
+ "widgets_values": [
858
+ "Now, using the SEGS created in this way, let's improve the upscaled image using two Detailer nodes.\n\nAlthough you can handle this with \"SEGS Concat\", separating into two Detailer nodes allows for separate options for background and person detailing.\n\nThis way, when modifying the detailing options for a person, you can prevent the recalculation of background detailing.\n"
859
+ ],
860
+ "color": "#222",
861
+ "bgcolor": "#000"
862
+ },
863
+ {
864
+ "id": 64,
865
+ "type": "Note",
866
+ "pos": [
867
+ 2994,
868
+ 500
869
+ ],
870
+ "size": [
871
+ 620.825927734375,
872
+ 163.94039916992188
873
+ ],
874
+ "flags": {},
875
+ "order": 11,
876
+ "mode": 0,
877
+ "inputs": [],
878
+ "outputs": [],
879
+ "title": "8. Result",
880
+ "properties": {
881
+ "text": ""
882
+ },
883
+ "widgets_values": [
884
+ "It seems that the image has upscaled well without significant artifacts in the 2048x3072 size."
885
+ ],
886
+ "color": "#222",
887
+ "bgcolor": "#000"
888
+ },
889
+ {
890
+ "id": 10,
891
+ "type": "DetailerForEachDebugPipe",
892
+ "pos": [
893
+ 1960,
894
+ 730
895
+ ],
896
+ "size": [
897
+ 410,
898
+ 996
899
+ ],
900
+ "flags": {},
901
+ "order": 23,
902
+ "mode": 0,
903
+ "inputs": [
904
+ {
905
+ "name": "image",
906
+ "type": "IMAGE",
907
+ "link": 60,
908
+ "slot_index": 0
909
+ },
910
+ {
911
+ "name": "segs",
912
+ "type": "SEGS",
913
+ "link": 98
914
+ },
915
+ {
916
+ "name": "basic_pipe",
917
+ "type": "BASIC_PIPE",
918
+ "link": 76
919
+ },
920
+ {
921
+ "name": "detailer_hook",
922
+ "type": "DETAILER_HOOK",
923
+ "shape": 7,
924
+ "link": null
925
+ },
926
+ {
927
+ "name": "refiner_basic_pipe_opt",
928
+ "type": "BASIC_PIPE",
929
+ "shape": 7,
930
+ "link": null
931
+ },
932
+ {
933
+ "name": "scheduler_func_opt",
934
+ "type": "SCHEDULER_FUNC",
935
+ "shape": 7,
936
+ "link": null
937
+ }
938
+ ],
939
+ "outputs": [
940
+ {
941
+ "name": "image",
942
+ "type": "IMAGE",
943
+ "shape": 3,
944
+ "links": [
945
+ 95
946
+ ],
947
+ "slot_index": 0
948
+ },
949
+ {
950
+ "name": "segs",
951
+ "type": "SEGS",
952
+ "shape": 3,
953
+ "links": null
954
+ },
955
+ {
956
+ "name": "basic_pipe",
957
+ "type": "BASIC_PIPE",
958
+ "shape": 3,
959
+ "links": [
960
+ 94
961
+ ],
962
+ "slot_index": 2
963
+ },
964
+ {
965
+ "name": "cropped",
966
+ "type": "IMAGE",
967
+ "shape": 6,
968
+ "links": null
969
+ },
970
+ {
971
+ "name": "cropped_refined",
972
+ "type": "IMAGE",
973
+ "shape": 6,
974
+ "links": [],
975
+ "slot_index": 4
976
+ },
977
+ {
978
+ "name": "cropped_refined_alpha",
979
+ "type": "IMAGE",
980
+ "shape": 6,
981
+ "links": [],
982
+ "slot_index": 5
983
+ },
984
+ {
985
+ "name": "cnet_images",
986
+ "type": "IMAGE",
987
+ "shape": 6,
988
+ "links": [],
989
+ "slot_index": 6
990
+ }
991
+ ],
992
+ "properties": {
993
+ "Node name for S&R": "DetailerForEachDebugPipe"
994
+ },
995
+ "widgets_values": [
996
+ 64,
997
+ true,
998
+ 1024,
999
+ 522790177337686,
1000
+ "fixed",
1001
+ 20,
1002
+ 8,
1003
+ "dpmpp_2m_sde_gpu",
1004
+ "karras",
1005
+ 0.46,
1006
+ 10,
1007
+ true,
1008
+ true,
1009
+ "",
1010
+ 0.2,
1011
+ 1,
1012
+ false,
1013
+ 10,
1014
+ false,
1015
+ false
1016
+ ]
1017
+ },
1018
+ {
1019
+ "id": 57,
1020
+ "type": "ImpactMakeTileSEGS",
1021
+ "pos": [
1022
+ 820,
1023
+ 1610
1024
+ ],
1025
+ "size": [
1026
+ 315,
1027
+ 218
1028
+ ],
1029
+ "flags": {},
1030
+ "order": 16,
1031
+ "mode": 0,
1032
+ "inputs": [
1033
+ {
1034
+ "name": "images",
1035
+ "type": "IMAGE",
1036
+ "link": 107
1037
+ },
1038
+ {
1039
+ "name": "filter_in_segs_opt",
1040
+ "type": "SEGS",
1041
+ "shape": 7,
1042
+ "link": 115
1043
+ },
1044
+ {
1045
+ "name": "filter_out_segs_opt",
1046
+ "type": "SEGS",
1047
+ "shape": 7,
1048
+ "link": null
1049
+ }
1050
+ ],
1051
+ "outputs": [
1052
+ {
1053
+ "name": "SEGS",
1054
+ "type": "SEGS",
1055
+ "shape": 3,
1056
+ "links": [
1057
+ 109,
1058
+ 110
1059
+ ]
1060
+ }
1061
+ ],
1062
+ "properties": {
1063
+ "Node name for S&R": "ImpactMakeTileSEGS"
1064
+ },
1065
+ "widgets_values": [
1066
+ 1200,
1067
+ 1.4000000000000001,
1068
+ 200,
1069
+ 100,
1070
+ 0.7000000000000001,
1071
+ "Reuse fast"
1072
+ ],
1073
+ "color": "#322",
1074
+ "bgcolor": "#533"
1075
+ },
1076
+ {
1077
+ "id": 22,
1078
+ "type": "ImpactSimpleDetectorSEGS",
1079
+ "pos": [
1080
+ 282,
1081
+ 699
1082
+ ],
1083
+ "size": [
1084
+ 315,
1085
+ 310
1086
+ ],
1087
+ "flags": {},
1088
+ "order": 13,
1089
+ "mode": 0,
1090
+ "inputs": [
1091
+ {
1092
+ "name": "bbox_detector",
1093
+ "type": "BBOX_DETECTOR",
1094
+ "link": 35,
1095
+ "slot_index": 0
1096
+ },
1097
+ {
1098
+ "name": "image",
1099
+ "type": "IMAGE",
1100
+ "link": 34,
1101
+ "slot_index": 1
1102
+ },
1103
+ {
1104
+ "name": "sam_model_opt",
1105
+ "type": "SAM_MODEL",
1106
+ "shape": 7,
1107
+ "link": 62,
1108
+ "slot_index": 2
1109
+ },
1110
+ {
1111
+ "name": "segm_detector_opt",
1112
+ "type": "SEGM_DETECTOR",
1113
+ "shape": 7,
1114
+ "link": null
1115
+ }
1116
+ ],
1117
+ "outputs": [
1118
+ {
1119
+ "name": "SEGS",
1120
+ "type": "SEGS",
1121
+ "shape": 3,
1122
+ "links": [
1123
+ 114,
1124
+ 115
1125
+ ],
1126
+ "slot_index": 0
1127
+ }
1128
+ ],
1129
+ "properties": {
1130
+ "Node name for S&R": "ImpactSimpleDetectorSEGS"
1131
+ },
1132
+ "widgets_values": [
1133
+ 0.5,
1134
+ 0,
1135
+ 3,
1136
+ 10,
1137
+ 0.5,
1138
+ 0,
1139
+ 0,
1140
+ 0.7000000000000001,
1141
+ 0
1142
+ ]
1143
+ }
1144
+ ],
1145
+ "links": [
1146
+ [
1147
+ 8,
1148
+ 2,
1149
+ 0,
1150
+ 9,
1151
+ 0,
1152
+ "IMAGE"
1153
+ ],
1154
+ [
1155
+ 10,
1156
+ 9,
1157
+ 0,
1158
+ 6,
1159
+ 1,
1160
+ "IMAGE"
1161
+ ],
1162
+ [
1163
+ 28,
1164
+ 9,
1165
+ 0,
1166
+ 20,
1167
+ 0,
1168
+ "*"
1169
+ ],
1170
+ [
1171
+ 34,
1172
+ 2,
1173
+ 0,
1174
+ 22,
1175
+ 1,
1176
+ "IMAGE"
1177
+ ],
1178
+ [
1179
+ 35,
1180
+ 24,
1181
+ 0,
1182
+ 22,
1183
+ 0,
1184
+ "BBOX_DETECTOR"
1185
+ ],
1186
+ [
1187
+ 59,
1188
+ 31,
1189
+ 0,
1190
+ 28,
1191
+ 1,
1192
+ "IMAGE"
1193
+ ],
1194
+ [
1195
+ 60,
1196
+ 31,
1197
+ 0,
1198
+ 10,
1199
+ 0,
1200
+ "IMAGE"
1201
+ ],
1202
+ [
1203
+ 61,
1204
+ 20,
1205
+ 0,
1206
+ 31,
1207
+ 0,
1208
+ "*"
1209
+ ],
1210
+ [
1211
+ 62,
1212
+ 32,
1213
+ 0,
1214
+ 22,
1215
+ 2,
1216
+ "SAM_MODEL"
1217
+ ],
1218
+ [
1219
+ 76,
1220
+ 19,
1221
+ 0,
1222
+ 10,
1223
+ 2,
1224
+ "BASIC_PIPE"
1225
+ ],
1226
+ [
1227
+ 94,
1228
+ 10,
1229
+ 2,
1230
+ 51,
1231
+ 2,
1232
+ "BASIC_PIPE"
1233
+ ],
1234
+ [
1235
+ 95,
1236
+ 10,
1237
+ 0,
1238
+ 51,
1239
+ 0,
1240
+ "IMAGE"
1241
+ ],
1242
+ [
1243
+ 96,
1244
+ 51,
1245
+ 0,
1246
+ 16,
1247
+ 0,
1248
+ "IMAGE"
1249
+ ],
1250
+ [
1251
+ 98,
1252
+ 52,
1253
+ 0,
1254
+ 10,
1255
+ 1,
1256
+ "SEGS"
1257
+ ],
1258
+ [
1259
+ 100,
1260
+ 53,
1261
+ 0,
1262
+ 54,
1263
+ 0,
1264
+ "*"
1265
+ ],
1266
+ [
1267
+ 101,
1268
+ 54,
1269
+ 0,
1270
+ 51,
1271
+ 1,
1272
+ "SEGS"
1273
+ ],
1274
+ [
1275
+ 105,
1276
+ 56,
1277
+ 0,
1278
+ 6,
1279
+ 0,
1280
+ "SEGS"
1281
+ ],
1282
+ [
1283
+ 106,
1284
+ 56,
1285
+ 0,
1286
+ 52,
1287
+ 0,
1288
+ "*"
1289
+ ],
1290
+ [
1291
+ 107,
1292
+ 20,
1293
+ 0,
1294
+ 57,
1295
+ 0,
1296
+ "IMAGE"
1297
+ ],
1298
+ [
1299
+ 109,
1300
+ 57,
1301
+ 0,
1302
+ 28,
1303
+ 0,
1304
+ "SEGS"
1305
+ ],
1306
+ [
1307
+ 110,
1308
+ 57,
1309
+ 0,
1310
+ 53,
1311
+ 0,
1312
+ "*"
1313
+ ],
1314
+ [
1315
+ 111,
1316
+ 20,
1317
+ 0,
1318
+ 56,
1319
+ 0,
1320
+ "IMAGE"
1321
+ ],
1322
+ [
1323
+ 114,
1324
+ 22,
1325
+ 0,
1326
+ 56,
1327
+ 2,
1328
+ "SEGS"
1329
+ ],
1330
+ [
1331
+ 115,
1332
+ 22,
1333
+ 0,
1334
+ 57,
1335
+ 1,
1336
+ "SEGS"
1337
+ ]
1338
+ ],
1339
+ "groups": [],
1340
+ "config": {},
1341
+ "extra": {
1342
+ "groupNodes": {
1343
+ "MAKE_BASIC_PIPE": {
1344
+ "nodes": [
1345
+ {
1346
+ "type": "CheckpointLoaderSimple",
1347
+ "pos": [
1348
+ -80,
1349
+ 1100
1350
+ ],
1351
+ "size": {
1352
+ "0": 315,
1353
+ "1": 98
1354
+ },
1355
+ "flags": {},
1356
+ "order": 0,
1357
+ "mode": 0,
1358
+ "outputs": [
1359
+ {
1360
+ "name": "MODEL",
1361
+ "type": "MODEL",
1362
+ "links": [],
1363
+ "shape": 3,
1364
+ "slot_index": 0,
1365
+ "localized_name": "MODEL"
1366
+ },
1367
+ {
1368
+ "name": "CLIP",
1369
+ "type": "CLIP",
1370
+ "links": [],
1371
+ "shape": 3,
1372
+ "slot_index": 1,
1373
+ "localized_name": "CLIP"
1374
+ },
1375
+ {
1376
+ "name": "VAE",
1377
+ "type": "VAE",
1378
+ "links": [],
1379
+ "shape": 3,
1380
+ "slot_index": 2,
1381
+ "localized_name": "VAE"
1382
+ }
1383
+ ],
1384
+ "properties": {
1385
+ "Node name for S&R": "CheckpointLoaderSimple"
1386
+ },
1387
+ "widgets_values": [
1388
+ "SD1.5/majicmixRealistic_v7.safetensors"
1389
+ ],
1390
+ "index": 0,
1391
+ "inputs": []
1392
+ },
1393
+ {
1394
+ "type": "CLIPTextEncode",
1395
+ "pos": [
1396
+ 455,
1397
+ 1026
1398
+ ],
1399
+ "size": {
1400
+ "0": 210,
1401
+ "1": 104.50106048583984
1402
+ },
1403
+ "flags": {},
1404
+ "order": 2,
1405
+ "mode": 0,
1406
+ "inputs": [
1407
+ {
1408
+ "name": "clip",
1409
+ "type": "CLIP",
1410
+ "link": null,
1411
+ "localized_name": "clip"
1412
+ }
1413
+ ],
1414
+ "outputs": [
1415
+ {
1416
+ "name": "CONDITIONING",
1417
+ "type": "CONDITIONING",
1418
+ "links": [],
1419
+ "shape": 3,
1420
+ "slot_index": 0,
1421
+ "localized_name": "CONDITIONING"
1422
+ }
1423
+ ],
1424
+ "properties": {
1425
+ "Node name for S&R": "CLIPTextEncode"
1426
+ },
1427
+ "widgets_values": [
1428
+ "photograph, 4k, hdr, cropped, 1girl sit, blur hair, pink bag"
1429
+ ],
1430
+ "index": 1
1431
+ },
1432
+ {
1433
+ "type": "CLIPTextEncode",
1434
+ "pos": [
1435
+ 456,
1436
+ 1239
1437
+ ],
1438
+ "size": {
1439
+ "0": 210,
1440
+ "1": 104.50106048583984
1441
+ },
1442
+ "flags": {},
1443
+ "order": 3,
1444
+ "mode": 0,
1445
+ "inputs": [
1446
+ {
1447
+ "name": "clip",
1448
+ "type": "CLIP",
1449
+ "link": null,
1450
+ "slot_index": 0,
1451
+ "localized_name": "clip"
1452
+ }
1453
+ ],
1454
+ "outputs": [
1455
+ {
1456
+ "name": "CONDITIONING",
1457
+ "type": "CONDITIONING",
1458
+ "links": [],
1459
+ "shape": 3,
1460
+ "localized_name": "CONDITIONING"
1461
+ }
1462
+ ],
1463
+ "properties": {
1464
+ "Node name for S&R": "CLIPTextEncode"
1465
+ },
1466
+ "widgets_values": [
1467
+ "deformed, blurry\n"
1468
+ ],
1469
+ "index": 2
1470
+ },
1471
+ {
1472
+ "type": "ToBasicPipe",
1473
+ "pos": [
1474
+ 800,
1475
+ 1100
1476
+ ],
1477
+ "size": {
1478
+ "0": 241.79998779296875,
1479
+ "1": 106
1480
+ },
1481
+ "flags": {},
1482
+ "order": 5,
1483
+ "mode": 0,
1484
+ "inputs": [
1485
+ {
1486
+ "name": "model",
1487
+ "type": "MODEL",
1488
+ "link": null,
1489
+ "localized_name": "model"
1490
+ },
1491
+ {
1492
+ "name": "clip",
1493
+ "type": "CLIP",
1494
+ "link": null,
1495
+ "slot_index": 1,
1496
+ "localized_name": "clip"
1497
+ },
1498
+ {
1499
+ "name": "vae",
1500
+ "type": "VAE",
1501
+ "link": null,
1502
+ "localized_name": "vae"
1503
+ },
1504
+ {
1505
+ "name": "positive",
1506
+ "type": "CONDITIONING",
1507
+ "link": null,
1508
+ "localized_name": "positive"
1509
+ },
1510
+ {
1511
+ "name": "negative",
1512
+ "type": "CONDITIONING",
1513
+ "link": null,
1514
+ "slot_index": 4,
1515
+ "localized_name": "negative"
1516
+ }
1517
+ ],
1518
+ "outputs": [
1519
+ {
1520
+ "name": "basic_pipe",
1521
+ "type": "BASIC_PIPE",
1522
+ "links": [],
1523
+ "shape": 3,
1524
+ "slot_index": 0,
1525
+ "localized_name": "basic_pipe"
1526
+ }
1527
+ ],
1528
+ "properties": {
1529
+ "Node name for S&R": "ToBasicPipe"
1530
+ },
1531
+ "index": 3
1532
+ }
1533
+ ],
1534
+ "links": [
1535
+ [
1536
+ 0,
1537
+ 1,
1538
+ 1,
1539
+ 0,
1540
+ 11,
1541
+ "CLIP"
1542
+ ],
1543
+ [
1544
+ 0,
1545
+ 1,
1546
+ 2,
1547
+ 0,
1548
+ 11,
1549
+ "CLIP"
1550
+ ],
1551
+ [
1552
+ 0,
1553
+ 0,
1554
+ 3,
1555
+ 0,
1556
+ 11,
1557
+ "MODEL"
1558
+ ],
1559
+ [
1560
+ 0,
1561
+ 1,
1562
+ 3,
1563
+ 1,
1564
+ 11,
1565
+ "CLIP"
1566
+ ],
1567
+ [
1568
+ 0,
1569
+ 2,
1570
+ 3,
1571
+ 2,
1572
+ 11,
1573
+ "VAE"
1574
+ ],
1575
+ [
1576
+ 1,
1577
+ 0,
1578
+ 3,
1579
+ 3,
1580
+ 13,
1581
+ "CONDITIONING"
1582
+ ],
1583
+ [
1584
+ 2,
1585
+ 0,
1586
+ 3,
1587
+ 4,
1588
+ 14,
1589
+ "CONDITIONING"
1590
+ ]
1591
+ ],
1592
+ "external": [
1593
+ [
1594
+ 3,
1595
+ 0,
1596
+ "BASIC_PIPE"
1597
+ ]
1598
+ ]
1599
+ }
1600
+ },
1601
+ "controller_panel": {
1602
+ "controllers": {},
1603
+ "hidden": true,
1604
+ "highlight": true,
1605
+ "version": 2,
1606
+ "default_order": []
1607
+ },
1608
+ "ds": {
1609
+ "scale": 1.4641000000000006,
1610
+ "offset": {
1611
+ "0": -481.44390869140625,
1612
+ "1": -92.16561126708984
1613
+ }
1614
+ },
1615
+ "node_versions": {
1616
+ "comfyui-impact-pack": "1ae7cae2df8cca06027edfa3a24512671239d6c4",
1617
+ "comfyui-impact-subpack": "74db20c95eca152a6d686c914edc0ef4e4762cb8",
1618
+ "comfy-core": "0.3.14"
1619
+ },
1620
+ "ue_links": [],
1621
+ "VHS_latentpreview": false,
1622
+ "VHS_latentpreviewrate": 0,
1623
+ "VHS_MetadataImage": true,
1624
+ "VHS_KeepIntermediate": true
1625
+ },
1626
+ "version": 0.4
1627
+ }
zavodik/nodes/ComfyUI-Impact-Pack/example_workflows/5-PreviewDetailerHookProvider.jpg ADDED

Git LFS Details

  • SHA256: f37a67d0b42e4d94950a4d27de403b022d684824571021c702196a2989bf8349
  • Pointer size: 130 Bytes
  • Size of remote file: 68.5 kB
zavodik/nodes/ComfyUI-Impact-Pack/example_workflows/5-PreviewDetailerHookProvider.json ADDED
@@ -0,0 +1,1629 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "last_node_id": 70,
3
+ "last_link_id": 125,
4
+ "nodes": [
5
+ {
6
+ "id": 31,
7
+ "type": "Reroute",
8
+ "pos": [
9
+ 1170,
10
+ 730
11
+ ],
12
+ "size": [
13
+ 75,
14
+ 26
15
+ ],
16
+ "flags": {},
17
+ "order": 12,
18
+ "mode": 0,
19
+ "inputs": [
20
+ {
21
+ "name": "",
22
+ "type": "*",
23
+ "link": 61
24
+ }
25
+ ],
26
+ "outputs": [
27
+ {
28
+ "name": "",
29
+ "type": "IMAGE",
30
+ "links": [
31
+ 59,
32
+ 60
33
+ ],
34
+ "slot_index": 0
35
+ }
36
+ ],
37
+ "properties": {
38
+ "showOutputText": false,
39
+ "horizontal": false
40
+ }
41
+ },
42
+ {
43
+ "id": 32,
44
+ "type": "SAMLoader",
45
+ "pos": [
46
+ -160,
47
+ 840
48
+ ],
49
+ "size": [
50
+ 315,
51
+ 82
52
+ ],
53
+ "flags": {},
54
+ "order": 0,
55
+ "mode": 0,
56
+ "inputs": [],
57
+ "outputs": [
58
+ {
59
+ "name": "SAM_MODEL",
60
+ "type": "SAM_MODEL",
61
+ "shape": 3,
62
+ "links": [
63
+ 62
64
+ ]
65
+ }
66
+ ],
67
+ "properties": {
68
+ "Node name for S&R": "SAMLoader"
69
+ },
70
+ "widgets_values": [
71
+ "sam_vit_b_01ec64.pth",
72
+ "AUTO"
73
+ ]
74
+ },
75
+ {
76
+ "id": 24,
77
+ "type": "UltralyticsDetectorProvider",
78
+ "pos": [
79
+ -160,
80
+ 700
81
+ ],
82
+ "size": [
83
+ 315,
84
+ 78
85
+ ],
86
+ "flags": {},
87
+ "order": 1,
88
+ "mode": 0,
89
+ "inputs": [],
90
+ "outputs": [
91
+ {
92
+ "name": "BBOX_DETECTOR",
93
+ "type": "BBOX_DETECTOR",
94
+ "shape": 3,
95
+ "links": [
96
+ 35
97
+ ]
98
+ },
99
+ {
100
+ "name": "SEGM_DETECTOR",
101
+ "type": "SEGM_DETECTOR",
102
+ "shape": 3,
103
+ "links": [],
104
+ "slot_index": 1
105
+ }
106
+ ],
107
+ "properties": {
108
+ "Node name for S&R": "UltralyticsDetectorProvider"
109
+ },
110
+ "widgets_values": [
111
+ "segm/person_yolov8m-seg.pt"
112
+ ]
113
+ },
114
+ {
115
+ "id": 53,
116
+ "type": "Reroute",
117
+ "pos": [
118
+ 1180,
119
+ 1540
120
+ ],
121
+ "size": [
122
+ 75,
123
+ 26
124
+ ],
125
+ "flags": {},
126
+ "order": 16,
127
+ "mode": 0,
128
+ "inputs": [
129
+ {
130
+ "name": "",
131
+ "type": "*",
132
+ "link": 110
133
+ }
134
+ ],
135
+ "outputs": [
136
+ {
137
+ "name": "",
138
+ "type": "SEGS",
139
+ "links": [
140
+ 100
141
+ ],
142
+ "slot_index": 0
143
+ }
144
+ ],
145
+ "properties": {
146
+ "showOutputText": false,
147
+ "horizontal": false
148
+ }
149
+ },
150
+ {
151
+ "id": 20,
152
+ "type": "Reroute",
153
+ "pos": [
154
+ 660,
155
+ 730
156
+ ],
157
+ "size": [
158
+ 75,
159
+ 26
160
+ ],
161
+ "flags": {},
162
+ "order": 10,
163
+ "mode": 0,
164
+ "inputs": [
165
+ {
166
+ "name": "",
167
+ "type": "*",
168
+ "link": 28
169
+ }
170
+ ],
171
+ "outputs": [
172
+ {
173
+ "name": "",
174
+ "type": "IMAGE",
175
+ "links": [
176
+ 61,
177
+ 107,
178
+ 111
179
+ ],
180
+ "slot_index": 0
181
+ }
182
+ ],
183
+ "properties": {
184
+ "showOutputText": false,
185
+ "horizontal": false
186
+ }
187
+ },
188
+ {
189
+ "id": 28,
190
+ "type": "SEGSPreview",
191
+ "pos": [
192
+ 1279,
193
+ 1610
194
+ ],
195
+ "size": [
196
+ 315,
197
+ 314
198
+ ],
199
+ "flags": {},
200
+ "order": 15,
201
+ "mode": 0,
202
+ "inputs": [
203
+ {
204
+ "name": "segs",
205
+ "type": "SEGS",
206
+ "link": 109,
207
+ "slot_index": 0
208
+ },
209
+ {
210
+ "name": "fallback_image_opt",
211
+ "type": "IMAGE",
212
+ "shape": 7,
213
+ "link": 59,
214
+ "slot_index": 1
215
+ }
216
+ ],
217
+ "outputs": [
218
+ {
219
+ "name": "IMAGE",
220
+ "type": "IMAGE",
221
+ "shape": 6,
222
+ "links": [],
223
+ "slot_index": 0
224
+ }
225
+ ],
226
+ "properties": {
227
+ "Node name for S&R": "SEGSPreview"
228
+ },
229
+ "widgets_values": [
230
+ true,
231
+ 0.1
232
+ ]
233
+ },
234
+ {
235
+ "id": 6,
236
+ "type": "SEGSPreview",
237
+ "pos": [
238
+ 1292,
239
+ 268
240
+ ],
241
+ "size": [
242
+ 430.35296630859375,
243
+ 388.4536437988281
244
+ ],
245
+ "flags": {},
246
+ "order": 17,
247
+ "mode": 0,
248
+ "inputs": [
249
+ {
250
+ "name": "segs",
251
+ "type": "SEGS",
252
+ "link": 105,
253
+ "slot_index": 0
254
+ },
255
+ {
256
+ "name": "fallback_image_opt",
257
+ "type": "IMAGE",
258
+ "shape": 7,
259
+ "link": 10,
260
+ "slot_index": 1
261
+ }
262
+ ],
263
+ "outputs": [
264
+ {
265
+ "name": "IMAGE",
266
+ "type": "IMAGE",
267
+ "shape": 6,
268
+ "links": [],
269
+ "slot_index": 0
270
+ }
271
+ ],
272
+ "properties": {
273
+ "Node name for S&R": "SEGSPreview"
274
+ },
275
+ "widgets_values": [
276
+ true,
277
+ 0.1
278
+ ]
279
+ },
280
+ {
281
+ "id": 57,
282
+ "type": "ImpactMakeTileSEGS",
283
+ "pos": [
284
+ 820,
285
+ 1610
286
+ ],
287
+ "size": [
288
+ 315,
289
+ 218
290
+ ],
291
+ "flags": {},
292
+ "order": 13,
293
+ "mode": 0,
294
+ "inputs": [
295
+ {
296
+ "name": "images",
297
+ "type": "IMAGE",
298
+ "link": 107
299
+ },
300
+ {
301
+ "name": "filter_in_segs_opt",
302
+ "type": "SEGS",
303
+ "shape": 7,
304
+ "link": 115
305
+ },
306
+ {
307
+ "name": "filter_out_segs_opt",
308
+ "type": "SEGS",
309
+ "shape": 7,
310
+ "link": null
311
+ }
312
+ ],
313
+ "outputs": [
314
+ {
315
+ "name": "SEGS",
316
+ "type": "SEGS",
317
+ "shape": 3,
318
+ "links": [
319
+ 109,
320
+ 110
321
+ ]
322
+ }
323
+ ],
324
+ "properties": {
325
+ "Node name for S&R": "ImpactMakeTileSEGS"
326
+ },
327
+ "widgets_values": [
328
+ 1200,
329
+ 1.4000000000000001,
330
+ 200,
331
+ 100,
332
+ 0.7000000000000001,
333
+ "Reuse fast"
334
+ ],
335
+ "color": "#322",
336
+ "bgcolor": "#533"
337
+ },
338
+ {
339
+ "id": 22,
340
+ "type": "ImpactSimpleDetectorSEGS",
341
+ "pos": [
342
+ 282,
343
+ 699
344
+ ],
345
+ "size": [
346
+ 315,
347
+ 310
348
+ ],
349
+ "flags": {},
350
+ "order": 8,
351
+ "mode": 0,
352
+ "inputs": [
353
+ {
354
+ "name": "bbox_detector",
355
+ "type": "BBOX_DETECTOR",
356
+ "link": 35,
357
+ "slot_index": 0
358
+ },
359
+ {
360
+ "name": "image",
361
+ "type": "IMAGE",
362
+ "link": 34,
363
+ "slot_index": 1
364
+ },
365
+ {
366
+ "name": "sam_model_opt",
367
+ "type": "SAM_MODEL",
368
+ "shape": 7,
369
+ "link": 62,
370
+ "slot_index": 2
371
+ },
372
+ {
373
+ "name": "segm_detector_opt",
374
+ "type": "SEGM_DETECTOR",
375
+ "shape": 7,
376
+ "link": null,
377
+ "slot_index": 3
378
+ }
379
+ ],
380
+ "outputs": [
381
+ {
382
+ "name": "SEGS",
383
+ "type": "SEGS",
384
+ "shape": 3,
385
+ "links": [
386
+ 114,
387
+ 115
388
+ ],
389
+ "slot_index": 0
390
+ }
391
+ ],
392
+ "properties": {
393
+ "Node name for S&R": "ImpactSimpleDetectorSEGS"
394
+ },
395
+ "widgets_values": [
396
+ 0.5,
397
+ 0,
398
+ 3,
399
+ 10,
400
+ 0.5,
401
+ 0,
402
+ 0,
403
+ 0.7000000000000001,
404
+ 0
405
+ ]
406
+ },
407
+ {
408
+ "id": 2,
409
+ "type": "LoadImage",
410
+ "pos": [
411
+ -160,
412
+ 290
413
+ ],
414
+ "size": [
415
+ 315,
416
+ 314
417
+ ],
418
+ "flags": {},
419
+ "order": 2,
420
+ "mode": 0,
421
+ "inputs": [],
422
+ "outputs": [
423
+ {
424
+ "name": "IMAGE",
425
+ "type": "IMAGE",
426
+ "shape": 3,
427
+ "links": [
428
+ 8,
429
+ 34
430
+ ],
431
+ "slot_index": 0
432
+ },
433
+ {
434
+ "name": "MASK",
435
+ "type": "MASK",
436
+ "shape": 3,
437
+ "links": null
438
+ }
439
+ ],
440
+ "properties": {
441
+ "Node name for S&R": "LoadImage"
442
+ },
443
+ "widgets_values": [
444
+ "combination-2pass-original.png",
445
+ "image"
446
+ ]
447
+ },
448
+ {
449
+ "id": 9,
450
+ "type": "ImageScaleBy",
451
+ "pos": [
452
+ 280,
453
+ 290
454
+ ],
455
+ "size": [
456
+ 315,
457
+ 82
458
+ ],
459
+ "flags": {},
460
+ "order": 7,
461
+ "mode": 0,
462
+ "inputs": [
463
+ {
464
+ "name": "image",
465
+ "type": "IMAGE",
466
+ "link": 8,
467
+ "slot_index": 0
468
+ }
469
+ ],
470
+ "outputs": [
471
+ {
472
+ "name": "IMAGE",
473
+ "type": "IMAGE",
474
+ "shape": 3,
475
+ "links": [
476
+ 10,
477
+ 28
478
+ ],
479
+ "slot_index": 0
480
+ }
481
+ ],
482
+ "properties": {
483
+ "Node name for S&R": "ImageScaleBy"
484
+ },
485
+ "widgets_values": [
486
+ "lanczos",
487
+ 3
488
+ ]
489
+ },
490
+ {
491
+ "id": 16,
492
+ "type": "PreviewImage",
493
+ "pos": [
494
+ 2990,
495
+ 730
496
+ ],
497
+ "size": [
498
+ 610.069580078125,
499
+ 774.6857299804688
500
+ ],
501
+ "flags": {},
502
+ "order": 22,
503
+ "mode": 0,
504
+ "inputs": [
505
+ {
506
+ "name": "images",
507
+ "type": "IMAGE",
508
+ "link": 96
509
+ }
510
+ ],
511
+ "outputs": [],
512
+ "properties": {
513
+ "Node name for S&R": "PreviewImage"
514
+ },
515
+ "widgets_values": []
516
+ },
517
+ {
518
+ "id": 68,
519
+ "type": "PreviewDetailerHookProvider",
520
+ "pos": [
521
+ 943,
522
+ -1972
523
+ ],
524
+ "size": [
525
+ 1360.0478515625,
526
+ 1943.85986328125
527
+ ],
528
+ "flags": {},
529
+ "order": 3,
530
+ "mode": 0,
531
+ "inputs": [],
532
+ "outputs": [
533
+ {
534
+ "name": "DETAILER_HOOK",
535
+ "type": "DETAILER_HOOK",
536
+ "shape": 3,
537
+ "links": [
538
+ 120
539
+ ],
540
+ "slot_index": 0
541
+ },
542
+ {
543
+ "name": "UPSCALER_HOOK",
544
+ "type": "UPSCALER_HOOK",
545
+ "links": null
546
+ }
547
+ ],
548
+ "title": "PreviewDetailerHookProvider - Live Preview",
549
+ "properties": {
550
+ "Node name for S&R": "PreviewDetailerHookProvider"
551
+ },
552
+ "widgets_values": [
553
+ 95
554
+ ],
555
+ "color": "#322",
556
+ "bgcolor": "#533"
557
+ },
558
+ {
559
+ "id": 69,
560
+ "type": "Reroute",
561
+ "pos": [
562
+ 2360,
563
+ -1920
564
+ ],
565
+ "size": [
566
+ 75,
567
+ 26
568
+ ],
569
+ "flags": {},
570
+ "order": 9,
571
+ "mode": 0,
572
+ "inputs": [
573
+ {
574
+ "name": "",
575
+ "type": "*",
576
+ "pos": [
577
+ 37.5,
578
+ 0
579
+ ],
580
+ "link": 120
581
+ }
582
+ ],
583
+ "outputs": [
584
+ {
585
+ "name": "",
586
+ "type": "DETAILER_HOOK",
587
+ "links": [
588
+ 121
589
+ ],
590
+ "slot_index": 0
591
+ }
592
+ ],
593
+ "properties": {
594
+ "showOutputText": false,
595
+ "horizontal": true
596
+ }
597
+ },
598
+ {
599
+ "id": 19,
600
+ "type": "workflow>MAKE_BASIC_PIPE",
601
+ "pos": [
602
+ 1440,
603
+ 850
604
+ ],
605
+ "size": [
606
+ 451.0836486816406,
607
+ 279.9571533203125
608
+ ],
609
+ "flags": {},
610
+ "order": 4,
611
+ "mode": 0,
612
+ "inputs": [],
613
+ "outputs": [
614
+ {
615
+ "name": "basic_pipe",
616
+ "type": "BASIC_PIPE",
617
+ "shape": 3,
618
+ "links": [
619
+ 76
620
+ ],
621
+ "slot_index": 0
622
+ }
623
+ ],
624
+ "properties": {
625
+ "Node name for S&R": "workflow/MAKE_BASIC_PIPE"
626
+ },
627
+ "widgets_values": [
628
+ "SDXL/MOHAWK_v20BackedVAE.safetensors",
629
+ "cinematic photograph of a girl is walking, cinematic lighting, white inddor",
630
+ "deformed, blurry, \n"
631
+ ]
632
+ },
633
+ {
634
+ "id": 52,
635
+ "type": "Reroute",
636
+ "pos": [
637
+ 2330,
638
+ 470
639
+ ],
640
+ "size": [
641
+ 75,
642
+ 26
643
+ ],
644
+ "flags": {},
645
+ "order": 18,
646
+ "mode": 0,
647
+ "inputs": [
648
+ {
649
+ "name": "",
650
+ "type": "*",
651
+ "link": 106
652
+ }
653
+ ],
654
+ "outputs": [
655
+ {
656
+ "name": "",
657
+ "type": "SEGS",
658
+ "links": [
659
+ 119
660
+ ],
661
+ "slot_index": 0
662
+ }
663
+ ],
664
+ "properties": {
665
+ "showOutputText": false,
666
+ "horizontal": false
667
+ }
668
+ },
669
+ {
670
+ "id": 54,
671
+ "type": "Reroute",
672
+ "pos": [
673
+ 1780,
674
+ 1540
675
+ ],
676
+ "size": [
677
+ 75,
678
+ 26
679
+ ],
680
+ "flags": {},
681
+ "order": 19,
682
+ "mode": 0,
683
+ "inputs": [
684
+ {
685
+ "name": "",
686
+ "type": "*",
687
+ "link": 100
688
+ }
689
+ ],
690
+ "outputs": [
691
+ {
692
+ "name": "",
693
+ "type": "SEGS",
694
+ "links": [
695
+ 118
696
+ ],
697
+ "slot_index": 0
698
+ }
699
+ ],
700
+ "properties": {
701
+ "showOutputText": false,
702
+ "horizontal": false
703
+ }
704
+ },
705
+ {
706
+ "id": 56,
707
+ "type": "ImpactMakeTileSEGS",
708
+ "pos": [
709
+ 780,
710
+ 470
711
+ ],
712
+ "size": [
713
+ 315,
714
+ 218
715
+ ],
716
+ "flags": {},
717
+ "order": 14,
718
+ "mode": 0,
719
+ "inputs": [
720
+ {
721
+ "name": "images",
722
+ "type": "IMAGE",
723
+ "link": 111
724
+ },
725
+ {
726
+ "name": "filter_in_segs_opt",
727
+ "type": "SEGS",
728
+ "shape": 7,
729
+ "link": null
730
+ },
731
+ {
732
+ "name": "filter_out_segs_opt",
733
+ "type": "SEGS",
734
+ "shape": 7,
735
+ "link": 114
736
+ }
737
+ ],
738
+ "outputs": [
739
+ {
740
+ "name": "SEGS",
741
+ "type": "SEGS",
742
+ "shape": 3,
743
+ "links": [
744
+ 105,
745
+ 106
746
+ ]
747
+ }
748
+ ],
749
+ "properties": {
750
+ "Node name for S&R": "ImpactMakeTileSEGS"
751
+ },
752
+ "widgets_values": [
753
+ 768,
754
+ 1.5,
755
+ 200,
756
+ 0,
757
+ 0.7000000000000001,
758
+ "Reuse fast"
759
+ ],
760
+ "color": "#322",
761
+ "bgcolor": "#533"
762
+ },
763
+ {
764
+ "id": 10,
765
+ "type": "DetailerForEachDebugPipe",
766
+ "pos": [
767
+ 1960,
768
+ 730
769
+ ],
770
+ "size": [
771
+ 410,
772
+ 996
773
+ ],
774
+ "flags": {},
775
+ "order": 20,
776
+ "mode": 0,
777
+ "inputs": [
778
+ {
779
+ "name": "image",
780
+ "type": "IMAGE",
781
+ "link": 60,
782
+ "slot_index": 0
783
+ },
784
+ {
785
+ "name": "segs",
786
+ "type": "SEGS",
787
+ "link": 118
788
+ },
789
+ {
790
+ "name": "basic_pipe",
791
+ "type": "BASIC_PIPE",
792
+ "link": 76
793
+ },
794
+ {
795
+ "name": "detailer_hook",
796
+ "type": "DETAILER_HOOK",
797
+ "shape": 7,
798
+ "link": 124,
799
+ "slot_index": 3
800
+ },
801
+ {
802
+ "name": "refiner_basic_pipe_opt",
803
+ "type": "BASIC_PIPE",
804
+ "shape": 7,
805
+ "link": null
806
+ },
807
+ {
808
+ "name": "scheduler_func_opt",
809
+ "type": "SCHEDULER_FUNC",
810
+ "shape": 7,
811
+ "link": null
812
+ }
813
+ ],
814
+ "outputs": [
815
+ {
816
+ "name": "image",
817
+ "type": "IMAGE",
818
+ "shape": 3,
819
+ "links": [
820
+ 95
821
+ ],
822
+ "slot_index": 0
823
+ },
824
+ {
825
+ "name": "segs",
826
+ "type": "SEGS",
827
+ "shape": 3,
828
+ "links": null
829
+ },
830
+ {
831
+ "name": "basic_pipe",
832
+ "type": "BASIC_PIPE",
833
+ "shape": 3,
834
+ "links": [
835
+ 94
836
+ ],
837
+ "slot_index": 2
838
+ },
839
+ {
840
+ "name": "cropped",
841
+ "type": "IMAGE",
842
+ "shape": 6,
843
+ "links": null
844
+ },
845
+ {
846
+ "name": "cropped_refined",
847
+ "type": "IMAGE",
848
+ "shape": 6,
849
+ "links": [],
850
+ "slot_index": 4
851
+ },
852
+ {
853
+ "name": "cropped_refined_alpha",
854
+ "type": "IMAGE",
855
+ "shape": 6,
856
+ "links": [],
857
+ "slot_index": 5
858
+ },
859
+ {
860
+ "name": "cnet_images",
861
+ "type": "IMAGE",
862
+ "shape": 6,
863
+ "links": [],
864
+ "slot_index": 6
865
+ }
866
+ ],
867
+ "title": "DetailerDebug (SEGS/pipe) - person",
868
+ "properties": {
869
+ "Node name for S&R": "DetailerForEachDebugPipe"
870
+ },
871
+ "widgets_values": [
872
+ 64,
873
+ true,
874
+ 1024,
875
+ 522790177337686,
876
+ "fixed",
877
+ 20,
878
+ 8,
879
+ "dpmpp_3m_sde_gpu",
880
+ "karras",
881
+ 0.45,
882
+ 10,
883
+ true,
884
+ true,
885
+ "",
886
+ 0.2,
887
+ 1,
888
+ false,
889
+ 10,
890
+ false,
891
+ false
892
+ ]
893
+ },
894
+ {
895
+ "id": 51,
896
+ "type": "DetailerForEachDebugPipe",
897
+ "pos": [
898
+ 2510,
899
+ 730
900
+ ],
901
+ "size": [
902
+ 410,
903
+ 996
904
+ ],
905
+ "flags": {},
906
+ "order": 21,
907
+ "mode": 0,
908
+ "inputs": [
909
+ {
910
+ "name": "image",
911
+ "type": "IMAGE",
912
+ "link": 95,
913
+ "slot_index": 0
914
+ },
915
+ {
916
+ "name": "segs",
917
+ "type": "SEGS",
918
+ "link": 119
919
+ },
920
+ {
921
+ "name": "basic_pipe",
922
+ "type": "BASIC_PIPE",
923
+ "link": 94
924
+ },
925
+ {
926
+ "name": "detailer_hook",
927
+ "type": "DETAILER_HOOK",
928
+ "shape": 7,
929
+ "link": 125
930
+ },
931
+ {
932
+ "name": "refiner_basic_pipe_opt",
933
+ "type": "BASIC_PIPE",
934
+ "shape": 7,
935
+ "link": null
936
+ },
937
+ {
938
+ "name": "scheduler_func_opt",
939
+ "type": "SCHEDULER_FUNC",
940
+ "shape": 7,
941
+ "link": null
942
+ }
943
+ ],
944
+ "outputs": [
945
+ {
946
+ "name": "image",
947
+ "type": "IMAGE",
948
+ "shape": 3,
949
+ "links": [
950
+ 96
951
+ ],
952
+ "slot_index": 0
953
+ },
954
+ {
955
+ "name": "segs",
956
+ "type": "SEGS",
957
+ "shape": 3,
958
+ "links": null
959
+ },
960
+ {
961
+ "name": "basic_pipe",
962
+ "type": "BASIC_PIPE",
963
+ "shape": 3,
964
+ "links": null
965
+ },
966
+ {
967
+ "name": "cropped",
968
+ "type": "IMAGE",
969
+ "shape": 6,
970
+ "links": null
971
+ },
972
+ {
973
+ "name": "cropped_refined",
974
+ "type": "IMAGE",
975
+ "shape": 6,
976
+ "links": [],
977
+ "slot_index": 4
978
+ },
979
+ {
980
+ "name": "cropped_refined_alpha",
981
+ "type": "IMAGE",
982
+ "shape": 6,
983
+ "links": [],
984
+ "slot_index": 5
985
+ },
986
+ {
987
+ "name": "cnet_images",
988
+ "type": "IMAGE",
989
+ "shape": 6,
990
+ "links": [],
991
+ "slot_index": 6
992
+ }
993
+ ],
994
+ "title": "DetailerDebug (SEGS/pipe) - background",
995
+ "properties": {
996
+ "Node name for S&R": "DetailerForEachDebugPipe"
997
+ },
998
+ "widgets_values": [
999
+ 64,
1000
+ true,
1001
+ 1024,
1002
+ 522790177337693,
1003
+ "fixed",
1004
+ 20,
1005
+ 8,
1006
+ "dpmpp_2m_sde_gpu",
1007
+ "karras",
1008
+ 0.4,
1009
+ 10,
1010
+ true,
1011
+ true,
1012
+ "[CONCAT] red double bun, metalic arm, zoey",
1013
+ 0.2,
1014
+ 1,
1015
+ false,
1016
+ 50,
1017
+ false,
1018
+ false
1019
+ ]
1020
+ },
1021
+ {
1022
+ "id": 60,
1023
+ "type": "Note",
1024
+ "pos": [
1025
+ -1033,
1026
+ 292
1027
+ ],
1028
+ "size": [
1029
+ 638.3837890625,
1030
+ 178.84756469726562
1031
+ ],
1032
+ "flags": {},
1033
+ "order": 5,
1034
+ "mode": 0,
1035
+ "inputs": [],
1036
+ "outputs": [],
1037
+ "title": "1.Intro",
1038
+ "properties": {
1039
+ "text": ""
1040
+ },
1041
+ "widgets_values": [
1042
+ "Using nodes like Make Tile SEGS for Detailer work will result in processing SEGS within a large number of Detailer nodes.\n\nPreviewDetailerHookProvider is connected to Detailers to monitor intermediate processes.\n"
1043
+ ],
1044
+ "color": "#222",
1045
+ "bgcolor": "#000"
1046
+ },
1047
+ {
1048
+ "id": 62,
1049
+ "type": "Note",
1050
+ "pos": [
1051
+ 364,
1052
+ -1967
1053
+ ],
1054
+ "size": [
1055
+ 552.4130859375,
1056
+ 204.45199584960938
1057
+ ],
1058
+ "flags": {},
1059
+ "order": 6,
1060
+ "mode": 0,
1061
+ "inputs": [],
1062
+ "outputs": [],
1063
+ "title": "2. PreviewDetailerHookProvider",
1064
+ "properties": {
1065
+ "text": ""
1066
+ },
1067
+ "widgets_values": [
1068
+ "To add PreviewDetailerHookProvider, simply connect it to the detailer_hook input of the Detailer node you want to monitor.\n\nThis node can also be used in the Detailer For AnimateDiff node.\n\nHowever, since this node provides a preview hook for pasting onto the original image, it cannot be used in SEGSDetailer where there is no pasting step.\n\n\n\nNow let's give it a try."
1069
+ ],
1070
+ "color": "#222",
1071
+ "bgcolor": "#000"
1072
+ },
1073
+ {
1074
+ "id": 70,
1075
+ "type": "Reroute",
1076
+ "pos": [
1077
+ 2360,
1078
+ 310
1079
+ ],
1080
+ "size": [
1081
+ 75,
1082
+ 26
1083
+ ],
1084
+ "flags": {},
1085
+ "order": 11,
1086
+ "mode": 0,
1087
+ "inputs": [
1088
+ {
1089
+ "name": "",
1090
+ "type": "*",
1091
+ "pos": [
1092
+ 37.5,
1093
+ 0
1094
+ ],
1095
+ "link": 121
1096
+ }
1097
+ ],
1098
+ "outputs": [
1099
+ {
1100
+ "name": "",
1101
+ "type": "DETAILER_HOOK",
1102
+ "links": [
1103
+ 124,
1104
+ 125
1105
+ ],
1106
+ "slot_index": 0
1107
+ }
1108
+ ],
1109
+ "properties": {
1110
+ "showOutputText": false,
1111
+ "horizontal": true
1112
+ }
1113
+ }
1114
+ ],
1115
+ "links": [
1116
+ [
1117
+ 8,
1118
+ 2,
1119
+ 0,
1120
+ 9,
1121
+ 0,
1122
+ "IMAGE"
1123
+ ],
1124
+ [
1125
+ 10,
1126
+ 9,
1127
+ 0,
1128
+ 6,
1129
+ 1,
1130
+ "IMAGE"
1131
+ ],
1132
+ [
1133
+ 28,
1134
+ 9,
1135
+ 0,
1136
+ 20,
1137
+ 0,
1138
+ "*"
1139
+ ],
1140
+ [
1141
+ 34,
1142
+ 2,
1143
+ 0,
1144
+ 22,
1145
+ 1,
1146
+ "IMAGE"
1147
+ ],
1148
+ [
1149
+ 35,
1150
+ 24,
1151
+ 0,
1152
+ 22,
1153
+ 0,
1154
+ "BBOX_DETECTOR"
1155
+ ],
1156
+ [
1157
+ 59,
1158
+ 31,
1159
+ 0,
1160
+ 28,
1161
+ 1,
1162
+ "IMAGE"
1163
+ ],
1164
+ [
1165
+ 60,
1166
+ 31,
1167
+ 0,
1168
+ 10,
1169
+ 0,
1170
+ "IMAGE"
1171
+ ],
1172
+ [
1173
+ 61,
1174
+ 20,
1175
+ 0,
1176
+ 31,
1177
+ 0,
1178
+ "*"
1179
+ ],
1180
+ [
1181
+ 62,
1182
+ 32,
1183
+ 0,
1184
+ 22,
1185
+ 2,
1186
+ "SAM_MODEL"
1187
+ ],
1188
+ [
1189
+ 76,
1190
+ 19,
1191
+ 0,
1192
+ 10,
1193
+ 2,
1194
+ "BASIC_PIPE"
1195
+ ],
1196
+ [
1197
+ 94,
1198
+ 10,
1199
+ 2,
1200
+ 51,
1201
+ 2,
1202
+ "BASIC_PIPE"
1203
+ ],
1204
+ [
1205
+ 95,
1206
+ 10,
1207
+ 0,
1208
+ 51,
1209
+ 0,
1210
+ "IMAGE"
1211
+ ],
1212
+ [
1213
+ 96,
1214
+ 51,
1215
+ 0,
1216
+ 16,
1217
+ 0,
1218
+ "IMAGE"
1219
+ ],
1220
+ [
1221
+ 100,
1222
+ 53,
1223
+ 0,
1224
+ 54,
1225
+ 0,
1226
+ "*"
1227
+ ],
1228
+ [
1229
+ 105,
1230
+ 56,
1231
+ 0,
1232
+ 6,
1233
+ 0,
1234
+ "SEGS"
1235
+ ],
1236
+ [
1237
+ 106,
1238
+ 56,
1239
+ 0,
1240
+ 52,
1241
+ 0,
1242
+ "*"
1243
+ ],
1244
+ [
1245
+ 107,
1246
+ 20,
1247
+ 0,
1248
+ 57,
1249
+ 0,
1250
+ "IMAGE"
1251
+ ],
1252
+ [
1253
+ 109,
1254
+ 57,
1255
+ 0,
1256
+ 28,
1257
+ 0,
1258
+ "SEGS"
1259
+ ],
1260
+ [
1261
+ 110,
1262
+ 57,
1263
+ 0,
1264
+ 53,
1265
+ 0,
1266
+ "*"
1267
+ ],
1268
+ [
1269
+ 111,
1270
+ 20,
1271
+ 0,
1272
+ 56,
1273
+ 0,
1274
+ "IMAGE"
1275
+ ],
1276
+ [
1277
+ 114,
1278
+ 22,
1279
+ 0,
1280
+ 56,
1281
+ 2,
1282
+ "SEGS"
1283
+ ],
1284
+ [
1285
+ 115,
1286
+ 22,
1287
+ 0,
1288
+ 57,
1289
+ 1,
1290
+ "SEGS"
1291
+ ],
1292
+ [
1293
+ 118,
1294
+ 54,
1295
+ 0,
1296
+ 10,
1297
+ 1,
1298
+ "SEGS"
1299
+ ],
1300
+ [
1301
+ 119,
1302
+ 52,
1303
+ 0,
1304
+ 51,
1305
+ 1,
1306
+ "SEGS"
1307
+ ],
1308
+ [
1309
+ 120,
1310
+ 68,
1311
+ 0,
1312
+ 69,
1313
+ 0,
1314
+ "*"
1315
+ ],
1316
+ [
1317
+ 121,
1318
+ 69,
1319
+ 0,
1320
+ 70,
1321
+ 0,
1322
+ "*"
1323
+ ],
1324
+ [
1325
+ 124,
1326
+ 70,
1327
+ 0,
1328
+ 10,
1329
+ 3,
1330
+ "DETAILER_HOOK"
1331
+ ],
1332
+ [
1333
+ 125,
1334
+ 70,
1335
+ 0,
1336
+ 51,
1337
+ 3,
1338
+ "DETAILER_HOOK"
1339
+ ]
1340
+ ],
1341
+ "groups": [],
1342
+ "config": {},
1343
+ "extra": {
1344
+ "groupNodes": {
1345
+ "MAKE_BASIC_PIPE": {
1346
+ "nodes": [
1347
+ {
1348
+ "type": "CheckpointLoaderSimple",
1349
+ "pos": [
1350
+ -80,
1351
+ 1100
1352
+ ],
1353
+ "size": {
1354
+ "0": 315,
1355
+ "1": 98
1356
+ },
1357
+ "flags": {},
1358
+ "order": 0,
1359
+ "mode": 0,
1360
+ "outputs": [
1361
+ {
1362
+ "name": "MODEL",
1363
+ "type": "MODEL",
1364
+ "links": [],
1365
+ "shape": 3,
1366
+ "slot_index": 0,
1367
+ "localized_name": "MODEL"
1368
+ },
1369
+ {
1370
+ "name": "CLIP",
1371
+ "type": "CLIP",
1372
+ "links": [],
1373
+ "shape": 3,
1374
+ "slot_index": 1,
1375
+ "localized_name": "CLIP"
1376
+ },
1377
+ {
1378
+ "name": "VAE",
1379
+ "type": "VAE",
1380
+ "links": [],
1381
+ "shape": 3,
1382
+ "slot_index": 2,
1383
+ "localized_name": "VAE"
1384
+ }
1385
+ ],
1386
+ "properties": {
1387
+ "Node name for S&R": "CheckpointLoaderSimple"
1388
+ },
1389
+ "widgets_values": [
1390
+ "SD1.5/majicmixRealistic_v7.safetensors"
1391
+ ],
1392
+ "index": 0,
1393
+ "inputs": []
1394
+ },
1395
+ {
1396
+ "type": "CLIPTextEncode",
1397
+ "pos": [
1398
+ 455,
1399
+ 1026
1400
+ ],
1401
+ "size": {
1402
+ "0": 210,
1403
+ "1": 104.50106048583984
1404
+ },
1405
+ "flags": {},
1406
+ "order": 2,
1407
+ "mode": 0,
1408
+ "inputs": [
1409
+ {
1410
+ "name": "clip",
1411
+ "type": "CLIP",
1412
+ "link": null,
1413
+ "localized_name": "clip"
1414
+ }
1415
+ ],
1416
+ "outputs": [
1417
+ {
1418
+ "name": "CONDITIONING",
1419
+ "type": "CONDITIONING",
1420
+ "links": [],
1421
+ "shape": 3,
1422
+ "slot_index": 0,
1423
+ "localized_name": "CONDITIONING"
1424
+ }
1425
+ ],
1426
+ "properties": {
1427
+ "Node name for S&R": "CLIPTextEncode"
1428
+ },
1429
+ "widgets_values": [
1430
+ "photograph, 4k, hdr, cropped, 1girl sit, blur hair, pink bag"
1431
+ ],
1432
+ "index": 1
1433
+ },
1434
+ {
1435
+ "type": "CLIPTextEncode",
1436
+ "pos": [
1437
+ 456,
1438
+ 1239
1439
+ ],
1440
+ "size": {
1441
+ "0": 210,
1442
+ "1": 104.50106048583984
1443
+ },
1444
+ "flags": {},
1445
+ "order": 3,
1446
+ "mode": 0,
1447
+ "inputs": [
1448
+ {
1449
+ "name": "clip",
1450
+ "type": "CLIP",
1451
+ "link": null,
1452
+ "slot_index": 0,
1453
+ "localized_name": "clip"
1454
+ }
1455
+ ],
1456
+ "outputs": [
1457
+ {
1458
+ "name": "CONDITIONING",
1459
+ "type": "CONDITIONING",
1460
+ "links": [],
1461
+ "shape": 3,
1462
+ "localized_name": "CONDITIONING"
1463
+ }
1464
+ ],
1465
+ "properties": {
1466
+ "Node name for S&R": "CLIPTextEncode"
1467
+ },
1468
+ "widgets_values": [
1469
+ "deformed, blurry\n"
1470
+ ],
1471
+ "index": 2
1472
+ },
1473
+ {
1474
+ "type": "ToBasicPipe",
1475
+ "pos": [
1476
+ 800,
1477
+ 1100
1478
+ ],
1479
+ "size": {
1480
+ "0": 241.79998779296875,
1481
+ "1": 106
1482
+ },
1483
+ "flags": {},
1484
+ "order": 5,
1485
+ "mode": 0,
1486
+ "inputs": [
1487
+ {
1488
+ "name": "model",
1489
+ "type": "MODEL",
1490
+ "link": null,
1491
+ "localized_name": "model"
1492
+ },
1493
+ {
1494
+ "name": "clip",
1495
+ "type": "CLIP",
1496
+ "link": null,
1497
+ "slot_index": 1,
1498
+ "localized_name": "clip"
1499
+ },
1500
+ {
1501
+ "name": "vae",
1502
+ "type": "VAE",
1503
+ "link": null,
1504
+ "localized_name": "vae"
1505
+ },
1506
+ {
1507
+ "name": "positive",
1508
+ "type": "CONDITIONING",
1509
+ "link": null,
1510
+ "localized_name": "positive"
1511
+ },
1512
+ {
1513
+ "name": "negative",
1514
+ "type": "CONDITIONING",
1515
+ "link": null,
1516
+ "slot_index": 4,
1517
+ "localized_name": "negative"
1518
+ }
1519
+ ],
1520
+ "outputs": [
1521
+ {
1522
+ "name": "basic_pipe",
1523
+ "type": "BASIC_PIPE",
1524
+ "links": [],
1525
+ "shape": 3,
1526
+ "slot_index": 0,
1527
+ "localized_name": "basic_pipe"
1528
+ }
1529
+ ],
1530
+ "properties": {
1531
+ "Node name for S&R": "ToBasicPipe"
1532
+ },
1533
+ "index": 3
1534
+ }
1535
+ ],
1536
+ "links": [
1537
+ [
1538
+ 0,
1539
+ 1,
1540
+ 1,
1541
+ 0,
1542
+ 11,
1543
+ "CLIP"
1544
+ ],
1545
+ [
1546
+ 0,
1547
+ 1,
1548
+ 2,
1549
+ 0,
1550
+ 11,
1551
+ "CLIP"
1552
+ ],
1553
+ [
1554
+ 0,
1555
+ 0,
1556
+ 3,
1557
+ 0,
1558
+ 11,
1559
+ "MODEL"
1560
+ ],
1561
+ [
1562
+ 0,
1563
+ 1,
1564
+ 3,
1565
+ 1,
1566
+ 11,
1567
+ "CLIP"
1568
+ ],
1569
+ [
1570
+ 0,
1571
+ 2,
1572
+ 3,
1573
+ 2,
1574
+ 11,
1575
+ "VAE"
1576
+ ],
1577
+ [
1578
+ 1,
1579
+ 0,
1580
+ 3,
1581
+ 3,
1582
+ 13,
1583
+ "CONDITIONING"
1584
+ ],
1585
+ [
1586
+ 2,
1587
+ 0,
1588
+ 3,
1589
+ 4,
1590
+ 14,
1591
+ "CONDITIONING"
1592
+ ]
1593
+ ],
1594
+ "external": [
1595
+ [
1596
+ 3,
1597
+ 0,
1598
+ "BASIC_PIPE"
1599
+ ]
1600
+ ]
1601
+ }
1602
+ },
1603
+ "controller_panel": {
1604
+ "controllers": {},
1605
+ "hidden": true,
1606
+ "highlight": true,
1607
+ "version": 2,
1608
+ "default_order": []
1609
+ },
1610
+ "ds": {
1611
+ "scale": 0.620921323059155,
1612
+ "offset": [
1613
+ 432.38467086326943,
1614
+ 608.3387630215522
1615
+ ]
1616
+ },
1617
+ "node_versions": {
1618
+ "comfyui-impact-pack": "1ae7cae2df8cca06027edfa3a24512671239d6c4",
1619
+ "comfyui-impact-subpack": "74db20c95eca152a6d686c914edc0ef4e4762cb8",
1620
+ "comfy-core": "0.3.14"
1621
+ },
1622
+ "ue_links": [],
1623
+ "VHS_latentpreview": false,
1624
+ "VHS_latentpreviewrate": 0,
1625
+ "VHS_MetadataImage": true,
1626
+ "VHS_KeepIntermediate": true
1627
+ },
1628
+ "version": 0.4
1629
+ }
zavodik/nodes/ComfyUI-Impact-Pack/example_workflows/5-prompt-per-tile.jpg ADDED

Git LFS Details

  • SHA256: 232bde22503e087e47c391bb91bbcc830c9882889ac715c1ec139667ea3d2c03
  • Pointer size: 131 Bytes
  • Size of remote file: 131 kB
zavodik/nodes/ComfyUI-Impact-Pack/example_workflows/5-prompt-per-tile.json ADDED
@@ -0,0 +1,1290 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "last_node_id": 30,
3
+ "last_link_id": 50,
4
+ "nodes": [
5
+ {
6
+ "id": 3,
7
+ "type": "KSampler",
8
+ "pos": [
9
+ -160,
10
+ -150
11
+ ],
12
+ "size": [
13
+ 315,
14
+ 474
15
+ ],
16
+ "flags": {},
17
+ "order": 4,
18
+ "mode": 0,
19
+ "inputs": [
20
+ {
21
+ "name": "model",
22
+ "type": "MODEL",
23
+ "link": 1
24
+ },
25
+ {
26
+ "name": "positive",
27
+ "type": "CONDITIONING",
28
+ "link": 4
29
+ },
30
+ {
31
+ "name": "negative",
32
+ "type": "CONDITIONING",
33
+ "link": 6
34
+ },
35
+ {
36
+ "name": "latent_image",
37
+ "type": "LATENT",
38
+ "link": 2
39
+ }
40
+ ],
41
+ "outputs": [
42
+ {
43
+ "name": "LATENT",
44
+ "type": "LATENT",
45
+ "links": [
46
+ 7
47
+ ],
48
+ "slot_index": 0
49
+ }
50
+ ],
51
+ "properties": {
52
+ "Node name for S&R": "KSampler"
53
+ },
54
+ "widgets_values": [
55
+ 2,
56
+ "fixed",
57
+ 20,
58
+ 7,
59
+ "dpmpp_2m",
60
+ "karras",
61
+ 1
62
+ ],
63
+ "color": "#223",
64
+ "bgcolor": "#335"
65
+ },
66
+ {
67
+ "id": 4,
68
+ "type": "CheckpointLoaderSimple",
69
+ "pos": [
70
+ -580,
71
+ -300
72
+ ],
73
+ "size": [
74
+ 315,
75
+ 98
76
+ ],
77
+ "flags": {},
78
+ "order": 0,
79
+ "mode": 0,
80
+ "inputs": [],
81
+ "outputs": [
82
+ {
83
+ "name": "MODEL",
84
+ "type": "MODEL",
85
+ "links": [
86
+ 1,
87
+ 25
88
+ ],
89
+ "slot_index": 0
90
+ },
91
+ {
92
+ "name": "CLIP",
93
+ "type": "CLIP",
94
+ "links": [
95
+ 3,
96
+ 5,
97
+ 26
98
+ ],
99
+ "slot_index": 1
100
+ },
101
+ {
102
+ "name": "VAE",
103
+ "type": "VAE",
104
+ "links": [
105
+ 8,
106
+ 27
107
+ ],
108
+ "slot_index": 2
109
+ }
110
+ ],
111
+ "properties": {
112
+ "Node name for S&R": "CheckpointLoaderSimple"
113
+ },
114
+ "widgets_values": [
115
+ "SD1.5/noosphere_v42.safetensors"
116
+ ],
117
+ "color": "#223",
118
+ "bgcolor": "#335"
119
+ },
120
+ {
121
+ "id": 5,
122
+ "type": "EmptyLatentImage",
123
+ "pos": [
124
+ -567,
125
+ 312
126
+ ],
127
+ "size": [
128
+ 315,
129
+ 106
130
+ ],
131
+ "flags": {},
132
+ "order": 1,
133
+ "mode": 0,
134
+ "inputs": [],
135
+ "outputs": [
136
+ {
137
+ "name": "LATENT",
138
+ "type": "LATENT",
139
+ "links": [
140
+ 2
141
+ ],
142
+ "slot_index": 0
143
+ }
144
+ ],
145
+ "properties": {
146
+ "Node name for S&R": "EmptyLatentImage"
147
+ },
148
+ "widgets_values": [
149
+ 512,
150
+ 768,
151
+ 1
152
+ ],
153
+ "color": "#223",
154
+ "bgcolor": "#335"
155
+ },
156
+ {
157
+ "id": 6,
158
+ "type": "CLIPTextEncode",
159
+ "pos": [
160
+ -610,
161
+ -150
162
+ ],
163
+ "size": [
164
+ 422.84503173828125,
165
+ 164.31304931640625
166
+ ],
167
+ "flags": {},
168
+ "order": 2,
169
+ "mode": 0,
170
+ "inputs": [
171
+ {
172
+ "name": "clip",
173
+ "type": "CLIP",
174
+ "link": 3
175
+ }
176
+ ],
177
+ "outputs": [
178
+ {
179
+ "name": "CONDITIONING",
180
+ "type": "CONDITIONING",
181
+ "links": [
182
+ 4,
183
+ 28
184
+ ],
185
+ "slot_index": 0
186
+ }
187
+ ],
188
+ "properties": {
189
+ "Node name for S&R": "CLIPTextEncode"
190
+ },
191
+ "widgets_values": [
192
+ "photo of a blonde girl and a dark haired man with beard, front view, detailed faces, high details, realistic, nature background, high saturation"
193
+ ],
194
+ "color": "#232",
195
+ "bgcolor": "#353"
196
+ },
197
+ {
198
+ "id": 7,
199
+ "type": "CLIPTextEncode",
200
+ "pos": [
201
+ -611,
202
+ 66
203
+ ],
204
+ "size": [
205
+ 425.27801513671875,
206
+ 180.6060791015625
207
+ ],
208
+ "flags": {},
209
+ "order": 3,
210
+ "mode": 0,
211
+ "inputs": [
212
+ {
213
+ "name": "clip",
214
+ "type": "CLIP",
215
+ "link": 5
216
+ }
217
+ ],
218
+ "outputs": [
219
+ {
220
+ "name": "CONDITIONING",
221
+ "type": "CONDITIONING",
222
+ "links": [
223
+ 6,
224
+ 29
225
+ ],
226
+ "slot_index": 0
227
+ }
228
+ ],
229
+ "properties": {
230
+ "Node name for S&R": "CLIPTextEncode"
231
+ },
232
+ "widgets_values": [
233
+ "text, watermark, nsfw"
234
+ ],
235
+ "color": "#322",
236
+ "bgcolor": "#533"
237
+ },
238
+ {
239
+ "id": 8,
240
+ "type": "VAEDecode",
241
+ "pos": [
242
+ -115,
243
+ -271
244
+ ],
245
+ "size": [
246
+ 210,
247
+ 46
248
+ ],
249
+ "flags": {},
250
+ "order": 5,
251
+ "mode": 0,
252
+ "inputs": [
253
+ {
254
+ "name": "samples",
255
+ "type": "LATENT",
256
+ "link": 7
257
+ },
258
+ {
259
+ "name": "vae",
260
+ "type": "VAE",
261
+ "link": 8
262
+ }
263
+ ],
264
+ "outputs": [
265
+ {
266
+ "name": "IMAGE",
267
+ "type": "IMAGE",
268
+ "links": [
269
+ 21,
270
+ 22,
271
+ 30
272
+ ],
273
+ "slot_index": 0
274
+ }
275
+ ],
276
+ "properties": {
277
+ "Node name for S&R": "VAEDecode"
278
+ },
279
+ "widgets_values": [],
280
+ "color": "#223",
281
+ "bgcolor": "#335"
282
+ },
283
+ {
284
+ "id": 10,
285
+ "type": "ImpactMakeTileSEGS",
286
+ "pos": [
287
+ 840,
288
+ -90
289
+ ],
290
+ "size": [
291
+ 282.6341552734375,
292
+ 218
293
+ ],
294
+ "flags": {},
295
+ "order": 10,
296
+ "mode": 0,
297
+ "inputs": [
298
+ {
299
+ "name": "images",
300
+ "type": "IMAGE",
301
+ "link": 31
302
+ },
303
+ {
304
+ "name": "filter_in_segs_opt",
305
+ "type": "SEGS",
306
+ "shape": 7,
307
+ "link": null
308
+ },
309
+ {
310
+ "name": "filter_out_segs_opt",
311
+ "type": "SEGS",
312
+ "shape": 7,
313
+ "link": null
314
+ }
315
+ ],
316
+ "outputs": [
317
+ {
318
+ "name": "SEGS",
319
+ "type": "SEGS",
320
+ "shape": 3,
321
+ "links": [
322
+ 14,
323
+ 15
324
+ ],
325
+ "slot_index": 0
326
+ }
327
+ ],
328
+ "properties": {
329
+ "Node name for S&R": "ImpactMakeTileSEGS"
330
+ },
331
+ "widgets_values": [
332
+ 704,
333
+ 1.1,
334
+ 4,
335
+ 0,
336
+ 0,
337
+ "Reuse fast"
338
+ ],
339
+ "color": "#2a363b",
340
+ "bgcolor": "#3f5159"
341
+ },
342
+ {
343
+ "id": 11,
344
+ "type": "WD14Tagger|pysssss",
345
+ "pos": [
346
+ 1901,
347
+ -282
348
+ ],
349
+ "size": [
350
+ 276.18115234375,
351
+ 470
352
+ ],
353
+ "flags": {
354
+ "collapsed": false
355
+ },
356
+ "order": 12,
357
+ "mode": 0,
358
+ "inputs": [
359
+ {
360
+ "name": "image",
361
+ "type": "IMAGE",
362
+ "link": 10
363
+ }
364
+ ],
365
+ "outputs": [
366
+ {
367
+ "name": "STRING",
368
+ "type": "STRING",
369
+ "shape": 6,
370
+ "links": [
371
+ 39
372
+ ],
373
+ "slot_index": 0
374
+ }
375
+ ],
376
+ "properties": {
377
+ "Node name for S&R": "WD14Tagger|pysssss"
378
+ },
379
+ "widgets_values": [
380
+ "wd-v1-4-moat-tagger-v2",
381
+ 0.35000000000000003,
382
+ 0.85,
383
+ true,
384
+ false,
385
+ ""
386
+ ],
387
+ "color": "#332922",
388
+ "bgcolor": "#593930"
389
+ },
390
+ {
391
+ "id": 12,
392
+ "type": "DetailerForEach",
393
+ "pos": [
394
+ 2881.51708984375,
395
+ -286.8627624511719
396
+ ],
397
+ "size": [
398
+ 310.9673767089844,
399
+ 790
400
+ ],
401
+ "flags": {},
402
+ "order": 17,
403
+ "mode": 0,
404
+ "inputs": [
405
+ {
406
+ "name": "image",
407
+ "type": "IMAGE",
408
+ "link": 32
409
+ },
410
+ {
411
+ "name": "segs",
412
+ "type": "SEGS",
413
+ "link": 12
414
+ },
415
+ {
416
+ "name": "model",
417
+ "type": "MODEL",
418
+ "link": 25
419
+ },
420
+ {
421
+ "name": "clip",
422
+ "type": "CLIP",
423
+ "link": 26
424
+ },
425
+ {
426
+ "name": "vae",
427
+ "type": "VAE",
428
+ "link": 27
429
+ },
430
+ {
431
+ "name": "positive",
432
+ "type": "CONDITIONING",
433
+ "link": 28
434
+ },
435
+ {
436
+ "name": "negative",
437
+ "type": "CONDITIONING",
438
+ "link": 29
439
+ },
440
+ {
441
+ "name": "detailer_hook",
442
+ "type": "DETAILER_HOOK",
443
+ "shape": 7,
444
+ "link": null
445
+ },
446
+ {
447
+ "name": "wildcard",
448
+ "type": "STRING",
449
+ "widget": {
450
+ "name": "wildcard"
451
+ },
452
+ "link": 49
453
+ },
454
+ {
455
+ "name": "scheduler_func_opt",
456
+ "type": "SCHEDULER_FUNC",
457
+ "shape": 7,
458
+ "link": null
459
+ }
460
+ ],
461
+ "outputs": [
462
+ {
463
+ "name": "IMAGE",
464
+ "type": "IMAGE",
465
+ "shape": 3,
466
+ "links": [
467
+ 17
468
+ ],
469
+ "slot_index": 0
470
+ }
471
+ ],
472
+ "properties": {
473
+ "Node name for S&R": "DetailerForEach"
474
+ },
475
+ "widgets_values": [
476
+ 768,
477
+ true,
478
+ 1024,
479
+ 20,
480
+ "fixed",
481
+ 20,
482
+ 3.5,
483
+ "dpmpp_2m_sde_gpu",
484
+ "karras",
485
+ 0.5,
486
+ 16,
487
+ true,
488
+ true,
489
+ "",
490
+ 1,
491
+ false,
492
+ 16,
493
+ false,
494
+ false
495
+ ],
496
+ "color": "#2a363b",
497
+ "bgcolor": "#3f5159"
498
+ },
499
+ {
500
+ "id": 13,
501
+ "type": "WD14Tagger|pysssss",
502
+ "pos": [
503
+ 1388,
504
+ -240
505
+ ],
506
+ "size": [
507
+ 290,
508
+ 240
509
+ ],
510
+ "flags": {
511
+ "collapsed": false
512
+ },
513
+ "order": 7,
514
+ "mode": 0,
515
+ "inputs": [
516
+ {
517
+ "name": "image",
518
+ "type": "IMAGE",
519
+ "link": 22
520
+ }
521
+ ],
522
+ "outputs": [
523
+ {
524
+ "name": "STRING",
525
+ "type": "STRING",
526
+ "shape": 6,
527
+ "links": [
528
+ 34
529
+ ],
530
+ "slot_index": 0
531
+ }
532
+ ],
533
+ "properties": {
534
+ "Node name for S&R": "WD14Tagger|pysssss"
535
+ },
536
+ "widgets_values": [
537
+ "wd-v1-4-moat-tagger-v2",
538
+ 0.35000000000000003,
539
+ 0.85,
540
+ true,
541
+ false,
542
+ ""
543
+ ],
544
+ "color": "#332922",
545
+ "bgcolor": "#593930"
546
+ },
547
+ {
548
+ "id": 14,
549
+ "type": "SEGSToImageList",
550
+ "pos": [
551
+ 830,
552
+ 230
553
+ ],
554
+ "size": [
555
+ 276.6341552734375,
556
+ 46
557
+ ],
558
+ "flags": {},
559
+ "order": 11,
560
+ "mode": 0,
561
+ "inputs": [
562
+ {
563
+ "name": "segs",
564
+ "type": "SEGS",
565
+ "link": 14
566
+ },
567
+ {
568
+ "name": "fallback_image_opt",
569
+ "type": "IMAGE",
570
+ "shape": 7,
571
+ "link": 33
572
+ }
573
+ ],
574
+ "outputs": [
575
+ {
576
+ "name": "IMAGE",
577
+ "type": "IMAGE",
578
+ "shape": 6,
579
+ "links": [
580
+ 10,
581
+ 18
582
+ ],
583
+ "slot_index": 0
584
+ }
585
+ ],
586
+ "properties": {
587
+ "Node name for S&R": "SEGSToImageList"
588
+ },
589
+ "widgets_values": [],
590
+ "color": "#2a363b",
591
+ "bgcolor": "#3f5159"
592
+ },
593
+ {
594
+ "id": 15,
595
+ "type": "ImpactSEGSLabelAssign",
596
+ "pos": [
597
+ 2409.8916015625,
598
+ 36.29731369018555
599
+ ],
600
+ "size": [
601
+ 283.6341552734375,
602
+ 103.9290771484375
603
+ ],
604
+ "flags": {},
605
+ "order": 16,
606
+ "mode": 0,
607
+ "inputs": [
608
+ {
609
+ "name": "segs",
610
+ "type": "SEGS",
611
+ "link": 15
612
+ },
613
+ {
614
+ "name": "labels",
615
+ "type": "STRING",
616
+ "widget": {
617
+ "name": "labels"
618
+ },
619
+ "link": 50
620
+ }
621
+ ],
622
+ "outputs": [
623
+ {
624
+ "name": "SEGS",
625
+ "type": "SEGS",
626
+ "shape": 3,
627
+ "links": [
628
+ 12
629
+ ],
630
+ "slot_index": 0
631
+ }
632
+ ],
633
+ "properties": {
634
+ "Node name for S&R": "ImpactSEGSLabelAssign"
635
+ },
636
+ "widgets_values": [
637
+ ""
638
+ ],
639
+ "color": "#2a363b",
640
+ "bgcolor": "#3f5159"
641
+ },
642
+ {
643
+ "id": 16,
644
+ "type": "PreviewImage",
645
+ "pos": [
646
+ 3270,
647
+ -287
648
+ ],
649
+ "size": [
650
+ 842.0664672851562,
651
+ 1217.6240234375
652
+ ],
653
+ "flags": {},
654
+ "order": 18,
655
+ "mode": 0,
656
+ "inputs": [
657
+ {
658
+ "name": "images",
659
+ "type": "IMAGE",
660
+ "link": 17
661
+ }
662
+ ],
663
+ "outputs": [],
664
+ "properties": {
665
+ "Node name for S&R": "PreviewImage"
666
+ },
667
+ "widgets_values": [],
668
+ "color": "#2a363b",
669
+ "bgcolor": "#3f5159"
670
+ },
671
+ {
672
+ "id": 17,
673
+ "type": "PreviewImage",
674
+ "pos": [
675
+ 788,
676
+ 339
677
+ ],
678
+ "size": [
679
+ 421.1688537597656,
680
+ 448.1822509765625
681
+ ],
682
+ "flags": {},
683
+ "order": 13,
684
+ "mode": 0,
685
+ "inputs": [
686
+ {
687
+ "name": "images",
688
+ "type": "IMAGE",
689
+ "link": 18
690
+ }
691
+ ],
692
+ "outputs": [],
693
+ "title": "Preview Tiles",
694
+ "properties": {
695
+ "Node name for S&R": "PreviewImage"
696
+ },
697
+ "widgets_values": [],
698
+ "color": "#2a363b",
699
+ "bgcolor": "#3f5159"
700
+ },
701
+ {
702
+ "id": 19,
703
+ "type": "PreviewImage",
704
+ "pos": [
705
+ 173,
706
+ -283
707
+ ],
708
+ "size": [
709
+ 475.25579833984375,
710
+ 668.4122924804688
711
+ ],
712
+ "flags": {},
713
+ "order": 6,
714
+ "mode": 0,
715
+ "inputs": [
716
+ {
717
+ "name": "images",
718
+ "type": "IMAGE",
719
+ "link": 21
720
+ }
721
+ ],
722
+ "outputs": [],
723
+ "properties": {
724
+ "Node name for S&R": "PreviewImage"
725
+ },
726
+ "widgets_values": [],
727
+ "color": "#223",
728
+ "bgcolor": "#335"
729
+ },
730
+ {
731
+ "id": 21,
732
+ "type": "ImageScaleBy",
733
+ "pos": [
734
+ 840,
735
+ -270
736
+ ],
737
+ "size": [
738
+ 315,
739
+ 82
740
+ ],
741
+ "flags": {},
742
+ "order": 8,
743
+ "mode": 0,
744
+ "inputs": [
745
+ {
746
+ "name": "image",
747
+ "type": "IMAGE",
748
+ "link": 30
749
+ }
750
+ ],
751
+ "outputs": [
752
+ {
753
+ "name": "IMAGE",
754
+ "type": "IMAGE",
755
+ "shape": 3,
756
+ "links": [
757
+ 31,
758
+ 32,
759
+ 33
760
+ ],
761
+ "slot_index": 0
762
+ }
763
+ ],
764
+ "properties": {
765
+ "Node name for S&R": "ImageScaleBy"
766
+ },
767
+ "widgets_values": [
768
+ "bicubic",
769
+ 2.5
770
+ ],
771
+ "color": "#233",
772
+ "bgcolor": "#355"
773
+ },
774
+ {
775
+ "id": 25,
776
+ "type": "StringListToString",
777
+ "pos": [
778
+ 1375,
779
+ 131
780
+ ],
781
+ "size": [
782
+ 315,
783
+ 82
784
+ ],
785
+ "flags": {},
786
+ "order": 9,
787
+ "mode": 0,
788
+ "inputs": [
789
+ {
790
+ "name": "string_list",
791
+ "type": "STRING",
792
+ "widget": {
793
+ "name": "string_list"
794
+ },
795
+ "link": 34
796
+ }
797
+ ],
798
+ "outputs": [
799
+ {
800
+ "name": "STRING",
801
+ "type": "STRING",
802
+ "shape": 3,
803
+ "links": [
804
+ 47
805
+ ],
806
+ "slot_index": 0
807
+ }
808
+ ],
809
+ "properties": {
810
+ "Node name for S&R": "StringListToString"
811
+ },
812
+ "widgets_values": [
813
+ "",
814
+ ""
815
+ ],
816
+ "color": "#332922",
817
+ "bgcolor": "#593930"
818
+ },
819
+ {
820
+ "id": 26,
821
+ "type": "StringListToString",
822
+ "pos": [
823
+ 1913,
824
+ 259
825
+ ],
826
+ "size": [
827
+ 268.8372497558594,
828
+ 58
829
+ ],
830
+ "flags": {},
831
+ "order": 14,
832
+ "mode": 0,
833
+ "inputs": [
834
+ {
835
+ "name": "string_list",
836
+ "type": "STRING",
837
+ "widget": {
838
+ "name": "string_list"
839
+ },
840
+ "link": 39
841
+ }
842
+ ],
843
+ "outputs": [
844
+ {
845
+ "name": "STRING",
846
+ "type": "STRING",
847
+ "shape": 3,
848
+ "links": [
849
+ 48
850
+ ],
851
+ "slot_index": 0
852
+ }
853
+ ],
854
+ "properties": {
855
+ "Node name for S&R": "StringListToString"
856
+ },
857
+ "widgets_values": [
858
+ "\\n",
859
+ ""
860
+ ],
861
+ "color": "#332922",
862
+ "bgcolor": "#593930"
863
+ },
864
+ {
865
+ "id": 30,
866
+ "type": "WildcardPromptFromString",
867
+ "pos": [
868
+ 2396.2451171875,
869
+ -266.2974548339844
870
+ ],
871
+ "size": [
872
+ 315,
873
+ 198
874
+ ],
875
+ "flags": {},
876
+ "order": 15,
877
+ "mode": 0,
878
+ "inputs": [
879
+ {
880
+ "name": "string",
881
+ "type": "STRING",
882
+ "widget": {
883
+ "name": "string"
884
+ },
885
+ "link": 48
886
+ },
887
+ {
888
+ "name": "restrict_to_tags",
889
+ "type": "STRING",
890
+ "widget": {
891
+ "name": "restrict_to_tags"
892
+ },
893
+ "link": 47
894
+ }
895
+ ],
896
+ "outputs": [
897
+ {
898
+ "name": "wildcard",
899
+ "type": "STRING",
900
+ "shape": 3,
901
+ "links": [
902
+ 49
903
+ ],
904
+ "slot_index": 0
905
+ },
906
+ {
907
+ "name": "segs_labels",
908
+ "type": "STRING",
909
+ "shape": 3,
910
+ "links": [
911
+ 50
912
+ ],
913
+ "slot_index": 1
914
+ }
915
+ ],
916
+ "properties": {
917
+ "Node name for S&R": "WildcardPromptFromString"
918
+ },
919
+ "widgets_values": [
920
+ "",
921
+ "\\n",
922
+ "",
923
+ ", realistic, high details, high saturation",
924
+ "",
925
+ "1girl, 1boy, 2girls, multiple girls, realistic"
926
+ ],
927
+ "color": "#2a363b",
928
+ "bgcolor": "#3f5159"
929
+ }
930
+ ],
931
+ "links": [
932
+ [
933
+ 1,
934
+ 4,
935
+ 0,
936
+ 3,
937
+ 0,
938
+ "MODEL"
939
+ ],
940
+ [
941
+ 2,
942
+ 5,
943
+ 0,
944
+ 3,
945
+ 3,
946
+ "LATENT"
947
+ ],
948
+ [
949
+ 3,
950
+ 4,
951
+ 1,
952
+ 6,
953
+ 0,
954
+ "CLIP"
955
+ ],
956
+ [
957
+ 4,
958
+ 6,
959
+ 0,
960
+ 3,
961
+ 1,
962
+ "CONDITIONING"
963
+ ],
964
+ [
965
+ 5,
966
+ 4,
967
+ 1,
968
+ 7,
969
+ 0,
970
+ "CLIP"
971
+ ],
972
+ [
973
+ 6,
974
+ 7,
975
+ 0,
976
+ 3,
977
+ 2,
978
+ "CONDITIONING"
979
+ ],
980
+ [
981
+ 7,
982
+ 3,
983
+ 0,
984
+ 8,
985
+ 0,
986
+ "LATENT"
987
+ ],
988
+ [
989
+ 8,
990
+ 4,
991
+ 2,
992
+ 8,
993
+ 1,
994
+ "VAE"
995
+ ],
996
+ [
997
+ 10,
998
+ 14,
999
+ 0,
1000
+ 11,
1001
+ 0,
1002
+ "IMAGE"
1003
+ ],
1004
+ [
1005
+ 12,
1006
+ 15,
1007
+ 0,
1008
+ 12,
1009
+ 1,
1010
+ "SEGS"
1011
+ ],
1012
+ [
1013
+ 14,
1014
+ 10,
1015
+ 0,
1016
+ 14,
1017
+ 0,
1018
+ "SEGS"
1019
+ ],
1020
+ [
1021
+ 15,
1022
+ 10,
1023
+ 0,
1024
+ 15,
1025
+ 0,
1026
+ "SEGS"
1027
+ ],
1028
+ [
1029
+ 17,
1030
+ 12,
1031
+ 0,
1032
+ 16,
1033
+ 0,
1034
+ "IMAGE"
1035
+ ],
1036
+ [
1037
+ 18,
1038
+ 14,
1039
+ 0,
1040
+ 17,
1041
+ 0,
1042
+ "IMAGE"
1043
+ ],
1044
+ [
1045
+ 21,
1046
+ 8,
1047
+ 0,
1048
+ 19,
1049
+ 0,
1050
+ "IMAGE"
1051
+ ],
1052
+ [
1053
+ 22,
1054
+ 8,
1055
+ 0,
1056
+ 13,
1057
+ 0,
1058
+ "IMAGE"
1059
+ ],
1060
+ [
1061
+ 25,
1062
+ 4,
1063
+ 0,
1064
+ 12,
1065
+ 2,
1066
+ "MODEL"
1067
+ ],
1068
+ [
1069
+ 26,
1070
+ 4,
1071
+ 1,
1072
+ 12,
1073
+ 3,
1074
+ "CLIP"
1075
+ ],
1076
+ [
1077
+ 27,
1078
+ 4,
1079
+ 2,
1080
+ 12,
1081
+ 4,
1082
+ "VAE"
1083
+ ],
1084
+ [
1085
+ 28,
1086
+ 6,
1087
+ 0,
1088
+ 12,
1089
+ 5,
1090
+ "CONDITIONING"
1091
+ ],
1092
+ [
1093
+ 29,
1094
+ 7,
1095
+ 0,
1096
+ 12,
1097
+ 6,
1098
+ "CONDITIONING"
1099
+ ],
1100
+ [
1101
+ 30,
1102
+ 8,
1103
+ 0,
1104
+ 21,
1105
+ 0,
1106
+ "IMAGE"
1107
+ ],
1108
+ [
1109
+ 31,
1110
+ 21,
1111
+ 0,
1112
+ 10,
1113
+ 0,
1114
+ "IMAGE"
1115
+ ],
1116
+ [
1117
+ 32,
1118
+ 21,
1119
+ 0,
1120
+ 12,
1121
+ 0,
1122
+ "IMAGE"
1123
+ ],
1124
+ [
1125
+ 33,
1126
+ 21,
1127
+ 0,
1128
+ 14,
1129
+ 1,
1130
+ "IMAGE"
1131
+ ],
1132
+ [
1133
+ 34,
1134
+ 13,
1135
+ 0,
1136
+ 25,
1137
+ 0,
1138
+ "STRING"
1139
+ ],
1140
+ [
1141
+ 39,
1142
+ 11,
1143
+ 0,
1144
+ 26,
1145
+ 0,
1146
+ "STRING"
1147
+ ],
1148
+ [
1149
+ 47,
1150
+ 25,
1151
+ 0,
1152
+ 30,
1153
+ 1,
1154
+ "STRING"
1155
+ ],
1156
+ [
1157
+ 48,
1158
+ 26,
1159
+ 0,
1160
+ 30,
1161
+ 0,
1162
+ "STRING"
1163
+ ],
1164
+ [
1165
+ 49,
1166
+ 30,
1167
+ 0,
1168
+ 12,
1169
+ 8,
1170
+ "STRING"
1171
+ ],
1172
+ [
1173
+ 50,
1174
+ 30,
1175
+ 1,
1176
+ 15,
1177
+ 1,
1178
+ "STRING"
1179
+ ]
1180
+ ],
1181
+ "groups": [
1182
+ {
1183
+ "id": 1,
1184
+ "title": "Base Image",
1185
+ "bounding": [
1186
+ -620,
1187
+ -374,
1188
+ 1311,
1189
+ 872
1190
+ ],
1191
+ "color": "#3f789e",
1192
+ "font_size": 24,
1193
+ "flags": {}
1194
+ },
1195
+ {
1196
+ "id": 2,
1197
+ "title": "Upscale and Create Tiles",
1198
+ "bounding": [
1199
+ 745,
1200
+ -375,
1201
+ 515,
1202
+ 1202
1203
+ ],
1204
+ "color": "#8AA",
1205
+ "font_size": 24,
1206
+ "flags": {}
1207
+ },
1208
+ {
1209
+ "id": 3,
1210
+ "title": "Tag Base Image",
1211
+ "bounding": [
1212
+ 1311,
1213
+ -374,
1214
+ 431,
1215
+ 668
1216
+ ],
1217
+ "color": "#b06634",
1218
+ "font_size": 24,
1219
+ "flags": {}
1220
+ },
1221
+ {
1222
+ "id": 4,
1223
+ "title": "Tag Tiles",
1224
+ "bounding": [
1225
+ 1815,
1226
+ -378,
1227
+ 460,
1228
+ 750
1229
+ ],
1230
+ "color": "#b06634",
1231
+ "font_size": 24,
1232
+ "flags": {}
1233
+ },
1234
+ {
1235
+ "id": 5,
1236
+ "title": "Assign Prompts to Tiles",
1237
+ "bounding": [
1238
+ 2367,
1239
+ -381,
1240
+ 380,
1241
+ 615
1242
+ ],
1243
+ "color": "#8AA",
1244
+ "font_size": 24,
1245
+ "flags": {}
1246
+ },
1247
+ {
1248
+ "id": 6,
1249
+ "title": "Add Details",
1250
+ "bounding": [
1251
+ 2834,
1252
+ -382,
1253
+ 1359,
1254
+ 1377
1255
+ ],
1256
+ "color": "#3f789e",
1257
+ "font_size": 24,
1258
+ "flags": {}
1259
+ }
1260
+ ],
1261
+ "config": {},
1262
+ "extra": {
1263
+ "ds": {
1264
+ "scale": 1,
1265
+ "offset": [
1266
+ 711,
1267
+ 400
1268
+ ]
1269
+ },
1270
+ "groupNodes": {},
1271
+ "controller_panel": {
1272
+ "controllers": {},
1273
+ "hidden": true,
1274
+ "highlight": true,
1275
+ "version": 2,
1276
+ "default_order": []
1277
+ },
1278
+ "node_versions": {
1279
+ "comfy-core": "0.3.14",
1280
+ "comfyui-impact-pack": "1ae7cae2df8cca06027edfa3a24512671239d6c4",
1281
+ "comfyui-wd14-tagger": "1.0.0"
1282
+ },
1283
+ "ue_links": [],
1284
+ "VHS_latentpreview": false,
1285
+ "VHS_latentpreviewrate": 0,
1286
+ "VHS_MetadataImage": true,
1287
+ "VHS_KeepIntermediate": true
1288
+ },
1289
+ "version": 0.4
1290
+ }
zavodik/nodes/ComfyUI-Impact-Pack/example_workflows/6-DetailerWildcard.jpg ADDED

Git LFS Details

  • SHA256: f80a2add23387329e86abfb00382d1efd818df33a8fa19c93cdf75a478a491df
  • Pointer size: 131 Bytes
  • Size of remote file: 539 kB
zavodik/nodes/ComfyUI-Impact-Pack/example_workflows/6-DetailerWildcard.json ADDED
@@ -0,0 +1,1084 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "last_node_id": 57,
3
+ "last_link_id": 116,
4
+ "nodes": [
5
+ {
6
+ "id": 38,
7
+ "type": "SAMLoader",
8
+ "pos": [
9
+ 870,
10
+ 1120
11
+ ],
12
+ "size": [
13
+ 315,
14
+ 82
15
+ ],
16
+ "flags": {},
17
+ "order": 0,
18
+ "mode": 0,
19
+ "inputs": [],
20
+ "outputs": [
21
+ {
22
+ "name": "SAM_MODEL",
23
+ "type": "SAM_MODEL",
24
+ "links": [
25
+ 81
26
+ ],
27
+ "slot_index": 0
28
+ }
29
+ ],
30
+ "properties": {
31
+ "Node name for S&R": "SAMLoader"
32
+ },
33
+ "widgets_values": [
34
+ "sam_vit_b_01ec64.pth",
35
+ "AUTO"
36
+ ],
37
+ "color": "#223",
38
+ "bgcolor": "#335"
39
+ },
40
+ {
41
+ "id": 50,
42
+ "type": "Reroute",
43
+ "pos": [
44
+ 1100,
45
+ 30
46
+ ],
47
+ "size": [
48
+ 75,
49
+ 26
50
+ ],
51
+ "flags": {},
52
+ "order": 6,
53
+ "mode": 0,
54
+ "inputs": [
55
+ {
56
+ "name": "",
57
+ "type": "*",
58
+ "link": 110
59
+ }
60
+ ],
61
+ "outputs": [
62
+ {
63
+ "name": "",
64
+ "type": "VAE",
65
+ "links": [
66
+ 109
67
+ ],
68
+ "slot_index": 0
69
+ }
70
+ ],
71
+ "properties": {
72
+ "showOutputText": false,
73
+ "horizontal": false
74
+ }
75
+ },
76
+ {
77
+ "id": 48,
78
+ "type": "FromBasicPipe",
79
+ "pos": [
80
+ 910,
81
+ 300
82
+ ],
83
+ "size": [
84
+ 221.4781951904297,
85
+ 106
86
+ ],
87
+ "flags": {},
88
+ "order": 5,
89
+ "mode": 0,
90
+ "inputs": [
91
+ {
92
+ "name": "basic_pipe",
93
+ "type": "BASIC_PIPE",
94
+ "link": 116
95
+ }
96
+ ],
97
+ "outputs": [
98
+ {
99
+ "name": "model",
100
+ "type": "MODEL",
101
+ "links": [
102
+ 99
103
+ ],
104
+ "slot_index": 0
105
+ },
106
+ {
107
+ "name": "clip",
108
+ "type": "CLIP",
109
+ "links": null
110
+ },
111
+ {
112
+ "name": "vae",
113
+ "type": "VAE",
114
+ "links": [
115
+ 110
116
+ ],
117
+ "slot_index": 2
118
+ },
119
+ {
120
+ "name": "positive",
121
+ "type": "CONDITIONING",
122
+ "links": [
123
+ 100
124
+ ],
125
+ "slot_index": 3
126
+ },
127
+ {
128
+ "name": "negative",
129
+ "type": "CONDITIONING",
130
+ "links": [
131
+ 101
132
+ ],
133
+ "slot_index": 4
134
+ }
135
+ ],
136
+ "properties": {
137
+ "Node name for S&R": "FromBasicPipe"
138
+ },
139
+ "widgets_values": []
140
+ },
141
+ {
142
+ "id": 5,
143
+ "type": "EmptyLatentImage",
144
+ "pos": [
145
+ 490,
146
+ 190
147
+ ],
148
+ "size": [
149
+ 315,
150
+ 106
151
+ ],
152
+ "flags": {},
153
+ "order": 1,
154
+ "mode": 0,
155
+ "inputs": [],
156
+ "outputs": [
157
+ {
158
+ "name": "LATENT",
159
+ "type": "LATENT",
160
+ "links": [
161
+ 2
162
+ ],
163
+ "slot_index": 0
164
+ }
165
+ ],
166
+ "properties": {
167
+ "Node name for S&R": "EmptyLatentImage"
168
+ },
169
+ "widgets_values": [
170
+ 768,
171
+ 512,
172
+ 1
173
+ ]
174
+ },
175
+ {
176
+ "id": 42,
177
+ "type": "PreviewImage",
178
+ "pos": [
179
+ 2140,
180
+ 130
181
+ ],
182
+ "size": [
183
+ 793.8984985351562,
184
+ 562.4002685546875
185
+ ],
186
+ "flags": {},
187
+ "order": 11,
188
+ "mode": 0,
189
+ "inputs": [
190
+ {
191
+ "name": "images",
192
+ "type": "IMAGE",
193
+ "link": 107
194
+ }
195
+ ],
196
+ "outputs": [],
197
+ "title": "Refined",
198
+ "properties": {
199
+ "Node name for S&R": "PreviewImage"
200
+ },
201
+ "widgets_values": [],
202
+ "color": "#223",
203
+ "bgcolor": "#335"
204
+ },
205
+ {
206
+ "id": 52,
207
+ "type": "PreviewImage",
208
+ "pos": [
209
+ 2140,
210
+ 770
211
+ ],
212
+ "size": [
213
+ 800,
214
+ 580
215
+ ],
216
+ "flags": {},
217
+ "order": 12,
218
+ "mode": 0,
219
+ "inputs": [
220
+ {
221
+ "name": "images",
222
+ "type": "IMAGE",
223
+ "link": 113
224
+ }
225
+ ],
226
+ "outputs": [],
227
+ "title": "Original",
228
+ "properties": {
229
+ "Node name for S&R": "PreviewImage"
230
+ },
231
+ "widgets_values": [],
232
+ "color": "#432",
233
+ "bgcolor": "#653"
234
+ },
235
+ {
236
+ "id": 44,
237
+ "type": "BasicPipeToDetailerPipe",
238
+ "pos": [
239
+ 1230,
240
+ 950
241
+ ],
242
+ "size": [
243
+ 380,
244
+ 240
245
+ ],
246
+ "flags": {},
247
+ "order": 4,
248
+ "mode": 0,
249
+ "inputs": [
250
+ {
251
+ "name": "basic_pipe",
252
+ "type": "BASIC_PIPE",
253
+ "link": 115,
254
+ "slot_index": 0
255
+ },
256
+ {
257
+ "name": "bbox_detector",
258
+ "type": "BBOX_DETECTOR",
259
+ "link": 114
260
+ },
261
+ {
262
+ "name": "sam_model_opt",
263
+ "type": "SAM_MODEL",
264
+ "shape": 7,
265
+ "link": 81
266
+ },
267
+ {
268
+ "name": "segm_detector_opt",
269
+ "type": "SEGM_DETECTOR",
270
+ "shape": 7,
271
+ "link": null
272
+ },
273
+ {
274
+ "name": "detailer_hook",
275
+ "type": "DETAILER_HOOK",
276
+ "shape": 7,
277
+ "link": null
278
+ }
279
+ ],
280
+ "outputs": [
281
+ {
282
+ "name": "detailer_pipe",
283
+ "type": "DETAILER_PIPE",
284
+ "links": [
285
+ 105
286
+ ],
287
+ "slot_index": 0
288
+ }
289
+ ],
290
+ "title": "BasicPipe -> DetailerPipe (NEW!!)",
291
+ "properties": {
292
+ "Node name for S&R": "BasicPipeToDetailerPipe"
293
+ },
294
+ "widgets_values": [
295
+ "{blue eyes, (angry:1.2)|{green eyes, mouth open|red eyes}|<lora:ChunLi_v1> smile}",
296
+ "Select the LoRA to add to the text",
297
+ "Select the Wildcard to add to the text"
298
+ ],
299
+ "color": "#223",
300
+ "bgcolor": "#335"
301
+ },
302
+ {
303
+ "id": 51,
304
+ "type": "Reroute",
305
+ "pos": [
306
+ 2380,
307
+ 30
308
+ ],
309
+ "size": [
310
+ 82,
311
+ 26
312
+ ],
313
+ "flags": {},
314
+ "order": 10,
315
+ "mode": 2,
316
+ "inputs": [
317
+ {
318
+ "name": "",
319
+ "type": "*",
320
+ "link": 111
321
+ }
322
+ ],
323
+ "outputs": [
324
+ {
325
+ "name": "IMAGE",
326
+ "type": "IMAGE",
327
+ "links": [
328
+ 113
329
+ ],
330
+ "slot_index": 0
331
+ }
332
+ ],
333
+ "properties": {
334
+ "showOutputText": true,
335
+ "horizontal": false
336
+ }
337
+ },
338
+ {
339
+ "id": 8,
340
+ "type": "VAEDecode",
341
+ "pos": [
342
+ 1430,
343
+ 60
344
+ ],
345
+ "size": [
346
+ 140,
347
+ 46
348
+ ],
349
+ "flags": {
350
+ "collapsed": true
351
+ },
352
+ "order": 8,
353
+ "mode": 0,
354
+ "inputs": [
355
+ {
356
+ "name": "samples",
357
+ "type": "LATENT",
358
+ "link": 7
359
+ },
360
+ {
361
+ "name": "vae",
362
+ "type": "VAE",
363
+ "link": 109
364
+ }
365
+ ],
366
+ "outputs": [
367
+ {
368
+ "name": "IMAGE",
369
+ "type": "IMAGE",
370
+ "links": [
371
+ 106,
372
+ 111
373
+ ],
374
+ "slot_index": 0
375
+ }
376
+ ],
377
+ "properties": {
378
+ "Node name for S&R": "VAEDecode"
379
+ },
380
+ "widgets_values": [],
381
+ "color": "#432",
382
+ "bgcolor": "#653"
383
+ },
384
+ {
385
+ "id": 3,
386
+ "type": "KSampler",
387
+ "pos": [
388
+ 1209,
389
+ 126
390
+ ],
391
+ "size": [
392
+ 400,
393
+ 650
394
+ ],
395
+ "flags": {},
396
+ "order": 7,
397
+ "mode": 0,
398
+ "inputs": [
399
+ {
400
+ "name": "model",
401
+ "type": "MODEL",
402
+ "link": 99
403
+ },
404
+ {
405
+ "name": "positive",
406
+ "type": "CONDITIONING",
407
+ "link": 100
408
+ },
409
+ {
410
+ "name": "negative",
411
+ "type": "CONDITIONING",
412
+ "link": 101
413
+ },
414
+ {
415
+ "name": "latent_image",
416
+ "type": "LATENT",
417
+ "link": 2
418
+ }
419
+ ],
420
+ "outputs": [
421
+ {
422
+ "name": "LATENT",
423
+ "type": "LATENT",
424
+ "links": [
425
+ 7
426
+ ],
427
+ "slot_index": 0
428
+ }
429
+ ],
430
+ "properties": {
431
+ "Node name for S&R": "KSampler"
432
+ },
433
+ "widgets_values": [
434
+ 497844439625000,
435
+ "fixed",
436
+ 20,
437
+ 8,
438
+ "euler",
439
+ "normal",
440
+ 1
441
+ ],
442
+ "color": "#432",
443
+ "bgcolor": "#653"
444
+ },
445
+ {
446
+ "id": 56,
447
+ "type": "UltralyticsDetectorProvider",
448
+ "pos": [
449
+ 870,
450
+ 970
451
+ ],
452
+ "size": [
453
+ 315,
454
+ 78
455
+ ],
456
+ "flags": {},
457
+ "order": 2,
458
+ "mode": 0,
459
+ "inputs": [],
460
+ "outputs": [
461
+ {
462
+ "name": "BBOX_DETECTOR",
463
+ "type": "BBOX_DETECTOR",
464
+ "shape": 3,
465
+ "links": [
466
+ 114
467
+ ],
468
+ "slot_index": 0
469
+ },
470
+ {
471
+ "name": "SEGM_DETECTOR",
472
+ "type": "SEGM_DETECTOR",
473
+ "shape": 3,
474
+ "links": null
475
+ }
476
+ ],
477
+ "properties": {
478
+ "Node name for S&R": "UltralyticsDetectorProvider"
479
+ },
480
+ "widgets_values": [
481
+ "bbox/face_yolov8m.pt"
482
+ ],
483
+ "color": "#223",
484
+ "bgcolor": "#335"
485
+ },
486
+ {
487
+ "id": 57,
488
+ "type": "workflow>MAKE_BASIC_PIPE",
489
+ "pos": [
490
+ 50,
491
+ 470
492
+ ],
493
+ "size": [
494
+ 410,
495
+ 360
496
+ ],
497
+ "flags": {},
498
+ "order": 3,
499
+ "mode": 0,
500
+ "inputs": [],
501
+ "outputs": [
502
+ {
503
+ "name": "VAE",
504
+ "type": "VAE",
505
+ "shape": 3,
506
+ "links": null
507
+ },
508
+ {
509
+ "name": "basic_pipe",
510
+ "type": "BASIC_PIPE",
511
+ "shape": 3,
512
+ "links": [
513
+ 115,
514
+ 116
515
+ ]
516
+ }
517
+ ],
518
+ "properties": {
519
+ "Node name for S&R": "workflow/MAKE_BASIC_PIPE"
520
+ },
521
+ "widgets_values": [
522
+ "vae-ft-mse-840000-ema-pruned.safetensors",
523
+ "SD1.5/V07_v07.safetensors",
524
+ "RAW photo, delicate, best quality, colorful, 2girls, 8k uhd, film grain, soft lighting, dslr, (Fujifilm XT3), (photorealistic:1.4), (detailed skin), soft lips, (very detailed long ponytail), aged down, studio lighting, from top, colorful sports wear, happy face, spread lips, (walking), (central park, cloud, sunshine), small breast",
525
+ "(low quality:1.4), (worst quality:1.4), bad anatomy, (nsfw:1.2), muscle, from back, from front, monochrome, (bikini:1.2)"
526
+ ],
527
+ "color": "#222",
528
+ "bgcolor": "#000"
529
+ },
530
+ {
531
+ "id": 49,
532
+ "type": "FaceDetailerPipe",
533
+ "pos": [
534
+ 1630,
535
+ 130
536
+ ],
537
+ "size": [
538
+ 480,
539
+ 1220
540
+ ],
541
+ "flags": {},
542
+ "order": 9,
543
+ "mode": 0,
544
+ "inputs": [
545
+ {
546
+ "name": "image",
547
+ "type": "IMAGE",
548
+ "link": 106
549
+ },
550
+ {
551
+ "name": "detailer_pipe",
552
+ "type": "DETAILER_PIPE",
553
+ "link": 105
554
+ },
555
+ {
556
+ "name": "scheduler_func_opt",
557
+ "type": "SCHEDULER_FUNC",
558
+ "shape": 7,
559
+ "link": null
560
+ }
561
+ ],
562
+ "outputs": [
563
+ {
564
+ "name": "image",
565
+ "type": "IMAGE",
566
+ "shape": 3,
567
+ "links": [
568
+ 107
569
+ ],
570
+ "slot_index": 0
571
+ },
572
+ {
573
+ "name": "cropped_refined",
574
+ "type": "IMAGE",
575
+ "shape": 6,
576
+ "links": null
577
+ },
578
+ {
579
+ "name": "cropped_enhanced_alpha",
580
+ "type": "IMAGE",
581
+ "shape": 6,
582
+ "links": null
583
+ },
584
+ {
585
+ "name": "mask",
586
+ "type": "MASK",
587
+ "shape": 3,
588
+ "links": null
589
+ },
590
+ {
591
+ "name": "detailer_pipe",
592
+ "type": "DETAILER_PIPE",
593
+ "shape": 3,
594
+ "links": null
595
+ },
596
+ {
597
+ "name": "cnet_images",
598
+ "type": "IMAGE",
599
+ "shape": 6,
600
+ "links": null
601
+ }
602
+ ],
603
+ "properties": {
604
+ "Node name for S&R": "FaceDetailerPipe"
605
+ },
606
+ "widgets_values": [
607
+ 256,
608
+ true,
609
+ 768,
610
+ 307405256705890,
611
+ "fixed",
612
+ 20,
613
+ 8,
614
+ "euler",
615
+ "normal",
616
+ 0.5,
617
+ 5,
618
+ true,
619
+ false,
620
+ 0.5,
621
+ 10,
622
+ 3,
623
+ "center-1",
624
+ 0,
625
+ 0.93,
626
+ 0,
627
+ 0.7,
628
+ "False",
629
+ 10,
630
+ 0.2,
631
+ 1,
632
+ false,
633
+ 0,
634
+ false,
635
+ false
636
+ ],
637
+ "color": "#223",
638
+ "bgcolor": "#335"
639
+ }
640
+ ],
641
+ "links": [
642
+ [
643
+ 2,
644
+ 5,
645
+ 0,
646
+ 3,
647
+ 3,
648
+ "LATENT"
649
+ ],
650
+ [
651
+ 7,
652
+ 3,
653
+ 0,
654
+ 8,
655
+ 0,
656
+ "LATENT"
657
+ ],
658
+ [
659
+ 81,
660
+ 38,
661
+ 0,
662
+ 44,
663
+ 2,
664
+ "SAM_MODEL"
665
+ ],
666
+ [
667
+ 99,
668
+ 48,
669
+ 0,
670
+ 3,
671
+ 0,
672
+ "MODEL"
673
+ ],
674
+ [
675
+ 100,
676
+ 48,
677
+ 3,
678
+ 3,
679
+ 1,
680
+ "CONDITIONING"
681
+ ],
682
+ [
683
+ 101,
684
+ 48,
685
+ 4,
686
+ 3,
687
+ 2,
688
+ "CONDITIONING"
689
+ ],
690
+ [
691
+ 105,
692
+ 44,
693
+ 0,
694
+ 49,
695
+ 1,
696
+ "DETAILER_PIPE"
697
+ ],
698
+ [
699
+ 106,
700
+ 8,
701
+ 0,
702
+ 49,
703
+ 0,
704
+ "IMAGE"
705
+ ],
706
+ [
707
+ 107,
708
+ 49,
709
+ 0,
710
+ 42,
711
+ 0,
712
+ "IMAGE"
713
+ ],
714
+ [
715
+ 109,
716
+ 50,
717
+ 0,
718
+ 8,
719
+ 1,
720
+ "VAE"
721
+ ],
722
+ [
723
+ 110,
724
+ 48,
725
+ 2,
726
+ 50,
727
+ 0,
728
+ "*"
729
+ ],
730
+ [
731
+ 111,
732
+ 8,
733
+ 0,
734
+ 51,
735
+ 0,
736
+ "*"
737
+ ],
738
+ [
739
+ 113,
740
+ 51,
741
+ 0,
742
+ 52,
743
+ 0,
744
+ "IMAGE"
745
+ ],
746
+ [
747
+ 114,
748
+ 56,
749
+ 0,
750
+ 44,
751
+ 1,
752
+ "BBOX_DETECTOR"
753
+ ],
754
+ [
755
+ 115,
756
+ 57,
757
+ 1,
758
+ 44,
759
+ 0,
760
+ "BASIC_PIPE"
761
+ ],
762
+ [
763
+ 116,
764
+ 57,
765
+ 1,
766
+ 48,
767
+ 0,
768
+ "BASIC_PIPE"
769
+ ]
770
+ ],
771
+ "groups": [],
772
+ "config": {},
773
+ "extra": {
774
+ "groupNodes": {
775
+ "MAKE_BASIC_PIPE": {
776
+ "nodes": [
777
+ {
778
+ "type": "VAELoader",
779
+ "pos": [
780
+ -200,
781
+ 600
782
+ ],
783
+ "size": {
784
+ "0": 315,
785
+ "1": 58
786
+ },
787
+ "flags": {},
788
+ "order": 1,
789
+ "mode": 0,
790
+ "outputs": [
791
+ {
792
+ "name": "VAE",
793
+ "type": "VAE",
794
+ "links": [],
795
+ "slot_index": 0,
796
+ "localized_name": "VAE"
797
+ }
798
+ ],
799
+ "properties": {
800
+ "Node name for S&R": "VAELoader"
801
+ },
802
+ "widgets_values": [
803
+ "vae-ft-mse-840000-ema-pruned.safetensors"
804
+ ],
805
+ "index": 0,
806
+ "inputs": []
807
+ },
808
+ {
809
+ "type": "CheckpointLoaderSimple",
810
+ "pos": [
811
+ -660,
812
+ 680
813
+ ],
814
+ "size": {
815
+ "0": 315,
816
+ "1": 98
817
+ },
818
+ "flags": {},
819
+ "order": 6,
820
+ "mode": 0,
821
+ "outputs": [
822
+ {
823
+ "name": "MODEL",
824
+ "type": "MODEL",
825
+ "links": [],
826
+ "slot_index": 0,
827
+ "localized_name": "MODEL"
828
+ },
829
+ {
830
+ "name": "CLIP",
831
+ "type": "CLIP",
832
+ "links": [],
833
+ "slot_index": 1,
834
+ "localized_name": "CLIP"
835
+ },
836
+ {
837
+ "name": "VAE",
838
+ "type": "VAE",
839
+ "links": [],
840
+ "slot_index": 2,
841
+ "localized_name": "VAE"
842
+ }
843
+ ],
844
+ "properties": {
845
+ "Node name for S&R": "CheckpointLoaderSimple"
846
+ },
847
+ "widgets_values": [
848
+ "SD1.5/V07_v07.safetensors"
849
+ ],
850
+ "index": 1,
851
+ "inputs": []
852
+ },
853
+ {
854
+ "type": "CLIPTextEncode",
855
+ "pos": [
856
+ -260,
857
+ 750
858
+ ],
859
+ "size": {
860
+ "0": 411.9563903808594,
861
+ "1": 162.07196044921875
862
+ },
863
+ "flags": {},
864
+ "order": 7,
865
+ "mode": 0,
866
+ "inputs": [
867
+ {
868
+ "name": "clip",
869
+ "type": "CLIP",
870
+ "link": null,
871
+ "localized_name": "clip"
872
+ }
873
+ ],
874
+ "outputs": [
875
+ {
876
+ "name": "CONDITIONING",
877
+ "type": "CONDITIONING",
878
+ "links": [],
879
+ "slot_index": 0,
880
+ "localized_name": "CONDITIONING"
881
+ }
882
+ ],
883
+ "title": "Positive",
884
+ "properties": {
885
+ "Node name for S&R": "CLIPTextEncode"
886
+ },
887
+ "widgets_values": [
888
+ "RAW photo, delicate, best quality, colorful, 2girls, 8k uhd, film grain, soft lighting, dslr, (Fujifilm XT3), (photorealistic:1.4), (detailed skin), soft lips, (very detailed long ponytail), aged down, studio lighting, from top, colorful sports wear, happy face, spread lips, (walking), (central park, cloud, sunshine), small breast"
889
+ ],
890
+ "index": 2
891
+ },
892
+ {
893
+ "type": "CLIPTextEncode",
894
+ "pos": [
895
+ -260,
896
+ 960
897
+ ],
898
+ "size": {
899
+ "0": 410,
900
+ "1": 130
901
+ },
902
+ "flags": {},
903
+ "order": 8,
904
+ "mode": 0,
905
+ "inputs": [
906
+ {
907
+ "name": "clip",
908
+ "type": "CLIP",
909
+ "link": null,
910
+ "localized_name": "clip"
911
+ }
912
+ ],
913
+ "outputs": [
914
+ {
915
+ "name": "CONDITIONING",
916
+ "type": "CONDITIONING",
917
+ "links": [],
918
+ "slot_index": 0,
919
+ "localized_name": "CONDITIONING"
920
+ }
921
+ ],
922
+ "title": "Negative",
923
+ "properties": {
924
+ "Node name for S&R": "CLIPTextEncode"
925
+ },
926
+ "widgets_values": [
927
+ "(low quality:1.4), (worst quality:1.4), bad anatomy, (nsfw:1.2), muscle, from back, from front, monochrome, (bikini:1.2)"
928
+ ],
929
+ "index": 3
930
+ },
931
+ {
932
+ "type": "ToBasicPipe",
933
+ "pos": [
934
+ 210,
935
+ 680
936
+ ],
937
+ "size": {
938
+ "0": 241.79998779296875,
939
+ "1": 106
940
+ },
941
+ "flags": {},
942
+ "order": 9,
943
+ "mode": 0,
944
+ "inputs": [
945
+ {
946
+ "name": "model",
947
+ "type": "MODEL",
948
+ "link": null,
949
+ "localized_name": "model"
950
+ },
951
+ {
952
+ "name": "clip",
953
+ "type": "CLIP",
954
+ "link": null,
955
+ "localized_name": "clip"
956
+ },
957
+ {
958
+ "name": "vae",
959
+ "type": "VAE",
960
+ "link": null,
961
+ "localized_name": "vae"
962
+ },
963
+ {
964
+ "name": "positive",
965
+ "type": "CONDITIONING",
966
+ "link": null,
967
+ "localized_name": "positive"
968
+ },
969
+ {
970
+ "name": "negative",
971
+ "type": "CONDITIONING",
972
+ "link": null,
973
+ "localized_name": "negative"
974
+ }
975
+ ],
976
+ "outputs": [
977
+ {
978
+ "name": "basic_pipe",
979
+ "type": "BASIC_PIPE",
980
+ "links": [],
981
+ "slot_index": 0,
982
+ "localized_name": "basic_pipe"
983
+ }
984
+ ],
985
+ "properties": {
986
+ "Node name for S&R": "ToBasicPipe"
987
+ },
988
+ "index": 4
989
+ }
990
+ ],
991
+ "links": [
992
+ [
993
+ 1,
994
+ 1,
995
+ 2,
996
+ 0,
997
+ 4,
998
+ "CLIP"
999
+ ],
1000
+ [
1001
+ 1,
1002
+ 1,
1003
+ 3,
1004
+ 0,
1005
+ 4,
1006
+ "CLIP"
1007
+ ],
1008
+ [
1009
+ 1,
1010
+ 0,
1011
+ 4,
1012
+ 0,
1013
+ 4,
1014
+ "MODEL"
1015
+ ],
1016
+ [
1017
+ 1,
1018
+ 1,
1019
+ 4,
1020
+ 1,
1021
+ 4,
1022
+ "CLIP"
1023
+ ],
1024
+ [
1025
+ 0,
1026
+ 0,
1027
+ 4,
1028
+ 2,
1029
+ 14,
1030
+ "VAE"
1031
+ ],
1032
+ [
1033
+ 2,
1034
+ 0,
1035
+ 4,
1036
+ 3,
1037
+ 6,
1038
+ "CONDITIONING"
1039
+ ],
1040
+ [
1041
+ 3,
1042
+ 0,
1043
+ 4,
1044
+ 4,
1045
+ 7,
1046
+ "CONDITIONING"
1047
+ ]
1048
+ ],
1049
+ "external": [
1050
+ [
1051
+ 4,
1052
+ 0,
1053
+ "BASIC_PIPE"
1054
+ ]
1055
+ ]
1056
+ }
1057
+ },
1058
+ "controller_panel": {
1059
+ "controllers": {},
1060
+ "hidden": true,
1061
+ "highlight": true,
1062
+ "version": 2,
1063
+ "default_order": []
1064
+ },
1065
+ "ds": {
1066
+ "scale": 0.7513148009015777,
1067
+ "offset": {
1068
+ "0": 149.68603515625,
1069
+ "1": 245.33897399902344
1070
+ }
1071
+ },
1072
+ "node_versions": {
1073
+ "comfyui-impact-pack": "1ae7cae2df8cca06027edfa3a24512671239d6c4",
1074
+ "comfy-core": "0.3.14",
1075
+ "comfyui-impact-subpack": "74db20c95eca152a6d686c914edc0ef4e4762cb8"
1076
+ },
1077
+ "ue_links": [],
1078
+ "VHS_latentpreview": false,
1079
+ "VHS_latentpreviewrate": 0,
1080
+ "VHS_MetadataImage": true,
1081
+ "VHS_KeepIntermediate": true
1082
+ },
1083
+ "version": 0.4
1084
+ }
zavodik/nodes/ComfyUI-Impact-Pack/impact-pack.ini ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ [default]
2
+ sam_editor_cpu = False
3
+ sam_editor_model = sam_vit_b_01ec64.pth
4
+ custom_wildcards = C:\AI\ComfyUI_new\ComfyUI\custom_nodes\ComfyUI-Impact-Pack\custom_wildcards
5
+ disable_gpu_opencv = True
6
+ wildcard_cache_limit_mb = 50
7
+
zavodik/nodes/ComfyUI-Impact-Pack/install.py ADDED
@@ -0,0 +1,116 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import os
2
+ import shutil
3
+ import sys
4
+ import subprocess
5
+ import threading
6
+ import locale
7
+ import traceback
8
+
9
+
10
+ if sys.argv[0] == 'install.py':
11
+ sys.path.append('.') # for portable version
12
+
13
+
14
+ impact_path = os.path.join(os.path.dirname(__file__), "modules")
15
+
16
+
17
+ comfy_path = os.environ.get('COMFYUI_PATH')
18
+ if comfy_path is None:
19
+ print(f"\nWARN: The `COMFYUI_PATH` environment variable is not set. Assuming `{os.path.dirname(__file__)}/../../` as the ComfyUI path.", file=sys.stderr)
20
+ comfy_path = os.path.abspath(os.path.join(os.path.dirname(__file__), '..', '..'))
21
+
22
+ model_path = os.environ.get('COMFYUI_MODEL_PATH')
23
+ if model_path is None:
24
+ try:
25
+ import folder_paths
26
+ model_path = folder_paths.models_dir
27
+ except:
28
+ pass
29
+
30
+ if model_path is None:
31
+ model_path = os.path.abspath(os.path.join(comfy_path, 'models'))
32
+ print(f"\nWARN: The `COMFYUI_MODEL_PATH` environment variable is not set. Assuming `{model_path}` as the ComfyUI path.", file=sys.stderr)
33
+
34
+
35
+ sys.path.append(impact_path)
36
+ sys.path.append(comfy_path)
37
+
38
+
39
+ # ---
40
+ def handle_stream(stream, is_stdout):
41
+ stream.reconfigure(encoding=locale.getpreferredencoding(), errors='replace')
42
+
43
+ for msg in stream:
44
+ if is_stdout:
45
+ print(msg, end="", file=sys.stdout)
46
+ else:
47
+ print(msg, end="", file=sys.stderr)
48
+
49
+
50
+ def process_wrap(cmd_str, cwd=None, handler=None, env=None):
51
+ print(f"[Impact Pack] EXECUTE: {cmd_str} in '{cwd}'")
52
+ process = subprocess.Popen(cmd_str, cwd=cwd, stdout=subprocess.PIPE, stderr=subprocess.PIPE, env=env, text=True, bufsize=1)
53
+
54
+ if handler is None:
55
+ handler = handle_stream
56
+
57
+ stdout_thread = threading.Thread(target=handler, args=(process.stdout, True))
58
+ stderr_thread = threading.Thread(target=handler, args=(process.stderr, False))
59
+
60
+ stdout_thread.start()
61
+ stderr_thread.start()
62
+
63
+ stdout_thread.join()
64
+ stderr_thread.join()
65
+
66
+ return process.wait()
67
+ # ---
68
+
69
+
70
+ try:
71
+ from torchvision.datasets.utils import download_url
72
+ import impact.config
73
+
74
+ print("### ComfyUI-Impact-Pack: Check dependencies")
75
+ def install():
76
+ new_env = os.environ.copy()
77
+ new_env["COMFYUI_PATH"] = comfy_path
78
+ new_env["COMFYUI_MODEL_PATH"] = model_path
79
+
80
+ # Download model
81
+ print("### ComfyUI-Impact-Pack: Check basic models")
82
+ sam_path = os.path.join(model_path, "sams")
83
+ onnx_path = os.path.join(model_path, "onnx")
84
+
85
+ if not os.path.exists(os.path.join(os.path.dirname(__file__), '..', 'skip_download_model')):
86
+ try:
87
+ if not os.path.exists(os.path.join(sam_path, "sam_vit_b_01ec64.pth")):
88
+ download_url("https://dl.fbaipublicfiles.com/segment_anything/sam_vit_b_01ec64.pth", sam_path)
89
+ except:
90
+ print("[Impact Pack] Failed to auto-download model files. Please download them manually.")
91
+
92
+ if not os.path.exists(onnx_path):
93
+ print(f"### ComfyUI-Impact-Pack: onnx model directory created ({onnx_path})")
94
+ os.mkdir(onnx_path)
95
+
96
+ impact.config.write_config()
97
+
98
+ # Remove legacy subpack
99
+ try:
100
+ subpack_path = os.path.join(os.path.dirname(__file__), 'impact_subpack')
101
+ if os.path.exists(subpack_path):
102
+ shutil.rmtree(subpack_path)
103
+ print(f"Legacy subpack is detected. '{subpack_path}' is removed.")
104
+
105
+ subpack_path = os.path.join(os.path.dirname(__file__), 'subpack')
106
+ if os.path.exists(subpack_path):
107
+ shutil.rmtree(subpack_path)
108
+ print(f"Legacy subpack is detected. '{subpack_path}' is removed.")
109
+ except:
110
+ print(f"ERROT: Failed to delete legacy subpack '{subpack_path}'\nPlease delete the folder after terminate ComfyUI.")
111
+
112
+ install()
113
+
114
+ except Exception:
115
+ print("[ERROR] ComfyUI-Impact-Pack: Dependency installation has failed. Please install manually.")
116
+ traceback.print_exc()
zavodik/nodes/ComfyUI-Impact-Pack/js/common.js ADDED
@@ -0,0 +1,281 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import { api } from "../../scripts/api.js";
2
+ import { app } from "../../scripts/app.js";
3
+
4
+ let original_show = app.ui.dialog.show;
5
+
6
+ export function customAlert(message) {
7
+ try {
8
+ app.extensionManager.toast.addAlert(message);
9
+ }
10
+ catch {
11
+ alert(message);
12
+ }
13
+ }
14
+
15
+ export function isBeforeFrontendVersion(compareVersion) {
16
+ try {
17
+ const frontendVersion = window['__COMFYUI_FRONTEND_VERSION__'];
18
+ if (typeof frontendVersion !== 'string') {
19
+ return false;
20
+ }
21
+
22
+ function parseVersion(versionString) {
23
+ const parts = versionString.split('.').map(Number);
24
+ return parts.length === 3 && parts.every(part => !isNaN(part)) ? parts : null;
25
+ }
26
+
27
+ const currentVersion = parseVersion(frontendVersion);
28
+ const comparisonVersion = parseVersion(compareVersion);
29
+
30
+ if (!currentVersion || !comparisonVersion) {
31
+ return false;
32
+ }
33
+
34
+ for (let i = 0; i < 3; i++) {
35
+ if (currentVersion[i] > comparisonVersion[i]) {
36
+ return false;
37
+ } else if (currentVersion[i] < comparisonVersion[i]) {
38
+ return true;
39
+ }
40
+ }
41
+
42
+ return false;
43
+ } catch {
44
+ return true;
45
+ }
46
+ }
47
+
48
+ function dialog_show_wrapper(html) {
49
+ if (typeof html === "string") {
50
+ if(html.includes("IMPACT-PACK-SIGNAL: STOP CONTROL BRIDGE")) {
51
+ return;
52
+ }
53
+
54
+ this.textElement.innerHTML = html;
55
+ } else {
56
+ this.textElement.replaceChildren(html);
57
+ }
58
+ this.element.style.display = "flex";
59
+ }
60
+
61
+ app.ui.dialog.show = dialog_show_wrapper;
62
+
63
+
64
+ function nodeFeedbackHandler(event) {
65
+ let nodes = app.graph._nodes_by_id;
66
+ let node = nodes[event.detail.node_id];
67
+ if(node) {
68
+ const w = node.widgets.find((w) => event.detail.widget_name === w.name);
69
+ if(w) {
70
+ w.value = event.detail.value;
71
+ }
72
+ }
73
+ }
74
+
75
+ api.addEventListener("impact-node-feedback", nodeFeedbackHandler);
76
+
77
+
78
+ function setMuteState(event) {
79
+ let nodes = app.graph._nodes_by_id;
80
+ let node = nodes[event.detail.node_id];
81
+ if(node) {
82
+ if(event.detail.is_active)
83
+ node.mode = 0;
84
+ else
85
+ node.mode = 2;
86
+ }
87
+ }
88
+
89
+ api.addEventListener("impact-node-mute-state", setMuteState);
90
+
91
+
92
+ async function bridgeContinue(event) {
93
+ let nodes = app.graph._nodes_by_id;
94
+ let node = nodes[event.detail.node_id];
95
+ if(node) {
96
+ const mutes = new Set(event.detail.mutes);
97
+ const actives = new Set(event.detail.actives);
98
+ const bypasses = new Set(event.detail.bypasses);
99
+
100
+ for(let i in app.graph._nodes_by_id) {
101
+ let this_node = app.graph._nodes_by_id[i];
102
+ if(mutes.has(i)) {
103
+ this_node.mode = 2;
104
+ }
105
+ else if(actives.has(i)) {
106
+ this_node.mode = 0;
107
+ }
108
+ else if(bypasses.has(i)) {
109
+ this_node.mode = 4;
110
+ }
111
+ }
112
+
113
+ await app.queuePrompt(0, 1);
114
+ }
115
+ }
116
+
117
+ api.addEventListener("impact-bridge-continue", bridgeContinue);
118
+
119
+
120
+ function addQueue(event) {
121
+ app.queuePrompt(0, 1);
122
+ }
123
+
124
+ api.addEventListener("impact-add-queue", addQueue);
125
+
126
+
127
+ function refreshPreview(event) {
128
+ let node_id = event.detail.node_id;
129
+ let item = event.detail.item;
130
+ let img = new Image();
131
+ img.src = `/view?filename=${item.filename}&subfolder=${item.subfolder}&type=${item.type}&no-cache=${Date.now()}`;
132
+ let node = app.graph._nodes_by_id[node_id];
133
+ if(node)
134
+ node.imgs = [img];
135
+ }
136
+
137
+ api.addEventListener("impact-preview", refreshPreview);
138
+
139
+
140
+ // ============================================================================
141
+ // MaskRectArea Shared Utilities
142
+ // ============================================================================
143
+
144
+ /**
145
+ * Reads a numeric value from a connected link by inspecting the origin node widget.
146
+ * More reliable than getInputData() in ComfyUI's frontend execution model.
147
+ *
148
+ * @param {LGraphNode} node - LiteGraph node instance
149
+ * @param {string} inputName - Name of the input to read
150
+ * @returns {number|null} The numeric value or null if not available
151
+ */
152
+ export function readLinkedNumber(node, inputName) {
153
+ try {
154
+ if (!node || !node.graph || !Array.isArray(node.inputs)) {
155
+ return null;
156
+ }
157
+ const inp = node.inputs.find(i => i && i.name === inputName);
158
+ if (!inp || inp.link == null) {
159
+ return null;
160
+ }
161
+
162
+ const link = node.graph.links && node.graph.links[inp.link];
163
+ if (!link) {
164
+ return null;
165
+ }
166
+
167
+ const originNode = node.graph.getNodeById
168
+ ? node.graph.getNodeById(link.origin_id)
169
+ : null;
170
+ if (!originNode || !Array.isArray(originNode.widgets) || originNode.widgets.length === 0) {
171
+ return null;
172
+ }
173
+
174
+ const w = originNode.widgets.find(ww => ww && ww.name === "value")
175
+ || originNode.widgets[0];
176
+ const v = w ? w.value : null;
177
+
178
+ return (typeof v === "number") ? v : null;
179
+ } catch (e) {
180
+ return null;
181
+ }
182
+ }
183
+
184
+ /**
185
+ * Generates a color based on percentage using HSL color space.
186
+ *
187
+ * @param {number} percent - Value between 0 and 1
188
+ * @param {string} alpha - Hex alpha value (e.g., "ff", "80")
189
+ * @returns {string} Hex color string with alpha (e.g., "#ff8040ff")
190
+ */
191
+ export function getDrawColor(percent, alpha) {
192
+ let h = 360 * percent;
193
+ let s = 50;
194
+ let l = 50;
195
+ l /= 100;
196
+ const a = s * Math.min(l, 1 - l) / 100;
197
+ const f = n => {
198
+ const k = (n + h / 30) % 12;
199
+ const color = l - a * Math.max(Math.min(k - 3, 9 - k, 1), -1);
200
+ return Math.round(255 * color).toString(16).padStart(2, '0');
201
+ };
202
+ return `#${f(0)}${f(8)}${f(4)}${alpha}`;
203
+ }
204
+
205
+ /**
206
+ * Computes and adjusts canvas size for preview widgets.
207
+ *
208
+ * @param {LGraphNode} node - LiteGraph node instance
209
+ * @param {[number, number]} size - [width, height] array
210
+ * @param {number} minHeight - Minimum canvas height (REQUIRED)
211
+ * @param {number} minWidth - Minimum canvas width (REQUIRED)
212
+ * @returns {void}
213
+ */
214
+ export function computeCanvasSize(node, size, minHeight, minWidth) {
215
+ // Validate required parameters
216
+ if (typeof minHeight !== 'number' || typeof minWidth !== 'number') {
217
+ console.warn('[computeCanvasSize] minHeight and minWidth are required parameters');
218
+ return;
219
+ }
220
+
221
+ // Null safety check for widgets array
222
+ if (!node.widgets?.length || node.widgets[0].last_y == null) {
223
+ return;
224
+ }
225
+
226
+ // LiteGraph global availability check
227
+ const NODE_WIDGET_HEIGHT = (typeof LiteGraph !== 'undefined' && LiteGraph.NODE_WIDGET_HEIGHT)
228
+ ? LiteGraph.NODE_WIDGET_HEIGHT
229
+ : 20;
230
+
231
+ let y = node.widgets[0].last_y + 5;
232
+ let freeSpace = size[1] - y;
233
+
234
+ // Compute the height of all non-customCanvas widgets
235
+ let widgetHeight = 0;
236
+ for (let i = 0; i < node.widgets.length; i++) {
237
+ const w = node.widgets[i];
238
+ if (w.type !== "customCanvas") {
239
+ if (w.computeSize) {
240
+ widgetHeight += w.computeSize()[1] + 4;
241
+ } else {
242
+ widgetHeight += NODE_WIDGET_HEIGHT + 5;
243
+ }
244
+ }
245
+ }
246
+
247
+ // Ensure there is enough vertical space
248
+ freeSpace -= widgetHeight;
249
+
250
+ // Clamp minimum canvas height
251
+ if (freeSpace < minHeight) {
252
+ freeSpace = minHeight;
253
+ }
254
+
255
+ // Allow both grow and shrink to fit content
256
+ const targetHeight = y + widgetHeight + freeSpace;
257
+ if (node.size[1] !== targetHeight) {
258
+ node.size[1] = targetHeight;
259
+ node.graph.setDirtyCanvas(true);
260
+ }
261
+
262
+ // Ensure the node width meets the minimum width requirement
263
+ if (node.size[0] < minWidth) {
264
+ node.size[0] = minWidth;
265
+ node.graph.setDirtyCanvas(true);
266
+ }
267
+
268
+ // Position each of the widgets
269
+ for (const w of node.widgets) {
270
+ w.y = y;
271
+ if (w.type === "customCanvas") {
272
+ y += freeSpace;
273
+ } else if (w.computeSize) {
274
+ y += w.computeSize()[1] + 4;
275
+ } else {
276
+ y += NODE_WIDGET_HEIGHT + 4;
277
+ }
278
+ }
279
+
280
+ node.canvasHeight = freeSpace;
281
+ }
zavodik/nodes/ComfyUI-Impact-Pack/js/impact-image-util.js ADDED
@@ -0,0 +1,229 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import { ComfyApp, app } from "../../scripts/app.js";
2
+ import { api } from "../../scripts/api.js";
3
+
4
+ function load_image(str) {
5
+ let base64String = canvas.toDataURL('image/png');
6
+ let img = new Image();
7
+ img.src = base64String;
8
+ }
9
+
10
+ function getFileItem(baseType, path) {
11
+ try {
12
+ let pathType = baseType;
13
+
14
+ if (path.endsWith("[output]")) {
15
+ pathType = "output";
16
+ path = path.slice(0, -9);
17
+ } else if (path.endsWith("[input]")) {
18
+ pathType = "input";
19
+ path = path.slice(0, -8);
20
+ } else if (path.endsWith("[temp]")) {
21
+ pathType = "temp";
22
+ path = path.slice(0, -7);
23
+ }
24
+
25
+ const subfolder = path.substring(0, path.lastIndexOf('/'));
26
+ const filename = path.substring(path.lastIndexOf('/') + 1);
27
+
28
+ return {
29
+ filename: filename,
30
+ subfolder: subfolder,
31
+ type: pathType
32
+ };
33
+ }
34
+ catch(exception) {
35
+ return null;
36
+ }
37
+ }
38
+
39
+ async function loadImageFromUrl(image, node_id, v, need_to_load) {
40
+ let item = getFileItem('temp', v);
41
+
42
+ if(item) {
43
+ let params = `?node_id=${node_id}&filename=${item.filename}&type=${item.type}&subfolder=${item.subfolder}`;
44
+
45
+ let res = await api.fetchApi('/impact/set/pb_id_image'+params, { cache: "no-store" });
46
+ if(res.status == 200) {
47
+ let pb_id = await res.text();
48
+ if(need_to_load) {;
49
+ image.src = api.apiURL(`/view?filename=${item.filename}&type=${item.type}&subfolder=${item.subfolder}`);
50
+ }
51
+ return pb_id;
52
+ }
53
+ else {
54
+ return `$${node_id}-0`;
55
+ }
56
+ }
57
+ else {
58
+ return `$${node_id}-0`;
59
+ }
60
+ }
61
+
62
+ async function loadImageFromId(image, v) {
63
+ let res = await api.fetchApi('/impact/get/pb_id_image?id='+v, { cache: "no-store" });
64
+ if(res.status == 200) {
65
+ let item = await res.json();
66
+ image.src = api.apiURL(`/view?filename=${item.filename}&type=${item.type}&subfolder=${item.subfolder}`);
67
+ return true;
68
+ }
69
+
70
+ return false;
71
+ }
72
+
73
+ app.registerExtension({
74
+ name: "Comfy.Impact.img",
75
+
76
+ nodeCreated(node, app) {
77
+ if(node.comfyClass == "PreviewBridge" || node.comfyClass == "PreviewBridgeLatent") {
78
+ let w = node.widgets.find(obj => obj.name === 'image');
79
+ node._imgs = [new Image()];
80
+ node.imageIndex = 0;
81
+
82
+ Object.defineProperty(w, 'value', {
83
+ async set(v) {
84
+ if(w._lock)
85
+ return;
86
+
87
+ const stackTrace = new Error().stack;
88
+ if(stackTrace.includes('presetText.js'))
89
+ return;
90
+
91
+ var image = new Image();
92
+ if(v && v.constructor == String && v.startsWith('$')) {
93
+ // from node feedback
94
+ let need_to_load = node._imgs[0].src == '';
95
+ if(await loadImageFromId(image, v, need_to_load)) {
96
+ w._value = v;
97
+ if(node._imgs[0].src == '') {
98
+ node._imgs = [image];
99
+ }
100
+ }
101
+ else {
102
+ w._value = `$${node.id}-0`;
103
+ }
104
+ }
105
+ else {
106
+ // from clipspace
107
+ w._lock = true;
108
+ w._value = await loadImageFromUrl(image, node.id, v, false);
109
+ w._lock = false;
110
+ }
111
+ },
112
+ get() {
113
+ if(w._value == undefined) {
114
+ w._value = `$${node.id}-0`;
115
+ }
116
+ return w._value;
117
+ }
118
+ });
119
+
120
+ Object.defineProperty(node, 'imgs', {
121
+ set(v) {
122
+ const stackTrace = new Error().stack;
123
+ if(v && v.length == 0)
124
+ return;
125
+ else if(stackTrace.includes('pasteFromClipspace')) {
126
+ let sp = new URLSearchParams(v[0].src.split("?")[1]);
127
+ let str = "";
128
+ if(sp.get('subfolder')) {
129
+ str += sp.get('subfolder') + '/';
130
+ }
131
+ str += `${sp.get("filename")} [${sp.get("type")}]`;
132
+
133
+ w.value = str;
134
+ }
135
+
136
+ node._imgs = v;
137
+ },
138
+ get() {
139
+ return node._imgs;
140
+ }
141
+ });
142
+ }
143
+
144
+ if(node.comfyClass == "ImageReceiver") {
145
+ let path_widget = node.widgets.find(obj => obj.name === 'image');
146
+ let w = node.widgets.find(obj => obj.name === 'image_data');
147
+ let stw_widget = node.widgets.find(obj => obj.name === 'save_to_workflow');
148
+ w._value = "";
149
+
150
+ Object.defineProperty(w, 'value', {
151
+ set(v) {
152
+ if(v != '[IMAGE DATA]')
153
+ w._value = v;
154
+ },
155
+ get() {
156
+ const stackTrace = new Error().stack;
157
+ if(!stackTrace.includes('draw') && !stackTrace.includes('graphToPrompt') && stackTrace.includes('app.js')) {
158
+ return "[IMAGE DATA]";
159
+ }
160
+ else {
161
+ if(stw_widget.value)
162
+ return w._value;
163
+ else
164
+ return "";
165
+ }
166
+ }
167
+ });
168
+
169
+ let set_img_act = (v) => {
170
+ node._img = v;
171
+ var canvas = document.createElement('canvas');
172
+ canvas.width = v[0].width;
173
+ canvas.height = v[0].height;
174
+
175
+ var context = canvas.getContext('2d');
176
+ context.drawImage(v[0], 0, 0, v[0].width, v[0].height);
177
+
178
+ var base64Image = canvas.toDataURL('image/png');
179
+ w.value = base64Image;
180
+ };
181
+
182
+ Object.defineProperty(node, 'imgs', {
183
+ set(v) {
184
+ if (v && !v[0].complete) {
185
+ let orig_onload = v[0].onload;
186
+ v[0].onload = function(v2) {
187
+ if(orig_onload)
188
+ orig_onload();
189
+ set_img_act(v);
190
+ };
191
+ }
192
+ else {
193
+ set_img_act(v);
194
+ }
195
+ },
196
+ get() {
197
+ if(this._img == undefined && w.value != '') {
198
+ this._img = [new Image()];
199
+ if(stw_widget.value && w.value != '[IMAGE DATA]')
200
+ this._img[0].src = w.value;
201
+ }
202
+ else if(this._img == undefined && path_widget.value) {
203
+ let image = new Image();
204
+ image.src = path_widget.value;
205
+
206
+ try {
207
+ let item = getFileItem('temp', path_widget.value);
208
+ let params = `?filename=${item.filename}&type=${item.type}&subfolder=${item.subfolder}`;
209
+
210
+ let res = api.fetchApi('/view/validate'+params, { cache: "no-store" }).then(response => response);
211
+ if(res.status == 200) {
212
+ image.src = api.apiURL('/view'+params);
213
+ }
214
+
215
+ this._img = [new Image()]; // placeholder
216
+ image.onload = function(v) {
217
+ set_img_act([image]);
218
+ };
219
+ }
220
+ catch {
221
+
222
+ }
223
+ }
224
+ return this._img;
225
+ }
226
+ });
227
+ }
228
+ }
229
+ })
zavodik/nodes/ComfyUI-Impact-Pack/js/impact-pack.js ADDED
@@ -0,0 +1,988 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import { ComfyApp, app } from "../../scripts/app.js";
2
+ import { ComfyDialog, $el } from "../../scripts/ui.js";
3
+ import { api } from "../../scripts/api.js";
4
+ import { customAlert, isBeforeFrontendVersion } from "./common.js";
5
+
6
+ const is_legacy_front = () => isBeforeFrontendVersion('1.16.9');
7
+
8
+ if(is_legacy_front()) {
9
+ customAlert("An outdated version(<1.16.9) of the `comfyui-frontend-package` is installed. It is not compatible with the current version of the Impact Pack.");
10
+ }
11
+
12
+ let wildcards_list = [];
13
+ let wildcard_status = {
14
+ on_demand_mode: false,
15
+ total_available: 0,
16
+ loaded_count: 0,
17
+ last_update: null
18
+ };
19
+
20
+ async function load_wildcards() {
21
+ let res = await api.fetchApi('/impact/wildcards/list');
22
+ let data = await res.json();
23
+ wildcards_list = data.data;
24
+ }
25
+
26
+ async function load_wildcard_status() {
27
+ try {
28
+ let res = await api.fetchApi('/impact/wildcards/list/loaded');
29
+ let data = await res.json();
30
+ wildcard_status = {
31
+ on_demand_mode: data.on_demand_mode || false,
32
+ total_available: data.total_available || 0,
33
+ loaded_count: data.data ? data.data.length : 0,
34
+ last_update: new Date()
35
+ };
36
+ } catch (error) {
37
+ console.error('Failed to load wildcard status:', error);
38
+ }
39
+ }
40
+
41
+ export function get_wildcard_label() {
42
+ if (wildcard_status.on_demand_mode) {
43
+ return `Select Wildcard ๐Ÿ”ต On-Demand: ${wildcard_status.loaded_count} loaded`;
44
+ } else {
45
+ return `Select Wildcard ๐ŸŸข Full Cache`;
46
+ }
47
+ }
48
+
49
+ export function is_wildcard_label(value) {
50
+ // Check if value is a label (not an actual wildcard selection)
51
+ return value === "Select the Wildcard to add to the text" ||
52
+ value.startsWith("Select Wildcard ๐Ÿ”ต On-Demand:") ||
53
+ value === "Select Wildcard ๐ŸŸข Full Cache";
54
+ }
55
+
56
+ Promise.all([load_wildcards(), load_wildcard_status()]);
57
+
58
+ export function get_wildcards_list() {
59
+ return wildcards_list;
60
+ }
61
+
62
+ export { load_wildcard_status };
63
+
64
+ // temporary implementation (copying from https://github.com/pythongosssss/ComfyUI-WD14-Tagger)
65
+ // I think this should be included into master!!
66
+ class ImpactProgressBadge {
67
+ constructor() {
68
+ if (!window.__progress_badge__) {
69
+ window.__progress_badge__ = Symbol("__impact_progress_badge__");
70
+ }
71
+ this.symbol = window.__progress_badge__;
72
+ }
73
+
74
+ getState(node) {
75
+ return node[this.symbol] || {};
76
+ }
77
+
78
+ setState(node, state) {
79
+ node[this.symbol] = state;
80
+ app.canvas.setDirty(true);
81
+ }
82
+
83
+ addStatusHandler(nodeType) {
84
+ if (nodeType[this.symbol]?.statusTagHandler) {
85
+ return;
86
+ }
87
+ if (!nodeType[this.symbol]) {
88
+ nodeType[this.symbol] = {};
89
+ }
90
+ nodeType[this.symbol] = {
91
+ statusTagHandler: true,
92
+ };
93
+
94
+ api.addEventListener("impact/update_status", ({ detail }) => {
95
+ let { node, progress, text } = detail;
96
+ const n = app.graph.getNodeById(+(node || app.runningNodeId));
97
+ if (!n) return;
98
+ const state = this.getState(n);
99
+ state.status = Object.assign(state.status || {}, { progress: text ? progress : null, text: text || null });
100
+ this.setState(n, state);
101
+ });
102
+
103
+ const self = this;
104
+ const onDrawForeground = nodeType.prototype.onDrawForeground;
105
+ nodeType.prototype.onDrawForeground = function (ctx) {
106
+ const r = onDrawForeground?.apply?.(this, arguments);
107
+ const state = self.getState(this);
108
+ if (!state?.status?.text) {
109
+ return r;
110
+ }
111
+
112
+ const { fgColor, bgColor, text, progress, progressColor } = { ...state.status };
113
+
114
+ ctx.save();
115
+ ctx.font = "12px sans-serif";
116
+ const sz = ctx.measureText(text);
117
+ ctx.fillStyle = bgColor || "dodgerblue";
118
+ ctx.beginPath();
119
+ ctx.roundRect(0, -LiteGraph.NODE_TITLE_HEIGHT - 20, sz.width + 12, 20, 5);
120
+ ctx.fill();
121
+
122
+ if (progress) {
123
+ ctx.fillStyle = progressColor || "green";
124
+ ctx.beginPath();
125
+ ctx.roundRect(0, -LiteGraph.NODE_TITLE_HEIGHT - 20, (sz.width + 12) * progress, 20, 5);
126
+ ctx.fill();
127
+ }
128
+
129
+ ctx.fillStyle = fgColor || "#fff";
130
+ ctx.fillText(text, 6, -LiteGraph.NODE_TITLE_HEIGHT - 6);
131
+ ctx.restore();
132
+ return r;
133
+ };
134
+ }
135
+ }
136
+
137
+ const input_tracking = {};
138
+ const input_dirty = {};
139
+ const output_tracking = {};
140
+
141
+ function progressExecuteHandler(event) {
142
+ if(event.detail?.output?.aux){
143
+ const id = event.detail.node;
144
+ if(input_tracking.hasOwnProperty(id)) {
145
+ if(input_tracking.hasOwnProperty(id) && input_tracking[id][0] != event.detail.output.aux[0]) {
146
+ input_dirty[id] = true;
147
+ }
148
+ else{
149
+
150
+ }
151
+ }
152
+
153
+ input_tracking[id] = event.detail.output.aux;
154
+ }
155
+ }
156
+
157
+ function imgSendHandler(event) {
158
+ if(event.detail.images.length > 0){
159
+ let data = event.detail.images[0];
160
+ let filename = `${data.filename} [${data.type}]`;
161
+
162
+ let nodes = app.graph._nodes;
163
+ for(let i in nodes) {
164
+ if(nodes[i].type == 'ImageReceiver') {
165
+ let is_linked = false;
166
+
167
+ if(nodes[i].widgets[1].type == 'converted-widget') {
168
+ for(let j in nodes[i].inputs) {
169
+ let input = nodes[i].inputs[j];
170
+ if(input.name === 'link_id') {
171
+ if(input.link) {
172
+ let src_node = app.graph._nodes_by_id[app.graph.links[input.link].origin_id];
173
+ if(src_node.type == 'ImpactInt' || src_node.type == 'PrimitiveNode') {
174
+ is_linked = true;
175
+ }
176
+ }
177
+ break;
178
+ }
179
+ }
180
+ }
181
+ else if(nodes[i].widgets[1].value == event.detail.link_id) {
182
+ is_linked = true;
183
+ }
184
+
185
+ if(is_linked) {
186
+ if(data.subfolder)
187
+ nodes[i].widgets[0].value = `${data.subfolder}/${data.filename} [${data.type}]`;
188
+ else
189
+ nodes[i].widgets[0].value = `${data.filename} [${data.type}]`;
190
+
191
+ let img = new Image();
192
+ img.onload = (event) => {
193
+ nodes[i].imgs = [img];
194
+ nodes[i].size[1] = Math.max(200, nodes[i].size[1]);
195
+ app.canvas.setDirty(true);
196
+ };
197
+ img.src = `/view?filename=${data.filename}&type=${data.type}&subfolder=${data.subfolder}`+app.getPreviewFormatParam();
198
+ }
199
+ }
200
+ }
201
+ }
202
+ }
203
+
204
+
205
+ function latentSendHandler(event) {
206
+ if(event.detail.images.length > 0){
207
+ let data = event.detail.images[0];
208
+ let filename = `${data.filename} [${data.type}]`;
209
+
210
+ let nodes = app.graph._nodes;
211
+ for(let i in nodes) {
212
+ if(nodes[i].type == 'LatentReceiver') {
213
+ if(nodes[i].widgets[1].value == event.detail.link_id) {
214
+ if(data.subfolder)
215
+ nodes[i].widgets[0].value = `${data.subfolder}/${data.filename} [${data.type}]`;
216
+ else
217
+ nodes[i].widgets[0].value = `${data.filename} [${data.type}]`;
218
+
219
+ let img = new Image();
220
+ img.src = `/view?filename=${data.filename}&type=${data.type}&subfolder=${data.subfolder}`+app.getPreviewFormatParam();
221
+ nodes[i].imgs = [img];
222
+ nodes[i].size[1] = Math.max(200, nodes[i].size[1]);
223
+ }
224
+ }
225
+ }
226
+ }
227
+ }
228
+
229
+
230
+ function valueSendHandler(event) {
231
+ let nodes = app.graph._nodes;
232
+ for(let i in nodes) {
233
+ if(nodes[i].type == 'ImpactValueReceiver') {
234
+ if(nodes[i].widgets[2].value == event.detail.link_id) {
235
+ nodes[i].widgets[1].value = event.detail.value;
236
+
237
+ let typ = typeof event.detail.value;
238
+ if(typ == 'string') {
239
+ nodes[i].widgets[0].value = "STRING";
240
+ }
241
+ else if(typ == "boolean") {
242
+ nodes[i].widgets[0].value = "BOOLEAN";
243
+ }
244
+ else if(typ != "number") {
245
+ nodes[i].widgets[0].value = typeof event.detail.value;
246
+ }
247
+ else if(Number.isInteger(event.detail.value)) {
248
+ nodes[i].widgets[0].value = "INT";
249
+ }
250
+ else {
251
+ nodes[i].widgets[0].value = "FLOAT";
252
+ }
253
+ }
254
+ }
255
+ }
256
+ }
257
+
258
+
259
+ const impactProgressBadge = new ImpactProgressBadge();
260
+
261
+ api.addEventListener("stop-iteration", () => {
262
+ document.getElementById("autoQueueCheckbox").checked = false;
263
+ });
264
+ api.addEventListener("value-send", valueSendHandler);
265
+ api.addEventListener("img-send", imgSendHandler);
266
+ api.addEventListener("latent-send", latentSendHandler);
267
+ api.addEventListener("executed", progressExecuteHandler);
268
+
269
+ // Update wildcard status after workflow execution (on-demand mode)
270
+ api.addEventListener("executed", async (event) => {
271
+ if (wildcard_status.on_demand_mode) {
272
+ await load_wildcard_status();
273
+ await load_wildcards();
274
+ app.canvas.setDirty(true);
275
+ }
276
+ });
277
+
278
+ app.registerExtension({
279
+ name: "Comfy.Impack",
280
+
281
+ commands: [
282
+ {
283
+ id: 'refresh-impact-wildcard',
284
+ label: 'Impact: Refresh Wildcard',
285
+ function: async () => {
286
+ await api.fetchApi('/impact/wildcards/refresh');
287
+ await Promise.all([load_wildcards(), load_wildcard_status()]);
288
+ app.extensionManager.toast.add({
289
+ severity: 'info',
290
+ summary: 'Refreshed!',
291
+ detail: 'Impact Wildcard List is refreshed!!',
292
+ life: 3000
293
+ });
294
+ }
295
+ }
296
+ ],
297
+
298
+ menuCommands: [
299
+ {
300
+ path: ['Edit'],
301
+ commands: ['refresh-impact-wildcard']
302
+ }
303
+ ],
304
+
305
+ loadedGraphNode(node, app) {
306
+ if (node.comfyClass == "MaskPainter") {
307
+ input_dirty[node.id + ""] = true;
308
+ }
309
+ },
310
+
311
+ async beforeRegisterNodeDef(nodeType, nodeData, app) {
312
+ if (nodeData.name == "IterativeLatentUpscale" || nodeData.name == "IterativeImageUpscale"
313
+ || nodeData.name == "RegionalSampler"|| nodeData.name == "RegionalSamplerAdvanced") {
314
+ impactProgressBadge.addStatusHandler(nodeType);
315
+ }
316
+
317
+ if(nodeData.name == "ImpactControlBridge") {
318
+ const onConnectionsChange = nodeType.prototype.onConnectionsChange;
319
+ nodeType.prototype.onConnectionsChange = function (type, index, connected, link_info) {
320
+ if(index != 0 || !link_info || this.inputs[0].type != '*')
321
+ return;
322
+
323
+ // assign type
324
+ let slot_type = '*';
325
+
326
+ if(type == 2) {
327
+ slot_type = link_info.type;
328
+ }
329
+ else {
330
+ const node = app.graph.getNodeById(link_info.origin_id);
331
+ slot_type = node?.outputs[link_info.origin_slot]?.type;
332
+ }
333
+
334
+ this.inputs[0].type = slot_type;
335
+ this.outputs[0].type = slot_type;
336
+ this.outputs[0].label = slot_type;
337
+ }
338
+ }
339
+
340
+ if(nodeData.name == "ImpactConditionalBranch" || nodeData.name == "ImpactConditionalBranchSelMode") {
341
+ const onConnectionsChange = nodeType.prototype.onConnectionsChange;
342
+ nodeType.prototype.onConnectionsChange = function (type, index, connected, link_info) {
343
+ if(!link_info || this.inputs[0].type != '*')
344
+ return;
345
+
346
+ if(index >= 2)
347
+ return;
348
+
349
+ // assign type
350
+ let slot_type = '*';
351
+
352
+ if(type == 2) {
353
+ slot_type = link_info.type;
354
+ }
355
+ else {
356
+ const node = app.graph.getNodeById(link_info.origin_id);
357
+ slot_type = node?.outputs[link_info.origin_slot].type;
358
+ }
359
+
360
+ this.inputs[0].type = slot_type;
361
+ this.inputs[1].type = slot_type;
362
+ this.outputs[0].type = slot_type;
363
+ this.outputs[0].label = slot_type;
364
+ }
365
+ }
366
+
367
+ if(nodeData.name == "ImpactCompare") {
368
+ const onConnectionsChange = nodeType.prototype.onConnectionsChange;
369
+ nodeType.prototype.onConnectionsChange = function (type, index, connected, link_info) {
370
+ if(!link_info || this.inputs[0].type != '*' || type == 2)
371
+ return;
372
+
373
+ // assign type
374
+ const node = app.graph.getNodeById(link_info.origin_id);
375
+ let slot_type = node?.outputs[link_info.origin_slot].type;
376
+
377
+ this.inputs[0].type = slot_type;
378
+ this.inputs[1].type = slot_type;
379
+ }
380
+ }
381
+
382
+ if(nodeData.name == "ImpactSelectNthItemOfAnyList") {
383
+ const onConnectionsChange = nodeType.prototype.onConnectionsChange;
384
+ nodeType.prototype.onConnectionsChange = function (type, index, connected, link_info) {
385
+ if(!link_info || this.inputs[0].type != '*')
386
+ return;
387
+
388
+ if(index >= 2)
389
+ return;
390
+
391
+ // assign type
392
+ let slot_type = '*';
393
+
394
+ if(type == 2) {
395
+ slot_type = link_info.type;
396
+ }
397
+ else {
398
+ const node = app.graph.getNodeById(link_info.origin_id);
399
+ slot_type = node?.outputs[link_info.origin_slot].type;
400
+ }
401
+
402
+ this.inputs[0].type = slot_type;
403
+ this.outputs[0].type = slot_type;
404
+ this.outputs[0].label = slot_type;
405
+ }
406
+ }
407
+
408
+ if(nodeData.name === 'ImpactInversedSwitch') {
409
+ nodeData.output = ['*'];
410
+ nodeData.output_is_list = [false];
411
+ nodeData.output_name = ['output1'];
412
+
413
+ const onConnectionsChange = nodeType.prototype.onConnectionsChange;
414
+ nodeType.prototype.onConnectionsChange = function (type, index, connected, link_info) {
415
+ if(!link_info)
416
+ return;
417
+
418
+ // HOTFIX: subgraph
419
+ const stackTrace = new Error().stack;
420
+
421
+ if(stackTrace.includes('convertToSubgraph') || stackTrace.includes('Subgraph.configure')) {
422
+ return;
423
+ }
424
+
425
+ if(type == 2) {
426
+ // connect output
427
+ if(connected){
428
+ if(app.graph._nodes_by_id[link_info.target_id]?.type == 'Reroute') {
429
+ app.graph._nodes_by_id[link_info.target_id].disconnectInput(link_info.target_slot);
430
+ }
431
+
432
+ if(this.outputs[0].type == '*'){
433
+ if(link_info.type == '*' && app.graph.getNodeById(link_info.target_id).slots[link_info.target_slot].type != '*') {
434
+ app.graph._nodes_by_id[link_info.target_id].disconnectInput(link_info.target_slot);
435
+ }
436
+ else {
437
+ // propagate type
438
+ this.outputs[0].type = link_info.type;
439
+ this.outputs[0].name = link_info.type;
440
+
441
+ for(let i in this.inputs) {
442
+ if(this.inputs[i].name != 'select')
443
+ this.inputs[i].type = link_info.type;
444
+ }
445
+ }
446
+ }
447
+ }
448
+ }
449
+ else {
450
+ if(app.graph._nodes_by_id[link_info.origin_id]?.type == 'Reroute')
451
+ this.disconnectInput(link_info.target_slot);
452
+
453
+ // connect input
454
+ if(this.inputs[0].type == '*'){
455
+ const node = app.graph.getNodeById(link_info.origin_id);
456
+ let origin_type = node?.outputs[link_info.origin_slot]?.type;
457
+
458
+ if(origin_type==undefined) {
459
+ return; // fallback
460
+ }
461
+
462
+ if(origin_type == '*' && app.graph.getNodeById(link_info.origin_id).slots[link_info.origin_slot].type != '*') {
463
+ this.disconnectInput(link_info.target_slot);
464
+ return;
465
+ }
466
+
467
+ for(let i in this.inputs) {
468
+ if(this.inputs[i].name != 'select')
469
+ this.inputs[i].type = origin_type;
470
+ }
471
+
472
+ this.outputs[0].type = origin_type;
473
+ this.outputs[0].name = 'output1';
474
+ }
475
+
476
+ return;
477
+ }
478
+
479
+ if (!connected && this.outputs.length > 1) {
480
+ const stackTrace = new Error().stack;
481
+
482
+ if(
483
+ !stackTrace.includes('LGraphNode.prototype.connect') && // for touch device
484
+ !stackTrace.includes('LGraphNode.connect') && // for mouse device
485
+ !stackTrace.includes('loadGraphData')) {
486
+ if(this.outputs[link_info.origin_slot].links.length == 0) {
487
+ this.removeOutput(link_info.origin_slot);
488
+ }
489
+ }
490
+ }
491
+
492
+ let slot_i = 1;
493
+ for (let i = 0; i < this.outputs.length; i++) {
494
+ this.outputs[i].name = `output${slot_i}`
495
+ if (this.outputs[i].slot_index === undefined) {
496
+ this.outputs[i].slot_index = i;
497
+ }
498
+ slot_i++;
499
+ }
500
+
501
+ if(connected) {
502
+ // NOTE: node.slot_index is different with link_info.origin_slot
503
+ let last_slot_index = this.outputs.length - 1;
504
+ if (last_slot_index == link_info.origin_slot) {
505
+ this.addOutput(`output${slot_i}`, this.outputs[0].type);
506
+ }
507
+ }
508
+
509
+ let select_slot = this.inputs.find(x => x.name == "select");
510
+ if(this.widgets?.length) {
511
+ this.widgets[0].options.max = select_slot?this.outputs.length-1:this.outputs.length;
512
+ this.widgets[0].value = Math.min(this.widgets[0].value, this.widgets[0].options.max);
513
+ if(this.widgets[0].options.max > 0 && this.widgets[0].value == 0)
514
+ this.widgets[0].value = 1;
515
+ }
516
+ }
517
+ }
518
+
519
+ if (nodeData.name === 'ImpactMakeImageList' || nodeData.name === 'ImpactMakeImageBatch' ||
520
+ nodeData.name === 'ImpactMakeMaskList' || nodeData.name === 'ImpactMakeMaskBatch' ||
521
+ nodeData.name === 'ImpactMakeAnyList' || nodeData.name === 'CombineRegionalPrompts' ||
522
+ nodeData.name === 'ImpactCombineConditionings' || nodeData.name === 'ImpactConcatConditionings' ||
523
+ nodeData.name === 'ImpactSEGSConcat' ||
524
+ nodeData.name === 'ImpactSwitch' || nodeData.name === 'LatentSwitch' || nodeData.name == 'SEGSSwitch') {
525
+ var input_name = "input";
526
+
527
+ switch(nodeData.name) {
528
+ case 'ImpactMakeImageList':
529
+ case 'ImpactMakeImageBatch':
530
+ input_name = "image";
531
+ break;
532
+
533
+ case 'ImpactMakeMaskList':
534
+ case 'ImpactMakeMaskBatch':
535
+ input_name = "mask";
536
+ break;
537
+
538
+ case 'ImpactMakeAnyList':
539
+ input_name = "value";
540
+ break;
541
+
542
+ case 'ImpactSEGSConcat':
543
+ input_name = "segs";
544
+ break;
545
+
546
+ case 'CombineRegionalPrompts':
547
+ input_name = "regional_prompts";
548
+ break;
549
+
550
+ case 'ImpactCombineConditionings':
551
+ case 'ImpactConcatConditionings':
552
+ input_name = "conditioning";
553
+ break;
554
+
555
+ case 'LatentSwitch':
556
+ input_name = "input";
557
+ break;
558
+
559
+ case 'SEGSSwitch':
560
+ input_name = "input";
561
+ break;
562
+
563
+ case 'ImpactSwitch':
564
+ input_name = "input";
565
+ }
566
+
567
+ const onConnectionsChange = nodeType.prototype.onConnectionsChange;
568
+ nodeType.prototype.onConnectionsChange = function (type, index, connected, link_info) {
569
+ const stackTrace = new Error().stack;
570
+
571
+ // HOTFIX: subgraph
572
+ if(stackTrace.includes('convertToSubgraph') || stackTrace.includes('Subgraph.configure')) {
573
+ return;
574
+ }
575
+
576
+ if(stackTrace.includes('loadGraphData')) {
577
+ if(this.widgets?.[0]) {
578
+ this.widgets[0].options.max = this.inputs.length-3;
579
+ this.widgets[0].value = Math.min(this.widgets[0].value, this.widgets[0].options.max);
580
+ }
581
+ return;
582
+ }
583
+
584
+ if(stackTrace.includes('pasteFromClipboard')) {
585
+ if(this.widgets?.[0]) {
586
+ this.widgets[0].options.max = this.inputs.length-3;
587
+ this.widgets[0].value = Math.min(this.widgets[0].value, this.widgets[0].options.max);
588
+ }
589
+ return;
590
+ }
591
+
592
+ if(!link_info)
593
+ return;
594
+
595
+ if(type == 2) {
596
+ // connect output
597
+ if(connected && index == 0){
598
+ if(nodeData.name == 'ImpactSwitch' && app.graph._nodes_by_id[link_info.target_id]?.type == 'Reroute') {
599
+ app.graph._nodes_by_id[link_info.target_id].disconnectInput(link_info.target_slot);
600
+ }
601
+
602
+ if(this.outputs[0].type == '*'){
603
+ if(link_info.type == '*' && app.graph.getNodeById(link_info.target_id).slots[link_info.target_slot].type != '*') {
604
+ app.graph._nodes_by_id[link_info.target_id].disconnectInput(link_info.target_slot);
605
+ }
606
+ else {
607
+ // propagate type
608
+ this.outputs[0].type = link_info.type;
609
+ this.outputs[0].label = link_info.type;
610
+ this.outputs[0].name = link_info.type;
611
+
612
+ for(let i in this.inputs) {
613
+ let input_i = this.inputs[i];
614
+ if(input_i.name != 'select' && input_i.name != 'sel_mode')
615
+ input_i.type = link_info.type;
616
+ }
617
+ }
618
+ }
619
+ }
620
+
621
+ return;
622
+ }
623
+ else {
624
+ if(nodeData.name == 'ImpactSwitch' && app.graph._nodes_by_id[link_info.origin_id]?.type == 'Reroute')
625
+ this.disconnectInput(link_info.target_slot);
626
+
627
+ // connect input
628
+ if(this.inputs[index].name == 'select' || this.inputs[index].name == 'sel_mode')
629
+ return;
630
+
631
+ if(this.inputs[0].type == '*'){
632
+ const node = app.graph.getNodeById(link_info.origin_id);
633
+
634
+ // NOTE: node is undefined when subgraph editing mode
635
+ if(node) {
636
+ let origin_type = node.outputs[link_info.origin_slot]?.type;
637
+ if(link_info.target_slot == 0 && this.inputs.length > 3) { // NOTE: widgets are regarded as input since new front
638
+ origin_type = this.inputs[1].type;
639
+ node.connect(link_info.origin_slot, node.id, 'input1');
640
+ }
641
+
642
+ if(origin_type == '*' && app.graph.getNodeById(link_info.origin_id).slots[link_info.origin_slot].type != '*') {
643
+ this.disconnectInput(link_info.target_slot);
644
+ return;
645
+ }
646
+
647
+ for(let i in this.inputs) {
648
+ let input_i = this.inputs[i];
649
+ if(input_i.name != 'select' && input_i.name != 'sel_mode')
650
+ input_i.type = origin_type;
651
+ }
652
+
653
+ this.outputs[0].type = origin_type;
654
+ this.outputs[0].label = origin_type;
655
+ this.outputs[0].name = origin_type;
656
+ }
657
+ }
658
+ }
659
+
660
+ let widget_count = 0;
661
+ if(nodeData.name == 'ImpactSwitch' || nodeData.name == 'LatentSwitch' || nodeData.name == 'SEGSSwitch') {
662
+ widget_count += 1;
663
+ }
664
+
665
+ if (!connected && (this.inputs.length > widget_count+1)) {
666
+ if(
667
+ !stackTrace.includes('LGraphNode.prototype.connect') && // for touch device
668
+ !stackTrace.includes('LGraphNode.connect') && // for mouse device
669
+ !stackTrace.includes('loadGraphData') &&
670
+ this.inputs[index].name != 'select') {
671
+ this.removeInput(index);
672
+ }
673
+ }
674
+
675
+ let slot_i = 1;
676
+ for (let i = 0; i < this.inputs.length; i++) {
677
+ let input_i = this.inputs[i];
678
+ if(input_i.name != 'select'&& input_i.name != 'sel_mode') {
679
+ input_i.name = `${input_name}${slot_i}`
680
+ slot_i++;
681
+ }
682
+ }
683
+
684
+ if(connected) {
685
+ this.addInput(`${input_name}${slot_i}`, this.outputs[0].type);
686
+ }
687
+
688
+ if(this.widgets?.[0]) {
689
+ this.widgets[0].options.max = this.inputs.length-3;
690
+ this.widgets[0].value = Math.min(this.widgets[0].value, this.widgets[0].options.max);
691
+ }
692
+ }
693
+ }
694
+ },
695
+
696
+ nodeCreated(node, app) {
697
+ if(node.comfyClass == "MaskPainter") {
698
+ node.addWidget("button", "Edit mask", null, () => {
699
+ ComfyApp.copyToClipspace(node);
700
+ ComfyApp.clipspace_return_node = node;
701
+ ComfyApp.open_maskeditor();
702
+ });
703
+ }
704
+
705
+ switch(node.comfyClass) {
706
+ case "ToDetailerPipe":
707
+ case "ToDetailerPipeSDXL":
708
+ case "BasicPipeToDetailerPipe":
709
+ case "BasicPipeToDetailerPipeSDXL":
710
+ case "EditDetailerPipe":
711
+ case "FaceDetailer":
712
+ case "DetailerForEach":
713
+ case "DetailerForEachDebug":
714
+ case "DetailerForEachPipe":
715
+ case "DetailerForEachDebugPipe":
716
+ {
717
+ for(let i in node.widgets) {
718
+ let widget = node.widgets[i];
719
+ if(widget.type === "customtext") {
720
+ widget.dynamicPrompts = false;
721
+ widget.inputEl.placeholder = "wildcard spec: if kept empty, this option will be ignored";
722
+ widget.serializeValue = () => {
723
+ return node.widgets[i].value;
724
+ };
725
+ }
726
+ }
727
+ }
728
+ break;
729
+ }
730
+
731
+ if(node.comfyClass == "ImpactSEGSLabelFilter" || node.comfyClass == "SEGSLabelFilterDetailerHookProvider") {
732
+ node.widgets[0].callback = (value, canvas, node, pos, e) => {
733
+ if(node) {
734
+ if(node.widgets[1].value.trim() != "" && !node.widgets[1].value.trim().endsWith(","))
735
+ node.widgets[1].value += ", "
736
+
737
+ node.widgets[1].value += value;
738
+ if(node.widgets_values)
739
+ node.widgets_values[1] = node.widgets[1].value;
740
+ }
741
+ }
742
+
743
+ Object.defineProperty(node.widgets[0], "value", {
744
+ set: (value) => {
745
+ node._value = value;
746
+ },
747
+ get: () => {
748
+ return node._value;
749
+ }
750
+ });
751
+ }
752
+
753
+ if(node.comfyClass == "UltralyticsDetectorProvider") {
754
+ let model_name_widget = node.widgets.find((w) => w.name === "model_name");
755
+ let orig_draw = node.onDrawForeground;
756
+ node.onDrawForeground = function (ctx) {
757
+ const r = orig_draw?.apply?.(this, arguments);
758
+
759
+ let is_seg = model_name_widget.value?.startsWith('segm/') || model_name_widget.value?.includes('-seg');
760
+ if(!is_seg) {
761
+ var slot_pos = new Float32Array(2);
762
+ var pos = node.getConnectionPos(false, 1, slot_pos);
763
+
764
+ pos[0] -= node.pos[0] - 10;
765
+ pos[1] -= node.pos[1];
766
+
767
+ ctx.beginPath();
768
+ ctx.strokeStyle = "red";
769
+ ctx.lineWidth = 4;
770
+ ctx.moveTo(pos[0] - 5, pos[1] - 5);
771
+ ctx.lineTo(pos[0] + 5, pos[1] + 5);
772
+ ctx.moveTo(pos[0] + 5, pos[1] - 5);
773
+ ctx.lineTo(pos[0] - 5, pos[1] + 5);
774
+ ctx.stroke();
775
+ }
776
+ }
777
+ }
778
+
779
+ if(
780
+ node.comfyClass == "ImpactWildcardEncode" || node.comfyClass == "ImpactWildcardProcessor"
781
+ || node.comfyClass == "ToDetailerPipe" || node.comfyClass == "ToDetailerPipeSDXL"
782
+ || node.comfyClass == "EditDetailerPipe" || node.comfyClass == "EditDetailerPipeSDXL"
783
+ || node.comfyClass == "BasicPipeToDetailerPipe" || node.comfyClass == "BasicPipeToDetailerPipeSDXL") {
784
+ node._value = "Select the LoRA to add to the text";
785
+ node._wvalue = "Select the Wildcard to add to the text";
786
+
787
+ var tbox_id = 0;
788
+ var combo_id = 3;
789
+ var has_lora = true;
790
+
791
+ switch(node.comfyClass){
792
+ case "ImpactWildcardEncode":
793
+ tbox_id = 0;
794
+ combo_id = 3;
795
+ break;
796
+
797
+ case "ImpactWildcardProcessor":
798
+ tbox_id = 0;
799
+ combo_id = 4;
800
+ has_lora = false;
801
+ break;
802
+
803
+ case "ToDetailerPipe":
804
+ case "ToDetailerPipeSDXL":
805
+ case "EditDetailerPipe":
806
+ case "EditDetailerPipeSDXL":
807
+ case "BasicPipeToDetailerPipe":
808
+ case "BasicPipeToDetailerPipeSDXL":
809
+ tbox_id = 0;
810
+ combo_id = 1;
811
+ break;
812
+ }
813
+
814
+ node.widgets[combo_id+1].callback = async (value, canvas, node, pos, e) => {
815
+ if(node) {
816
+ if(node.widgets[tbox_id].value != '')
817
+ node.widgets[tbox_id].value += ', '
818
+
819
+ node.widgets[tbox_id].value += node._wildcard_value;
820
+
821
+ // Reload wildcard status to update loaded count
822
+ if (wildcard_status.on_demand_mode) {
823
+ await load_wildcard_status();
824
+ await load_wildcards();
825
+ app.canvas.setDirty(true);
826
+ }
827
+ }
828
+ }
829
+
830
+ Object.defineProperty(node.widgets[combo_id+1], "value", {
831
+ set: (value) => {
832
+ if (!is_wildcard_label(value))
833
+ node._wildcard_value = value;
834
+ },
835
+ get: () => { return get_wildcard_label(); }
836
+ });
837
+
838
+ Object.defineProperty(node.widgets[combo_id+1].options, "values", {
839
+ set: (x) => {},
840
+ get: () => {
841
+ return wildcards_list;
842
+ }
843
+ });
844
+
845
+ if(has_lora) {
846
+ node.widgets[combo_id].callback = (value, canvas, node, pos, e) => {
847
+ if(node) {
848
+ let lora_name = node._value;
849
+ if(lora_name.endsWith('.safetensors')) {
850
+ lora_name = lora_name.slice(0, -12);
851
+ }
852
+
853
+ node.widgets[tbox_id].value += `<lora:${lora_name}>`;
854
+ if(node.widgets_values) {
855
+ node.widgets_values[tbox_id] = node.widgets[tbox_id].value;
856
+ }
857
+ }
858
+ }
859
+
860
+ Object.defineProperty(node.widgets[combo_id], "value", {
861
+ set: (value) => {
862
+ if (value !== "Select the LoRA to add to the text")
863
+ node._value = value;
864
+ },
865
+
866
+ get: () => { return "Select the LoRA to add to the text"; }
867
+ });
868
+ }
869
+
870
+ // Preventing validation errors from occurring in any situation.
871
+ if(has_lora) {
872
+ node.widgets[combo_id].serializeValue = () => { return "Select the LoRA to add to the text"; }
873
+ }
874
+ node.widgets[combo_id+1].serializeValue = () => { return "Select the Wildcard to add to the text"; }
875
+ }
876
+
877
+ if(node.comfyClass == "ImpactWildcardProcessor" || node.comfyClass == "ImpactWildcardEncode") {
878
+ node.widgets[0].inputEl.placeholder = "Wildcard Prompt (User input)";
879
+ node.widgets[1].inputEl.placeholder = "Populated Prompt (Will be generated automatically)";
880
+ node.widgets[1].inputEl.disabled = true;
881
+
882
+ const populated_text_widget = node.widgets.find((w) => w.name == 'populated_text');
883
+ const mode_widget = node.widgets.find((w) => w.name == 'mode');
884
+
885
+ // mode combo
886
+ Object.defineProperty(mode_widget, "value", {
887
+ set: (value) => {
888
+ if(value == true)
889
+ node._mode_value = "populate";
890
+ else if(value == false)
891
+ node._mode_value = "fixed";
892
+ else
893
+ node._mode_value = value; // combo value
894
+
895
+ populated_text_widget.inputEl.disabled = node._mode_value == 'populate';
896
+ },
897
+ get: () => {
898
+ if(node._mode_value != undefined)
899
+ return node._mode_value;
900
+ else
901
+ return 'populate';
902
+ }
903
+ });
904
+ }
905
+
906
+ if (node.comfyClass == "MaskPainter") {
907
+ node.widgets[0].value = '#placeholder';
908
+
909
+ Object.defineProperty(node, "images", {
910
+ set: function(value) {
911
+ node._images = value;
912
+ },
913
+ get: function() {
914
+ const id = node.id+"";
915
+ if(node.widgets[0].value != '#placeholder') {
916
+ var need_invalidate = false;
917
+
918
+ if(input_dirty.hasOwnProperty(id) && input_dirty[id]) {
919
+ node.widgets[0].value = {...input_tracking[id][1]};
920
+ input_dirty[id] = false;
921
+ need_invalidate = true
922
+ this._images = app.nodeOutputs[id].images;
923
+ }
924
+
925
+ let filename = app.nodeOutputs[id]['aux'][1][0]['filename'];
926
+ let subfolder = app.nodeOutputs[id]['aux'][1][0]['subfolder'];
927
+ let type = app.nodeOutputs[id]['aux'][1][0]['type'];
928
+
929
+ let item =
930
+ {
931
+ image_hash: app.nodeOutputs[id]['aux'][0],
932
+ forward_filename: app.nodeOutputs[id]['aux'][1][0]['filename'],
933
+ forward_subfolder: app.nodeOutputs[id]['aux'][1][0]['subfolder'],
934
+ forward_type: app.nodeOutputs[id]['aux'][1][0]['type']
935
+ };
936
+
937
+ if(node._images) {
938
+ app.nodeOutputs[id].images = [{
939
+ ...node._images[0],
940
+ ...item
941
+ }];
942
+
943
+ node.widgets[0].value =
944
+ {
945
+ ...node._images[0],
946
+ ...item
947
+ };
948
+ }
949
+ else {
950
+ app.nodeOutputs[id].images = [{
951
+ ...item
952
+ }];
953
+
954
+ node.widgets[0].value =
955
+ {
956
+ ...item
957
+ };
958
+ }
959
+
960
+ if(need_invalidate) {
961
+ Promise.all(
962
+ app.nodeOutputs[id].images.map((src) => {
963
+ return new Promise((r) => {
964
+ const img = new Image();
965
+ img.onload = () => r(img);
966
+ img.onerror = () => r(null);
967
+ img.src = "/view?" + new URLSearchParams(src).toString();
968
+ });
969
+ })
970
+ ).then((imgs) => {
971
+ this.imgs = imgs.filter(Boolean);
972
+ this.setSizeForImage?.();
973
+ app.graph.setDirtyCanvas(true);
974
+ });
975
+
976
+ app.nodeOutputs[id].images[0] = { ...node.widgets[0].value };
977
+ }
978
+
979
+ return app.nodeOutputs[id].images;
980
+ }
981
+ else {
982
+ return node._images;
983
+ }
984
+ }
985
+ });
986
+ }
987
+ }
988
+ });
zavodik/nodes/ComfyUI-Impact-Pack/js/impact-sam-editor.js ADDED
@@ -0,0 +1,641 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import { app } from "../../scripts/app.js";
2
+ import { api } from "../../scripts/api.js";
3
+ import { ComfyDialog, $el } from "../../scripts/ui.js";
4
+ import { ComfyApp } from "../../scripts/app.js";
5
+ import { ClipspaceDialog } from "../../extensions/core/clipspace.js";
6
+
7
+ function addMenuHandler(nodeType, cb) {
8
+ const getOpts = nodeType.prototype.getExtraMenuOptions;
9
+ nodeType.prototype.getExtraMenuOptions = function () {
10
+ const r = getOpts.apply(this, arguments);
11
+ cb.apply(this, arguments);
12
+ return r;
13
+ };
14
+ }
15
+
16
+ // Helper function to convert a data URL to a Blob object
17
+ function dataURLToBlob(dataURL) {
18
+ const parts = dataURL.split(';base64,');
19
+ const contentType = parts[0].split(':')[1];
20
+ const byteString = atob(parts[1]);
21
+ const arrayBuffer = new ArrayBuffer(byteString.length);
22
+ const uint8Array = new Uint8Array(arrayBuffer);
23
+ for (let i = 0; i < byteString.length; i++) {
24
+ uint8Array[i] = byteString.charCodeAt(i);
25
+ }
26
+ return new Blob([arrayBuffer], { type: contentType });
27
+ }
28
+
29
+ function loadedImageToBlob(image) {
30
+ const canvas = document.createElement('canvas');
31
+
32
+ canvas.width = image.width;
33
+ canvas.height = image.height;
34
+
35
+ const ctx = canvas.getContext('2d');
36
+
37
+ ctx.drawImage(image, 0, 0);
38
+
39
+ const dataURL = canvas.toDataURL('image/png', 1);
40
+ const blob = dataURLToBlob(dataURL);
41
+
42
+ return blob;
43
+ }
44
+
45
+ async function uploadMask(filepath, formData) {
46
+ await api.fetchApi('/upload/mask', {
47
+ method: 'POST',
48
+ body: formData
49
+ }).then(response => {}).catch(error => {
50
+ console.error('Error:', error);
51
+ });
52
+
53
+ ComfyApp.clipspace.imgs[ComfyApp.clipspace['selectedIndex']] = new Image();
54
+ ComfyApp.clipspace.imgs[ComfyApp.clipspace['selectedIndex']].src = `view?filename=${filepath.filename}&type=${filepath.type}`;
55
+
56
+ if(ComfyApp.clipspace.images)
57
+ ComfyApp.clipspace.images[ComfyApp.clipspace['selectedIndex']] = filepath;
58
+
59
+ ClipspaceDialog.invalidatePreview();
60
+ }
61
+
62
+ class ImpactSamEditorDialog extends ComfyDialog {
63
+ static instance = null;
64
+
65
+ static getInstance() {
66
+ if(!ImpactSamEditorDialog.instance) {
67
+ ImpactSamEditorDialog.instance = new ImpactSamEditorDialog();
68
+ }
69
+
70
+ return ImpactSamEditorDialog.instance;
71
+ }
72
+
73
+ constructor() {
74
+ super();
75
+ this.element = $el("div.comfy-modal", { parent: document.body },
76
+ [ $el("div.comfy-modal-content",
77
+ [...this.createButtons()]),
78
+ ]);
79
+ }
80
+
81
+ createButtons() {
82
+ return [];
83
+ }
84
+
85
+ createButton(name, callback) {
86
+ var button = document.createElement("button");
87
+ button.innerText = name;
88
+ button.addEventListener("click", callback);
89
+ return button;
90
+ }
91
+
92
+ createLeftButton(name, callback) {
93
+ var button = this.createButton(name, callback);
94
+ button.style.cssFloat = "left";
95
+ button.style.marginRight = "4px";
96
+ return button;
97
+ }
98
+
99
+ createRightButton(name, callback) {
100
+ var button = this.createButton(name, callback);
101
+ button.style.cssFloat = "right";
102
+ button.style.marginLeft = "4px";
103
+ return button;
104
+ }
105
+
106
+ createLeftSlider(self, name, callback) {
107
+ const divElement = document.createElement('div');
108
+ divElement.id = "sam-confidence-slider";
109
+ divElement.style.cssFloat = "left";
110
+ divElement.style.fontFamily = "sans-serif";
111
+ divElement.style.marginRight = "4px";
112
+ divElement.style.color = "var(--input-text)";
113
+ divElement.style.backgroundColor = "var(--comfy-input-bg)";
114
+ divElement.style.borderRadius = "8px";
115
+ divElement.style.borderColor = "var(--border-color)";
116
+ divElement.style.borderStyle = "solid";
117
+ divElement.style.fontSize = "15px";
118
+ divElement.style.height = "21px";
119
+ divElement.style.padding = "1px 6px";
120
+ divElement.style.display = "flex";
121
+ divElement.style.position = "relative";
122
+ divElement.style.top = "2px";
123
+ self.confidence_slider_input = document.createElement('input');
124
+ self.confidence_slider_input.setAttribute('type', 'range');
125
+ self.confidence_slider_input.setAttribute('min', '0');
126
+ self.confidence_slider_input.setAttribute('max', '100');
127
+ self.confidence_slider_input.setAttribute('value', '70');
128
+ const labelElement = document.createElement("label");
129
+ labelElement.textContent = name;
130
+
131
+ divElement.appendChild(labelElement);
132
+ divElement.appendChild(self.confidence_slider_input);
133
+
134
+ self.confidence_slider_input.addEventListener("change", callback);
135
+
136
+ return divElement;
137
+ }
138
+
139
+ async detect_and_invalidate_mask_canvas(self) {
140
+ const mask_img = await self.detect(self);
141
+
142
+ const canvas = self.maskCtx.canvas;
143
+ const ctx = self.maskCtx;
144
+
145
+ ctx.clearRect(0, 0, canvas.width, canvas.height);
146
+
147
+ await new Promise((resolve, reject) => {
148
+ self.mask_image = new Image();
149
+ self.mask_image.onload = function() {
150
+ ctx.drawImage(self.mask_image, 0, 0, canvas.width, canvas.height);
151
+ resolve();
152
+ };
153
+ self.mask_image.onerror = reject;
154
+ self.mask_image.src = mask_img.src;
155
+ });
156
+ }
157
+
158
+ setlayout(imgCanvas, maskCanvas, pointsCanvas) {
159
+ const self = this;
160
+
161
+ // If it is specified as relative, using it only as a hidden placeholder for padding is recommended
162
+ // to prevent anomalies where it exceeds a certain size and goes outside of the window.
163
+ var placeholder = document.createElement("div");
164
+ placeholder.style.position = "relative";
165
+ placeholder.style.height = "50px";
166
+
167
+ var bottom_panel = document.createElement("div");
168
+ bottom_panel.style.position = "absolute";
169
+ bottom_panel.style.bottom = "0px";
170
+ bottom_panel.style.left = "20px";
171
+ bottom_panel.style.right = "20px";
172
+ bottom_panel.style.height = "50px";
173
+
174
+ var brush = document.createElement("div");
175
+ brush.id = "sam-brush";
176
+ brush.style.backgroundColor = "blue";
177
+ brush.style.outline = "2px solid pink";
178
+ brush.style.borderRadius = "50%";
179
+ brush.style.MozBorderRadius = "50%";
180
+ brush.style.WebkitBorderRadius = "50%";
181
+ brush.style.position = "absolute";
182
+ brush.style.zIndex = 100;
183
+ brush.style.pointerEvents = "none";
184
+ this.brush = brush;
185
+ this.element.appendChild(imgCanvas);
186
+ this.element.appendChild(maskCanvas);
187
+ this.element.appendChild(pointsCanvas);
188
+ this.element.appendChild(placeholder); // must below z-index than bottom_panel to avoid covering button
189
+ this.element.appendChild(bottom_panel);
190
+ document.body.appendChild(brush);
191
+ this.brush_size = 5;
192
+
193
+ var confidence_slider = this.createLeftSlider(self, "Confidence", (event) => {
194
+ self.confidence = event.target.value;
195
+ });
196
+
197
+ var clearButton = this.createLeftButton("Clear", () => {
198
+ self.maskCtx.clearRect(0, 0, self.maskCanvas.width, self.maskCanvas.height);
199
+ self.pointsCtx.clearRect(0, 0, self.pointsCanvas.width, self.pointsCanvas.height);
200
+
201
+ self.prompt_points = [];
202
+
203
+ self.invalidatePointsCanvas(self);
204
+ });
205
+
206
+ var detectButton = this.createLeftButton("Detect", () => self.detect_and_invalidate_mask_canvas(self));
207
+
208
+ var cancelButton = this.createRightButton("Cancel", () => {
209
+ document.removeEventListener("mouseup", ImpactSamEditorDialog.handleMouseUp);
210
+ document.removeEventListener("keydown", ImpactSamEditorDialog.handleKeyDown);
211
+ self.close();
212
+ });
213
+
214
+ self.saveButton = this.createRightButton("Save", () => {
215
+ document.removeEventListener("mouseup", ImpactSamEditorDialog.handleMouseUp);
216
+ document.removeEventListener("keydown", ImpactSamEditorDialog.handleKeyDown);
217
+ self.save(self);
218
+ });
219
+
220
+ var undoButton = this.createLeftButton("Undo", () => {
221
+ if(self.prompt_points.length > 0) {
222
+ self.prompt_points.pop();
223
+ self.pointsCtx.clearRect(0, 0, self.pointsCanvas.width, self.pointsCanvas.height);
224
+ self.invalidatePointsCanvas(self);
225
+ }
226
+ });
227
+
228
+ bottom_panel.appendChild(clearButton);
229
+ bottom_panel.appendChild(detectButton);
230
+ bottom_panel.appendChild(self.saveButton);
231
+ bottom_panel.appendChild(cancelButton);
232
+ bottom_panel.appendChild(confidence_slider);
233
+ bottom_panel.appendChild(undoButton);
234
+
235
+ imgCanvas.style.position = "relative";
236
+ imgCanvas.style.top = "200";
237
+ imgCanvas.style.left = "0";
238
+
239
+ maskCanvas.style.position = "absolute";
240
+ maskCanvas.style.opacity = 0.5;
241
+ pointsCanvas.style.position = "absolute";
242
+ }
243
+
244
+ show() {
245
+ this.mask_image = null;
246
+ self.prompt_points = [];
247
+
248
+ this.message_box = $el("p", ["Please wait a moment while the SAM model and the image are being loaded."]);
249
+ this.element.appendChild(this.message_box);
250
+
251
+ if(self.imgCtx) {
252
+ self.imgCtx.clearRect(0, 0, self.imageCanvas.width, self.imageCanvas.height);
253
+ }
254
+
255
+ const target_image_path = ComfyApp.clipspace.imgs[ComfyApp.clipspace['selectedIndex']].src;
256
+ this.load_sam(target_image_path);
257
+
258
+ if(!this.is_layout_created) {
259
+ // layout
260
+ const imgCanvas = document.createElement('canvas');
261
+ const maskCanvas = document.createElement('canvas');
262
+ const pointsCanvas = document.createElement('canvas');
263
+
264
+ imgCanvas.id = "imageCanvas";
265
+ maskCanvas.id = "samEditorMaskCanvas";
266
+ pointsCanvas.id = "pointsCanvas";
267
+
268
+ this.setlayout(imgCanvas, maskCanvas, pointsCanvas);
269
+
270
+ // prepare content
271
+ this.imgCanvas = imgCanvas;
272
+ this.maskCanvas = maskCanvas;
273
+ this.pointsCanvas = pointsCanvas;
274
+ this.maskCtx = maskCanvas.getContext('2d');
275
+ this.pointsCtx = pointsCanvas.getContext('2d');
276
+
277
+ this.is_layout_created = true;
278
+
279
+ // replacement of onClose hook since close is not real close
280
+ const self = this;
281
+ const observer = new MutationObserver(function(mutations) {
282
+ mutations.forEach(function(mutation) {
283
+ if (mutation.type === 'attributes' && mutation.attributeName === 'style') {
284
+ if(self.last_display_style && self.last_display_style != 'none' && self.element.style.display == 'none') {
285
+ ComfyApp.onClipspaceEditorClosed();
286
+ }
287
+
288
+ self.last_display_style = self.element.style.display;
289
+ }
290
+ });
291
+ });
292
+
293
+ const config = { attributes: true };
294
+ observer.observe(this.element, config);
295
+ }
296
+
297
+ this.setImages(target_image_path, this.imgCanvas, this.pointsCanvas);
298
+
299
+ if(ComfyApp.clipspace_return_node) {
300
+ this.saveButton.innerText = "Save to node";
301
+ }
302
+ else {
303
+ this.saveButton.innerText = "Save";
304
+ }
305
+ this.saveButton.disabled = true;
306
+
307
+ this.element.style.display = "block";
308
+ this.element.style.zIndex = 8888; // NOTE: alert dialog must be high priority.
309
+ }
310
+
311
+ updateBrushPreview(self, event) {
312
+ event.preventDefault();
313
+
314
+ const centerX = event.pageX;
315
+ const centerY = event.pageY;
316
+
317
+ const brush = self.brush;
318
+
319
+ brush.style.width = self.brush_size * 2 + "px";
320
+ brush.style.height = self.brush_size * 2 + "px";
321
+ brush.style.left = (centerX - self.brush_size) + "px";
322
+ brush.style.top = (centerY - self.brush_size) + "px";
323
+ }
324
+
325
+ setImages(target_image_path, imgCanvas, pointsCanvas) {
326
+ const imgCtx = imgCanvas.getContext('2d');
327
+ const maskCtx = this.maskCtx;
328
+ const maskCanvas = this.maskCanvas;
329
+
330
+ const self = this;
331
+
332
+ // image load
333
+ const orig_image = new Image();
334
+ window.addEventListener("resize", () => {
335
+ // repositioning
336
+ imgCanvas.width = window.innerWidth - 250;
337
+ imgCanvas.height = window.innerHeight - 200;
338
+
339
+ // redraw image
340
+ let drawWidth = orig_image.width;
341
+ let drawHeight = orig_image.height;
342
+
343
+ if (orig_image.width > imgCanvas.width) {
344
+ drawWidth = imgCanvas.width;
345
+ drawHeight = (drawWidth / orig_image.width) * orig_image.height;
346
+ }
347
+
348
+ if (drawHeight > imgCanvas.height) {
349
+ drawHeight = imgCanvas.height;
350
+ drawWidth = (drawHeight / orig_image.height) * orig_image.width;
351
+ }
352
+
353
+ imgCtx.drawImage(orig_image, 0, 0, drawWidth, drawHeight);
354
+
355
+ // update mask
356
+ let w = (drawWidth * imgCanvas.clientWidth/imgCanvas.width) + "px";
357
+ let h = (drawHeight * imgCanvas.clientHeight/imgCanvas.height) + "px";
358
+
359
+ pointsCanvas.width = drawWidth * imgCanvas.clientWidth/imgCanvas.width;
360
+ pointsCanvas.height = drawHeight * imgCanvas.clientHeight/imgCanvas.height;
361
+ pointsCanvas.style.top = imgCanvas.offsetTop + "px";
362
+ pointsCanvas.style.left = imgCanvas.offsetLeft + "px";
363
+
364
+ maskCanvas.width = pointsCanvas.width;
365
+ maskCanvas.height = pointsCanvas.height;
366
+ maskCanvas.style.top = imgCanvas.offsetTop + "px";
367
+ maskCanvas.style.left = imgCanvas.offsetLeft + "px";
368
+
369
+ self.invalidateMaskCanvas(self);
370
+ self.invalidatePointsCanvas(self);
371
+ });
372
+
373
+ // original image load
374
+ orig_image.onload = () => self.onLoaded(self);
375
+ const rgb_url = new URL(target_image_path);
376
+ rgb_url.searchParams.delete('channel');
377
+ rgb_url.searchParams.set('channel', 'rgb');
378
+ orig_image.src = rgb_url;
379
+ self.image = orig_image;
380
+ }
381
+
382
+ onLoaded(self) {
383
+ if(self.message_box) {
384
+ self.element.removeChild(self.message_box);
385
+ self.message_box = null;
386
+ }
387
+
388
+ window.dispatchEvent(new Event('resize'));
389
+
390
+ self.setEventHandler(pointsCanvas);
391
+ self.saveButton.disabled = false;
392
+ }
393
+
394
+ setEventHandler(targetCanvas) {
395
+ targetCanvas.addEventListener("contextmenu", (event) => {
396
+ event.preventDefault();
397
+ });
398
+
399
+ const self = this;
400
+ targetCanvas.addEventListener('pointermove', (event) => this.updateBrushPreview(self,event));
401
+ targetCanvas.addEventListener('pointerdown', (event) => this.handlePointerDown(self,event));
402
+ targetCanvas.addEventListener('pointerover', (event) => { this.brush.style.display = "block"; });
403
+ targetCanvas.addEventListener('pointerleave', (event) => { this.brush.style.display = "none"; });
404
+ document.addEventListener('keydown', ImpactSamEditorDialog.handleKeyDown);
405
+ }
406
+
407
+ static handleKeyDown(event) {
408
+ const self = ImpactSamEditorDialog.instance;
409
+ if (event.key === '=') { // positive
410
+ brush.style.backgroundColor = "blue";
411
+ brush.style.outline = "2px solid pink";
412
+ self.is_positive_mode = true;
413
+ } else if (event.key === '-') { // negative
414
+ brush.style.backgroundColor = "red";
415
+ brush.style.outline = "2px solid skyblue";
416
+ self.is_positive_mode = false;
417
+ }
418
+ }
419
+
420
+ is_positive_mode = true;
421
+ prompt_points = [];
422
+ confidence = 70;
423
+
424
+ invalidatePointsCanvas(self) {
425
+ const ctx = self.pointsCtx;
426
+
427
+ for (const i in self.prompt_points) {
428
+ const [is_positive, x, y] = self.prompt_points[i];
429
+
430
+ const scaledX = x * ctx.canvas.width / self.image.width;
431
+ const scaledY = y * ctx.canvas.height / self.image.height;
432
+
433
+ if(is_positive)
434
+ ctx.fillStyle = "blue";
435
+ else
436
+ ctx.fillStyle = "red";
437
+ ctx.beginPath();
438
+ ctx.arc(scaledX, scaledY, 3, 0, 3 * Math.PI);
439
+ ctx.fill();
440
+ }
441
+ }
442
+
443
+ invalidateMaskCanvas(self) {
444
+ if(self.mask_image) {
445
+ self.maskCtx.clearRect(0, 0, self.maskCanvas.width, self.maskCanvas.height);
446
+ self.maskCtx.drawImage(self.mask_image, 0, 0, self.maskCanvas.width, self.maskCanvas.height);
447
+ }
448
+ }
449
+
450
+ async load_sam(url) {
451
+ const parsedUrl = new URL(url);
452
+ const searchParams = new URLSearchParams(parsedUrl.search);
453
+
454
+ const filename = searchParams.get("filename") || "";
455
+ const fileType = searchParams.get("type") || "";
456
+ const subfolder = searchParams.get("subfolder") || "";
457
+
458
+ const data = {
459
+ sam_model_name: "auto",
460
+ filename: filename,
461
+ type: fileType,
462
+ subfolder: subfolder
463
+ };
464
+
465
+ api.fetchApi('/sam/prepare', {
466
+ method: 'POST',
467
+ headers: { 'Content-Type': 'application/json' },
468
+ body: JSON.stringify(data)
469
+ });
470
+ }
471
+
472
+ async detect(self) {
473
+ const positive_points = [];
474
+ const negative_points = [];
475
+
476
+ for(const i in self.prompt_points) {
477
+ const [is_positive, x, y] = self.prompt_points[i];
478
+ const point = [x,y];
479
+ if(is_positive) {
480
+ positive_points.push(point);
481
+ }
482
+ else
483
+ negative_points.push(point);
484
+ }
485
+
486
+ const data = {
487
+ positive_points: positive_points,
488
+ negative_points: negative_points,
489
+ threshold: self.confidence/100
490
+ };
491
+
492
+ const response = await api.fetchApi('/sam/detect', {
493
+ method: 'POST',
494
+ headers: { 'Content-Type': 'image/png' },
495
+ body: JSON.stringify(data)
496
+ });
497
+
498
+ const blob = await response.blob();
499
+ const url = URL.createObjectURL(blob);
500
+
501
+ return new Promise((resolve, reject) => {
502
+ const image = new Image();
503
+ image.onload = () => resolve(image);
504
+ image.onerror = reject;
505
+ image.src = url;
506
+ });
507
+ }
508
+
509
+ handlePointerDown(self, event) {
510
+ if ([0, 2, 5].includes(event.button)) {
511
+ event.preventDefault();
512
+ const x = event.offsetX || event.targetTouches[0].clientX - maskRect.left;
513
+ const y = event.offsetY || event.targetTouches[0].clientY - maskRect.top;
514
+
515
+ const originalX = x * self.image.width / self.pointsCanvas.clientWidth;
516
+ const originalY = y * self.image.height / self.pointsCanvas.clientHeight;
517
+
518
+ var point = null;
519
+ if (event.button == 0) {
520
+ // positive
521
+ point = [true, originalX, originalY];
522
+ } else {
523
+ // negative
524
+ point = [false, originalX, originalY];
525
+ }
526
+
527
+ self.prompt_points.push(point);
528
+
529
+ self.invalidatePointsCanvas(self);
530
+ }
531
+ }
532
+
533
+ async save(self) {
534
+ if(!self.mask_image) {
535
+ this.close();
536
+ return;
537
+ }
538
+
539
+ const save_canvas = document.createElement('canvas');
540
+
541
+ const save_ctx = save_canvas.getContext('2d', {willReadFrequently:true});
542
+ save_canvas.width = self.mask_image.width;
543
+ save_canvas.height = self.mask_image.height;
544
+
545
+ save_ctx.drawImage(self.mask_image, 0, 0, save_canvas.width, save_canvas.height);
546
+
547
+ const save_data = save_ctx.getImageData(0, 0, save_canvas.width, save_canvas.height);
548
+
549
+ // refine mask image
550
+ for (let i = 0; i < save_data.data.length; i += 4) {
551
+ if(save_data.data[i]) {
552
+ save_data.data[i+3] = 0;
553
+ }
554
+ else {
555
+ save_data.data[i+3] = 255;
556
+ }
557
+
558
+ save_data.data[i] = 0;
559
+ save_data.data[i+1] = 0;
560
+ save_data.data[i+2] = 0;
561
+ }
562
+
563
+ save_ctx.globalCompositeOperation = 'source-over';
564
+ save_ctx.putImageData(save_data, 0, 0);
565
+
566
+ const formData = new FormData();
567
+ const filename = "clipspace-mask-" + performance.now() + ".png";
568
+
569
+ const item =
570
+ {
571
+ "filename": filename,
572
+ "subfolder": "",
573
+ "type": "temp",
574
+ };
575
+
576
+ if(ComfyApp.clipspace.images)
577
+ ComfyApp.clipspace.images[0] = item;
578
+
579
+ if(ComfyApp.clipspace.widgets) {
580
+ const index = ComfyApp.clipspace.widgets.findIndex(obj => obj.name === 'image');
581
+
582
+ if(index >= 0)
583
+ ComfyApp.clipspace.widgets[index].value = `${filename} [temp]`;
584
+ }
585
+
586
+ const dataURL = save_canvas.toDataURL();
587
+ const blob = dataURLToBlob(dataURL);
588
+
589
+ let original_url = new URL(this.image.src);
590
+
591
+ const original_ref = { filename: original_url.searchParams.get('filename') };
592
+
593
+ let original_subfolder = original_url.searchParams.get("subfolder");
594
+ if(original_subfolder)
595
+ original_ref.subfolder = original_subfolder;
596
+
597
+ let original_type = original_url.searchParams.get("type");
598
+ if(original_type)
599
+ original_ref.type = original_type;
600
+
601
+ formData.append('image', blob, filename);
602
+ formData.append('original_ref', JSON.stringify(original_ref));
603
+ formData.append('type', "temp");
604
+
605
+ await uploadMask(item, formData);
606
+ ComfyApp.onClipspaceEditorSave();
607
+ this.close();
608
+ }
609
+ }
610
+
611
+ app.registerExtension({
612
+ name: "Comfy.Impact.SAMEditor",
613
+ init(app) {
614
+ const callback =
615
+ function () {
616
+ let dlg = ImpactSamEditorDialog.getInstance();
617
+ dlg.show();
618
+ };
619
+
620
+ const context_predicate = () => ComfyApp.clipspace && ComfyApp.clipspace.imgs && ComfyApp.clipspace.imgs.length > 0
621
+ ClipspaceDialog.registerButton("Impact SAM Detector", context_predicate, callback);
622
+ },
623
+
624
+ async beforeRegisterNodeDef(nodeType, nodeData, app) {
625
+ if (Array.isArray(nodeData.output) && (nodeData.output.includes("MASK") || nodeData.output.includes("IMAGE"))) {
626
+ addMenuHandler(nodeType, function (_, options) {
627
+ options.unshift({
628
+ content: "Open in SAM Detector",
629
+ callback: () => {
630
+ ComfyApp.copyToClipspace(this);
631
+ ComfyApp.clipspace_return_node = this;
632
+
633
+ let dlg = ImpactSamEditorDialog.getInstance();
634
+ dlg.show();
635
+ },
636
+ });
637
+ });
638
+ }
639
+ }
640
+ });
641
+
zavodik/nodes/ComfyUI-Impact-Pack/js/impact-segs-picker.js ADDED
@@ -0,0 +1,182 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import { ComfyApp, app } from "../../scripts/app.js";
2
+ import { ComfyDialog, $el } from "../../scripts/ui.js";
3
+ import { api } from "../../scripts/api.js";
4
+
5
+ async function open_picker(node) {
6
+ const resp = await api.fetchApi(`/impact/segs/picker/count?id=${node.id}`);
7
+ const body = await resp.text();
8
+
9
+ let cnt = parseInt(body);
10
+
11
+ var existingPicker = document.getElementById('impact-picker');
12
+ if (existingPicker) {
13
+ existingPicker.parentNode.removeChild(existingPicker);
14
+ }
15
+
16
+ var gallery = document.createElement('div');
17
+ gallery.id = 'impact-picker';
18
+
19
+ gallery.style.position = "absolute";
20
+ gallery.style.height = "80%";
21
+ gallery.style.width = "80%";
22
+ gallery.style.top = "10%";
23
+ gallery.style.left = "10%";
24
+ gallery.style.display = 'flex';
25
+ gallery.style.flexWrap = 'wrap';
26
+ gallery.style.maxHeight = '600px';
27
+ gallery.style.overflow = 'auto';
28
+ gallery.style.backgroundColor = 'rgba(0,0,0,0.3)';
29
+ gallery.style.padding = '20px';
30
+ gallery.draggable = false;
31
+ gallery.style.zIndex = 5000;
32
+
33
+ var doneButton = document.createElement('button');
34
+ doneButton.textContent = 'Done';
35
+ doneButton.style.padding = '10px 10px';
36
+ doneButton.style.border = 'none';
37
+ doneButton.style.borderRadius = '5px';
38
+ doneButton.style.fontFamily = 'Arial, sans-serif';
39
+ doneButton.style.fontSize = '16px';
40
+ doneButton.style.fontWeight = 'bold';
41
+ doneButton.style.color = '#fff';
42
+ doneButton.style.background = 'linear-gradient(to bottom, #0070B8, #003D66)';
43
+ doneButton.style.boxShadow = '0 2px 4px rgba(0, 0, 0, 0.4)';
44
+ doneButton.style.margin = "20px";
45
+ doneButton.style.height = "40px";
46
+
47
+ var cancelButton = document.createElement('button');
48
+ cancelButton.textContent = 'Cancel';
49
+ cancelButton.style.padding = '10px 10px';
50
+ cancelButton.style.border = 'none';
51
+ cancelButton.style.borderRadius = '5px';
52
+ cancelButton.style.fontFamily = 'Arial, sans-serif';
53
+ cancelButton.style.fontSize = '16px';
54
+ cancelButton.style.fontWeight = 'bold';
55
+ cancelButton.style.color = '#fff';
56
+ cancelButton.style.background = 'linear-gradient(to bottom, #ff70B8, #ff3D66)';
57
+ cancelButton.style.boxShadow = '0 2px 4px rgba(0, 0, 0, 0.4)';
58
+ cancelButton.style.margin = "20px";
59
+ cancelButton.style.height = "40px";
60
+
61
+ const w = node.widgets.find((w) => w.name == 'picks');
62
+ let prev_selected = w.value.split(',').map(function(item) {
63
+ return parseInt(item, 10);
64
+ });
65
+
66
+ let images = [];
67
+ doneButton.onclick = () => {
68
+ var result = '';
69
+ for(let i in images) {
70
+ if(images[i].isSelected) {
71
+ if(result != '')
72
+ result += ', ';
73
+
74
+ result += (parseInt(i)+1);
75
+ }
76
+ }
77
+
78
+ w.value = result;
79
+
80
+ gallery.parentNode.removeChild(gallery);
81
+ }
82
+
83
+ cancelButton.onclick = () => {
84
+ gallery.parentNode.removeChild(gallery);
85
+ }
86
+
87
+ var panel = document.createElement('div');
88
+ panel.style.clear = 'both';
89
+ panel.style.width = '100%';
90
+ panel.style.height = '40px';
91
+ panel.style.justifyContent = 'center';
92
+ panel.style.alignItems = 'center';
93
+ panel.style.display = 'flex';
94
+ panel.appendChild(doneButton);
95
+ panel.appendChild(cancelButton);
96
+ gallery.appendChild(panel);
97
+
98
+ var hint = document.createElement('label');
99
+ hint.style.position = 'absolute';
100
+ hint.innerHTML = 'Click: Toggle Selection<BR>Ctrl-click: Single Selection';
101
+ gallery.appendChild(hint);
102
+
103
+ let max_size = 300;
104
+
105
+ for(let i=0; i<cnt; i++) {
106
+ let image = new Image();
107
+ image.src = `/impact/segs/picker/view?id=${node.id}&idx=${i}`;
108
+ image.style.margin = '10px';
109
+ image.draggable = false;
110
+ images.push(image);
111
+ image.isSelected = prev_selected.includes(i + 1);
112
+ if(image.isSelected) {
113
+ image.style.border = '2px solid #006699';
114
+ }
115
+
116
+ image.onload = function() {
117
+ var ratio = 1.0;
118
+ if(image.naturalWidth > image.naturalHeight) {
119
+ ratio = max_size/image.naturalWidth;
120
+ }
121
+ else {
122
+ ratio = max_size/image.naturalHeight;
123
+ }
124
+
125
+ let width = image.naturalWidth * ratio;
126
+ let height = image.naturalHeight * ratio;
127
+
128
+ if(width < height) {
129
+ this.style.marginLeft = (200-width)/2+"px";
130
+ }
131
+ else{
132
+ this.style.marginTop = (200-height)/2+"px";
133
+ }
134
+
135
+ this.style.width = width+"px";
136
+ this.style.height = height+"px";
137
+ this.style.objectFit = 'cover';
138
+ }
139
+
140
+ image.addEventListener('click', function(event) {
141
+ if(event.ctrlKey) {
142
+ for(let i in images) {
143
+ if(images[i].isSelected) {
144
+ images[i].style.border = 'none';
145
+ images[i].isSelected = false;
146
+ }
147
+ }
148
+
149
+ image.style.border = '2px solid #006699';
150
+ image.isSelected = true;
151
+
152
+ return;
153
+ }
154
+
155
+ if(image.isSelected) {
156
+ image.style.border = 'none';
157
+ image.isSelected = false;
158
+ }
159
+ else {
160
+ image.style.border = '2px solid #006699';
161
+ image.isSelected = true;
162
+ }
163
+ });
164
+
165
+ gallery.appendChild(image);
166
+ }
167
+
168
+ document.body.appendChild(gallery);
169
+ }
170
+
171
+
172
+ app.registerExtension({
173
+ name: "Comfy.Impack.Picker",
174
+
175
+ nodeCreated(node, app) {
176
+ if(node.comfyClass == "ImpactSEGSPicker") {
177
+ node.addWidget("button", "pick", "image", () => {
178
+ open_picker(node);
179
+ });
180
+ }
181
+ }
182
+ });
zavodik/nodes/ComfyUI-Impact-Pack/js/mask-rect-area-advanced.js ADDED
@@ -0,0 +1,459 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import { app } from "../../scripts/app.js";
2
+ import { readLinkedNumber, getDrawColor, computeCanvasSize } from "./common.js";
3
+ function showPreviewCanvas(node, app) {
4
+
5
+ const widget = {
6
+ type: "customCanvas",
7
+ name: "mask-rect-area-canvas",
8
+ get value() {
9
+ return this.canvas.value;
10
+ },
11
+ set value(x) {
12
+ this.canvas.value = x;
13
+ },
14
+ draw: function (ctx, node, widgetWidth, widgetY) {
15
+
16
+ // If we are initially offscreen when created we wont have received a resize event
17
+ // Calculate it here instead
18
+ if (!node.canvasHeight) {
19
+ computeCanvasSize(node, node.size, 220, 240);
20
+ }
21
+
22
+ const visible = true;
23
+ const t = ctx.getTransform();
24
+ const margin = 12;
25
+ const border = 2;
26
+ const widgetHeight = node.canvasHeight;
27
+
28
+ // Keep preview in sync when inputs are driven by links.
29
+ syncLinkedInputsToPropertiesAdvanced(node);
30
+
31
+ const width = Math.max(1, Math.round(node.properties["width"]));
32
+ const height = Math.max(1, Math.round(node.properties["height"]));
33
+ const scale = Math.min(
34
+ (widgetWidth - margin * 3) / width,
35
+ (widgetHeight - margin * 3) / height
36
+ );
37
+ const blurRadius = node.properties["blur_radius"] || 0;
38
+ const index = 0;
39
+
40
+ Object.assign(this.canvas.style, {
41
+ left: `${t.e}px`,
42
+ top: `${t.f + (widgetY * t.d)}px`,
43
+ width: `${widgetWidth * t.a}px`,
44
+ height: `${widgetHeight * t.d}px`,
45
+ position: "absolute",
46
+ zIndex: 1,
47
+ fontSize: `${t.d * 10.0}px`,
48
+ pointerEvents: "none"
49
+ });
50
+
51
+ this.canvas.hidden = !visible;
52
+
53
+ let backgroundWidth = width * scale;
54
+ let backgroundHeight = height * scale;
55
+
56
+ let xOffset = margin;
57
+ if (backgroundWidth < widgetWidth) {
58
+ xOffset += (widgetWidth - backgroundWidth) / 2 - margin;
59
+ }
60
+ let yOffset = (margin / 2);
61
+ if (backgroundHeight < widgetHeight) {
62
+ yOffset += (widgetHeight - backgroundHeight) / 2 - margin;
63
+ }
64
+
65
+ let widgetX = xOffset;
66
+ widgetY = widgetY + yOffset;
67
+
68
+ // Draw the background border
69
+ ctx.fillStyle = globalThis.LiteGraph.WIDGET_OUTLINE_COLOR;
70
+ ctx.fillRect(widgetX - border, widgetY - border, backgroundWidth + border * 2, backgroundHeight + border * 2)
71
+
72
+ // Draw the main background area
73
+ ctx.fillStyle = globalThis.LiteGraph.WIDGET_BGCOLOR;
74
+ ctx.fillRect(widgetX, widgetY, backgroundWidth, backgroundHeight);
75
+
76
+ // Draw the conditioning zone
77
+ let [x, y, w, h] = getDrawArea(node, backgroundWidth, backgroundHeight);
78
+
79
+ ctx.fillStyle = getDrawColor(0, "80");
80
+ ctx.fillRect(widgetX + x, widgetY + y, w, h);
81
+ ctx.beginPath();
82
+ ctx.lineWidth = 1;
83
+
84
+ // Draw grid lines
85
+ for (let x = 0; x <= width / 64; x += 1) {
86
+ ctx.moveTo(widgetX + x * 64 * scale, widgetY);
87
+ ctx.lineTo(widgetX + x * 64 * scale, widgetY + backgroundHeight);
88
+ }
89
+
90
+ for (let y = 0; y <= height / 64; y += 1) {
91
+ ctx.moveTo(widgetX, widgetY + y * 64 * scale);
92
+ ctx.lineTo(widgetX + backgroundWidth, widgetY + y * 64 * scale);
93
+ }
94
+
95
+ ctx.strokeStyle = "#66666650";
96
+ ctx.stroke();
97
+ ctx.closePath();
98
+
99
+ // Draw current zone
100
+ let [sx, sy, sw, sh] = getDrawArea(node, backgroundWidth, backgroundHeight);
101
+
102
+ ctx.fillStyle = getDrawColor(0, "80");
103
+ ctx.fillRect(widgetX + sx, widgetY + sy, sw, sh);
104
+
105
+ ctx.fillStyle = getDrawColor(0, "40");
106
+ ctx.fillRect(widgetX + sx + border, widgetY + sy + border, sw - border * 2, sh - border * 2);
107
+
108
+ // Draw white border around the current zone
109
+ ctx.strokeStyle = globalThis.LiteGraph.NODE_SELECTED_TITLE_COLOR;
110
+ ctx.lineWidth = 2;
111
+ ctx.strokeRect(widgetX + sx, widgetY + sy, sw, sh);
112
+
113
+ // Display
114
+ ctx.beginPath();
115
+
116
+ ctx.arc(LiteGraph.NODE_SLOT_HEIGHT * 0.5, LiteGraph.NODE_SLOT_HEIGHT * (index + 0.5) + 4, 4, 0, Math.PI * 2);
117
+ ctx.fill();
118
+
119
+ ctx.lineWidth = 1;
120
+ ctx.strokeStyle = "white";
121
+ ctx.stroke();
122
+
123
+ ctx.lineWidth = 1;
124
+ ctx.closePath();
125
+
126
+ // Draw progress bar canvas
127
+ if (backgroundWidth < widgetWidth) {
128
+ xOffset += (widgetWidth - backgroundWidth) / 2 - margin;
129
+ }
130
+
131
+ // Adjust X and Y coordinates
132
+ const barHeight = 8;
133
+ let widgetYBar = widgetY + backgroundHeight + margin;
134
+
135
+ // Draw the border around the progress bar
136
+ ctx.fillStyle = globalThis.LiteGraph.WIDGET_OUTLINE_COLOR;
137
+ ctx.fillRect(
138
+ widgetX - border,
139
+ widgetYBar - border,
140
+ backgroundWidth + border * 2,
141
+ barHeight + border * 2
142
+ );
143
+
144
+ // Draw the main bar area (background)
145
+ ctx.fillStyle = globalThis.LiteGraph.WIDGET_BGCOLOR;
146
+ ctx.fillRect(
147
+ widgetX,
148
+ widgetYBar,
149
+ backgroundWidth,
150
+ barHeight
151
+ );
152
+
153
+ // Draw progress bar grid
154
+ ctx.beginPath();
155
+ ctx.lineWidth = 1;
156
+ ctx.strokeStyle = "#66666650";
157
+
158
+ // Calculate the number of grid lines based on the bar size
159
+ const numLines = Math.floor(backgroundWidth / 64);
160
+
161
+ // Draw grid lines
162
+ for (let x = 0; x <= width / 64; x += 1) {
163
+ ctx.moveTo(widgetX + x * 64 * scale, widgetYBar);
164
+ ctx.lineTo(widgetX + x * 64 * scale, widgetYBar + barHeight);
165
+ }
166
+ ctx.stroke();
167
+ ctx.closePath();
168
+
169
+ // Draw progress (based on blur_radius)
170
+ const progress = Math.min(blurRadius / 255, 1);
171
+ ctx.fillStyle = "rgba(0, 120, 255, 0.5)";
172
+
173
+ ctx.fillRect(
174
+ widgetX,
175
+ widgetYBar,
176
+ backgroundWidth * progress,
177
+ barHeight
178
+ );
179
+ }
180
+ };
181
+
182
+ widget.canvas = document.createElement("canvas");
183
+ widget.canvas.className = "mask-rect-area-canvas";
184
+ widget.parent = node;
185
+
186
+ widget.computeLayoutSize = function (node) {
187
+ return {
188
+ minHeight: 200,
189
+ maxHeight: 300
190
+ };
191
+ };
192
+
193
+ document.body.appendChild(widget.canvas);
194
+ node.addCustomWidget(widget);
195
+
196
+ app.canvas.onDrawBackground = function () {
197
+ // Draw node isnt fired once the node is off the screen
198
+ // if it goes off screen quickly, the input may not be removed
199
+ // this shifts it off screen so it can be moved back if the node is visible.
200
+ for (let n in app.graph._nodes) {
201
+ n = app.graph._nodes[n];
202
+ for (let w in n.widgets) {
203
+ let wid = n.widgets[w];
204
+ if (Object.hasOwn(wid, "canvas")) {
205
+ wid.canvas.style.left = -8000 + "px";
206
+ wid.canvas.style.position = "absolute";
207
+ }
208
+ }
209
+ }
210
+ };
211
+
212
+ node.onResize = function (size) {
213
+ computeCanvasSize(node, size, 220, 240);
214
+ };
215
+
216
+ return {minWidth: 200, minHeight: 200, widget};
217
+ }
218
+
219
+ app.registerExtension({
220
+ name: "drltdata.MaskRectAreaAdvanced",
221
+ async beforeRegisterNodeDef(nodeType, nodeData, app) {
222
+ if (nodeData.name !== "MaskRectAreaAdvanced") {
223
+ return;
224
+ }
225
+
226
+ const onNodeCreated = nodeType.prototype.onNodeCreated;
227
+ nodeType.prototype.onNodeCreated = function () {
228
+ const r = onNodeCreated ? onNodeCreated.apply(this, arguments) : undefined;
229
+
230
+ this.setProperty("width", 512);
231
+ this.setProperty("height", 512);
232
+ this.setProperty("x", 0);
233
+ this.setProperty("y", 0);
234
+ this.setProperty("w", 256);
235
+ this.setProperty("h", 256);
236
+ this.setProperty("blur_radius", 0);
237
+
238
+ this.selected = false;
239
+ this.index = 3;
240
+ this.serialize_widgets = true;
241
+
242
+ // If the node already provides widgets from Python/ComfyUI, do NOT recreate them
243
+ const hasExisting = Array.isArray(this.widgets) && this.widgets.some(w => w && w.name === "x");
244
+
245
+ // Helper: attach callbacks to existing widgets to keep node.properties in sync (canvas preview).
246
+ const hookWidget = (node, widgetName, propName, opts) => {
247
+ if (!Array.isArray(node.widgets)) {
248
+ return;
249
+ }
250
+ const w = node.widgets.find(ww => ww && ww.name === widgetName);
251
+ if (!w) {
252
+ return;
253
+ }
254
+
255
+ const min = (opts && typeof opts.min === "number") ? opts.min : undefined;
256
+ const max = (opts && typeof opts.max === "number") ? opts.max : undefined;
257
+ const step = (opts && typeof opts.step === "number") ? opts.step : undefined;
258
+
259
+ if (node.properties && Object.prototype.hasOwnProperty.call(node.properties, propName)) {
260
+ w.value = node.properties[propName];
261
+ } else {
262
+ node.properties[propName] = w.value;
263
+ }
264
+
265
+ const prevCb = w.callback;
266
+ w.callback = function (v, ...args) {
267
+ let val = v;
268
+ if (typeof val === "number") {
269
+ if (typeof step === "number" && step > 0) {
270
+ const s = step / 10;
271
+ val = Math.round(val / s) * s;
272
+ } else {
273
+ val = Math.round(val);
274
+ }
275
+ if (typeof min === "number") {
276
+ val = Math.max(min, val);
277
+ }
278
+ if (typeof max === "number") {
279
+ val = Math.min(max, val);
280
+ }
281
+ }
282
+ this.value = val;
283
+ node.properties[propName] = val;
284
+ if (prevCb) {
285
+ return prevCb.call(this, val, ...args);
286
+ }
287
+ };
288
+ };
289
+
290
+ if (hasExisting) {
291
+ hookWidget(this, "x", "x", {"step": 10});
292
+ hookWidget(this, "y", "y", {"step": 10});
293
+ hookWidget(this, "width", "w", {"step": 10});
294
+ hookWidget(this, "height", "h", {"step": 10});
295
+ hookWidget(this, "image_width", "width", {"step": 10});
296
+ hookWidget(this, "image_height", "height", {"step": 10});
297
+ hookWidget(this, "blur_radius", "blur_radius", {"min": 0, "max": 255, "step": 10});
298
+ } else {
299
+ CUSTOM_INT(this, "x", 0, function (v, _, node) {
300
+ const s = this.options.step / 10;
301
+ this.value = Math.round(v / s) * s;
302
+ node.properties["x"] = this.value;
303
+ });
304
+ CUSTOM_INT(this, "y", 0, function (v, _, node) {
305
+ const s = this.options.step / 10;
306
+ this.value = Math.round(v / s) * s;
307
+ node.properties["y"] = this.value;
308
+ });
309
+ CUSTOM_INT(this, "width", 256, function (v, _, node) {
310
+ const s = this.options.step / 10;
311
+ this.value = Math.round(v / s) * s;
312
+ node.properties["w"] = this.value;
313
+ });
314
+ CUSTOM_INT(this, "height", 256, function (v, _, node) {
315
+ const s = this.options.step / 10;
316
+ this.value = Math.round(v / s) * s;
317
+ node.properties["h"] = this.value;
318
+ });
319
+ CUSTOM_INT(this, "image_width", 512, function (v, _, node) {
320
+ const s = this.options.step / 10;
321
+ this.value = Math.round(v / s) * s;
322
+ node.properties["width"] = this.value;
323
+ });
324
+ CUSTOM_INT(this, "image_height", 512, function (v, _, node) {
325
+ const s = this.options.step / 10;
326
+ this.value = Math.round(v / s) * s;
327
+ node.properties["height"] = this.value;
328
+ });
329
+ CUSTOM_INT(this, "blur_radius", 0, function (v, _, node) {
330
+ this.value = Math.round(v) || 0;
331
+ node.properties["blur_radius"] = this.value;
332
+ },
333
+ {"min": 0, "max": 255, "step": 10}
334
+ );
335
+ }
336
+
337
+ showPreviewCanvas(this, app);
338
+
339
+ this.onSelected = function () {
340
+ this.selected = true;
341
+ };
342
+ this.onDeselected = function () {
343
+ this.selected = false;
344
+ };
345
+
346
+ return r;
347
+ };
348
+ }
349
+ });
350
+
351
+ // Calculate the drawing area using individual properties.
352
+ function getDrawArea(node, backgroundWidth, backgroundHeight) {
353
+ let x = node.properties["x"] * backgroundWidth / node.properties["width"];
354
+ let y = node.properties["y"] * backgroundHeight / node.properties["height"];
355
+ let w = node.properties["w"] * backgroundWidth / node.properties["width"];
356
+ let h = node.properties["h"] * backgroundHeight / node.properties["height"];
357
+
358
+ if (x > backgroundWidth) {
359
+ x = backgroundWidth;
360
+ }
361
+ if (y > backgroundHeight) {
362
+ y = backgroundHeight;
363
+ }
364
+
365
+ if (x + w > backgroundWidth) {
366
+ w = Math.max(0, backgroundWidth - x);
367
+ }
368
+
369
+ if (y + h > backgroundHeight) {
370
+ h = Math.max(0, backgroundHeight - y);
371
+ }
372
+
373
+ return [x, y, w, h];
374
+ }
375
+
376
+ function CUSTOM_INT(node, inputName, val, func, config = {}) {
377
+ return {
378
+ widget: node.addWidget(
379
+ "number",
380
+ inputName,
381
+ val,
382
+ func,
383
+ Object.assign({}, {min: 0, max: 4096, step: 640, precision: 0}, config)
384
+ )
385
+ };
386
+ }
387
+
388
+ function syncLinkedInputsToPropertiesAdvanced(node) {
389
+ let changed = false;
390
+
391
+ const vx = readLinkedNumber(node, "x");
392
+ if (vx != null) {
393
+ const nv = Math.max(0, Math.round(vx));
394
+ if (node.properties["x"] !== nv) {
395
+ node.properties["x"] = nv;
396
+ changed = true;
397
+ }
398
+ }
399
+
400
+ const vy = readLinkedNumber(node, "y");
401
+ if (vy != null) {
402
+ const nv = Math.max(0, Math.round(vy));
403
+ if (node.properties["y"] !== nv) {
404
+ node.properties["y"] = nv;
405
+ changed = true;
406
+ }
407
+ }
408
+
409
+ // Input "width" is the rectangle width in px -> property "w"
410
+ const vw = readLinkedNumber(node, "width");
411
+ if (vw != null) {
412
+ const nv = Math.max(0, Math.round(vw));
413
+ if (node.properties["w"] !== nv) {
414
+ node.properties["w"] = nv;
415
+ changed = true;
416
+ }
417
+ }
418
+
419
+ // Input "height" is the rectangle height in px -> property "h"
420
+ const vh = readLinkedNumber(node, "height");
421
+ if (vh != null) {
422
+ const nv = Math.max(0, Math.round(vh));
423
+ if (node.properties["h"] !== nv) {
424
+ node.properties["h"] = nv;
425
+ changed = true;
426
+ }
427
+ }
428
+
429
+ // Image size (must be >=1 to avoid division by zero in getDrawArea)
430
+ const viw = readLinkedNumber(node, "image_width");
431
+ if (viw != null) {
432
+ const nv = Math.max(1, Math.round(viw));
433
+ if (node.properties["width"] !== nv) {
434
+ node.properties["width"] = nv;
435
+ changed = true;
436
+ }
437
+ }
438
+
439
+ const vih = readLinkedNumber(node, "image_height");
440
+ if (vih != null) {
441
+ const nv = Math.max(1, Math.round(vih));
442
+ if (node.properties["height"] !== nv) {
443
+ node.properties["height"] = nv;
444
+ changed = true;
445
+ }
446
+ }
447
+
448
+ const vbr = readLinkedNumber(node, "blur_radius");
449
+ if (vbr != null) {
450
+ const nv = Math.max(0, Math.min(255, Math.round(vbr)));
451
+ if (node.properties["blur_radius"] !== nv) {
452
+ node.properties["blur_radius"] = nv;
453
+ changed = true;
454
+ }
455
+ }
456
+
457
+ return changed;
458
+ }
459
+
zavodik/nodes/ComfyUI-Impact-Pack/js/mask-rect-area.js ADDED
@@ -0,0 +1,494 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import { app } from "../../scripts/app.js";
2
+ import { readLinkedNumber, getDrawColor, computeCanvasSize } from "./common.js";
3
+ function showPreviewCanvas(node, app) {
4
+
5
+ const widget = {
6
+ type: "customCanvas",
7
+ name: "mask-rect-area-canvas",
8
+ get value() {
9
+ return this.canvas.value;
10
+ },
11
+ set value(x) {
12
+ this.canvas.value = x;
13
+ },
14
+ draw: function (ctx, node, widgetWidth, widgetY) {
15
+
16
+ // If we are initially offscreen when created we wont have received a resize event
17
+ // Calculate it here instead
18
+ if (!node.canvasHeight) {
19
+ computeCanvasSize(node, node.size, 200, 200);
20
+ }
21
+
22
+ const visible = true;
23
+ const t = ctx.getTransform();
24
+ const margin = 12;
25
+ const border = 2;
26
+ const widgetHeight = node.canvasHeight;
27
+ const width = 512;
28
+ const height = 512;
29
+ const scale = Math.min((widgetWidth - margin * 3) / width, (widgetHeight - margin * 3) / height);
30
+ const blurRadius = node.properties["blur_radius"] || 0;
31
+ const index = 0;
32
+
33
+ Object.assign(this.canvas.style, {
34
+ left: `${t.e}px`,
35
+ top: `${t.f + (widgetY * t.d)}px`,
36
+ width: `${widgetWidth * t.a}px`,
37
+ height: `${widgetHeight * t.d}px`,
38
+ position: "absolute",
39
+ zIndex: 1,
40
+ fontSize: `${t.d * 10.0}px`,
41
+ pointerEvents: "none"
42
+ });
43
+
44
+ this.canvas.hidden = !visible;
45
+
46
+ let backgroundWidth = width * scale;
47
+ let backgroundHeight = height * scale;
48
+ let xOffset = margin;
49
+ if (backgroundWidth < widgetWidth) {
50
+ xOffset += (widgetWidth - backgroundWidth) / 2 - margin;
51
+ }
52
+ let yOffset = (margin / 2);
53
+ if (backgroundHeight < widgetHeight) {
54
+ yOffset += (widgetHeight - backgroundHeight) / 2 - margin;
55
+ }
56
+
57
+ let widgetX = xOffset;
58
+ widgetY = widgetY + yOffset;
59
+
60
+ // Draw the background border
61
+ ctx.fillStyle = globalThis.LiteGraph.WIDGET_OUTLINE_COLOR;
62
+ ctx.fillRect(widgetX - border, widgetY - border, backgroundWidth + border * 2, backgroundHeight + border * 2);
63
+
64
+ // Draw the main background area
65
+ ctx.fillStyle = globalThis.LiteGraph.WIDGET_BGCOLOR;
66
+ ctx.fillRect(widgetX, widgetY, backgroundWidth, backgroundHeight);
67
+
68
+ // Keep preview in sync when inputs are driven by links.
69
+ syncLinkedInputsToProperties(node);
70
+
71
+ // Draw the conditioning zone
72
+ let [x, y, w, h] = getDrawArea(node, backgroundWidth, backgroundHeight);
73
+
74
+ ctx.fillStyle = getDrawColor(0, "80");
75
+ ctx.fillRect(widgetX + x, widgetY + y, w, h);
76
+ ctx.beginPath();
77
+ ctx.lineWidth = 1;
78
+
79
+ // Draw grid lines
80
+ for (let x = 0; x <= width / 64; x += 1) {
81
+ ctx.moveTo(widgetX + x * 64 * scale, widgetY);
82
+ ctx.lineTo(widgetX + x * 64 * scale, widgetY + backgroundHeight);
83
+ }
84
+
85
+ for (let y = 0; y <= height / 64; y += 1) {
86
+ ctx.moveTo(widgetX, widgetY + y * 64 * scale);
87
+ ctx.lineTo(widgetX + backgroundWidth, widgetY + y * 64 * scale);
88
+ }
89
+
90
+ ctx.strokeStyle = "#66666650";
91
+ ctx.stroke();
92
+ ctx.closePath();
93
+
94
+ // Draw current zone
95
+ let [sx, sy, sw, sh] = getDrawArea(node, backgroundWidth, backgroundHeight);
96
+
97
+ ctx.fillStyle = getDrawColor(0, "80");
98
+ ctx.fillRect(widgetX + sx, widgetY + sy, sw, sh);
99
+
100
+ ctx.fillStyle = getDrawColor(0, "40");
101
+ ctx.fillRect(widgetX + sx + border, widgetY + sy + border, sw - border * 2, sh - border * 2);
102
+
103
+ // Draw white border around the current zone
104
+ ctx.strokeStyle = globalThis.LiteGraph.NODE_SELECTED_TITLE_COLOR;
105
+ ctx.lineWidth = 2;
106
+ ctx.strokeRect(widgetX + sx, widgetY + sy, sw, sh);
107
+
108
+ // Display
109
+ ctx.beginPath();
110
+
111
+ ctx.arc(LiteGraph.NODE_SLOT_HEIGHT * 0.5, LiteGraph.NODE_SLOT_HEIGHT * (index + 0.5) + 4, 4, 0, Math.PI * 2);
112
+ ctx.fill();
113
+
114
+ ctx.lineWidth = 1;
115
+ ctx.strokeStyle = "white";
116
+ ctx.stroke();
117
+ ctx.lineWidth = 1;
118
+ ctx.closePath();
119
+
120
+ // Draw progress bar canvas
121
+ if (backgroundWidth < widgetWidth) {
122
+ xOffset += (widgetWidth - backgroundWidth) / 2 - margin;
123
+ }
124
+
125
+ const barHeight = 8;
126
+ let widgetYBar = widgetY + backgroundHeight + margin;
127
+
128
+ // Draw progress bar border
129
+ ctx.fillStyle = globalThis.LiteGraph.WIDGET_OUTLINE_COLOR;
130
+ ctx.fillRect(
131
+ widgetX - border,
132
+ widgetYBar - border,
133
+ backgroundWidth + border * 2,
134
+ barHeight + border * 2
135
+ );
136
+
137
+ // Draw progress bar area
138
+ ctx.fillStyle = globalThis.LiteGraph.WIDGET_BGCOLOR; // Mismo color de fondo que el canvas
139
+ ctx.fillRect(
140
+ widgetX,
141
+ widgetYBar,
142
+ backgroundWidth,
143
+ barHeight
144
+ );
145
+
146
+ // Draw progress bar grid
147
+ ctx.beginPath();
148
+ ctx.lineWidth = 1;
149
+ ctx.strokeStyle = "#66666650";
150
+
151
+ // Determine max lines
152
+ const numLines = Math.floor(backgroundWidth / 64);
153
+
154
+ // Draw progress bar grid
155
+ for (let x = 0; x <= width / 64; x += 1) {
156
+ ctx.moveTo(widgetX + x * 64 * scale, widgetYBar);
157
+ ctx.lineTo(widgetX + x * 64 * scale, widgetYBar + barHeight);
158
+ }
159
+ ctx.stroke();
160
+ ctx.closePath();
161
+
162
+ // Draw progress bar
163
+ const progress = Math.min(blurRadius / 255, 1);
164
+ ctx.fillStyle = "rgba(0, 120, 255, 0.5)";
165
+
166
+ ctx.fillRect(
167
+ widgetX,
168
+ widgetYBar,
169
+ backgroundWidth * progress,
170
+ barHeight
171
+ );
172
+ }
173
+ };
174
+
175
+ widget.canvas = document.createElement("canvas");
176
+ widget.canvas.className = "mask-rect-area-canvas";
177
+ widget.parent = node;
178
+
179
+ widget.computeLayoutSize = function (node) {
180
+ return {
181
+ minHeight: 200,
182
+ maxHeight: 300
183
+ };
184
+ };
185
+
186
+ document.body.appendChild(widget.canvas);
187
+ node.addCustomWidget(widget);
188
+
189
+ app.canvas.onDrawBackground = function () {
190
+ // Draw node isnt fired once the node is off the screen
191
+ // if it goes off screen quickly, the input may not be removed
192
+ // this shifts it off screen so it can be moved back if the node is visible.
193
+ for (let n in app.graph._nodes) {
194
+ n = app.graph._nodes[n];
195
+ for (let w in n.widgets) {
196
+ let wid = n.widgets[w];
197
+ if (Object.hasOwn(wid, "canvas")) {
198
+ wid.canvas.style.left = -8000 + "px";
199
+ wid.canvas.style.position = "absolute";
200
+ }
201
+ }
202
+ }
203
+ };
204
+
205
+ node.onResize = function (size) {
206
+ computeCanvasSize(node, size, 200, 200);
207
+ };
208
+
209
+ return {minWidth: 200, minHeight: 200, widget};
210
+ }
211
+
212
+ app.registerExtension({
213
+ name: 'drltdata.MaskRectArea',
214
+ async beforeRegisterNodeDef(nodeType, nodeData, app) {
215
+ if (nodeData.name !== "MaskRectArea") {
216
+ return;
217
+ }
218
+
219
+ const onNodeCreated = nodeType.prototype.onNodeCreated;
220
+ nodeType.prototype.onNodeCreated = function () {
221
+ const r = onNodeCreated ? onNodeCreated.apply(this, arguments) : undefined;
222
+
223
+ this.setProperty("width", 512);
224
+ this.setProperty("height", 512);
225
+ this.setProperty("x", 0);
226
+ this.setProperty("y", 0);
227
+ this.setProperty("w", 50);
228
+ this.setProperty("h", 50);
229
+ this.setProperty("blur_radius", 0);
230
+
231
+ this.selected = false;
232
+ this.index = 3;
233
+ this.serialize_widgets = true;
234
+
235
+ // If Python/ComfyUI already created typed widgets, do not recreate them (avoid duplicates).
236
+ const hasExisting = Array.isArray(this.widgets) && this.widgets.some(w => w && w.name === "x");
237
+
238
+ // Hook existing widgets to keep node.properties in sync (canvas uses properties).
239
+ const hookWidget = (node, widgetName, propName, opts) => {
240
+ if (!Array.isArray(node.widgets)) {
241
+ return;
242
+ }
243
+ const w = node.widgets.find(ww => ww && ww.name === widgetName);
244
+ if (!w) {
245
+ return;
246
+ }
247
+
248
+ const min = (opts && typeof opts.min === "number") ? opts.min : undefined;
249
+ const max = (opts && typeof opts.max === "number") ? opts.max : undefined;
250
+
251
+ if (node.properties && Object.prototype.hasOwnProperty.call(node.properties, propName)) {
252
+ w.value = node.properties[propName];
253
+ } else {
254
+ node.properties[propName] = w.value;
255
+ }
256
+
257
+ const prevCb = w.callback;
258
+ w.callback = function (v, ...args) {
259
+ let val = v;
260
+
261
+ if (typeof val === "number") {
262
+ val = Math.round(val);
263
+
264
+ if (typeof min === "number") {
265
+ val = Math.max(min, val);
266
+ }
267
+ if (typeof max === "number") {
268
+ val = Math.min(max, val);
269
+ }
270
+ }
271
+
272
+ this.value = val;
273
+ node.properties[propName] = val;
274
+
275
+ if (prevCb) {
276
+ return prevCb.call(this, val, ...args);
277
+ }
278
+ };
279
+ };
280
+
281
+ if (hasExisting) {
282
+ // Note: "width"/"height" widgets map to "w"/"h" properties (percent-based).
283
+ hookWidget(this, "x", "x", {"min": 0, "max": 100});
284
+ hookWidget(this, "y", "y", {"min": 0, "max": 100});
285
+ hookWidget(this, "width", "w", {"min": 0, "max": 100});
286
+ hookWidget(this, "height", "h", {"min": 0, "max": 100});
287
+ hookWidget(this, "blur_radius", "blur_radius", {"min": 0, "max": 255});
288
+ } else {
289
+ CUSTOM_INT(this, "x", 0, function (v, _, node) {
290
+ this.value = Math.max(0, Math.min(100, Math.round(v)));
291
+ node.properties["x"] = this.value;
292
+ });
293
+ CUSTOM_INT(this, "y", 0, function (v, _, node) {
294
+ this.value = Math.max(0, Math.min(100, Math.round(v)));
295
+ node.properties["y"] = this.value;
296
+ });
297
+ CUSTOM_INT(this, "w", 50, function (v, _, node) {
298
+ this.value = Math.max(0, Math.min(100, Math.round(v)));
299
+ node.properties["w"] = this.value;
300
+ });
301
+ CUSTOM_INT(this, "h", 50, function (v, _, node) {
302
+ this.value = Math.max(0, Math.min(100, Math.round(v)));
303
+ node.properties["h"] = this.value;
304
+ });
305
+ CUSTOM_INT(this, "blur_radius", 0, function (v, _, node) {
306
+ this.value = Math.round(v) || 0;
307
+ node.properties["blur_radius"] = this.value;
308
+ }, {"min": 0, "max": 255, "step": 10});
309
+
310
+ // If Python widgets exist, they will be used instead; this is back-compat only.
311
+ }
312
+
313
+ showPreviewCanvas(this, app);
314
+
315
+ // Sync linked input values -> node.properties so the preview updates when driven by connections.
316
+ const prevOnExecute = this.onExecute;
317
+ this.onExecute = function () {
318
+ const rr = prevOnExecute ? prevOnExecute.apply(this, arguments) : undefined;
319
+
320
+ const readLinkedInt = (inputName) => {
321
+ if (!Array.isArray(this.inputs)) {
322
+ return null;
323
+ }
324
+ const inp = this.inputs.find(i => i && i.name === inputName);
325
+ if (!inp || !inp.link) {
326
+ return null;
327
+ }
328
+ try {
329
+ const v = this.getInputData(inputName);
330
+ return (typeof v === "number") ? v : null;
331
+ } catch (e) {
332
+ return null;
333
+ }
334
+ };
335
+
336
+ let changed = false;
337
+
338
+ const vx = readLinkedInt("x");
339
+ if (vx != null) {
340
+ const nv = Math.max(0, Math.min(100, Math.round(vx)));
341
+ if (this.properties["x"] !== nv) {
342
+ this.properties["x"] = nv;
343
+ changed = true;
344
+ }
345
+ }
346
+
347
+ const vy = readLinkedInt("y");
348
+ if (vy != null) {
349
+ const nv = Math.max(0, Math.min(100, Math.round(vy)));
350
+ if (this.properties["y"] !== nv) {
351
+ this.properties["y"] = nv;
352
+ changed = true;
353
+ }
354
+ }
355
+
356
+ const vw = readLinkedInt("width");
357
+ if (vw != null) {
358
+ const nv = Math.max(0, Math.min(100, Math.round(vw)));
359
+ if (this.properties["w"] !== nv) {
360
+ this.properties["w"] = nv;
361
+ changed = true;
362
+ }
363
+ }
364
+
365
+ const vh = readLinkedInt("height");
366
+ if (vh != null) {
367
+ const nv = Math.max(0, Math.min(100, Math.round(vh)));
368
+ if (this.properties["h"] !== nv) {
369
+ this.properties["h"] = nv;
370
+ changed = true;
371
+ }
372
+ }
373
+
374
+ const vbr = readLinkedInt("blur_radius");
375
+ if (vbr != null) {
376
+ const nv = Math.max(0, Math.min(255, Math.round(vbr)));
377
+ if (this.properties["blur_radius"] !== nv) {
378
+ this.properties["blur_radius"] = nv;
379
+ changed = true;
380
+ }
381
+ }
382
+
383
+ if (changed) {
384
+ this.setDirtyCanvas(true, true);
385
+ if (this.graph) {
386
+ this.graph.setDirtyCanvas(true, true);
387
+ }
388
+ }
389
+
390
+ return rr;
391
+ };
392
+
393
+ this.onSelected = function () {
394
+ this.selected = true;
395
+ };
396
+ this.onDeselected = function () {
397
+ this.selected = false;
398
+ };
399
+
400
+ return r;
401
+ };
402
+ }
403
+ });
404
+
405
+
406
+ // Calculate the drawing area using percentage-based properties.
407
+ function getDrawArea(node, backgroundWidth, backgroundHeight) {
408
+ // Convert percentages to actual pixel values based on the background dimensions
409
+ let x = (node.properties["x"] / 100) * backgroundWidth;
410
+ let y = (node.properties["y"] / 100) * backgroundHeight;
411
+ let w = (node.properties["w"] / 100) * backgroundWidth;
412
+ let h = (node.properties["h"] / 100) * backgroundHeight;
413
+
414
+ // Ensure the values do not exceed the background boundaries
415
+ if (x > backgroundWidth) {
416
+ x = backgroundWidth;
417
+ }
418
+ if (y > backgroundHeight) {
419
+ y = backgroundHeight;
420
+ }
421
+
422
+ // Adjust width and height to fit within the background dimensions
423
+ if (x + w > backgroundWidth) {
424
+ w = Math.max(0, backgroundWidth - x);
425
+ }
426
+ if (y + h > backgroundHeight) {
427
+ h = Math.max(0, backgroundHeight - y);
428
+ }
429
+
430
+ return [x, y, w, h];
431
+ }
432
+
433
+ function CUSTOM_INT(node, inputName, val, func, config = {}) {
434
+ return {
435
+ widget: node.addWidget(
436
+ "number",
437
+ inputName,
438
+ val,
439
+ func,
440
+ Object.assign({}, {min: 0, max: 100, step: 10, precision: 0}, config)
441
+ )
442
+ };
443
+ }
444
+
445
+ function syncLinkedInputsToProperties(node) {
446
+ let changed = false;
447
+
448
+ const vx = readLinkedNumber(node, "x");
449
+ if (vx != null) {
450
+ const nv = Math.max(0, Math.min(100, Math.round(vx)));
451
+ if (node.properties["x"] !== nv) {
452
+ node.properties["x"] = nv;
453
+ changed = true;
454
+ }
455
+ }
456
+
457
+ const vy = readLinkedNumber(node, "y");
458
+ if (vy != null) {
459
+ const nv = Math.max(0, Math.min(100, Math.round(vy)));
460
+ if (node.properties["y"] !== nv) {
461
+ node.properties["y"] = nv;
462
+ changed = true;
463
+ }
464
+ }
465
+
466
+ const vw = readLinkedNumber(node, "width");
467
+ if (vw != null) {
468
+ const nv = Math.max(0, Math.min(100, Math.round(vw)));
469
+ if (node.properties["w"] !== nv) {
470
+ node.properties["w"] = nv;
471
+ changed = true;
472
+ }
473
+ }
474
+
475
+ const vh = readLinkedNumber(node, "height");
476
+ if (vh != null) {
477
+ const nv = Math.max(0, Math.min(100, Math.round(vh)));
478
+ if (node.properties["h"] !== nv) {
479
+ node.properties["h"] = nv;
480
+ changed = true;
481
+ }
482
+ }
483
+
484
+ const vbr = readLinkedNumber(node, "blur_radius");
485
+ if (vbr != null) {
486
+ const nv = Math.max(0, Math.min(255, Math.round(vbr)));
487
+ if (node.properties["blur_radius"] !== nv) {
488
+ node.properties["blur_radius"] = nv;
489
+ changed = true;
490
+ }
491
+ }
492
+
493
+ return changed;
494
+ }
zavodik/nodes/ComfyUI-Impact-Pack/latent.png ADDED

Git LFS Details

  • SHA256: 1faf0cc926b0d65c8ab93e7485aea816283eb22fdeefe9682c206948c1de2043
  • Pointer size: 129 Bytes
  • Size of remote file: 2.81 kB
zavodik/nodes/ComfyUI-Impact-Pack/locales/ko/nodeDefs.json ADDED
@@ -0,0 +1,1241 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "FaceDetailer": {
3
+ "description": "๊ฐ์ง€ ๋ชจ๋ธ(bbox, segm, sam) ๋ชจ๋ธ์„ ์ด์šฉํ•ด์„œ ์ž…๋ ฅ ์ด๋ฏธ์ง€์—์„œ ์ž๋™์œผ๋กœ ํŠน์ • ๊ฐ์ฒด๋ฅผ ๊ฐ์ง€ํ•˜๊ณ , ๊ฐ์ง€ ์˜์—ญ์„ ๊ฐ€์ด๋“œ ํฌ๊ธฐ๋ฅผ ๊ธฐ๋ฐ˜์œผ๋กœ ํ™•๋Œ€ํ•ด์„œ ์ธํŽ˜์ดํŠธํ•˜๋Š” ๋ฐฉ๋ฒ•์œผ๋กœ ๋””ํ…Œ์ผ์„ ๊ฐ•ํ™”ํ•ฉ๋‹ˆ๋‹ค.\n์‚ฌ์šฉ์ž๋“ค์ด ์ž์ฃผ ์‚ฌ์šฉํ•˜๋Š” ์–ผ๊ตด ๋””ํ…Œ์ผ ๊ฐ•ํ™” ์›Œํฌํ”Œ๋กœ๋ฅผ ๋‹จ์ˆœํ™”ํ•˜๊ธฐ ์œ„ํ•ด ํŠนํ™” ์‹œํ‚จ ๋…ธ๋“œ์ด๊ธด ํ•˜์ง€๋งŒ, ๊ฐ์ง€ ๋ชจ๋ธ์— ๋”ฐ๋ผ์„œ ๋‹ค์–‘ํ•œ ์ž๋™ ์ธํŽ˜์ธํŠธ ์šฉ๋„๋กœ ์‚ฌ์šฉ ๊ฐ€๋Šฅํ•ฉ๋‹ˆ๋‹ค.",
4
+ "display_name": "์–ผ๊ตด ๋””ํ…Œ์ผ๋Ÿฌ",
5
+ "inputs": {
6
+ "image": {
7
+ "name": "์ด๋ฏธ์ง€"
8
+ },
9
+ "model": {
10
+ "name": "๋ชจ๋ธ",
11
+ "tooltip": "๋งŒ์•ฝ `ImpactDummyInput` ์„ ์—ฐ๊ฒฐ ํ•˜๋ฉด, ์ธํŽ˜์ธํŠธ ๋‹จ๊ณ„๋ฅผ ๊ฑด๋„ˆ ๋œ๋‹ˆ๋‹ค."
12
+ },
13
+ "guide_size": {
14
+ "name": "๊ฐ€์ด๋“œ ํฌ๊ธฐ",
15
+ "tooltip": "'๊ฐ€์ด๋“œ ํฌ๊ธฐ ๋Œ€์ƒ'์œผ๋กœ ์ง€์ •๋œ ํฌ๊ธฐ์˜ ๊ฐ€์žฅ ์งง์€๋ฉด์„ ์ด ํฌ๊ธฐ๊นŒ์ง€ ํ™•๋Œ€ํ•ฉ๋‹ˆ๋‹ค."
16
+ },
17
+ "guide_size_for": {
18
+ "name": "๊ฐ€์ด๋“œ ํฌ๊ธฐ ๋Œ€์ƒ",
19
+ "tooltip": "bbox: ๊ฐ์ง€๋œ ์‚ฌ๊ฐ ์˜์—ญ(bbox)\ncrop_region: ์ž˜๋ผ๋‚ธ ์˜์—ญ"
20
+ },
21
+ "max_size": {
22
+ "name": "์ตœ๋Œ€ ํฌ๊ธฐ",
23
+ "tooltip": "'๊ฐ€์ด๋“œ ํฌ๊ธฐ'๋กœ ํ™•๋Œ€ ํ•  ๋•Œ, ๊ฐ€์žฅ ๊ธด ๋ฉด์˜ ๊ธธ์ด๋ฅผ ์ด ํฌ๊ธฐ๋กœ ์ œํ•œํ•ฉ๋‹ˆ๋‹ค. ๋„ˆ๋ฌด ํฌ๊ฒŒ ํ™•๋Œ€ ๋˜๋Š” ๊ฒƒ์„ ๋ง‰์•„์ค๋‹ˆ๋‹ค."
24
+ },
25
+ "seed": {
26
+ "name": "์‹œ๋“œ"
27
+ },
28
+ "steps": {
29
+ "name": "์Šคํ…์ˆ˜"
30
+ },
31
+ "sampler_name": {
32
+ "name": "์ƒ˜ํ”Œ๋Ÿฌ ์ด๋ฆ„"
33
+ },
34
+ "scheduler": {
35
+ "name": "์Šค์ผ€์ฅด๋Ÿฌ"
36
+ },
37
+ "positive": {
38
+ "name": "๊ธ์ • ์กฐ๊ฑด"
39
+ },
40
+ "negative": {
41
+ "name": "๋ถ€์ • ์กฐ๊ฑด"
42
+ },
43
+ "denoise": {
44
+ "name": "๋…ธ์ด์ฆˆ ์ œ๊ฑฐ์–‘"
45
+ },
46
+ "feather": {
47
+ "name": "๊ฐ€์žฅ์ž๋ฆฌ ํ๋ฆผ",
48
+ "tooltip": "ํ™•๋Œ€ ํ•ด์„œ ์ธํŽ˜์ธํŠธ ๋œ ์ด๋ฏธ์ง€๋ฅผ ์›๋ณธ ์ด๋ฏธ์ง€์— ๋ถ™์—ฌ๋„ฃ์„ ๋•Œ, ์ด ์ˆ˜์น˜๋กœ ๋งˆ์Šคํฌ์˜ ๊ฐ€์žฅ ์ž๋ฆฌ๋ฅผ ํ๋ฆฌ๊ฒŒ ํ•ด์„œ ๋ถ™์—ฌ๋„ฃ์–ด ์ด์Œ๋งค์˜ ์œ„ํ™”๊ฐ์„ ์ค„์—ฌ์ค๋‹ˆ๋‹ค."
49
+ },
50
+ "noise_mask": {
51
+ "name": "๋…ธ์ด์ฆˆ ๋งˆ์Šคํฌ ์‚ฌ์šฉ",
52
+ "tooltip": "์ธํŽ˜์ธํŠธ ํ•  ๋•Œ, ๋งˆ์Šคํฌ๋ฅผ ์ ์šฉํ•ด์„œ ๋งˆ์Šคํฌ ์˜์—ญ๋งŒ ์ธํŽ˜์ธํŠธํ•ฉ๋‹ˆ๋‹ค. ์ด ์˜ต์…˜์„ ์ ์šฉํ•˜์ง€ ์•Š์œผ๋ฉด, ์ž˜๋ผ๋‚ธ ์ด๋ฏธ์ง€ ์ „์ฒด๊ฐ€ ์žฌ์ƒ์„ฑ๋˜์–ด ๋…ธ์ด์ฆˆ ์ œ๊ฑฐ์–‘์ด ํด ๋•Œ ์œ„ํ™”๊ฐ์ด ๋‚˜ํƒ€๋‚˜๊ฒŒ ๋ฉ๋‹ˆ๋‹ค."
53
+ },
54
+ "force_inpaint": {
55
+ "name": "์ธํŽ˜์ธํŠธ ๊ฐ•์ œ ์ ์šฉ",
56
+ "tooltip": "๊ฐ€์ด๋“œ ํฌ๊ธฐ์™€ ์ƒ๊ด€ ์—†์ด ์ธํŽ˜์ธํŒ…์„ ๋ฌด์กฐ๊ฑด ์ ์šฉ ํ•ฉ๋‹ˆ๋‹ค. ์ด ์˜ต์…˜์ด ๊บผ์ ธ์žˆ๋Š” ๊ฒฝ์šฐ ๊ฐ€์ด๋“œ ํฌ๊ธฐ๋ณด๋‹ค ์ด๋ฏธ ํฐ ๊ฐ์ง€ ์˜์—ญ์€ ์ธํŽ˜์ธํŒ…์„ ๊ฑด๋„ˆ ๋œ๋‹ˆ๋‹ค."
57
+ },
58
+ "bbox_threshold": {
59
+ "name": "bbox ๊ฐ์ง€ ์ž„๊ณ„์น˜",
60
+ "tooltip": "์‚ฌ๊ฐ ์˜์—ญ(bbox) ๊ฐ์ง€ ๋ชจ๋ธ์˜ ์ตœ์†Œ ๊ฐ์ง€ ์ž„๊ณ„์น˜๋ฅผ ์„ค์ •ํ•ฉ๋‹ˆ๋‹ค. ์ž„๊ณ„์น˜๊ฐ€ ๋†’์„์ˆ˜๋ก ํ™•์‹คํ•œ ๊ฐ์ฒด๋งŒ ๊ฐ์ง€ํ•˜์ง€๋งŒ, ๊ฐ์ฒด๋ฅผ ๊ฐ์ง€ํ•˜์ง€ ๋ชปํ•  ํ™•๋ฅ ์ด ์ฆ๊ฐ€ํ•ฉ๋‹ˆ๋‹ค."
61
+ },
62
+ "bbox_dilation": {
63
+ "name": "bbox ํ™•์žฅ",
64
+ "tooltip": "๊ฐ์ง€๋œ ์‚ฌ๊ฐ ์˜์—ญ(bbox)์„ ํ™•์žฅ ํ•ฉ๋‹ˆ๋‹ค. ์ด ์˜ต์…˜์€ ๊ฐ์ง€๋œ ์˜์—ญ๋ณด๋‹ค ๋” ๋„“์€ ์˜์—ญ์„ ์ธํŽ˜์ธํŠธ ํ•  ๊ฒฝ์šฐ ์‚ฌ์šฉํ•ฉ๋‹ˆ๋‹ค.\n์ฃผ์˜: sam ๋ชจ๋ธ์„ ์‚ฌ์šฉํ•  ๊ฒฝ์šฐ ์ž˜๋ผ๋‚ธ ์˜์—ญ๋‚ด์—์„œ bbox ํ™•์žฅ์„ ํ•˜๋”๋ผ๋„, sam ๊ฐ์ง€ ์˜์—ญ์ด ์ž‘์œผ๋ฉด ์—ฌ์ „ํžˆ ์ œํ•œ๋ฉ๋‹ˆ๋‹ค."
65
+ },
66
+ "bbox_crop_factor": {
67
+ "name": "bbox ์ž๋ฅด๊ธฐ ๋ฐฐ์œจ",
68
+ "tooltip": "๊ฐ์ง€๋œ ์‚ฌ๊ฐ ์˜์—ญ(bbox)์˜ ๋ช‡๋ฐฐ ํฌ๊ธฐ์˜ ์˜์—ญ์„ ์ž˜๋ผ๋‚ผ ๊ฒƒ ์ธ์ง€๋ฅผ ์„ค์ •ํ•ฉ๋‹ˆ๋‹ค. ์ด ํฌ๊ธฐ๊ฐ€ ๋„ˆ๋ฌด ์ž‘์œผ๋ฉด, ์ธํŽ˜์ธํŠธ ํ•  ์ด๋ฏธ์ง€์˜ ์ฃผ๋ณ€ ์ •๋ณด๊ฐ€ ๋ถ€์กฑํ•ด์„œ ์œ„ํ™”๊ฐ์ด ๊ฐ•ํ•œ ์ด๋ฏธ์ง€๊ฐ€ ์ƒ์„ฑ๋ฉ๋‹ˆ๋‹ค. ์ด ํฌ๊ธฐ๊ฐ€ ๋„ˆ๋ฌด ํฌ๋ฉด, ์ธํŽ˜์ธํŒ…์— ๋„ˆ๋ฌด ์˜ค๋žœ ์‹œ๊ฐ„์ด ๊ฑธ๋ฆด ์ˆ˜ ์žˆ์œผ๋ฉฐ, ๋ชจ๋ธ์˜ ์—ญ๋Ÿ‰์„ ์ดˆ๊ณผํ•  ์ •๋„๋กœ ํด ๊ฒฝ์šฐ ์˜ฌ๋ฐ”๋ฅด์ง€ ์•Š์€ ์ด๋ฏธ์ง€๋ฅผ ์ƒ์„ฑํ•˜๊ฒŒ ๋ฉ๋‹ˆ๋‹ค."
69
+ },
70
+ "sam_detection_hint": {
71
+ "name": "sam ๊ฐ์ง€ ํžŒํŠธ",
72
+ "tooltip": "[์‹คํ—˜๊ธฐ๋Šฅ] ์˜ค๋ž˜๋œ ์‹คํ—˜ ๊ธฐ๋Šฅ์œผ๋กœ, sam ๋ชจ๋ธ์˜ ๊ฐ์ง€ ํžŒํŠธ๋ฅผ ์ œ๊ณตํ•˜๋Š” ๋ฐฉ์‹์ž…๋‹ˆ๋‹ค. cetner-1 (์ค‘์•™์  1๊ฐœ) ์™ธ์—๋Š” ์‚ฌ์šฉํ•˜์ง€ ์•Š์„ ๊ฒƒ์„ ๊ถŒ์žฅํ•ฉ๋‹ˆ๋‹ค."
73
+ },
74
+ "sam_dilation": {
75
+ "name": "sam ๋งˆ์Šคํฌ ํ™•์žฅ",
76
+ "tooltip": "sam ๋ชจ๋ธ๋กœ ๊ฐ์ง€๋œ ์‹ค๋ฃจ์—ฃ ๋งˆ์Šคํฌ๋ฅผ ํ™•์žฅํ•ฉ๋‹ˆ๋‹ค."
77
+ },
78
+ "sam_threshold": {
79
+ "name": "sam ๊ฐ์ง€ ์ž„๊ณ„์น˜",
80
+ "tooltip": "sam ๋ชจ๋ธ์˜ ์ตœ์†Œ ๊ฐ์ง€ ์ž„๊ณ„์น˜๋ฅผ ์„ค์ •ํ•ฉ๋‹ˆ๋‹ค. ์ž„๊ณ„์น˜๊ฐ€ ๋†’์„์ˆ˜๋ก ํ™•์‹คํ•œ ๊ฐ์ฒด๋งŒ ๊ฐ์ง€ํ•˜์ง€๋งŒ, ๊ฐ์ฒด๋ฅผ ๊ฐ์ง€ํ•˜์ง€ ๋ชปํ•  ํ™•๋ฅ ์ด ์ฆ๊ฐ€ํ•ฉ๋‹ˆ๋‹ค."
81
+ },
82
+ "sam_bbox_expansion": {
83
+ "name": "sam ์˜์—ญ ํ™•์žฅ",
84
+ "tooltip": "sam ์˜ ๊ฐ์ง€ ์˜์—ญ์„ ํ™•์žฅํ•ฉ๋‹ˆ๋‹ค. ๊ฐ์ง€ ์˜์—ญ์€ ๋งˆ์Šคํฌ๋ฅผ ํฌํ•จํ•˜๋Š” ์ „์ฒด ์‚ฌ๊ฐ ์˜์—ญ์ž…๋‹ˆ๋‹ค.\n์ฃผ์˜1:sam ๋งˆ์Šคํฌ๋ฅผ ํ™•์žฅํ•˜๋”๋ผ๋„, ๊ฐ์ง€ ์˜์—ญ์„ ๋ฒ—์–ด๋‚  ์ˆ˜ ์—†์Šต๋‹ˆ๋‹ค.\n์ฃผ์˜2: bbox ํ™•์žฅ์„ ํ•˜๋”๋ผ๋„, sam ๊ฐ์ง€ ์˜์—ญ์ด ์ž‘์œผ๋ฉด ์—ฌ์ „ํžˆ ์ œํ•œ๋ฉ๋‹ˆ๋‹ค."
85
+ },
86
+ "sam_mask_hint_threshold": {
87
+ "name": "sam ๋งˆ์Šคํฌ ํžŒํŠธ ์ž„๊ณ„์น˜",
88
+ "tooltip": "[์‹คํ—˜๊ธฐ๋Šฅ] ์˜ค๋ž˜๋œ ์‹คํ—˜ ๊ธฐ๋Šฅ์œผ๋กœ, mask-hint ๋ชจ๋“œ์—์„œ๋งŒ ์‚ฌ์šฉ๋˜๋Š” ์˜ต์…˜์œผ๋กœ, ๋งˆ์Šคํฌ์—์„œ ์ด ํฌ๊ธฐ ์ด์ƒ์˜ ์  ๋งˆ์Šคํฌ๋ฅผ sam์˜ ํžŒํŠธ๋กœ ์‚ฌ์šฉํ•ฉ๋‹ˆ๋‹ค."
89
+ },
90
+ "sam_mask_hint_use_negative": {
91
+ "name": "sam ๋งˆ์Šคํฌ ํžŒํŠธ์— ์ œ์™ธ ํžŒํŠธ ์‚ฌ์šฉ",
92
+ "tooltip": "[์‹คํ—˜๊ธฐ๋Šฅ] ์˜ค๋ž˜๋œ ์‹คํ—˜ ๊ธฐ๋Šฅ์œผ๋กœ, mask-hitn ๋ชจ๋“œ์—์„œ๋งŒ ์‚ฌ์šฉ๋˜๋Š” ์˜ต์…˜์œผ๋กœ, sam ๋งˆ์Šคํฌ ํžŒํŠธ ์ž„๊ณ„์น˜๋ณด๋‹ค ์ž‘์€ ์  ๋งˆ์Šคํฌ๋ฅผ sam์˜ ์ œ์™ธ ํžŒํŠธ๋กœ ์‚ฌ์šฉํ•ฉ๋‹ˆ๋‹ค."
93
+ },
94
+ "drop_size": {
95
+ "name": "๊ฐ์ง€ ์ตœ์†Œ ํฌ๊ธฐ",
96
+ "tooltip": "์‚ฌ๊ฐ ์˜์—ญ(bbox) ๊ฐ์ง€๊ธฐ๋กœ ๊ฐ์ง€ํ•œ ํฌ๊ธฐ๊ฐ€ ์ด ์„ค์ •๊ฐ’ ๋ณด๋‹ค ์ž‘์„ ๊ฒฝ์šฐ ๋ฌด์‹œํ•ฉ๋‹ˆ๋‹ค."
97
+ },
98
+ "bbox_detector": {
99
+ "name": "bbox ๊ฐ์ง€๊ธฐ",
100
+ "tooltip": "๋””ํ…Œ์ผ ๊ฐœ์„  ๋Œ€์ƒ์„ ์ž๋™์œผ๋กœ ๊ฐ์ง€ํ•ด์ฃผ๋Š” ์‚ฌ๊ฐ ์˜์—ญ(bbox) ๊ฐ์ง€๊ธฐ ์ž…๋ ฅ.\n์ด ๊ฐ์ง€๊ธฐ๋กœ ๊ฐ์ง€๋œ ๊ฐ์ง€ ์ •๋ณด๊ฐ€ ๊ธฐ์ค€ ์ •๋ณด์ž…๋‹ˆ๋‹ค."
101
+ },
102
+ "wildcard": {
103
+ "name": "์™€์ผ๋“œ์นด๋“œ ํ”„๋กฌํ”„ํŠธ",
104
+ "tooltip": "'์™€์ผ๋“œ์นด๋“œ ์ธ์ฝ”๋” (Impact)'์™€ ์œ ์‚ฌํ•œ ๊ธฐ๋Šฅ์„ ์ˆ˜ํ–‰ํ•˜์—ฌ, ์™€์ผ๋“œ์นด๋“œ ๊ธฐ๋Šฅ๊ณผ ๋กœ๋ผ ๋กœ๋”ฉ ๊ธฐ๋Šฅ์„ ์ œ๊ณตํ•ฉ๋‹ˆ๋‹ค. ๋˜ํ•œ, ๊ฐ์ง€๋œ ์˜์—ญ๋ณ„๋กœ ๋‹ค๋ฅธ ํ”„๋กฌํ”„ํŠธ๋ฅผ ์ ์šฉํ•˜๋Š” ๊ธฐ๋Šฅ๋“ค์„ ์ œ๊ณตํ•ฉ๋‹ˆ๋‹ค.\n๋” ์ž์„ธํ•œ ์ •๋ณด๋Š” ํŠœํ† ๋ฆฌ์–ผ ํŽ˜์ด์ง€๋ฅผ ์ฐธ๊ณ ํ•˜์„ธ์š”.\n์ฃผ์˜:์ด ์ž…๋ ฅ์„ ๋น„์›Œ๋‘๋ฉด, ์ด ์ž…๋ ฅ์€ ๋ฌด์‹œ๋ฉ๋‹ˆ๋‹ค."
105
+ },
106
+ "cycle": {
107
+ "name": "๋ฐ˜๋ณต์ˆ˜",
108
+ "tooltip": "์„ค์ •๋œ ๊ฐ’๋งŒํผ ์ธํŽ˜์ธํŒ…์„ ๋ฐ˜๋ณต ์ ์šฉํ•ฉ๋‹ˆ๋‹ค. ์ธ์ฝ”๋”ฉ/๋””์ฝ”๋”ฉ ์—†์ด ํ™•๋Œ€๋œ ์ž ์žฌ ์ด๋ฏธ์ง€ ๋‹จ๊ณ„์—์„œ ๋ฐ˜๋ณต๋ฉ๋‹ˆ๋‹ค."
109
+ },
110
+ "sam_model_opt": {
111
+ "name": "sam ๋ชจ๋ธ",
112
+ "tooltip": "์ด ๋ชจ๋ธ์„ ์ œ๊ณตํ•  ๊ฒฝ์šฐ sam ๋ชจ๋ธ์„ ๊ฐ์ง€ ๋ณด์กฐ ๋ชจ๋ธ๋กœ ์‚ฌ์šฉํ•ฉ๋‹ˆ๋‹ค. bbox ๊ฐ์ง€๊ธฐ๋กœ ๊ฐ์ง€๋œ ์‚ฌ๊ฐ ์˜์—ญ์— sam ๋ชจ๋ธ์„ ์ ์šฉํ•ด์„œ ์ •๊ตํ•œ ์‹ค๋ฃจ์—ฃ ๋งˆ์Šคํฌ๋ฅผ ์ƒ์„ฑํ•ฉ๋‹ˆ๋‹ค.\n์ฃผ์˜: ์ด ์ž…๋ ฅ์ด ์—ฐ๊ฒฐ๋  ๊ฒฝ์šฐ segm ๊ฐ์ง€๊ธฐ๋Š” ๋ฌด์‹œ๋ฉ๋‹ˆ๋‹ค."
113
+ },
114
+ "segm_detector_opt": {
115
+ "name": "segm ๊ฐ์ง€๊ธฐ",
116
+ "tooltip": "์ด ๋ชจ๋ธ์„ ์ œ๊ณตํ•  ๊ฒฝ์šฐ segm ๋ชจ๋ธ์„ ๊ฐ์ง€ ๋ณด์กฐ ๋ชจ๋ธ๋กœ ์‚ฌ์šฉํ•ฉ๋‹ˆ๋‹ค. bbox ๊ฐ์ง€๊ธฐ๋กœ ๊ฐ์ง€๋œ ์‚ฌ๊ฐ ์˜์—ญ์— segm ๊ฐ์ง€๊ธฐ๋กœ ๊ฐ์ง€๋œ ์‹ค๋ฃจ์—ฃ ๋งˆ์Šคํฌ๋ฅผ ์ƒ์„ฑํ•ฉ๋‹ˆ๋‹ค.\n์ฃผ์˜: ์ด ์ž…๋ ฅ์€ sam ๋ชจ๋ธ์ด ์—ฐ๊ฒฐ๋  ๊ฒฝ์šฐ ๋ฌด์‹œ๋ฉ๋‹ˆ๋‹ค."
117
+ },
118
+ "detailer_hook": {
119
+ "name": "๋””ํ…Œ์ผ๋Ÿฌ ํ›„ํฌ",
120
+ "tooltip": "์ด ๋…ธ๋“œ์˜ ์‹คํ–‰ ์ค‘๊ฐ„๋‹จ๊ณ„์—์„œ ์—ฌ๋Ÿฌ๊ฐ€์ง€ ๊ธฐ๋Šฅ์„ ์ˆ˜ํ–‰ํ•  ์ˆ˜ ์žˆ๋Š” ํ›„ํฌ๋ฅผ ์—ฐ๊ฒฐํ•ฉ๋‹ˆ๋‹ค."
121
+ },
122
+ "inpaint_model": {
123
+ "name": "์ธํŽ˜์ธํŠธ ๋ชจ๋ธ ๋ชจ๋“œ",
124
+ "tooltip": "์ธํŽ˜์ธํŠธ ์ „์šฉ ๋ชจ๋ธ์„ ์‚ฌ์šฉํ•  ๊ฒฝ์šฐ ์ด ์˜ต์…˜์„ ์ผœ๋ฉด, ์ธํŽ˜์ธํŒ…์‹œ์— '์ธํŽ˜์ธํŠธ ๋ชจ๋ธ ์กฐ๊ฑด ์„ค์ •'์ด ์ ์šฉ๋˜์–ด ์ˆ˜ํ–‰๋ฉ๋‹ˆ๋‹ค."
125
+ },
126
+ "noise_mask_feather": {
127
+ "name": "๋…ธ์ด์ฆˆ ๋งˆ์Šคํฌ ๊ฐ€์žฅ์ž๋ฆฌ ํ๋ฆผ",
128
+ "tooltip": "์ธํŽ˜์ธํŠธ์‹œ์— ์ ์šฉ๋˜๋Š” ๋…ธ์ด์ฆˆ ๋งˆ์Šคํฌ์˜ ๊ฐ€์žฅ์ž๋ฆฌ๋ฅผ ํ๋ฆฌ๊ฒŒ ํ•ฉ๋‹ˆ๋‹ค. ์ด ์„ค์ •๊ฐ’์ด 0์„ ์ดˆ๊ณผํ•  ๊ฒฝ์šฐ, ๋‚ด๋ถ€์ ์œผ๋กœ ์ž๋™์œผ๋กœ '์ฐจ๋“ฑ ํ™•์‚ฐ' ๋…ธ๋“œ๋ฅผ ์ ์šฉํ•ฉ๋‹ˆ๋‹ค."
129
+ },
130
+ "scheduler_func_opt": {
131
+ "name": "์Šค์ผ€์ฅด๋Ÿฌ ํ•จ์ˆ˜",
132
+ "tooltip": "GITS ์Šค์ผ€์ฅด๋Ÿฌ ์ฒ˜๋Ÿผ ๊ธฐ๋ณธ ์Šค์ผ€์ฅด๋Ÿฌ ๋ฆฌ์ŠคํŠธ์—์„œ ์„ ํƒํ•  ์ˆ˜ ์—†๋Š” ํŠน์ˆ˜ ์Šค์ผ€์ฅด๋Ÿฌ๋ฅผ ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ๊ฒŒ ํ•ด์ค๋‹ˆ๋‹ค. ์ด ์ž…๋ ฅ์ด ์—ฐ๊ฒฐ๋˜๋ฉด, ๊ธฐ๋ณธ ์Šค์ผ€์ฅด๋Ÿฌ ์„ ํƒ์€ ๋ฌด์‹œ๋ฉ๋‹ˆ๋‹ค."
133
+ },
134
+ "tiled_encode": {
135
+ "name": "ํƒ€์ผ ์ธ์ฝ”๋“œ ์‚ฌ์šฉ",
136
+ "tooltip": "์ด ์˜ต์…˜์„ ์ผœ๋ฉด, ๋‚ด๋ถ€์ ์œผ๋กœ 'VAE ์ธ์ฝ”๋“œ'๋ฅผ ์‚ฌ์šฉํ•  ๊ฒฝ์šฐ, ๊ธฐ๋ณธ 'VAE ์ธ์ฝ”๋“œ' ๋Œ€์‹  'VAE ์ธ์ฝ”๋“œ (ํƒ€์ผ)' ์„ ์ ์šฉํ•ฉ๋‹ˆ๋‹ค."
137
+ },
138
+ "tiled_decode": {
139
+ "name": "ํƒ€์ผ ๋””์ฝ”๋“œ ์‚ฌ์šฉ",
140
+ "tooltip": "์ด ์˜ต์…˜์„ ์ผœ๋ฉด, ๋‚ด๋ถ€์ ์œผ๋กœ 'VAE ๋‹ค์ฝ”๋“œ'๋ฅผ ์‚ฌ์šฉํ•  ๊ฒฝ์šฐ, ๊ธฐ๋ณธ 'VAE ๋””์ฝ”๋“œ' ๋Œ€์‹  'VAE ๋””์ฝ”๋“œ (ํƒ€์ผ)' ์„ ์ ์šฉํ•ฉ๋‹ˆ๋‹ค."
141
+ }
142
+ },
143
+ "outputs": {
144
+ "0": {
145
+ "name": "๊ฐœ์„  ์ด๋ฏธ"
146
+ },
147
+ "1": {
148
+ "name": "์ž˜๋ผ๋‚ธ ์ด๋ฏธ์ง€"
149
+ },
150
+ "2": {
151
+ "name": "์ž˜๋ผ๋‚ธ ํˆฌ๋ช… ์ด๋ฏธ์ง€"
152
+ },
153
+ "3": {
154
+ "name": "๋งˆ์Šคํฌ"
155
+ },
156
+ "4": {
157
+ "name": "๋””ํ…Œ์ผ๋Ÿฌ ํŒŒ์ดํ”„"
158
+ },
159
+ "5": {
160
+ "name": "์ปจํŠธ๋กค๋„ท ์ด๋ฏธ์ง€"
161
+ }
162
+ }
163
+ },
164
+ "FaceDetailerPipe": {
165
+ "description": "๊ฐ์ง€ ๋ชจ๋ธ(bbox, segm, sam) ๋ชจ๋ธ์„ ์ด์šฉํ•ด์„œ ์ž…๋ ฅ ์ด๋ฏธ์ง€์—์„œ ์ž๋™์œผ๋กœ ํŠน์ • ๊ฐ์ฒด๋ฅผ ๊ฐ์ง€ํ•˜๊ณ , ๊ฐ์ง€ ์˜์—ญ์„ ๊ฐ€์ด๋“œ ํฌ๊ธฐ๋ฅผ ๊ธฐ๋ฐ˜์œผ๋กœ ํ™•๋Œ€ํ•ด์„œ ์ธํŽ˜์ดํŠธํ•˜๋Š” ๋ฐฉ๋ฒ•์œผ๋กœ ๋””ํ…Œ์ผ์„ ๊ฐ•ํ™”ํ•ฉ๋‹ˆ๋‹ค.\n์‚ฌ์šฉ์ž๋“ค์ด ์ž์ฃผ ์‚ฌ์šฉํ•˜๋Š” ์–ผ๊ตด ๋””ํ…Œ์ผ ๊ฐ•ํ™” ์›Œํฌํ”Œ๋กœ๋ฅผ ๋‹จ์ˆœํ™”ํ•˜๊ธฐ ์œ„ํ•ด ํŠนํ™” ์‹œํ‚จ ๋…ธ๋“œ์ด๊ธด ํ•˜์ง€๋งŒ, ๊ฐ์ง€ ๋ชจ๋ธ์— ๋”ฐ๋ผ์„œ ๋‹ค์–‘ํ•œ ์ž๋™ ์ธํŽ˜์ธํŠธ ์šฉ๋„๋กœ ์‚ฌ์šฉ ๊ฐ€๋Šฅํ•ฉ๋‹ˆ๋‹ค.",
166
+ "display_name": "์–ผ๊ตด ๋””ํ…Œ์ผ๋Ÿฌ (ํŒŒ์ดํ”„)",
167
+ "inputs": {
168
+ "image": {
169
+ "name": "์ด๋ฏธ์ง€"
170
+ },
171
+ "detailer_pipe": {
172
+ "name": "๋””ํ…Œ์ผ๋Ÿฌ ํŒŒ์ดํ”„",
173
+ "tooltip": "๋งŒ์•ฝ ๋””ํ…Œ์ผ๋Ÿฌ ํŒŒ์ดํ”„ ๋‚ด์˜ ๋ชจ๋ธ์— `ImpactDummyInput` ๊ฐ€ ์„ค์ •๋œ ๊ฒฝ์šฐ, ์ธํŽ˜์ธํŠธ ๋‹จ๊ณ„๋ฅผ ๊ฑด๋„ˆ ๋œ๋‹ˆ๋‹ค."
174
+ },
175
+ "guide_size": {
176
+ "name": "๊ฐ€์ด๋“œ ํฌ๊ธฐ",
177
+ "tooltip": "'๊ฐ€์ด๋“œ ํฌ๊ธฐ ๋Œ€์ƒ'์œผ๋กœ ์ง€์ •๋œ ํฌ๊ธฐ์˜ ๊ฐ€์žฅ ์งง์€๋ฉด์„ ์ด ํฌ๊ธฐ๊นŒ์ง€ ํ™•๋Œ€ํ•ฉ๋‹ˆ๋‹ค."
178
+ },
179
+ "guide_size_for": {
180
+ "name": "๊ฐ€์ด๋“œ ํฌ๊ธฐ ๋Œ€์ƒ",
181
+ "tooltip": "bbox: ๊ฐ์ง€๋œ ์‚ฌ๊ฐ ์˜์—ญ(bbox)\ncrop_region: ์ž˜๋ผ๋‚ธ ์˜์—ญ"
182
+ },
183
+ "max_size": {
184
+ "name": "์ตœ๋Œ€ ํฌ๊ธฐ",
185
+ "tooltip": "'๊ฐ€์ด๋“œ ํฌ๊ธฐ'๋กœ ํ™•๋Œ€ ํ•  ๋•Œ, ๊ฐ€์žฅ ๊ธด ๋ฉด์˜ ๊ธธ์ด๋ฅผ ์ด ํฌ๊ธฐ๋กœ ์ œํ•œํ•ฉ๋‹ˆ๋‹ค. ๋„ˆ๋ฌด ํฌ๊ฒŒ ํ™•๋Œ€ ๋˜๋Š” ๊ฒƒ์„ ๋ง‰์•„์ค๋‹ˆ๋‹ค."
186
+ },
187
+ "seed": {
188
+ "name": "์‹œ๋“œ"
189
+ },
190
+ "steps": {
191
+ "name": "์Šคํ…์ˆ˜"
192
+ },
193
+ "sampler_name": {
194
+ "name": "์ƒ˜ํ”Œ๋Ÿฌ ์ด๋ฆ„"
195
+ },
196
+ "scheduler": {
197
+ "name": "์Šค์ผ€์ฅด๋Ÿฌ"
198
+ },
199
+ "denoise": {
200
+ "name": "๋…ธ์ด์ฆˆ ์ œ๊ฑฐ์–‘"
201
+ },
202
+ "feather": {
203
+ "name": "๊ฐ€์žฅ์ž๋ฆฌ ํ๋ฆผ",
204
+ "tooltip": "ํ™•๋Œ€ ํ•ด์„œ ์ธํŽ˜์ธํŠธ ๋œ ์ด๋ฏธ์ง€๋ฅผ ์›๋ณธ ์ด๋ฏธ์ง€์— ๋ถ™์—ฌ๋„ฃ์„ ๋•Œ, ์ด ์ˆ˜์น˜๋กœ ๋งˆ์Šคํฌ์˜ ๊ฐ€์žฅ ์ž๋ฆฌ๋ฅผ ํ๋ฆฌ๊ฒŒ ํ•ด์„œ ๋ถ™์—ฌ๋„ฃ์–ด ์ด์Œ๋งค์˜ ์œ„ํ™”๊ฐ์„ ์ค„์—ฌ์ค๋‹ˆ๋‹ค."
205
+ },
206
+ "noise_mask": {
207
+ "name": "๋…ธ์ด์ฆˆ ๋งˆ์Šคํฌ ์‚ฌ์šฉ",
208
+ "tooltip": "์ธํŽ˜์ธํŠธ ํ•  ๋•Œ, ๋งˆ์Šคํฌ๋ฅผ ์ ์šฉํ•ด์„œ ๋งˆ์Šคํฌ ์˜์—ญ๋งŒ ์ธํŽ˜์ธํŠธํ•ฉ๋‹ˆ๋‹ค. ์ด ์˜ต์…˜์„ ์ ์šฉํ•˜์ง€ ์•Š์œผ๋ฉด, ์ž˜๋ผ๋‚ธ ์ด๋ฏธ์ง€ ์ „์ฒด๊ฐ€ ์žฌ์ƒ์„ฑ๋˜์–ด ๋…ธ์ด์ฆˆ ์ œ๊ฑฐ์–‘์ด ํด ๋•Œ ์œ„ํ™”๊ฐ์ด ๋‚˜ํƒ€๋‚˜๊ฒŒ ๋ฉ๋‹ˆ๋‹ค."
209
+ },
210
+ "force_inpaint": {
211
+ "name": "์ธํŽ˜์ธํŠธ ๊ฐ•์ œ ์ ์šฉ",
212
+ "tooltip": "๊ฐ€์ด๋“œ ํฌ๊ธฐ์™€ ์ƒ๊ด€ ์—†์ด ์ธํŽ˜์ธํŒ…์„ ๋ฌด์กฐ๊ฑด ์ ์šฉ ํ•ฉ๋‹ˆ๋‹ค. ์ด ์˜ต์…˜์ด ๊บผ์ ธ์žˆ๋Š” ๊ฒฝ์šฐ ๊ฐ€์ด๋“œ ํฌ๊ธฐ๋ณด๋‹ค ์ด๋ฏธ ํฐ ๊ฐ์ง€ ์˜์—ญ์€ ์ธํŽ˜์ธํŒ…์„ ๊ฑด๋„ˆ ๋œ๋‹ˆ๋‹ค."
213
+ },
214
+ "bbox_threshold": {
215
+ "name": "bbox ๊ฐ์ง€ ์ž„๊ณ„์น˜",
216
+ "tooltip": "์‚ฌ๊ฐ ์˜์—ญ(bbox) ๊ฐ์ง€ ๋ชจ๋ธ์˜ ์ตœ์†Œ ๊ฐ์ง€ ์ž„๊ณ„์น˜๋ฅผ ์„ค์ •ํ•ฉ๋‹ˆ๋‹ค. ์ž„๊ณ„์น˜๊ฐ€ ๋†’์„์ˆ˜๋ก ํ™•์‹คํ•œ ๊ฐ์ฒด๋งŒ ๊ฐ์ง€ํ•˜์ง€๋งŒ, ๊ฐ์ฒด๋ฅผ ๊ฐ์ง€ํ•˜์ง€ ๋ชปํ•  ํ™•๋ฅ ์ด ์ฆ๊ฐ€ํ•ฉ๋‹ˆ๋‹ค."
217
+ },
218
+ "bbox_dilation": {
219
+ "name": "bbox ํ™•์žฅ",
220
+ "tooltip": "๊ฐ์ง€๋œ ์‚ฌ๊ฐ ์˜์—ญ(bbox)์„ ํ™•์žฅ ํ•ฉ๋‹ˆ๋‹ค. ์ด ์˜ต์…˜์€ ๊ฐ์ง€๋œ ์˜์—ญ๋ณด๋‹ค ๋” ๋„“์€ ์˜์—ญ์„ ์ธํŽ˜์ธํŠธ ํ•  ๊ฒฝ์šฐ ์‚ฌ์šฉํ•ฉ๋‹ˆ๋‹ค.\n์ฃผ์˜: sam ๋ชจ๋ธ์„ ์‚ฌ์šฉํ•  ๊ฒฝ์šฐ ์ž˜๋ผ๋‚ธ ์˜์—ญ๋‚ด์—์„œ bbox ํ™•์žฅ์„ ํ•˜๋”๋ผ๋„, sam ๊ฐ์ง€ ์˜์—ญ์ด ์ž‘์œผ๋ฉด ์—ฌ์ „ํžˆ ์ œํ•œ๋ฉ๋‹ˆ๋‹ค."
221
+ },
222
+ "bbox_crop_factor": {
223
+ "name": "bbox ์ž๋ฅด๊ธฐ ๋ฐฐ์œจ",
224
+ "tooltip": "๊ฐ์ง€๋œ ์‚ฌ๊ฐ ์˜์—ญ(bbox)์˜ ๋ช‡๋ฐฐ ํฌ๊ธฐ์˜ ์˜์—ญ์„ ์ž˜๋ผ๋‚ผ ๊ฒƒ ์ธ์ง€๋ฅผ ์„ค์ •ํ•ฉ๋‹ˆ๋‹ค. ์ด ํฌ๊ธฐ๊ฐ€ ๋„ˆ๋ฌด ์ž‘์œผ๋ฉด, ์ธํŽ˜์ธํŠธ ํ•  ์ด๋ฏธ์ง€์˜ ์ฃผ๋ณ€ ์ •๋ณด๊ฐ€ ๋ถ€์กฑํ•ด์„œ ์œ„ํ™”๊ฐ์ด ๊ฐ•ํ•œ ์ด๋ฏธ์ง€๊ฐ€ ์ƒ์„ฑ๋ฉ๋‹ˆ๋‹ค. ์ด ํฌ๊ธฐ๊ฐ€ ๋„ˆ๋ฌด ํฌ๋ฉด, ์ธํŽ˜์ธํŒ…์— ๋„ˆ๋ฌด ์˜ค๋žœ ์‹œ๊ฐ„์ด ๊ฑธ๋ฆด ์ˆ˜ ์žˆ์œผ๋ฉฐ, ๋ชจ๋ธ์˜ ์—ญ๋Ÿ‰์„ ์ดˆ๊ณผํ•  ์ •๋„๋กœ ํด ๊ฒฝ์šฐ ์˜ฌ๋ฐ”๋ฅด์ง€ ์•Š์€ ์ด๋ฏธ์ง€๋ฅผ ์ƒ์„ฑํ•˜๊ฒŒ ๋ฉ๋‹ˆ๋‹ค."
225
+ },
226
+ "sam_detection_hint": {
227
+ "name": "sam ๊ฐ์ง€ ํžŒํŠธ",
228
+ "tooltip": "[์‹คํ—˜๊ธฐ๋Šฅ] ์˜ค๋ž˜๋œ ์‹คํ—˜ ๊ธฐ๋Šฅ์œผ๋กœ, sam ๋ชจ๋ธ์˜ ๊ฐ์ง€ ํžŒํŠธ๋ฅผ ์ œ๊ณตํ•˜๋Š” ๋ฐฉ์‹์ž…๋‹ˆ๋‹ค. cetner-1 (์ค‘์•™์  1๊ฐœ) ์™ธ์—๋Š” ์‚ฌ์šฉํ•˜์ง€ ์•Š์„ ๊ฒƒ์„ ๊ถŒ์žฅํ•ฉ๋‹ˆ๋‹ค."
229
+ },
230
+ "sam_dilation": {
231
+ "name": "sam ๋งˆ์Šคํฌ ํ™•์žฅ",
232
+ "tooltip": "sam ๋ชจ๋ธ๋กœ ๊ฐ์ง€๋œ ์‹ค๋ฃจ์—ฃ ๋งˆ์Šคํฌ๋ฅผ ํ™•์žฅํ•ฉ๋‹ˆ๋‹ค."
233
+ },
234
+ "sam_threshold": {
235
+ "name": "sam ๊ฐ์ง€ ์ž„๊ณ„์น˜",
236
+ "tooltip": "sam ๋ชจ๋ธ์˜ ์ตœ์†Œ ๊ฐ์ง€ ์ž„๊ณ„์น˜๋ฅผ ์„ค์ •ํ•ฉ๋‹ˆ๋‹ค. ์ž„๊ณ„์น˜๊ฐ€ ๋†’์„์ˆ˜๋ก ํ™•์‹คํ•œ ๊ฐ์ฒด๋งŒ ๊ฐ์ง€ํ•˜์ง€๋งŒ, ๊ฐ์ฒด๋ฅผ ๊ฐ์ง€ํ•˜์ง€ ๋ชปํ•  ํ™•๋ฅ ์ด ์ฆ๊ฐ€ํ•ฉ๋‹ˆ๋‹ค."
237
+ },
238
+ "sam_bbox_expansion": {
239
+ "name": "sam ์˜์—ญ ํ™•์žฅ",
240
+ "tooltip": "sam ์˜ ๊ฐ์ง€ ์˜์—ญ์„ ํ™•์žฅํ•ฉ๋‹ˆ๋‹ค. ๊ฐ์ง€ ์˜์—ญ์€ ๋งˆ์Šคํฌ๋ฅผ ํฌํ•จํ•˜๋Š” ์ „์ฒด ์‚ฌ๊ฐ ์˜์—ญ์ž…๋‹ˆ๋‹ค.\n์ฃผ์˜1:sam ๋งˆ์Šคํฌ๋ฅผ ํ™•์žฅํ•˜๋”๋ผ๋„, ๊ฐ์ง€ ์˜์—ญ์„ ๋ฒ—์–ด๋‚  ์ˆ˜ ์—†์Šต๋‹ˆ๋‹ค.\n์ฃผ์˜2: bbox ํ™•์žฅ์„ ํ•˜๋”๋ผ๋„, sam ๊ฐ์ง€ ์˜์—ญ์ด ์ž‘์œผ๋ฉด ์—ฌ์ „ํžˆ ์ œํ•œ๋ฉ๋‹ˆ๋‹ค."
241
+ },
242
+ "sam_mask_hint_threshold": {
243
+ "name": "sam ๋งˆ์Šคํฌ ํžŒํŠธ ์ž„๊ณ„์น˜",
244
+ "tooltip": "[์‹คํ—˜๊ธฐ๋Šฅ] ์˜ค๋ž˜๋œ ์‹คํ—˜ ๊ธฐ๋Šฅ์œผ๋กœ, mask-hint ๋ชจ๋“œ์—์„œ๋งŒ ์‚ฌ์šฉ๋˜๋Š” ์˜ต์…˜์œผ๋กœ, ๋งˆ์Šคํฌ์—์„œ ์ด ํฌ๊ธฐ ์ด์ƒ์˜ ์  ๋งˆ์Šคํฌ๋ฅผ sam์˜ ํžŒํŠธ๋กœ ์‚ฌ์šฉํ•ฉ๋‹ˆ๋‹ค."
245
+ },
246
+ "sam_mask_hint_use_negative": {
247
+ "name": "sam ๋งˆ์Šคํฌ ํžŒํŠธ์— ์ œ์™ธ ํžŒํŠธ ์‚ฌ์šฉ",
248
+ "tooltip": "[์‹คํ—˜๊ธฐ๋Šฅ] ์˜ค๋ž˜๋œ ์‹คํ—˜ ๊ธฐ๋Šฅ์œผ๋กœ, mask-hitn ๋ชจ๋“œ์—์„œ๋งŒ ์‚ฌ์šฉ๋˜๋Š” ์˜ต์…˜์œผ๋กœ, sam ๋งˆ์Šคํฌ ํžŒํŠธ ์ž„๊ณ„์น˜๋ณด๋‹ค ์ž‘์€ ์  ๋งˆ์Šคํฌ๋ฅผ sam์˜ ์ œ์™ธ ํžŒํŠธ๋กœ ์‚ฌ์šฉํ•ฉ๋‹ˆ๋‹ค."
249
+ },
250
+ "drop_size": {
251
+ "name": "๊ฐ์ง€ ์ตœ์†Œ ํฌ๊ธฐ",
252
+ "tooltip": "์‚ฌ๊ฐ ์˜์—ญ(bbox) ๊ฐ์ง€๊ธฐ๋กœ ๊ฐ์ง€ํ•œ ํฌ๊ธฐ๊ฐ€ ์ด ์„ค์ •๊ฐ’ ๋ณด๋‹ค ์ž‘์„ ๊ฒฝ์šฐ ๋ฌด์‹œํ•ฉ๋‹ˆ๋‹ค."
253
+ },
254
+ "refiner_ratio": {
255
+ "name": "๋ผํŒŒ์ด๋„ˆ ์ ์šฉ ๋น„์œจ",
256
+ "tooltip": "SDXL ๋ฆฌํŒŒ์ด๋„ˆ ๋ชจ๋ธ์„ ์‚ฌ์šฉํ•  ๊ฒฝ์šฐ ์ ์šฉ๋  ํ›„๋ฐ˜ ์Šคํ…์ˆ˜ ๋น„์œจ์„ ์„ค์ •ํ•ฉ๋‹ˆ๋‹ค."
257
+ },
258
+ "cycle": {
259
+ "name": "๋ฐ˜๋ณต์ˆ˜",
260
+ "tooltip": "์„ค์ •๋œ ๊ฐ’๋งŒํผ ์ธํŽ˜์ธํŒ…์„ ๋ฐ˜๋ณต ์ ์šฉํ•ฉ๋‹ˆ๋‹ค. ์ธ์ฝ”๋”ฉ/๋””์ฝ”๋”ฉ ์—†์ด ํ™•๋Œ€๋œ ์ž ์žฌ ์ด๋ฏธ์ง€ ๋‹จ๊ณ„์—์„œ ๋ฐ˜๋ณต๋ฉ๋‹ˆ๋‹ค."
261
+ },
262
+ "inpaint_model": {
263
+ "name": "์ธํŽ˜์ธํŠธ ๋ชจ๋ธ ๋ชจ๋“œ",
264
+ "tooltip": "์ธํŽ˜์ธํŠธ ์ „์šฉ ๋ชจ๋ธ์„ ์‚ฌ์šฉํ•  ๊ฒฝ์šฐ ์ด ์˜ต์…˜์„ ์ผœ๋ฉด, ์ธํŽ˜์ธํŒ…์‹œ์— '์ธํŽ˜์ธํŠธ ๋ชจ๋ธ ์กฐ๊ฑด ์„ค์ •'์ด ์ ์šฉ๋˜์–ด ์ˆ˜ํ–‰๋ฉ๋‹ˆ๋‹ค."
265
+ },
266
+ "noise_mask_feather": {
267
+ "name": "๋…ธ์ด์ฆˆ ๋งˆ์Šคํฌ ๊ฐ€์žฅ์ž๋ฆฌ ํ๋ฆผ",
268
+ "tooltip": "์ธํŽ˜์ธํŠธ์‹œ์— ์ ์šฉ๋˜๋Š” ๋…ธ์ด์ฆˆ ๋งˆ์Šคํฌ์˜ ๊ฐ€์žฅ์ž๋ฆฌ๋ฅผ ํ๋ฆฌ๊ฒŒ ํ•ฉ๋‹ˆ๋‹ค. ์ด ์„ค์ •๊ฐ’์ด 0์„ ์ดˆ๊ณผํ•  ๊ฒฝ์šฐ, ๋‚ด๋ถ€์ ์œผ๋กœ ์ž๋™์œผ๋กœ '์ฐจ๋“ฑ ํ™•์‚ฐ' ๋…ธ๋“œ๋ฅผ ์ ์šฉํ•ฉ๋‹ˆ๋‹ค."
269
+ },
270
+ "scheduler_func_opt": {
271
+ "name": "์Šค์ผ€์ฅด๋Ÿฌ ํ•จ์ˆ˜",
272
+ "tooltip": "GITS ์Šค์ผ€์ฅด๋Ÿฌ ์ฒ˜๋Ÿผ ๊ธฐ๋ณธ ์Šค์ผ€์ฅด๋Ÿฌ ๋ฆฌ์ŠคํŠธ์—์„œ ์„ ํƒํ•  ์ˆ˜ ์—†๋Š” ํŠน์ˆ˜ ์Šค์ผ€์ฅด๋Ÿฌ๋ฅผ ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ๊ฒŒ ํ•ด์ค๋‹ˆ๋‹ค. ์ด ์ž…๋ ฅ์ด ์—ฐ๊ฒฐ๋˜๋ฉด, ๊ธฐ๋ณธ ์Šค์ผ€์ฅด๋Ÿฌ ์„ ํƒ์€ ๋ฌด์‹œ๋ฉ๋‹ˆ๋‹ค."
273
+ },
274
+ "tiled_encode": {
275
+ "name": "ํƒ€์ผ ์ธ์ฝ”๋“œ ์‚ฌ์šฉ",
276
+ "tooltip": "์ด ์˜ต์…˜์„ ์ผœ๋ฉด, ๋‚ด๋ถ€์ ์œผ๋กœ 'VAE ์ธ์ฝ”๋“œ'๋ฅผ ์‚ฌ์šฉํ•  ๊ฒฝ์šฐ, ๊ธฐ๋ณธ 'VAE ์ธ์ฝ”๋“œ' ๋Œ€์‹  'VAE ์ธ์ฝ”๋“œ (ํƒ€์ผ)' ์„ ์ ์šฉํ•ฉ๋‹ˆ๋‹ค."
277
+ },
278
+ "tiled_decode": {
279
+ "name": "ํƒ€์ผ ๋””์ฝ”๋“œ ์‚ฌ์šฉ",
280
+ "tooltip": "์ด ์˜ต์…˜์„ ์ผœ๋ฉด, ๋‚ด๋ถ€์ ์œผ๋กœ 'VAE ๋‹ค์ฝ”๋“œ'๋ฅผ ์‚ฌ์šฉํ•  ๊ฒฝ์šฐ, ๊ธฐ๋ณธ 'VAE ๋””์ฝ”๋“œ' ๋Œ€์‹  'VAE ๋””์ฝ”๋“œ (ํƒ€์ผ)' ์„ ์ ์šฉํ•ฉ๋‹ˆ๋‹ค."
281
+ }
282
+ },
283
+ "outputs": {
284
+ "0": {
285
+ "name": "๊ฐœ์„  ์ด๋ฏธ"
286
+ },
287
+ "1": {
288
+ "name": "์ž˜๋ผ๋‚ธ ์ด๋ฏธ์ง€"
289
+ },
290
+ "2": {
291
+ "name": "์ž˜๋ผ๋‚ธ ํˆฌ๋ช… ์ด๋ฏธ์ง€"
292
+ },
293
+ "3": {
294
+ "name": "๋งˆ์Šคํฌ"
295
+ },
296
+ "4": {
297
+ "name": "๋””ํ…Œ์ผ๋Ÿฌ ํŒŒ์ดํ”„"
298
+ },
299
+ "5": {
300
+ "name": "์ปจํŠธ๋กค๋„ท ์ด๋ฏธ์ง€"
301
+ }
302
+ }
303
+ },
304
+ "DetailerForEach": {
305
+ "description": "๊ฐ์ง€ ์˜์—ญ ์ •๋ณด ๋ฌถ์Œ(SEGS)๋‚ด์˜ ๊ฐ ์˜์—ญ๋“ค์— ๋Œ€ํ•ด ๊ฐ€์ด๋“œ ํฌ๊ธฐ๋ฅผ ๊ธฐ๋ฐ˜์œผ๋กœ ํ™•๋Œ€ํ•ด์„œ ์ธํŽ˜์ดํŠธํ•˜๋Š” ๋ฐฉ๋ฒ•์œผ๏ฟฝ๏ฟฝ ๋””ํ…Œ์ผ์„ ๊ฐ•ํ™”ํ•ฉ๋‹ˆ๋‹ค.",
306
+ "display_name": "๋””ํ…Œ์ผ๋Ÿฌ (SEGS)",
307
+ "inputs": {
308
+ "image": {
309
+ "name": "์ด๋ฏธ์ง€"
310
+ },
311
+ "segs": {
312
+ "name": "segs",
313
+ "tooltip": "๊ฐ์ง€ ์˜์—ญ ์ •๋ณด๋ฅผ ๋‹ด๊ณ  ์žˆ๋Š” ๋ฌถ์Œ.\n์ด ์˜์—ญ๋“ค์„ ๋Œ€์ƒ์œผ๋กœ ์ธํŽ˜์ธํŠธ๊ฐ€ ์ ์šฉ๋ฉ๋‹ˆ๋‹ค."
314
+ },
315
+ "model": {
316
+ "name": "๋ชจ๋ธ",
317
+ "tooltip": "๋งŒ์•ฝ `ImpactDummyInput` ์„ ์—ฐ๊ฒฐ ํ•˜๋ฉด, ์ธํŽ˜์ธํŠธ ๋‹จ๊ณ„๋ฅผ ๊ฑด๋„ˆ ๋œ๋‹ˆ๋‹ค."
318
+ },
319
+ "guide_size": {
320
+ "name": "๊ฐ€์ด๋“œ ํฌ๊ธฐ",
321
+ "tooltip": "'๊ฐ€์ด๋“œ ํฌ๊ธฐ ๋Œ€์ƒ'์œผ๋กœ ์ง€์ •๋œ ํฌ๊ธฐ์˜ ๊ฐ€์žฅ ์งง์€๋ฉด์„ ์ด ํฌ๊ธฐ๊นŒ์ง€ ํ™•๋Œ€ํ•ฉ๋‹ˆ๋‹ค."
322
+ },
323
+ "guide_size_for": {
324
+ "name": "๊ฐ€์ด๋“œ ํฌ๊ธฐ ๋Œ€์ƒ",
325
+ "tooltip": "bbox: ๊ฐ์ง€๋œ ์‚ฌ๊ฐ ์˜์—ญ(bbox)\ncrop_region: ์ž˜๋ผ๋‚ธ ์˜์—ญ"
326
+ },
327
+ "max_size": {
328
+ "name": "์ตœ๋Œ€ ํฌ๊ธฐ",
329
+ "tooltip": "'๊ฐ€์ด๋“œ ํฌ๊ธฐ'๋กœ ํ™•๋Œ€ ํ•  ๋•Œ, ๊ฐ€์žฅ ๊ธด ๋ฉด์˜ ๊ธธ์ด๋ฅผ ์ด ํฌ๊ธฐ๋กœ ์ œํ•œํ•ฉ๋‹ˆ๋‹ค. ๋„ˆ๋ฌด ํฌ๊ฒŒ ํ™•๋Œ€ ๋˜๋Š” ๊ฒƒ์„ ๋ง‰์•„์ค๋‹ˆ๋‹ค."
330
+ },
331
+ "seed": {
332
+ "name": "์‹œ๋“œ"
333
+ },
334
+ "steps": {
335
+ "name": "์Šคํ…์ˆ˜"
336
+ },
337
+ "sampler_name": {
338
+ "name": "์ƒ˜ํ”Œ๋Ÿฌ ์ด๋ฆ„"
339
+ },
340
+ "scheduler": {
341
+ "name": "์Šค์ผ€์ฅด๋Ÿฌ"
342
+ },
343
+ "positive": {
344
+ "name": "๊ธ์ • ์กฐ๊ฑด"
345
+ },
346
+ "negative": {
347
+ "name": "๋ถ€์ • ์กฐ๊ฑด"
348
+ },
349
+ "denoise": {
350
+ "name": "๋…ธ์ด์ฆˆ ์ œ๊ฑฐ์–‘"
351
+ },
352
+ "feather": {
353
+ "name": "๊ฐ€์žฅ์ž๋ฆฌ ํ๋ฆผ",
354
+ "tooltip": "ํ™•๋Œ€ ํ•ด์„œ ์ธํŽ˜์ธํŠธ ๋œ ์ด๋ฏธ์ง€๋ฅผ ์›๋ณธ ์ด๋ฏธ์ง€์— ๋ถ™์—ฌ๋„ฃ์„ ๋•Œ, ์ด ์ˆ˜์น˜๋กœ ๋งˆ์Šคํฌ์˜ ๊ฐ€์žฅ ์ž๋ฆฌ๋ฅผ ํ๋ฆฌ๊ฒŒ ํ•ด์„œ ๋ถ™์—ฌ๋„ฃ์–ด ์ด์Œ๋งค์˜ ์œ„ํ™”๊ฐ์„ ์ค„์—ฌ์ค๋‹ˆ๋‹ค."
355
+ },
356
+ "noise_mask": {
357
+ "name": "๋…ธ์ด์ฆˆ ๋งˆ์Šคํฌ ์‚ฌ์šฉ",
358
+ "tooltip": "์ธํŽ˜์ธํŠธ ํ•  ๋•Œ, ๋งˆ์Šคํฌ๋ฅผ ์ ์šฉํ•ด์„œ ๋งˆ์Šคํฌ ์˜์—ญ๋งŒ ์ธํŽ˜์ธํŠธํ•ฉ๋‹ˆ๋‹ค. ์ด ์˜ต์…˜์„ ์ ์šฉํ•˜์ง€ ์•Š์œผ๋ฉด, ์ž˜๋ผ๋‚ธ ์ด๋ฏธ์ง€ ์ „์ฒด๊ฐ€ ์žฌ์ƒ์„ฑ๋˜์–ด ๋…ธ์ด์ฆˆ ์ œ๊ฑฐ์–‘์ด ํด ๋•Œ ์œ„ํ™”๊ฐ์ด ๋‚˜ํƒ€๋‚˜๊ฒŒ ๋ฉ๋‹ˆ๋‹ค."
359
+ },
360
+ "force_inpaint": {
361
+ "name": "์ธํŽ˜์ธํŠธ ๊ฐ•์ œ ์ ์šฉ",
362
+ "tooltip": "๊ฐ€์ด๋“œ ํฌ๊ธฐ์™€ ์ƒ๊ด€ ์—†์ด ์ธํŽ˜์ธํŒ…์„ ๋ฌด์กฐ๊ฑด ์ ์šฉ ํ•ฉ๋‹ˆ๋‹ค. ์ด ์˜ต์…˜์ด ๊บผ์ ธ์žˆ๋Š” ๊ฒฝ์šฐ ๊ฐ€์ด๋“œ ํฌ๊ธฐ๋ณด๋‹ค ์ด๋ฏธ ํฐ ๊ฐ์ง€ ์˜์—ญ์€ ์ธํŽ˜์ธํŒ…์„ ๊ฑด๋„ˆ ๋œ๋‹ˆ๋‹ค."
363
+ },
364
+ "wildcard": {
365
+ "name": "์™€์ผ๋“œ์นด๋“œ ํ”„๋กฌํ”„ํŠธ",
366
+ "tooltip": "'์™€์ผ๋“œ์นด๋“œ ์ธ์ฝ”๋” (Impact)'์™€ ์œ ์‚ฌํ•œ ๊ธฐ๋Šฅ์„ ์ˆ˜ํ–‰ํ•˜์—ฌ, ์™€์ผ๋“œ์นด๋“œ ๊ธฐ๋Šฅ๊ณผ ๋กœ๋ผ ๋กœ๋”ฉ ๊ธฐ๋Šฅ์„ ์ œ๊ณตํ•ฉ๋‹ˆ๋‹ค. ๋˜ํ•œ, ๊ฐ์ง€๋œ ์˜์—ญ๋ณ„๋กœ ๋‹ค๋ฅธ ํ”„๋กฌํ”„ํŠธ๋ฅผ ์ ์šฉํ•˜๋Š” ๊ธฐ๋Šฅ๋“ค์„ ์ œ๊ณตํ•ฉ๋‹ˆ๋‹ค.\n๋” ์ž์„ธํ•œ ์ •๋ณด๋Š” ํŠœํ† ๋ฆฌ์–ผ ํŽ˜์ด์ง€๋ฅผ ์ฐธ๊ณ ํ•˜์„ธ์š”.\n์ฃผ์˜:์ด ์ž…๋ ฅ์„ ๋น„์›Œ๋‘๋ฉด, ์ด ์ž…๋ ฅ์€ ๋ฌด์‹œ๋ฉ๋‹ˆ๋‹ค."
367
+ },
368
+ "cycle": {
369
+ "name": "๋ฐ˜๋ณต์ˆ˜",
370
+ "tooltip": "์„ค์ •๋œ ๊ฐ’๋งŒํผ ์ธํŽ˜์ธํŒ…์„ ๋ฐ˜๋ณต ์ ์šฉํ•ฉ๋‹ˆ๋‹ค. ์ธ์ฝ”๋”ฉ/๋””์ฝ”๋”ฉ ์—†์ด ํ™•๋Œ€๋œ ์ž ์žฌ ์ด๋ฏธ์ง€ ๋‹จ๊ณ„์—์„œ ๋ฐ˜๋ณต๋ฉ๋‹ˆ๋‹ค."
371
+ },
372
+ "detailer_hook": {
373
+ "name": "๋””ํ…Œ์ผ๋Ÿฌ ํ›„ํฌ",
374
+ "tooltip": "์ด ๋…ธ๋“œ์˜ ์‹คํ–‰ ์ค‘๊ฐ„๋‹จ๊ณ„์—์„œ ์—ฌ๋Ÿฌ๊ฐ€์ง€ ๊ธฐ๋Šฅ์„ ์ˆ˜ํ–‰ํ•  ์ˆ˜ ์žˆ๋Š” ํ›„ํฌ๋ฅผ ์—ฐ๊ฒฐํ•ฉ๋‹ˆ๋‹ค."
375
+ },
376
+ "inpaint_model": {
377
+ "name": "์ธํŽ˜์ธํŠธ ๋ชจ๋ธ ๋ชจ๋“œ",
378
+ "tooltip": "์ธํŽ˜์ธํŠธ ์ „์šฉ ๋ชจ๋ธ์„ ์‚ฌ์šฉํ•  ๊ฒฝ์šฐ ์ด ์˜ต์…˜์„ ์ผœ๋ฉด, ์ธํŽ˜์ธํŒ…์‹œ์— '์ธํŽ˜์ธํŠธ ๋ชจ๋ธ ์กฐ๊ฑด ์„ค์ •'์ด ์ ์šฉ๋˜์–ด ์ˆ˜ํ–‰๋ฉ๋‹ˆ๋‹ค."
379
+ },
380
+ "noise_mask_feather": {
381
+ "name": "๋…ธ์ด์ฆˆ ๋งˆ์Šคํฌ ๊ฐ€์žฅ์ž๋ฆฌ ํ๋ฆผ",
382
+ "tooltip": "์ธํŽ˜์ธํŠธ์‹œ์— ์ ์šฉ๋˜๋Š” ๋…ธ์ด์ฆˆ ๋งˆ์Šคํฌ์˜ ๊ฐ€์žฅ์ž๋ฆฌ๋ฅผ ํ๋ฆฌ๊ฒŒ ํ•ฉ๋‹ˆ๋‹ค. ์ด ์„ค์ •๊ฐ’์ด 0์„ ์ดˆ๊ณผํ•  ๊ฒฝ์šฐ, ๋‚ด๋ถ€์ ์œผ๋กœ ์ž๋™์œผ๋กœ '์ฐจ๋“ฑ ํ™•์‚ฐ' ๋…ธ๋“œ๋ฅผ ์ ์šฉํ•ฉ๋‹ˆ๋‹ค."
383
+ },
384
+ "scheduler_func_opt": {
385
+ "name": "์Šค์ผ€์ฅด๋Ÿฌ ํ•จ์ˆ˜",
386
+ "tooltip": "GITS ์Šค์ผ€์ฅด๋Ÿฌ ์ฒ˜๋Ÿผ ๊ธฐ๋ณธ ์Šค์ผ€์ฅด๋Ÿฌ ๋ฆฌ์ŠคํŠธ์—์„œ ์„ ํƒํ•  ์ˆ˜ ์—†๋Š” ํŠน์ˆ˜ ์Šค์ผ€์ฅด๋Ÿฌ๋ฅผ ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ๊ฒŒ ํ•ด์ค๋‹ˆ๋‹ค. ์ด ์ž…๋ ฅ์ด ์—ฐ๊ฒฐ๋˜๋ฉด, ๊ธฐ๋ณธ ์Šค์ผ€์ฅด๋Ÿฌ ์„ ํƒ์€ ๋ฌด์‹œ๋ฉ๋‹ˆ๋‹ค."
387
+ },
388
+ "tiled_encode": {
389
+ "name": "ํƒ€์ผ ์ธ์ฝ”๋“œ ์‚ฌ์šฉ",
390
+ "tooltip": "์ด ์˜ต์…˜์„ ์ผœ๋ฉด, ๋‚ด๋ถ€์ ์œผ๋กœ 'VAE ์ธ์ฝ”๋“œ'๋ฅผ ์‚ฌ์šฉ๏ฟฝ๏ฟฝ ๊ฒฝ์šฐ, ๊ธฐ๋ณธ 'VAE ์ธ์ฝ”๋“œ' ๋Œ€์‹  'VAE ์ธ์ฝ”๋“œ (ํƒ€์ผ)' ์„ ์ ์šฉํ•ฉ๋‹ˆ๋‹ค."
391
+ },
392
+ "tiled_decode": {
393
+ "name": "ํƒ€์ผ ๋””์ฝ”๋“œ ์‚ฌ์šฉ",
394
+ "tooltip": "์ด ์˜ต์…˜์„ ์ผœ๋ฉด, ๋‚ด๋ถ€์ ์œผ๋กœ 'VAE ๋‹ค์ฝ”๋“œ'๋ฅผ ์‚ฌ์šฉํ•  ๊ฒฝ์šฐ, ๊ธฐ๋ณธ 'VAE ๋””์ฝ”๋“œ' ๋Œ€์‹  'VAE ๋””์ฝ”๋“œ (ํƒ€์ผ)' ์„ ์ ์šฉํ•ฉ๋‹ˆ๋‹ค."
395
+ }
396
+ },
397
+ "outputs": {
398
+ "0": {
399
+ "name": "๊ฐœ์„  ์ด๋ฏธ์ง€"
400
+ }
401
+ }
402
+ },
403
+ "DetailerForEachPipe": {
404
+ "description": "๊ฐ์ง€ ์˜์—ญ ์ •๋ณด ๋ฌถ์Œ(SEGS)๋‚ด์˜ ๊ฐ ์˜์—ญ๋“ค์— ๋Œ€ํ•ด ๊ฐ€์ด๋“œ ํฌ๊ธฐ๋ฅผ ๊ธฐ๋ฐ˜์œผ๋กœ ํ™•๋Œ€ํ•ด์„œ ์ธํŽ˜์ดํŠธํ•˜๋Š” ๋ฐฉ๋ฒ•์œผ๋กœ ๋””ํ…Œ์ผ์„ ๊ฐ•ํ™”ํ•ฉ๋‹ˆ๋‹ค.",
405
+ "display_name": "๋””ํ…Œ์ผ๋Ÿฌ (์ƒ์„ธ/SEGS/ํŒŒ์ดํ”„)",
406
+ "inputs": {
407
+ "image": {
408
+ "name": "์ด๋ฏธ์ง€"
409
+ },
410
+ "segs": {
411
+ "name": "segs",
412
+ "tooltip": "๊ฐ์ง€ ์˜์—ญ ์ •๋ณด๋ฅผ ๋‹ด๊ณ  ์žˆ๋Š” ๋ฌถ์Œ.\n์ด ์˜์—ญ๋“ค์„ ๋Œ€์ƒ์œผ๋กœ ์ธํŽ˜์ธํŠธ๊ฐ€ ์ ์šฉ๋ฉ๋‹ˆ๋‹ค."
413
+ },
414
+ "guide_size": {
415
+ "name": "๊ฐ€์ด๋“œ ํฌ๊ธฐ",
416
+ "tooltip": "'๊ฐ€์ด๋“œ ํฌ๊ธฐ ๋Œ€์ƒ'์œผ๋กœ ์ง€์ •๋œ ํฌ๊ธฐ์˜ ๊ฐ€์žฅ ์งง์€๋ฉด์„ ์ด ํฌ๊ธฐ๊นŒ์ง€ ํ™•๋Œ€ํ•ฉ๋‹ˆ๋‹ค."
417
+ },
418
+ "guide_size_for": {
419
+ "name": "๊ฐ€์ด๋“œ ํฌ๊ธฐ ๋Œ€์ƒ",
420
+ "tooltip": "bbox: ๊ฐ์ง€๋œ ์‚ฌ๊ฐ ์˜์—ญ(bbox)\ncrop_region: ์ž˜๋ผ๋‚ธ ์˜์—ญ"
421
+ },
422
+ "max_size": {
423
+ "name": "์ตœ๋Œ€ ํฌ๊ธฐ",
424
+ "tooltip": "'๊ฐ€์ด๋“œ ํฌ๊ธฐ'๋กœ ํ™•๋Œ€ ํ•  ๋•Œ, ๊ฐ€์žฅ ๊ธด ๋ฉด์˜ ๊ธธ์ด๋ฅผ ์ด ํฌ๊ธฐ๋กœ ์ œํ•œํ•ฉ๋‹ˆ๋‹ค. ๋„ˆ๋ฌด ํฌ๊ฒŒ ํ™•๋Œ€ ๋˜๋Š” ๊ฒƒ์„ ๋ง‰์•„์ค๋‹ˆ๋‹ค."
425
+ },
426
+ "seed": {
427
+ "name": "์‹œ๋“œ"
428
+ },
429
+ "steps": {
430
+ "name": "์Šคํ…์ˆ˜"
431
+ },
432
+ "sampler_name": {
433
+ "name": "์ƒ˜ํ”Œ๋Ÿฌ ์ด๋ฆ„"
434
+ },
435
+ "scheduler": {
436
+ "name": "์Šค์ผ€์ฅด๋Ÿฌ"
437
+ },
438
+ "denoise": {
439
+ "name": "๋…ธ์ด์ฆˆ ์ œ๊ฑฐ์–‘"
440
+ },
441
+ "feather": {
442
+ "name": "๊ฐ€์žฅ์ž๋ฆฌ ํ๋ฆผ",
443
+ "tooltip": "ํ™•๋Œ€ ํ•ด์„œ ์ธํŽ˜์ธํŠธ ๋œ ์ด๋ฏธ์ง€๋ฅผ ์›๋ณธ ์ด๋ฏธ์ง€์— ๋ถ™์—ฌ๋„ฃ์„ ๋•Œ, ์ด ์ˆ˜์น˜๋กœ ๋งˆ์Šคํฌ์˜ ๊ฐ€์žฅ ์ž๋ฆฌ๋ฅผ ํ๋ฆฌ๊ฒŒ ํ•ด์„œ ๋ถ™์—ฌ๋„ฃ์–ด ์ด์Œ๋งค์˜ ์œ„ํ™”๊ฐ์„ ์ค„์—ฌ์ค๋‹ˆ๋‹ค."
444
+ },
445
+ "noise_mask": {
446
+ "name": "๋…ธ์ด์ฆˆ ๋งˆ์Šคํฌ ์‚ฌ์šฉ",
447
+ "tooltip": "์ธํŽ˜์ธํŠธ ํ•  ๋•Œ, ๋งˆ์Šคํฌ๋ฅผ ์ ์šฉํ•ด์„œ ๋งˆ์Šคํฌ ์˜์—ญ๋งŒ ์ธํŽ˜์ธํŠธํ•ฉ๋‹ˆ๋‹ค. ์ด ์˜ต์…˜์„ ์ ์šฉํ•˜์ง€ ์•Š์œผ๋ฉด, ์ž˜๋ผ๋‚ธ ์ด๋ฏธ์ง€ ์ „์ฒด๊ฐ€ ์žฌ์ƒ์„ฑ๋˜์–ด ๋…ธ์ด์ฆˆ ์ œ๊ฑฐ์–‘์ด ํด ๋•Œ ์œ„ํ™”๊ฐ์ด ๋‚˜ํƒ€๋‚˜๊ฒŒ ๋ฉ๋‹ˆ๋‹ค."
448
+ },
449
+ "force_inpaint": {
450
+ "name": "์ธํŽ˜์ธํŠธ ๊ฐ•์ œ ์ ์šฉ",
451
+ "tooltip": "๊ฐ€์ด๋“œ ํฌ๊ธฐ์™€ ์ƒ๊ด€ ์—†์ด ์ธํŽ˜์ธํŒ…์„ ๋ฌด์กฐ๊ฑด ์ ์šฉ ํ•ฉ๋‹ˆ๋‹ค. ์ด ์˜ต์…˜์ด ๊บผ์ ธ์žˆ๋Š” ๊ฒฝ์šฐ ๊ฐ€์ด๋“œ ํฌ๊ธฐ๋ณด๋‹ค ์ด๋ฏธ ํฐ ๊ฐ์ง€ ์˜์—ญ์€ ์ธํŽ˜์ธํŒ…์„ ๊ฑด๋„ˆ ๋œ๋‹ˆ๋‹ค."
452
+ },
453
+ "basic_pipe": {
454
+ "name": "๊ธฐ๋ณธ ํŒŒ์ดํ”„",
455
+ "tooltip": "๋งŒ์•ฝ ๊ธฐ๋ณธ ํŒŒ์ดํ”„ ๋‚ด์˜ ๋ชจ๋ธ์— `ImpactDummyInput` ๊ฐ€ ์„ค์ •๋œ ๊ฒฝ์šฐ, ์ธํŽ˜์ธํŠธ ๋‹จ๊ณ„๋ฅผ ๊ฑด๋„ˆ ๋œ๋‹ˆ๋‹ค."
456
+ },
457
+ "refiner_ratio": {
458
+ "name": "๋ผํŒŒ์ด๋„ˆ ์ ์šฉ ๋น„์œจ",
459
+ "tooltip": "SDXL ๋ฆฌํŒŒ์ด๋„ˆ ๋ชจ๋ธ์„ ์‚ฌ์šฉํ•  ๊ฒฝ์šฐ ์ ์šฉ๋  ํ›„๋ฐ˜ ์Šคํ…์ˆ˜ ๋น„์œจ์„ ์„ค์ •ํ•ฉ๋‹ˆ๋‹ค."
460
+ },
461
+ "cycle": {
462
+ "name": "๋ฐ˜๋ณต์ˆ˜",
463
+ "tooltip": "์„ค์ •๋œ ๊ฐ’๋งŒํผ ์ธํŽ˜์ธํŒ…์„ ๋ฐ˜๋ณต ์ ์šฉํ•ฉ๋‹ˆ๋‹ค. ์ธ์ฝ”๋”ฉ/๋””์ฝ”๋”ฉ ์—†์ด ํ™•๋Œ€๋œ ์ž ์žฌ ์ด๋ฏธ์ง€ ๋‹จ๊ณ„์—์„œ ๋ฐ˜๋ณต๋ฉ๋‹ˆ๋‹ค."
464
+ },
465
+ "detailer_hook": {
466
+ "name": "๋””ํ…Œ์ผ๋Ÿฌ ํ›„ํฌ",
467
+ "tooltip": "์ด ๋…ธ๋“œ์˜ ์‹คํ–‰ ์ค‘๊ฐ„๋‹จ๊ณ„์—์„œ ์—ฌ๋Ÿฌ๊ฐ€์ง€ ๊ธฐ๋Šฅ์„ ์ˆ˜ํ–‰ํ•  ์ˆ˜ ์žˆ๋Š” ํ›„ํฌ๋ฅผ ์—ฐ๊ฒฐํ•ฉ๋‹ˆ๋‹ค."
468
+ },
469
+ "refiner_basic_pipe_opt": {
470
+ "name": "๋ฆฌํŒŒ์ด๋„ˆ ๊ธฐ๋ณธ ํŒŒ์ดํ”„",
471
+ "tooltip": "SDXL ๋ฆฌํŒŒ์ด๋„ˆ ๋‹จ๊ณ„์— ์ ์šฉํ•  ๊ธฐ๋ณธ ํŒŒ์ดํ”„๋ฅผ ์—ฐ๊ฒฐํ•ฉ๋‹ˆ๋‹ค."
472
+ },
473
+ "inpaint_model": {
474
+ "name": "์ธํŽ˜์ธํŠธ ๋ชจ๋ธ ๋ชจ๋“œ",
475
+ "tooltip": "์ธํŽ˜์ธํŠธ ์ „์šฉ ๋ชจ๋ธ์„ ์‚ฌ์šฉํ•  ๊ฒฝ์šฐ ์ด ์˜ต์…˜์„ ์ผœ๋ฉด, ์ธํŽ˜์ธํŒ…์‹œ์— '์ธํŽ˜์ธํŠธ ๋ชจ๋ธ ์กฐ๊ฑด ์„ค์ •'์ด ์ ์šฉ๋˜์–ด ์ˆ˜ํ–‰๋ฉ๋‹ˆ๋‹ค."
476
+ },
477
+ "noise_mask_feather": {
478
+ "name": "๋…ธ์ด์ฆˆ ๋งˆ์Šคํฌ ๊ฐ€์žฅ์ž๋ฆฌ ํ๋ฆผ",
479
+ "tooltip": "์ธํŽ˜์ธํŠธ์‹œ์— ์ ์šฉ๋˜๋Š” ๋…ธ์ด์ฆˆ ๋งˆ์Šคํฌ์˜ ๊ฐ€์žฅ์ž๋ฆฌ๋ฅผ ํ๋ฆฌ๊ฒŒ ํ•ฉ๋‹ˆ๋‹ค. ์ด ์„ค์ •๊ฐ’์ด 0์„ ์ดˆ๊ณผํ•  ๊ฒฝ์šฐ, ๋‚ด๋ถ€์ ์œผ๋กœ ์ž๋™์œผ๋กœ '์ฐจ๋“ฑ ํ™•์‚ฐ' ๋…ธ๏ฟฝ๏ฟฝ๏ฟฝ๋ฅผ ์ ์šฉํ•ฉ๋‹ˆ๋‹ค."
480
+ },
481
+ "scheduler_func_opt": {
482
+ "name": "์Šค์ผ€์ฅด๋Ÿฌ ํ•จ์ˆ˜",
483
+ "tooltip": "GITS ์Šค์ผ€์ฅด๋Ÿฌ ์ฒ˜๋Ÿผ ๊ธฐ๋ณธ ์Šค์ผ€์ฅด๋Ÿฌ ๋ฆฌ์ŠคํŠธ์—์„œ ์„ ํƒํ•  ์ˆ˜ ์—†๋Š” ํŠน์ˆ˜ ์Šค์ผ€์ฅด๋Ÿฌ๋ฅผ ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ๊ฒŒ ํ•ด์ค๋‹ˆ๋‹ค. ์ด ์ž…๋ ฅ์ด ์—ฐ๊ฒฐ๋˜๋ฉด, ๊ธฐ๋ณธ ์Šค์ผ€์ฅด๋Ÿฌ ์„ ํƒ์€ ๋ฌด์‹œ๋ฉ๋‹ˆ๋‹ค."
484
+ },
485
+ "tiled_encode": {
486
+ "name": "ํƒ€์ผ ์ธ์ฝ”๋“œ ์‚ฌ์šฉ",
487
+ "tooltip": "์ด ์˜ต์…˜์„ ์ผœ๋ฉด, ๋‚ด๋ถ€์ ์œผ๋กœ 'VAE ์ธ์ฝ”๋“œ'๋ฅผ ์‚ฌ์šฉํ•  ๊ฒฝ์šฐ, ๊ธฐ๋ณธ 'VAE ์ธ์ฝ”๋“œ' ๋Œ€์‹  'VAE ์ธ์ฝ”๋“œ (ํƒ€์ผ)' ์„ ์ ์šฉํ•ฉ๋‹ˆ๋‹ค."
488
+ },
489
+ "tiled_decode": {
490
+ "name": "ํƒ€์ผ ๋””์ฝ”๋“œ ์‚ฌ์šฉ",
491
+ "tooltip": "์ด ์˜ต์…˜์„ ์ผœ๋ฉด, ๋‚ด๋ถ€์ ์œผ๋กœ 'VAE ๋‹ค์ฝ”๋“œ'๋ฅผ ์‚ฌ์šฉํ•  ๊ฒฝ์šฐ, ๊ธฐ๋ณธ 'VAE ๋””์ฝ”๋“œ' ๋Œ€์‹  'VAE ๋””์ฝ”๋“œ (ํƒ€์ผ)' ์„ ์ ์šฉํ•ฉ๋‹ˆ๋‹ค."
492
+ }
493
+ },
494
+ "outputs": {
495
+ "0": {
496
+ "name": "๊ฐœ์„  ์ด๋ฏธ์ง€"
497
+ },
498
+ "1": {
499
+ "name": "segs"
500
+ },
501
+ "2": {
502
+ "name": "๊ธฐ๋ณธ ํŒŒ์ดํ”„"
503
+ },
504
+ "3": {
505
+ "name": "์ปจํŠธ๋กค๋„ท ์ด๋ฏธ์ง€"
506
+ }
507
+ }
508
+ },
509
+ "DetailerForEachDebug": {
510
+ "description": "๊ฐ์ง€ ์˜์—ญ ์ •๋ณด ๋ฌถ์Œ(SEGS)๋‚ด์˜ ๊ฐ ์˜์—ญ๋“ค์— ๋Œ€ํ•ด ๊ฐ€์ด๋“œ ํฌ๊ธฐ๋ฅผ ๊ธฐ๋ฐ˜์œผ๋กœ ํ™•๋Œ€ํ•ด์„œ ์ธํŽ˜์ดํŠธํ•˜๋Š” ๋ฐฉ๋ฒ•์œผ๋กœ ๋””ํ…Œ์ผ์„ ๊ฐ•ํ™”ํ•ฉ๋‹ˆ๋‹ค.",
511
+ "display_name": "๋””ํ…Œ์ผ๋Ÿฌ (์ƒ์„ธ/SEGS)",
512
+ "inputs": {
513
+ "image": {
514
+ "name": "์ด๋ฏธ์ง€"
515
+ },
516
+ "segs": {
517
+ "name": "segs",
518
+ "tooltip": "๊ฐ์ง€ ์˜์—ญ ์ •๋ณด๋ฅผ ๋‹ด๊ณ  ์žˆ๋Š” ๋ฌถ์Œ.\n์ด ์˜์—ญ๋“ค์„ ๋Œ€์ƒ์œผ๋กœ ์ธํŽ˜์ธํŠธ๊ฐ€ ์ ์šฉ๋ฉ๋‹ˆ๋‹ค."
519
+ },
520
+ "model": {
521
+ "name": "๋ชจ๋ธ",
522
+ "tooltip": "๋งŒ์•ฝ `ImpactDummyInput` ์„ ์—ฐ๊ฒฐ ํ•˜๋ฉด, ์ธํŽ˜์ธํŠธ ๋‹จ๊ณ„๋ฅผ ๊ฑด๋„ˆ ๋œ๋‹ˆ๋‹ค."
523
+ },
524
+ "guide_size": {
525
+ "name": "๊ฐ€์ด๋“œ ํฌ๊ธฐ",
526
+ "tooltip": "'๊ฐ€์ด๋“œ ํฌ๊ธฐ ๋Œ€์ƒ'์œผ๋กœ ์ง€์ •๋œ ํฌ๊ธฐ์˜ ๊ฐ€์žฅ ์งง์€๋ฉด์„ ์ด ํฌ๊ธฐ๊นŒ์ง€ ํ™•๋Œ€ํ•ฉ๋‹ˆ๋‹ค."
527
+ },
528
+ "guide_size_for": {
529
+ "name": "๊ฐ€์ด๋“œ ํฌ๊ธฐ ๋Œ€์ƒ",
530
+ "tooltip": "bbox: ๊ฐ์ง€๋œ ์‚ฌ๊ฐ ์˜์—ญ(bbox)\ncrop_region: ์ž˜๋ผ๋‚ธ ์˜์—ญ"
531
+ },
532
+ "max_size": {
533
+ "name": "์ตœ๋Œ€ ํฌ๊ธฐ",
534
+ "tooltip": "'๊ฐ€์ด๋“œ ํฌ๊ธฐ'๋กœ ํ™•๋Œ€ ํ•  ๋•Œ, ๊ฐ€์žฅ ๊ธด ๋ฉด์˜ ๊ธธ์ด๋ฅผ ์ด ํฌ๊ธฐ๋กœ ์ œํ•œํ•ฉ๋‹ˆ๋‹ค. ๋„ˆ๋ฌด ํฌ๊ฒŒ ํ™•๋Œ€ ๋˜๋Š” ๊ฒƒ์„ ๋ง‰์•„์ค๋‹ˆ๋‹ค."
535
+ },
536
+ "seed": {
537
+ "name": "์‹œ๋“œ"
538
+ },
539
+ "steps": {
540
+ "name": "์Šคํ…์ˆ˜"
541
+ },
542
+ "sampler_name": {
543
+ "name": "์ƒ˜ํ”Œ๋Ÿฌ ์ด๋ฆ„"
544
+ },
545
+ "scheduler": {
546
+ "name": "์Šค์ผ€์ฅด๋Ÿฌ"
547
+ },
548
+ "positive": {
549
+ "name": "๊ธ์ • ์กฐ๊ฑด"
550
+ },
551
+ "negative": {
552
+ "name": "๋ถ€์ • ์กฐ๊ฑด"
553
+ },
554
+ "denoise": {
555
+ "name": "๋…ธ์ด์ฆˆ ์ œ๊ฑฐ์–‘"
556
+ },
557
+ "feather": {
558
+ "name": "๊ฐ€์žฅ์ž๋ฆฌ ํ๋ฆผ",
559
+ "tooltip": "ํ™•๋Œ€ ํ•ด์„œ ์ธํŽ˜์ธํŠธ ๋œ ์ด๋ฏธ์ง€๋ฅผ ์›๋ณธ ์ด๋ฏธ์ง€์— ๋ถ™์—ฌ๋„ฃ์„ ๋•Œ, ์ด ์ˆ˜์น˜๋กœ ๋งˆ์Šคํฌ์˜ ๊ฐ€์žฅ ์ž๋ฆฌ๋ฅผ ํ๋ฆฌ๊ฒŒ ํ•ด์„œ ๋ถ™์—ฌ๋„ฃ์–ด ์ด์Œ๋งค์˜ ์œ„ํ™”๊ฐ์„ ์ค„์—ฌ์ค๋‹ˆ๋‹ค."
560
+ },
561
+ "noise_mask": {
562
+ "name": "๋…ธ์ด์ฆˆ ๋งˆ์Šคํฌ ์‚ฌ์šฉ",
563
+ "tooltip": "์ธํŽ˜์ธํŠธ ํ•  ๋•Œ, ๋งˆ์Šคํฌ๋ฅผ ์ ์šฉํ•ด์„œ ๋งˆ์Šคํฌ ์˜์—ญ๋งŒ ์ธํŽ˜์ธํŠธํ•ฉ๋‹ˆ๋‹ค. ์ด ์˜ต์…˜์„ ์ ์šฉํ•˜์ง€ ์•Š์œผ๋ฉด, ์ž˜๋ผ๋‚ธ ์ด๋ฏธ์ง€ ์ „์ฒด๊ฐ€ ์žฌ์ƒ์„ฑ๋˜์–ด ๋…ธ์ด์ฆˆ ์ œ๊ฑฐ์–‘์ด ํด ๋•Œ ์œ„ํ™”๊ฐ์ด ๋‚˜ํƒ€๋‚˜๊ฒŒ ๋ฉ๋‹ˆ๋‹ค."
564
+ },
565
+ "force_inpaint": {
566
+ "name": "์ธํŽ˜์ธํŠธ ๊ฐ•์ œ ์ ์šฉ",
567
+ "tooltip": "๊ฐ€์ด๋“œ ํฌ๊ธฐ์™€ ์ƒ๊ด€ ์—†์ด ์ธํŽ˜์ธํŒ…์„ ๋ฌด์กฐ๊ฑด ์ ์šฉ ํ•ฉ๋‹ˆ๋‹ค. ์ด ์˜ต์…˜์ด ๊บผ์ ธ์žˆ๋Š” ๊ฒฝ์šฐ ๊ฐ€์ด๋“œ ํฌ๊ธฐ๋ณด๋‹ค ์ด๋ฏธ ํฐ ๊ฐ์ง€ ์˜์—ญ์€ ์ธํŽ˜์ธํŒ…์„ ๊ฑด๋„ˆ ๋œ๋‹ˆ๋‹ค."
568
+ },
569
+ "wildcard": {
570
+ "name": "์™€์ผ๋“œ์นด๋“œ ํ”„๋กฌํ”„ํŠธ",
571
+ "tooltip": "'์™€์ผ๋“œ์นด๋“œ ์ธ์ฝ”๋” (Impact)'์™€ ์œ ์‚ฌํ•œ ๊ธฐ๋Šฅ์„ ์ˆ˜ํ–‰ํ•˜์—ฌ, ์™€์ผ๋“œ์นด๋“œ ๊ธฐ๋Šฅ๊ณผ ๋กœ๋ผ ๋กœ๋”ฉ ๊ธฐ๋Šฅ์„ ์ œ๊ณตํ•ฉ๋‹ˆ๋‹ค. ๋˜ํ•œ, ๊ฐ์ง€๋œ ์˜์—ญ๋ณ„๋กœ ๋‹ค๋ฅธ ํ”„๋กฌํ”„ํŠธ๋ฅผ ์ ์šฉํ•˜๋Š” ๊ธฐ๋Šฅ๋“ค์„ ์ œ๊ณตํ•ฉ๋‹ˆ๋‹ค.\n๋” ์ž์„ธํ•œ ์ •๋ณด๋Š” ํŠœํ† ๋ฆฌ์–ผ ํŽ˜์ด์ง€๋ฅผ ์ฐธ๊ณ ํ•˜์„ธ์š”.\n์ฃผ์˜:์ด ์ž…๋ ฅ์„ ๋น„์›Œ๋‘๋ฉด, ์ด ์ž…๋ ฅ์€ ๋ฌด์‹œ๋ฉ๋‹ˆ๋‹ค."
572
+ },
573
+ "cycle": {
574
+ "name": "๋ฐ˜๋ณต์ˆ˜",
575
+ "tooltip": "์„ค์ •๋œ ๊ฐ’๋งŒํผ ์ธํŽ˜์ธํŒ…์„ ๋ฐ˜๏ฟฝ๏ฟฝ ์ ์šฉํ•ฉ๋‹ˆ๋‹ค. ์ธ์ฝ”๋”ฉ/๋””์ฝ”๋”ฉ ์—†์ด ํ™•๋Œ€๋œ ์ž ์žฌ ์ด๋ฏธ์ง€ ๋‹จ๊ณ„์—์„œ ๋ฐ˜๋ณต๋ฉ๋‹ˆ๋‹ค."
576
+ },
577
+ "detailer_hook": {
578
+ "name": "๋””ํ…Œ์ผ๋Ÿฌ ํ›„ํฌ",
579
+ "tooltip": "์ด ๋…ธ๋“œ์˜ ์‹คํ–‰ ์ค‘๊ฐ„๋‹จ๊ณ„์—์„œ ์—ฌ๋Ÿฌ๊ฐ€์ง€ ๊ธฐ๋Šฅ์„ ์ˆ˜ํ–‰ํ•  ์ˆ˜ ์žˆ๋Š” ํ›„ํฌ๋ฅผ ์—ฐ๊ฒฐํ•ฉ๋‹ˆ๋‹ค."
580
+ },
581
+ "inpaint_model": {
582
+ "name": "์ธํŽ˜์ธํŠธ ๋ชจ๋ธ ๋ชจ๋“œ",
583
+ "tooltip": "์ธํŽ˜์ธํŠธ ์ „์šฉ ๋ชจ๋ธ์„ ์‚ฌ์šฉํ•  ๊ฒฝ์šฐ ์ด ์˜ต์…˜์„ ์ผœ๋ฉด, ์ธํŽ˜์ธํŒ…์‹œ์— '์ธํŽ˜์ธํŠธ ๋ชจ๋ธ ์กฐ๊ฑด ์„ค์ •'์ด ์ ์šฉ๋˜์–ด ์ˆ˜ํ–‰๋ฉ๋‹ˆ๋‹ค."
584
+ },
585
+ "noise_mask_feather": {
586
+ "name": "๋…ธ์ด์ฆˆ ๋งˆ์Šคํฌ ๊ฐ€์žฅ์ž๋ฆฌ ํ๋ฆผ",
587
+ "tooltip": "์ธํŽ˜์ธํŠธ์‹œ์— ์ ์šฉ๋˜๋Š” ๋…ธ์ด์ฆˆ ๋งˆ์Šคํฌ์˜ ๊ฐ€์žฅ์ž๋ฆฌ๋ฅผ ํ๋ฆฌ๊ฒŒ ํ•ฉ๋‹ˆ๋‹ค. ์ด ์„ค์ •๊ฐ’์ด 0์„ ์ดˆ๊ณผํ•  ๊ฒฝ์šฐ, ๋‚ด๋ถ€์ ์œผ๋กœ ์ž๋™์œผ๋กœ '์ฐจ๋“ฑ ํ™•์‚ฐ' ๋…ธ๋“œ๋ฅผ ์ ์šฉํ•ฉ๋‹ˆ๋‹ค."
588
+ },
589
+ "scheduler_func_opt": {
590
+ "name": "์Šค์ผ€์ฅด๋Ÿฌ ํ•จ์ˆ˜",
591
+ "tooltip": "GITS ์Šค์ผ€์ฅด๋Ÿฌ ์ฒ˜๋Ÿผ ๊ธฐ๋ณธ ์Šค์ผ€์ฅด๋Ÿฌ ๋ฆฌ์ŠคํŠธ์—์„œ ์„ ํƒํ•  ์ˆ˜ ์—†๋Š” ํŠน์ˆ˜ ์Šค์ผ€์ฅด๋Ÿฌ๋ฅผ ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ๊ฒŒ ํ•ด์ค๋‹ˆ๋‹ค. ์ด ์ž…๋ ฅ์ด ์—ฐ๊ฒฐ๋˜๋ฉด, ๊ธฐ๋ณธ ์Šค์ผ€์ฅด๋Ÿฌ ์„ ํƒ์€ ๋ฌด์‹œ๋ฉ๋‹ˆ๋‹ค."
592
+ },
593
+ "tiled_encode": {
594
+ "name": "ํƒ€์ผ ์ธ์ฝ”๋“œ ์‚ฌ์šฉ",
595
+ "tooltip": "์ด ์˜ต์…˜์„ ์ผœ๋ฉด, ๋‚ด๋ถ€์ ์œผ๋กœ 'VAE ์ธ์ฝ”๋“œ'๋ฅผ ์‚ฌ์šฉํ•  ๊ฒฝ์šฐ, ๊ธฐ๋ณธ 'VAE ์ธ์ฝ”๋“œ' ๋Œ€์‹  'VAE ์ธ์ฝ”๋“œ (ํƒ€์ผ)' ์„ ์ ์šฉํ•ฉ๋‹ˆ๋‹ค."
596
+ },
597
+ "tiled_decode": {
598
+ "name": "ํƒ€์ผ ๋””์ฝ”๋“œ ์‚ฌ์šฉ",
599
+ "tooltip": "์ด ์˜ต์…˜์„ ์ผœ๋ฉด, ๋‚ด๋ถ€์ ์œผ๋กœ 'VAE ๋‹ค์ฝ”๋“œ'๋ฅผ ์‚ฌ์šฉํ•  ๊ฒฝ์šฐ, ๊ธฐ๋ณธ 'VAE ๋””์ฝ”๋“œ' ๋Œ€์‹  'VAE ๋””์ฝ”๋“œ (ํƒ€์ผ)' ์„ ์ ์šฉํ•ฉ๋‹ˆ๋‹ค."
600
+ }
601
+ },
602
+ "outputs": {
603
+ "0": {
604
+ "name": "๊ฐœ์„  ์ด๋ฏธ์ง€"
605
+ },
606
+ "1": {
607
+ "name": "์ž˜๋ผ๋‚ธ ์ด๋ฏธ์ง€"
608
+ },
609
+ "2": {
610
+ "name": "์ž˜๋ผ๋‚ธ ๊ฐœ์„  ์ด๋ฏธ์ง€"
611
+ },
612
+ "3": {
613
+ "name": "์ž˜๋ผ๋‚ธ ํˆฌ๋ช… ๊ฐœ์„  ์ด๋ฏธ์ง€"
614
+ },
615
+ "4": {
616
+ "name": "์ปจํŠธ๋กค๋„ท ์ด๋ฏธ์ง€"
617
+ }
618
+ }
619
+ },
620
+ "DetailerForEachDebugPipe": {
621
+ "description": "๊ฐ์ง€ ์˜์—ญ ์ •๋ณด ๋ฌถ์Œ(SEGS)๋‚ด์˜ ๊ฐ ์˜์—ญ๋“ค์— ๋Œ€ํ•ด ๊ฐ€์ด๋“œ ํฌ๊ธฐ๋ฅผ ๊ธฐ๋ฐ˜์œผ๋กœ ํ™•๋Œ€ํ•ด์„œ ์ธํŽ˜์ดํŠธํ•˜๋Š” ๋ฐฉ๋ฒ•์œผ๋กœ ๋””ํ…Œ์ผ์„ ๊ฐ•ํ™”ํ•ฉ๋‹ˆ๋‹ค.",
622
+ "display_name": "๋””ํ…Œ์ผ๋Ÿฌ (์ƒ์„ธ/SEGS/ํŒŒ์ดํ”„)",
623
+ "inputs": {
624
+ "image": {
625
+ "name": "์ด๋ฏธ์ง€"
626
+ },
627
+ "segs": {
628
+ "name": "segs",
629
+ "tooltip": "๊ฐ์ง€ ์˜์—ญ ์ •๋ณด๋ฅผ ๋‹ด๊ณ  ์žˆ๋Š” ๋ฌถ์Œ.\n์ด ์˜์—ญ๋“ค์„ ๋Œ€์ƒ์œผ๋กœ ์ธํŽ˜์ธํŠธ๊ฐ€ ์ ์šฉ๋ฉ๋‹ˆ๋‹ค."
630
+ },
631
+ "guide_size": {
632
+ "name": "๊ฐ€์ด๋“œ ํฌ๊ธฐ",
633
+ "tooltip": "'๊ฐ€์ด๋“œ ํฌ๊ธฐ ๋Œ€์ƒ'์œผ๋กœ ์ง€์ •๋œ ํฌ๊ธฐ์˜ ๊ฐ€์žฅ ์งง์€๋ฉด์„ ์ด ํฌ๊ธฐ๊นŒ์ง€ ํ™•๋Œ€ํ•ฉ๋‹ˆ๋‹ค."
634
+ },
635
+ "guide_size_for": {
636
+ "name": "๊ฐ€์ด๋“œ ํฌ๊ธฐ ๋Œ€์ƒ",
637
+ "tooltip": "bbox: ๊ฐ์ง€๋œ ์‚ฌ๊ฐ ์˜์—ญ(bbox)\ncrop_region: ์ž˜๋ผ๋‚ธ ์˜์—ญ"
638
+ },
639
+ "max_size": {
640
+ "name": "์ตœ๋Œ€ ํฌ๊ธฐ",
641
+ "tooltip": "'๊ฐ€์ด๋“œ ํฌ๊ธฐ'๋กœ ํ™•๋Œ€ ํ•  ๋•Œ, ๊ฐ€์žฅ ๊ธด ๋ฉด์˜ ๊ธธ์ด๋ฅผ ์ด ํฌ๊ธฐ๋กœ ์ œํ•œํ•ฉ๋‹ˆ๋‹ค. ๋„ˆ๋ฌด ํฌ๊ฒŒ ํ™•๋Œ€ ๋˜๋Š” ๊ฒƒ์„ ๋ง‰์•„์ค๋‹ˆ๋‹ค."
642
+ },
643
+ "seed": {
644
+ "name": "์‹œ๋“œ"
645
+ },
646
+ "steps": {
647
+ "name": "์Šคํ…์ˆ˜"
648
+ },
649
+ "sampler_name": {
650
+ "name": "์ƒ˜ํ”Œ๋Ÿฌ ์ด๋ฆ„"
651
+ },
652
+ "scheduler": {
653
+ "name": "์Šค์ผ€์ฅด๋Ÿฌ"
654
+ },
655
+ "denoise": {
656
+ "name": "๋…ธ์ด์ฆˆ ์ œ๊ฑฐ์–‘"
657
+ },
658
+ "feather": {
659
+ "name": "๊ฐ€์žฅ์ž๋ฆฌ ํ๋ฆผ",
660
+ "tooltip": "ํ™•๋Œ€ ํ•ด์„œ ์ธํŽ˜์ธํŠธ ๋œ ์ด๋ฏธ์ง€๋ฅผ ์›๋ณธ ์ด๋ฏธ์ง€์— ๋ถ™์—ฌ๋„ฃ์„ ๋•Œ, ์ด ์ˆ˜์น˜๋กœ ๋งˆ์Šคํฌ์˜ ๊ฐ€์žฅ ์ž๋ฆฌ๋ฅผ ํ๋ฆฌ๊ฒŒ ํ•ด์„œ ๋ถ™์—ฌ๋„ฃ์–ด ์ด์Œ๋งค์˜ ์œ„ํ™”๊ฐ์„ ์ค„์—ฌ์ค๋‹ˆ๋‹ค."
661
+ },
662
+ "noise_mask": {
663
+ "name": "๋…ธ์ด์ฆˆ ๋งˆ์Šคํฌ ์‚ฌ์šฉ",
664
+ "tooltip": "์ธํŽ˜์ธํŠธ ํ•  ๋•Œ, ๋งˆ์Šคํฌ๋ฅผ ์ ์šฉํ•ด์„œ ๋งˆ์Šคํฌ ์˜์—ญ๋งŒ ์ธํŽ˜์ธํŠธํ•ฉ๋‹ˆ๋‹ค. ์ด ์˜ต์…˜์„ ์ ์šฉํ•˜์ง€ ์•Š์œผ๋ฉด, ์ž˜๋ผ๋‚ธ ์ด๋ฏธ์ง€ ์ „์ฒด๊ฐ€ ์žฌ์ƒ์„ฑ๋˜์–ด ๋…ธ์ด์ฆˆ ์ œ๊ฑฐ์–‘์ด ํด ๋•Œ ์œ„ํ™”๊ฐ์ด ๋‚˜ํƒ€๋‚˜๊ฒŒ ๋ฉ๋‹ˆ๋‹ค."
665
+ },
666
+ "force_inpaint": {
667
+ "name": "์ธํŽ˜์ธํŠธ ๊ฐ•์ œ ์ ์šฉ",
668
+ "tooltip": "๊ฐ€์ด๋“œ ํฌ๊ธฐ์™€ ์ƒ๊ด€ ์—†์ด ์ธํŽ˜์ธํŒ…์„ ๋ฌด์กฐ๊ฑด ์ ์šฉ ํ•ฉ๋‹ˆ๋‹ค. ์ด ์˜ต์…˜์ด ๊บผ์ ธ์žˆ๋Š” ๊ฒฝ์šฐ ๏ฟฝ๏ฟฝ๏ฟฝ์ด๋“œ ํฌ๊ธฐ๋ณด๋‹ค ์ด๋ฏธ ํฐ ๊ฐ์ง€ ์˜์—ญ์€ ์ธํŽ˜์ธํŒ…์„ ๊ฑด๋„ˆ ๋œ๋‹ˆ๋‹ค."
669
+ },
670
+ "basic_pipe": {
671
+ "name": "๊ธฐ๋ณธ ํŒŒ์ดํ”„",
672
+ "tooltip": "๋งŒ์•ฝ ๊ธฐ๋ณธ ํŒŒ์ดํ”„ ๋‚ด์˜ ๋ชจ๋ธ์— `ImpactDummyInput` ๊ฐ€ ์„ค์ •๋œ ๊ฒฝ์šฐ, ์ธํŽ˜์ธํŠธ ๋‹จ๊ณ„๋ฅผ ๊ฑด๋„ˆ ๋œ๋‹ˆ๋‹ค."
673
+ },
674
+ "refiner_ratio": {
675
+ "name": "๋ผํŒŒ์ด๋„ˆ ์ ์šฉ ๋น„์œจ",
676
+ "tooltip": "SDXL ๋ฆฌํŒŒ์ด๋„ˆ ๋ชจ๋ธ์„ ์‚ฌ์šฉํ•  ๊ฒฝ์šฐ ์ ์šฉ๋  ํ›„๋ฐ˜ ์Šคํ…์ˆ˜ ๋น„์œจ์„ ์„ค์ •ํ•ฉ๋‹ˆ๋‹ค."
677
+ },
678
+ "cycle": {
679
+ "name": "๋ฐ˜๋ณต์ˆ˜",
680
+ "tooltip": "์„ค์ •๋œ ๊ฐ’๋งŒํผ ์ธํŽ˜์ธํŒ…์„ ๋ฐ˜๋ณต ์ ์šฉํ•ฉ๋‹ˆ๋‹ค. ์ธ์ฝ”๋”ฉ/๋””์ฝ”๋”ฉ ์—†์ด ํ™•๋Œ€๋œ ์ž ์žฌ ์ด๋ฏธ์ง€ ๋‹จ๊ณ„์—์„œ ๋ฐ˜๋ณต๋ฉ๋‹ˆ๋‹ค."
681
+ },
682
+ "detailer_hook": {
683
+ "name": "๋””ํ…Œ์ผ๋Ÿฌ ํ›„ํฌ",
684
+ "tooltip": "์ด ๋…ธ๋“œ์˜ ์‹คํ–‰ ์ค‘๊ฐ„๋‹จ๊ณ„์—์„œ ์—ฌ๋Ÿฌ๊ฐ€์ง€ ๊ธฐ๋Šฅ์„ ์ˆ˜ํ–‰ํ•  ์ˆ˜ ์žˆ๋Š” ํ›„ํฌ๋ฅผ ์—ฐ๊ฒฐํ•ฉ๋‹ˆ๋‹ค."
685
+ },
686
+ "refiner_basic_pipe_opt": {
687
+ "name": "๋ฆฌํŒŒ์ด๋„ˆ ๊ธฐ๋ณธ ํŒŒ์ดํ”„",
688
+ "tooltip": "SDXL ๋ฆฌํŒŒ์ด๋„ˆ ๋‹จ๊ณ„์— ์ ์šฉํ•  ๊ธฐ๋ณธ ํŒŒ์ดํ”„๋ฅผ ์—ฐ๊ฒฐํ•ฉ๋‹ˆ๋‹ค."
689
+ },
690
+ "inpaint_model": {
691
+ "name": "์ธํŽ˜์ธํŠธ ๋ชจ๋ธ ๋ชจ๋“œ",
692
+ "tooltip": "์ธํŽ˜์ธํŠธ ์ „์šฉ ๋ชจ๋ธ์„ ์‚ฌ์šฉํ•  ๊ฒฝ์šฐ ์ด ์˜ต์…˜์„ ์ผœ๋ฉด, ์ธํŽ˜์ธํŒ…์‹œ์— '์ธํŽ˜์ธํŠธ ๋ชจ๋ธ ์กฐ๊ฑด ์„ค์ •'์ด ์ ์šฉ๋˜์–ด ์ˆ˜ํ–‰๋ฉ๋‹ˆ๋‹ค."
693
+ },
694
+ "noise_mask_feather": {
695
+ "name": "๋…ธ์ด์ฆˆ ๋งˆ์Šคํฌ ๊ฐ€์žฅ์ž๋ฆฌ ํ๋ฆผ",
696
+ "tooltip": "์ธํŽ˜์ธํŠธ์‹œ์— ์ ์šฉ๋˜๋Š” ๋…ธ์ด์ฆˆ ๋งˆ์Šคํฌ์˜ ๊ฐ€์žฅ์ž๋ฆฌ๋ฅผ ํ๋ฆฌ๊ฒŒ ํ•ฉ๋‹ˆ๋‹ค. ์ด ์„ค์ •๊ฐ’์ด 0์„ ์ดˆ๊ณผํ•  ๊ฒฝ์šฐ, ๋‚ด๋ถ€์ ์œผ๋กœ ์ž๋™์œผ๋กœ '์ฐจ๋“ฑ ํ™•์‚ฐ' ๋…ธ๋“œ๋ฅผ ์ ์šฉํ•ฉ๋‹ˆ๋‹ค."
697
+ },
698
+ "scheduler_func_opt": {
699
+ "name": "์Šค์ผ€์ฅด๋Ÿฌ ํ•จ์ˆ˜",
700
+ "tooltip": "GITS ์Šค์ผ€์ฅด๋Ÿฌ ์ฒ˜๋Ÿผ ๊ธฐ๋ณธ ์Šค์ผ€์ฅด๋Ÿฌ ๋ฆฌ์ŠคํŠธ์—์„œ ์„ ํƒํ•  ์ˆ˜ ์—†๋Š” ํŠน์ˆ˜ ์Šค์ผ€์ฅด๋Ÿฌ๋ฅผ ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ๊ฒŒ ํ•ด์ค๋‹ˆ๋‹ค. ์ด ์ž…๋ ฅ์ด ์—ฐ๊ฒฐ๋˜๋ฉด, ๊ธฐ๋ณธ ์Šค์ผ€์ฅด๋Ÿฌ ์„ ํƒ์€ ๋ฌด์‹œ๋ฉ๋‹ˆ๋‹ค."
701
+ },
702
+ "tiled_encode": {
703
+ "name": "ํƒ€์ผ ์ธ์ฝ”๋“œ ์‚ฌ์šฉ",
704
+ "tooltip": "์ด ์˜ต์…˜์„ ์ผœ๋ฉด, ๋‚ด๋ถ€์ ์œผ๋กœ 'VAE ์ธ์ฝ”๋“œ'๋ฅผ ์‚ฌ์šฉํ•  ๊ฒฝ์šฐ, ๊ธฐ๋ณธ 'VAE ์ธ์ฝ”๋“œ' ๋Œ€์‹  'VAE ์ธ์ฝ”๋“œ (ํƒ€์ผ)' ์„ ์ ์šฉํ•ฉ๋‹ˆ๋‹ค."
705
+ },
706
+ "tiled_decode": {
707
+ "name": "ํƒ€์ผ ๋””์ฝ”๋“œ ์‚ฌ์šฉ",
708
+ "tooltip": "์ด ์˜ต์…˜์„ ์ผœ๋ฉด, ๋‚ด๋ถ€์ ์œผ๋กœ 'VAE ๋‹ค์ฝ”๋“œ'๋ฅผ ์‚ฌ์šฉํ•  ๊ฒฝ์šฐ, ๊ธฐ๋ณธ 'VAE ๋””์ฝ”๋“œ' ๋Œ€์‹  'VAE ๋””์ฝ”๋“œ (ํƒ€์ผ)' ์„ ์ ์šฉํ•ฉ๋‹ˆ๋‹ค."
709
+ }
710
+ },
711
+ "outputs": {
712
+ "0": {
713
+ "name": "๊ฐœ์„  ์ด๋ฏธ์ง€"
714
+ },
715
+ "1": {
716
+ "name": "๊ฐœ์„  SEGS"
717
+ },
718
+ "2": {
719
+ "name": "๊ธฐ๋ณธ ํŒŒ์ดํ”„"
720
+ },
721
+ "3": {
722
+ "name": "์ž˜๋ผ๋‚ธ ์ด๋ฏธ์ง€"
723
+ },
724
+ "4": {
725
+ "name": "์ž˜๋ผ๋‚ธ ๊ฐœ์„  ์ด๋ฏธ์ง€"
726
+ },
727
+ "5": {
728
+ "name": "์ž˜๋ผ๋‚ธ ํˆฌ๋ช… ๊ฐœ์„  ์ด๋ฏธ์ง€"
729
+ },
730
+ "6": {
731
+ "name": "์ปจํŠธ๋กค๋„ท ์ด๋ฏธ์ง€"
732
+ }
733
+ }
734
+ },
735
+ "DetailerForEachPipeForAnimateDiff": {
736
+ "description": "๊ฐ์ง€ ์˜์—ญ ์ •๋ณด ๋ฌถ์Œ(SEGS)๋‚ด์˜ ๊ฐ ์˜์—ญ๋“ค์— ๋Œ€ํ•ด ๊ฐ€์ด๋“œ ํฌ๊ธฐ๋ฅผ ๊ธฐ๋ฐ˜์œผ๋กœ ํ™•๋Œ€ํ•ด์„œ ์ธํŽ˜์ดํŠธํ•˜๋Š” ๋ฐฉ๋ฒ•์œผ๋กœ ๋””ํ…Œ์ผ์„ ๊ฐ•ํ™”ํ•ฉ๋‹ˆ๋‹ค.\n์ด ๋…ธ๋“œ๋Š” AnimateDiff์™€ ๊ฐ™์€ ๋™์˜์ƒ์˜ ๋””ํ…Œ์ผ ๊ฐœ์„ ์„ ์œ„ํ•œ ํŠน์ˆ˜ ๋””ํ…Œ์ผ๋Ÿฌ ๋…ธ๋“œ๋กœ์จ, SEGS๊ฐ€ ๋‹ด๊ณ  ์žˆ๋Š” ๋งˆ์Šคํฌ๊ฐ€ ์—ฌ๋Ÿฌ ํ”„๋ ˆ์ž„์— ๊ฑธ์นœ ๋ฐฐ์น˜ ๋งˆ์Šคํฌ๊ฐ€ ๋˜๋Š” ๊ฒฝ์šฐ๋ฅผ ์ฒ˜๋ฆฌํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.",
737
+ "display_name": "๋””ํ…Œ์ผ๋Ÿฌ (AnimateDiff/ํŒŒ์ดํ”„)",
738
+ "inputs": {
739
+ "image_frames": {
740
+ "name": "์ด๋ฏธ์ง€ ํ”„๋ ˆ์ž„ ๋ฌถ์Œ"
741
+ },
742
+ "segs": {
743
+ "name": "segs",
744
+ "tooltip": "๊ฐ์ง€ ์˜์—ญ ์ •๋ณด๋ฅผ ๋‹ด๊ณ  ์žˆ๋Š” ๋ฌถ์Œ.\n์ด ์˜์—ญ๋“ค์„ ๋Œ€์ƒ์œผ๋กœ ์ธํŽ˜์ธํŠธ๊ฐ€ ์ ์šฉ๋ฉ๋‹ˆ๋‹ค."
745
+ },
746
+ "guide_size": {
747
+ "name": "๊ฐ€์ด๋“œ ํฌ๊ธฐ",
748
+ "tooltip": "'๊ฐ€์ด๋“œ ํฌ๊ธฐ ๋Œ€์ƒ'์œผ๋กœ ์ง€์ •๋œ ํฌ๊ธฐ์˜ ๊ฐ€์žฅ ์งง์€๋ฉด์„ ์ด ํฌ๊ธฐ๊นŒ์ง€ ํ™•๋Œ€ํ•ฉ๋‹ˆ๋‹ค."
749
+ },
750
+ "guide_size_for": {
751
+ "name": "๊ฐ€์ด๋“œ ํฌ๊ธฐ ๋Œ€์ƒ",
752
+ "tooltip": "bbox: ๊ฐ์ง€๋œ ์‚ฌ๊ฐ ์˜์—ญ(bbox)\ncrop_region: ์ž˜๋ผ๋‚ธ ์˜์—ญ"
753
+ },
754
+ "max_size": {
755
+ "name": "์ตœ๋Œ€ ํฌ๊ธฐ",
756
+ "tooltip": "'๊ฐ€์ด๋“œ ํฌ๊ธฐ'๋กœ ํ™•๋Œ€ ํ•  ๋•Œ, ๊ฐ€์žฅ ๊ธด ๋ฉด์˜ ๊ธธ์ด๋ฅผ ์ด ํฌ๊ธฐ๋กœ ์ œํ•œํ•ฉ๋‹ˆ๋‹ค. ๋„ˆ๋ฌด ํฌ๊ฒŒ ํ™•๋Œ€ ๋˜๋Š” ๊ฒƒ์„ ๋ง‰์•„์ค๋‹ˆ๋‹ค."
757
+ },
758
+ "seed": {
759
+ "name": "์‹œ๋“œ"
760
+ },
761
+ "steps": {
762
+ "name": "์Šคํ…์ˆ˜"
763
+ },
764
+ "sampler_name": {
765
+ "name": "์ƒ˜ํ”Œ๋Ÿฌ ์ด๋ฆ„"
766
+ },
767
+ "scheduler": {
768
+ "name": "์Šค์ผ€์ฅด๋Ÿฌ"
769
+ },
770
+ "denoise": {
771
+ "name": "๋…ธ์ด์ฆˆ ์ œ๊ฑฐ์–‘"
772
+ },
773
+ "feather": {
774
+ "name": "๊ฐ€์žฅ์ž๋ฆฌ ํ๋ฆผ",
775
+ "tooltip": "ํ™•๋Œ€ ํ•ด์„œ ์ธํŽ˜์ธํŠธ ๋œ ์ด๋ฏธ์ง€๋ฅผ ์›๋ณธ ์ด๋ฏธ์ง€์— ๋ถ™์—ฌ๋„ฃ์„ ๋•Œ, ์ด ์ˆ˜์น˜๋กœ ๋งˆ์Šคํฌ์˜ ๊ฐ€์žฅ ์ž๋ฆฌ๋ฅผ ํ๋ฆฌ๊ฒŒ ํ•ด์„œ ๋ถ™์—ฌ๋„ฃ์–ด ์ด์Œ๋งค์˜ ์œ„ํ™”๊ฐ์„ ์ค„์—ฌ์ค๋‹ˆ๋‹ค."
776
+ },
777
+ "basic_pipe": {
778
+ "name": "๊ธฐ๋ณธ ํŒŒ์ดํ”„",
779
+ "tooltip": "๋งŒ์•ฝ ๊ธฐ๋ณธ ํŒŒ์ดํ”„ ๋‚ด์˜ ๋ชจ๋ธ์— `ImpactDummyInput` ๊ฐ€ ์„ค์ •๋œ ๊ฒฝ์šฐ, ์ธํŽ˜์ธํŠธ ๋‹จ๊ณ„๋ฅผ ๊ฑด๋„ˆ ๋œ๋‹ˆ๋‹ค."
780
+ },
781
+ "refiner_ratio": {
782
+ "name": "๋ผํŒŒ์ด๋„ˆ ์ ์šฉ ๋น„์œจ",
783
+ "tooltip": "SDXL ๋ฆฌํŒŒ์ด๋„ˆ ๋ชจ๋ธ์„ ์‚ฌ์šฉํ•  ๊ฒฝ์šฐ ์ ์šฉ๋  ํ›„๋ฐ˜ ์Šคํ…์ˆ˜ ๋น„์œจ์„ ์„ค์ •ํ•ฉ๋‹ˆ๋‹ค."
784
+ },
785
+ "detailer_hook": {
786
+ "name": "๋””ํ…Œ์ผ๋Ÿฌ ํ›„ํฌ",
787
+ "tooltip": "์ด ๋…ธ๋“œ์˜ ์‹คํ–‰ ์ค‘๊ฐ„๋‹จ๊ณ„์—์„œ ์—ฌ๋Ÿฌ๊ฐ€์ง€ ๊ธฐ๋Šฅ์„ ์ˆ˜ํ–‰ํ•  ์ˆ˜ ์žˆ๋Š” ํ›„ํฌ๋ฅผ ์—ฐ๊ฒฐํ•ฉ๋‹ˆ๋‹ค."
788
+ },
789
+ "refiner_basic_pipe_opt": {
790
+ "name": "๋ฆฌํŒŒ์ด๋„ˆ ๊ธฐ๋ณธ ํŒŒ์ดํ”„",
791
+ "tooltip": "SDXL ๋ฆฌํŒŒ์ด๋„ˆ ๋‹จ๊ณ„์— ์ ์šฉํ•  ๊ธฐ๋ณธ ํŒŒ์ดํ”„๋ฅผ ์—ฐ๊ฒฐํ•ฉ๋‹ˆ๋‹ค."
792
+ },
793
+ "noise_mask_feather": {
794
+ "name": "๋…ธ์ด์ฆˆ ๋งˆ์Šคํฌ ๊ฐ€์žฅ์ž๋ฆฌ ํ๋ฆผ",
795
+ "tooltip": "์ธํŽ˜์ธํŠธ์‹œ์— ์ ์šฉ๋˜๋Š” ๋…ธ์ด์ฆˆ ๋งˆ์Šคํฌ์˜ ๊ฐ€์žฅ์ž๋ฆฌ๋ฅผ ํ๋ฆฌ๊ฒŒ ํ•ฉ๋‹ˆ๋‹ค. ์ด ์„ค์ •๊ฐ’์ด 0์„ ์ดˆ๊ณผํ•  ๊ฒฝ์šฐ, ๋‚ด๋ถ€์ ์œผ๋กœ ์ž๋™์œผ๋กœ '์ฐจ๋“ฑ ํ™•์‚ฐ' ๋…ธ๋“œ๋ฅผ ์ ์šฉํ•ฉ๋‹ˆ๋‹ค."
796
+ },
797
+ "scheduler_func_opt": {
798
+ "name": "์Šค์ผ€์ฅด๋Ÿฌ ํ•จ์ˆ˜",
799
+ "tooltip": "GITS ์Šค์ผ€์ฅด๋Ÿฌ ์ฒ˜๋Ÿผ ๊ธฐ๋ณธ ์Šค์ผ€์ฅด๋Ÿฌ ๋ฆฌ์ŠคํŠธ์—์„œ ์„ ํƒํ•  ์ˆ˜ ์—†๋Š” ํŠน์ˆ˜ ์Šค์ผ€์ฅด๋Ÿฌ๋ฅผ ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ๊ฒŒ ํ•ด์ค๋‹ˆ๋‹ค. ์ด ์ž…๋ ฅ์ด ์—ฐ๊ฒฐ๋˜๋ฉด, ๊ธฐ๋ณธ ์Šค์ผ€์ฅด๋Ÿฌ ์„ ํƒ์€ ๋ฌด์‹œ๋ฉ๋‹ˆ๋‹ค."
800
+ }
801
+ },
802
+ "outputs": {
803
+ "0": {
804
+ "name": "๊ฐœ์„  SEGS"
805
+ },
806
+ "1": {
807
+ "name": "๊ฐœ์„  ์ด๋ฏธ์ง€"
808
+ },
809
+ "2": {
810
+ "name": "๊ธฐ๋ณธ ํŒŒ์ดํ”„"
811
+ },
812
+ "3": {
813
+ "name": "์ปจํŠธ๋กค๋„ท ์ด๋ฏธ์ง€"
814
+ }
815
+ }
816
+ },
817
+ "SEGSDetailerForAnimateDiff": {
818
+ "description": "๊ฐ์ง€ ์˜์—ญ ์ •๋ณด ๋ฌถ์Œ(SEGS)๋‚ด์˜ ๊ฐ ์˜์—ญ๋“ค์— ๋Œ€ํ•ด ๊ฐ€์ด๋“œ ํฌ๊ธฐ๋ฅผ ๊ธฐ๋ฐ˜์œผ๋กœ ํ™•๋Œ€ํ•ด์„œ ์ธํŽ˜์ดํŠธํ•˜๋Š” ๋ฐฉ๋ฒ•์œผ๋กœ ๋””ํ…Œ์ผ์„ ๊ฐ•ํ™”ํ•ฉ๋‹ˆ๋‹ค.\n์ด ๋…ธ๋“œ๋Š” ์›๋ณธ ์ด๋ฏธ์ง€๊ฐ€ ์•„๋‹Œ SEGS๋ฅผ ๋Œ€์ƒ์œผ๋กœ ์ ์šฉ๋˜๋Š” ๋…ธ๋“œ๋กœ ์›๋ณธ ์ด๋ฏธ์ง€์— ์ ์šฉํ•˜๋ ค๋ฉด 'SEGS ๋ถ™์—ฌ๋„ฃ๊ธฐ' ๋…ธ๋“œ๋ฅผ ์‚ฌ์šฉํ•˜์„ธ์š”.\n์ด ๋…ธ๋“œ๋Š” AnimateDiff์™€ ๊ฐ™์€ ๋™์˜์ƒ์˜ ๋””ํ…Œ์ผ ๊ฐœ์„ ์„ ์œ„ํ•œ ํŠน์ˆ˜ ๋””ํ…Œ์ผ๋Ÿฌ ๋…ธ๋“œ๋กœ์จ, SEGS๊ฐ€ ๋‹ด๊ณ  ์žˆ๋Š” ๋งˆ์Šคํฌ๊ฐ€ ์—ฌ๋Ÿฌ ํ”„๋ ˆ์ž„์— ๊ฑธ์นœ ๋ฐฐ์น˜ ๋งˆ์Šคํฌ๊ฐ€ ๋˜๋Š” ๊ฒฝ์šฐ๋ฅผ ์ฒ˜๋ฆฌํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.",
819
+ "display_name": "SEGS ๋””ํ…Œ์ผ๋Ÿฌ (AnimateDiff/ํŒŒ์ดํ”„)",
820
+ "inputs": {
821
+ "image_frames": {
822
+ "name": "์ด๋ฏธ์ง€ ํ”„๋ ˆ์ž„ ๋ฌถ์Œ"
823
+ },
824
+ "segs": {
825
+ "name": "segs",
826
+ "tooltip": "๊ฐ์ง€ ์˜์—ญ ์ •๋ณด๋ฅผ ๋‹ด๊ณ  ์žˆ๋Š” ๋ฌถ์Œ.\n์ด ์˜์—ญ๋“ค์„ ๋Œ€์ƒ์œผ๋กœ ์ธํŽ˜์ธํŠธ๊ฐ€ ์ ์šฉ๋ฉ๋‹ˆ๋‹ค."
827
+ },
828
+ "guide_size": {
829
+ "name": "๊ฐ€์ด๋“œ ํฌ๊ธฐ",
830
+ "tooltip": "'๊ฐ€์ด๋“œ ํฌ๊ธฐ ๋Œ€์ƒ'์œผ๋กœ ์ง€์ •๋œ ํฌ๊ธฐ์˜ ๊ฐ€์žฅ ์งง์€๋ฉด์„ ์ด ํฌ๊ธฐ๊นŒ์ง€ ํ™•๋Œ€ํ•ฉ๋‹ˆ๋‹ค."
831
+ },
832
+ "guide_size_for": {
833
+ "name": "๊ฐ€์ด๋“œ ํฌ๊ธฐ ๋Œ€์ƒ",
834
+ "tooltip": "bbox: ๊ฐ์ง€๋œ ์‚ฌ๊ฐ ์˜์—ญ(bbox)\ncrop_region: ์ž˜๋ผ๋‚ธ ์˜์—ญ"
835
+ },
836
+ "max_size": {
837
+ "name": "์ตœ๋Œ€ ํฌ๊ธฐ",
838
+ "tooltip": "'๊ฐ€์ด๋“œ ํฌ๊ธฐ'๋กœ ํ™•๋Œ€ ํ•  ๋•Œ, ๊ฐ€์žฅ ๊ธด ๋ฉด์˜ ๊ธธ์ด๋ฅผ ์ด ํฌ๊ธฐ๋กœ ์ œํ•œํ•ฉ๋‹ˆ๋‹ค. ๋„ˆ๋ฌด ํฌ๊ฒŒ ํ™•๋Œ€ ๋˜๋Š” ๊ฒƒ์„ ๋ง‰์•„์ค๋‹ˆ๋‹ค."
839
+ },
840
+ "seed": {
841
+ "name": "์‹œ๋“œ"
842
+ },
843
+ "steps": {
844
+ "name": "์Šคํ…์ˆ˜"
845
+ },
846
+ "sampler_name": {
847
+ "name": "์ƒ˜ํ”Œ๋Ÿฌ ์ด๋ฆ„"
848
+ },
849
+ "scheduler": {
850
+ "name": "์Šค์ผ€์ฅด๋Ÿฌ"
851
+ },
852
+ "denoise": {
853
+ "name": "๋…ธ์ด์ฆˆ ์ œ๊ฑฐ์–‘"
854
+ },
855
+ "basic_pipe": {
856
+ "name": "๊ธฐ๋ณธ ํŒŒ์ดํ”„",
857
+ "tooltip": "๋งŒ์•ฝ ๊ธฐ๋ณธ ๏ฟฝ๏ฟฝ๏ฟฝ์ดํ”„ ๋‚ด์˜ ๋ชจ๋ธ์— `ImpactDummyInput` ๊ฐ€ ์„ค์ •๋œ ๊ฒฝ์šฐ, ์ธํŽ˜์ธํŠธ ๋‹จ๊ณ„๋ฅผ ๊ฑด๋„ˆ ๋œ๋‹ˆ๋‹ค."
858
+ },
859
+ "refiner_ratio": {
860
+ "name": "๋ผํŒŒ์ด๋„ˆ ์ ์šฉ ๋น„์œจ",
861
+ "tooltip": "SDXL ๋ฆฌํŒŒ์ด๋„ˆ ๋ชจ๋ธ์„ ์‚ฌ์šฉํ•  ๊ฒฝ์šฐ ์ ์šฉ๋  ํ›„๋ฐ˜ ์Šคํ…์ˆ˜ ๋น„์œจ์„ ์„ค์ •ํ•ฉ๋‹ˆ๋‹ค."
862
+ },
863
+ "refiner_basic_pipe_opt": {
864
+ "name": "๋ฆฌํŒŒ์ด๋„ˆ ๊ธฐ๋ณธ ํŒŒ์ดํ”„",
865
+ "tooltip": "SDXL ๋ฆฌํŒŒ์ด๋„ˆ ๋‹จ๊ณ„์— ์ ์šฉํ•  ๊ธฐ๋ณธ ํŒŒ์ดํ”„๋ฅผ ์—ฐ๊ฒฐํ•ฉ๋‹ˆ๋‹ค."
866
+ },
867
+ "noise_mask_feather": {
868
+ "name": "๋…ธ์ด์ฆˆ ๋งˆ์Šคํฌ ๊ฐ€์žฅ์ž๋ฆฌ ํ๋ฆผ",
869
+ "tooltip": "์ธํŽ˜์ธํŠธ์‹œ์— ์ ์šฉ๋˜๋Š” ๋…ธ์ด์ฆˆ ๋งˆ์Šคํฌ์˜ ๊ฐ€์žฅ์ž๋ฆฌ๋ฅผ ํ๋ฆฌ๊ฒŒ ํ•ฉ๋‹ˆ๋‹ค. ์ด ์„ค์ •๊ฐ’์ด 0์„ ์ดˆ๊ณผํ•  ๊ฒฝ์šฐ, ๋‚ด๋ถ€์ ์œผ๋กœ ์ž๋™์œผ๋กœ '์ฐจ๋“ฑ ํ™•์‚ฐ' ๋…ธ๋“œ๋ฅผ ์ ์šฉํ•ฉ๋‹ˆ๋‹ค."
870
+ },
871
+ "scheduler_func_opt": {
872
+ "name": "์Šค์ผ€์ฅด๋Ÿฌ ํ•จ์ˆ˜",
873
+ "tooltip": "GITS ์Šค์ผ€์ฅด๋Ÿฌ ์ฒ˜๋Ÿผ ๊ธฐ๋ณธ ์Šค์ผ€์ฅด๋Ÿฌ ๋ฆฌ์ŠคํŠธ์—์„œ ์„ ํƒํ•  ์ˆ˜ ์—†๋Š” ํŠน์ˆ˜ ์Šค์ผ€์ฅด๋Ÿฌ๋ฅผ ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ๊ฒŒ ํ•ด์ค๋‹ˆ๋‹ค. ์ด ์ž…๋ ฅ์ด ์—ฐ๊ฒฐ๋˜๋ฉด, ๊ธฐ๋ณธ ์Šค์ผ€์ฅด๋Ÿฌ ์„ ํƒ์€ ๋ฌด์‹œ๋ฉ๋‹ˆ๋‹ค."
874
+ }
875
+ },
876
+ "outputs": {
877
+ "0": {
878
+ "name": "๊ฐœ์„  SEGS"
879
+ },
880
+ "1": {
881
+ "name": "๊ฐœ์„  ์ด๋ฏธ์ง€"
882
+ }
883
+ }
884
+ },
885
+ "SEGSDetailer": {
886
+ "description": "๊ฐ์ง€ ์˜์—ญ ์ •๋ณด ๋ฌถ์Œ(SEGS)๋‚ด์˜ ๊ฐ ์˜์—ญ๋“ค์— ๋Œ€ํ•ด ๊ฐ€์ด๋“œ ํฌ๊ธฐ๋ฅผ ๊ธฐ๋ฐ˜์œผ๋กœ ํ™•๋Œ€ํ•ด์„œ ์ธํŽ˜์ดํŠธํ•˜๋Š” ๋ฐฉ๋ฒ•์œผ๋กœ ๋””ํ…Œ์ผ์„ ๊ฐ•ํ™”ํ•ฉ๋‹ˆ๋‹ค.\n์ด ๋…ธ๋“œ๋Š” ์›๋ณธ ์ด๋ฏธ์ง€๊ฐ€ ์•„๋‹Œ SEGS๋ฅผ ๋Œ€์ƒ์œผ๋กœ ์ ์šฉ๋˜๋Š” ๋…ธ๋“œ๋กœ ์›๋ณธ ์ด๋ฏธ์ง€์— ์ ์šฉํ•˜๋ ค๋ฉด 'SEGS ๋ถ™์—ฌ๋„ฃ๊ธฐ' ๋…ธ๋“œ๋ฅผ ์‚ฌ์šฉํ•˜์„ธ์š”.",
887
+ "display_name": "SEGS ๋””ํ…Œ์ผ๋Ÿฌ (ํŒŒ์ดํ”„)",
888
+ "inputs": {
889
+ "image": {
890
+ "name": "์ด๋ฏธ์ง€"
891
+ },
892
+ "segs": {
893
+ "name": "segs",
894
+ "tooltip": "๊ฐ์ง€ ์˜์—ญ ์ •๋ณด๋ฅผ ๋‹ด๊ณ  ์žˆ๋Š” ๋ฌถ์Œ.\n์ด ์˜์—ญ๋“ค์„ ๋Œ€์ƒ์œผ๋กœ ์ธํŽ˜์ธํŠธ๊ฐ€ ์ ์šฉ๋ฉ๋‹ˆ๋‹ค."
895
+ },
896
+ "guide_size": {
897
+ "name": "๊ฐ€์ด๋“œ ํฌ๊ธฐ",
898
+ "tooltip": "'๊ฐ€์ด๋“œ ํฌ๊ธฐ ๋Œ€์ƒ'์œผ๋กœ ์ง€์ •๋œ ํฌ๊ธฐ์˜ ๊ฐ€์žฅ ์งง์€๋ฉด์„ ์ด ํฌ๊ธฐ๊นŒ์ง€ ํ™•๋Œ€ํ•ฉ๋‹ˆ๋‹ค."
899
+ },
900
+ "guide_size_for": {
901
+ "name": "๊ฐ€์ด๋“œ ํฌ๊ธฐ ๋Œ€์ƒ",
902
+ "tooltip": "bbox: ๊ฐ์ง€๋œ ์‚ฌ๊ฐ ์˜์—ญ(bbox)\ncrop_region: ์ž˜๋ผ๋‚ธ ์˜์—ญ"
903
+ },
904
+ "max_size": {
905
+ "name": "์ตœ๋Œ€ ํฌ๊ธฐ",
906
+ "tooltip": "'๊ฐ€์ด๋“œ ํฌ๊ธฐ'๋กœ ํ™•๋Œ€ ํ•  ๋•Œ, ๊ฐ€์žฅ ๊ธด ๋ฉด์˜ ๊ธธ์ด๋ฅผ ์ด ํฌ๊ธฐ๋กœ ์ œํ•œํ•ฉ๋‹ˆ๋‹ค. ๋„ˆ๋ฌด ํฌ๊ฒŒ ํ™•๋Œ€ ๋˜๋Š” ๊ฒƒ์„ ๋ง‰์•„์ค๋‹ˆ๋‹ค."
907
+ },
908
+ "seed": {
909
+ "name": "์‹œ๋“œ"
910
+ },
911
+ "steps": {
912
+ "name": "์Šคํ…์ˆ˜"
913
+ },
914
+ "sampler_name": {
915
+ "name": "์ƒ˜ํ”Œ๋Ÿฌ ์ด๋ฆ„"
916
+ },
917
+ "scheduler": {
918
+ "name": "์Šค์ผ€์ฅด๋Ÿฌ"
919
+ },
920
+ "denoise": {
921
+ "name": "๋…ธ์ด์ฆˆ ์ œ๊ฑฐ์–‘"
922
+ },
923
+ "noise_mask": {
924
+ "name": "๋…ธ์ด์ฆˆ ๋งˆ์Šคํฌ ์‚ฌ์šฉ",
925
+ "tooltip": "์ธํŽ˜์ธํŠธ ํ•  ๋•Œ, ๋งˆ์Šคํฌ๋ฅผ ์ ์šฉํ•ด์„œ ๋งˆ์Šคํฌ ์˜์—ญ๋งŒ ์ธํŽ˜์ธํŠธํ•ฉ๋‹ˆ๋‹ค. ์ด ์˜ต์…˜์„ ์ ์šฉํ•˜์ง€ ์•Š์œผ๋ฉด, ์ž˜๋ผ๋‚ธ ์ด๋ฏธ์ง€ ์ „์ฒด๊ฐ€ ์žฌ์ƒ์„ฑ๋˜์–ด ๋…ธ์ด์ฆˆ ์ œ๊ฑฐ์–‘์ด ํด ๋•Œ ์œ„ํ™”๊ฐ์ด ๋‚˜ํƒ€๋‚˜๊ฒŒ ๋ฉ๋‹ˆ๋‹ค."
926
+ },
927
+ "force_inpaint": {
928
+ "name": "์ธํŽ˜์ธํŠธ ๊ฐ•์ œ ์ ์šฉ",
929
+ "tooltip": "๊ฐ€์ด๋“œ ํฌ๊ธฐ์™€ ์ƒ๊ด€ ์—†์ด ์ธํŽ˜์ธํŒ…์„ ๋ฌด์กฐ๊ฑด ์ ์šฉ ํ•ฉ๋‹ˆ๋‹ค. ์ด ์˜ต์…˜์ด ๊บผ์ ธ์žˆ๋Š” ๊ฒฝ์šฐ ๊ฐ€์ด๋“œ ํฌ๊ธฐ๋ณด๋‹ค ์ด๋ฏธ ํฐ ๊ฐ์ง€ ์˜์—ญ์€ ์ธํŽ˜์ธํŒ…์„ ๊ฑด๋„ˆ ๋œ๋‹ˆ๋‹ค."
930
+ },
931
+ "basic_pipe": {
932
+ "name": "๊ธฐ๋ณธ ํŒŒ์ดํ”„",
933
+ "tooltip": "๋งŒ์•ฝ ๊ธฐ๋ณธ ํŒŒ์ดํ”„ ๋‚ด์˜ ๋ชจ๋ธ์— `ImpactDummyInput` ๊ฐ€ ์„ค์ •๋œ ๊ฒฝ์šฐ, ์ธํŽ˜์ธํŠธ ๋‹จ๊ณ„๋ฅผ ๊ฑด๋„ˆ ๋œ๋‹ˆ๋‹ค."
934
+ },
935
+ "refiner_ratio": {
936
+ "name": "๋ผํŒŒ์ด๋„ˆ ์ ์šฉ ๋น„์œจ",
937
+ "tooltip": "SDXL ๋ฆฌํŒŒ์ด๋„ˆ ๋ชจ๋ธ์„ ์‚ฌ์šฉํ•  ๊ฒฝ์šฐ ์ ์šฉ๋  ํ›„๋ฐ˜ ์Šคํ…์ˆ˜ ๋น„์œจ์„ ์„ค์ •ํ•ฉ๋‹ˆ๋‹ค."
938
+ },
939
+ "batch_size": {
940
+ "name": "๋ฐฐ์น˜ ๊ฐฏ์ˆ˜",
941
+ "tooltip": "๋Œ€์ƒ SEGS ์— ๋Œ€ํ•ด์„œ ๋ฐฐ์น˜ ๊ฐฏ์ˆ˜๋งŒํผ ์—ฌ๋Ÿฌ๊ฐœ์˜ ํ›„๋ณด๋ฅผ ์ƒ์„ฑํ•ฉ๋‹ˆ๋‹ค. ์—ฌ๋Ÿฌ๊ฐœ๋ฅผ ์ƒ์„ฑํ•  ๊ฒฝ์šฐ '๊ณ ๋ฅด๊ธฐ (SEGS)'์™€ ํ•จ๊ป˜ ์‚ฌ์šฉํ•˜์„ธ์š”."
942
+ },
943
+ "cycle": {
944
+ "name": "๋ฐ˜๋ณต์ˆ˜",
945
+ "tooltip": "์„ค์ •๋œ ๊ฐ’๋งŒํผ ์ธํŽ˜์ธํŒ…์„ ๋ฐ˜๋ณต ์ ์šฉํ•ฉ๋‹ˆ๋‹ค. ์ธ์ฝ”๋”ฉ/๋””์ฝ”๋”ฉ ์—†์ด ํ™•๋Œ€๋œ ์ž ์žฌ ์ด๋ฏธ์ง€ ๋‹จ๊ณ„์—์„œ ๋ฐ˜๋ณต๋ฉ๋‹ˆ๋‹ค."
946
+ },
947
+ "refiner_basic_pipe_opt": {
948
+ "name": "๋ฆฌํŒŒ์ด๋„ˆ ๊ธฐ๋ณธ ํŒŒ์ดํ”„",
949
+ "tooltip": "SDXL ๋ฆฌํŒŒ์ด๋„ˆ ๋‹จ๊ณ„์— ์ ์šฉํ•  ๊ธฐ๋ณธ ํŒŒ์ดํ”„๋ฅผ ์—ฐ๊ฒฐํ•ฉ๋‹ˆ๋‹ค."
950
+ },
951
+ "inpaint_model": {
952
+ "name": "์ธํŽ˜์ธํŠธ ๋ชจ๋ธ ๋ชจ๋“œ",
953
+ "tooltip": "์ธํŽ˜์ธํŠธ ์ „์šฉ ๋ชจ๋ธ์„ ์‚ฌ์šฉํ•  ๊ฒฝ์šฐ ์ด ์˜ต์…˜์„ ์ผœ๋ฉด, ์ธํŽ˜์ธํŒ…์‹œ์— '์ธํŽ˜์ธํŠธ ๋ชจ๋ธ ์กฐ๊ฑด ์„ค์ •'์ด ์ ์šฉ๋˜์–ด ์ˆ˜ํ–‰๋ฉ๋‹ˆ๋‹ค."
954
+ },
955
+ "noise_mask_feather": {
956
+ "name": "๋…ธ์ด์ฆˆ ๋งˆ์Šคํฌ ๊ฐ€์žฅ์ž๋ฆฌ ํ๋ฆผ",
957
+ "tooltip": "์ธํŽ˜์ธํŠธ์‹œ์— ์ ์šฉ๋˜๋Š” ๋…ธ์ด์ฆˆ ๋งˆ์Šคํฌ์˜ ๊ฐ€์žฅ์ž๋ฆฌ๋ฅผ ํ๋ฆฌ๊ฒŒ ํ•ฉ๋‹ˆ๋‹ค. ์ด ์„ค์ •๊ฐ’์ด 0์„ ์ดˆ๊ณผํ•  ๊ฒฝ์šฐ, ๋‚ด๋ถ€์ ์œผ๋กœ ์ž๋™์œผ๋กœ '์ฐจ๋“ฑ ํ™•์‚ฐ' ๋…ธ๋“œ๋ฅผ ์ ์šฉํ•ฉ๋‹ˆ๋‹ค."
958
+ },
959
+ "scheduler_func_opt": {
960
+ "name": "์Šค์ผ€์ฅด๋Ÿฌ ํ•จ์ˆ˜",
961
+ "tooltip": "GITS ์Šค์ผ€์ฅด๋Ÿฌ ์ฒ˜๋Ÿผ ๊ธฐ๋ณธ ์Šค์ผ€์ฅด๋Ÿฌ ๋ฆฌ์ŠคํŠธ์—์„œ ์„ ํƒํ•  ์ˆ˜ ์—†๋Š” ํŠน์ˆ˜ ์Šค์ผ€์ฅด๋Ÿฌ๋ฅผ ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ๊ฒŒ ํ•ด์ค๋‹ˆ๋‹ค. ์ด ์ž…๋ ฅ์ด ์—ฐ๊ฒฐ๋˜๋ฉด, ๊ธฐ๋ณธ ์Šค์ผ€์ฅด๋Ÿฌ ์„ ํƒ์€ ๋ฌด์‹œ๋ฉ๋‹ˆ๋‹ค."
962
+ }
963
+ },
964
+ "outputs": {
965
+ "0": {
966
+ "name": "๊ฐœ์„  SEGS"
967
+ },
968
+ "1": {
969
+ "name": "์ปจํŠธ๋กค๋„ท ์ด๋ฏธ์ง€"
970
+ }
971
+ }
972
+ },
973
+ "MaskDetailerPipe": {
974
+ "description": "์ด ๋””ํ…Œ์ผ๋Ÿฌ ๋…ธ๋“œ๋Š” ๋งˆ์Šคํฌ๋กœ ์„ค์ •๋œ ์˜์—ญ์„ ํ™•๋Œ€ํ•ด์„œ ๊ฐ€์ด๋“œ ํฌ๊ธฐ๋ฅผ ๊ธฐ๋ฐ˜์œผ๋กœ ํ™•๋Œ€ํ•ด์„œ ์ธํŽ˜์ธํŠธํ•˜๋Š” ๋ฐฉ๋ฒ•์œผ๋กœ ๋””ํ…Œ์ผ์„ ๊ฐ•ํ™”ํ•ฉ๋‹ˆ๋‹ค.",
975
+ "display_name": "๋งˆ์Šคํฌ ๋””ํ…Œ์ผ๋Ÿฌ (ํŒŒ์ดํ”„)",
976
+ "inputs": {
977
+ "image": {
978
+ "name": "์ด๋ฏธ์ง€"
979
+ },
980
+ "mask": {
981
+ "name": "๋งˆ์Šคํฌ",
982
+ "tooltip": "๋””ํ…Œ์ผ์„ ๊ฐ•ํ™”ํ•˜๊ณ  ์‹ถ์€ ๋Œ€์ƒ ์˜์—ญ์ด ์„ค์ •๋œ ๋งˆ์Šคํฌ. ๋ถ„๋ฆฌ๋œ ๋งˆ์Šคํฌ ์˜์—ญ์€ ๊ฐœ๋ณ„์ ์œผ๋กœ ๋””ํ…Œ์ผ ๊ฐ•ํ™”๊ฐ€ ์ด๋ฃจ์–ด์ง‘๋‹ˆ๋‹ค."
983
+ },
984
+ "basic_pipe": {
985
+ "name": "๊ธฐ๋ณธ ํŒŒ์ดํ”„",
986
+ "tooltip": "๋งŒ์•ฝ ๊ธฐ๋ณธ ํŒŒ์ดํ”„ ๋‚ด์˜ ๋ชจ๋ธ์— `ImpactDummyInput` ๊ฐ€ ์„ค์ •๋œ ๊ฒฝ์šฐ, ์ธํŽ˜์ธํŠธ ๋‹จ๊ณ„๋ฅผ ๊ฑด๋„ˆ ๋œ๋‹ˆ๋‹ค."
987
+ },
988
+ "guide_size": {
989
+ "name": "๊ฐ€์ด๋“œ ํฌ๊ธฐ",
990
+ "tooltip": "'๊ฐ€์ด๋“œ ํฌ๊ธฐ ๋Œ€์ƒ'์œผ๋กœ ์ง€์ •๋œ ํฌ๊ธฐ์˜ ๊ฐ€์žฅ ์งง์€๋ฉด์„ ์ด ํฌ๊ธฐ๊นŒ์ง€ ํ™•๋Œ€ํ•ฉ๋‹ˆ๋‹ค."
991
+ },
992
+ "guide_size_for": {
993
+ "name": "๊ฐ€์ด๋“œ ํฌ๊ธฐ ๋Œ€์ƒ",
994
+ "tooltip": "bbox: ๊ฐ์ง€๋œ ์‚ฌ๊ฐ ์˜์—ญ(bbox)\ncrop_region: ์ž˜๋ผ๋‚ธ ์˜์—ญ"
995
+ },
996
+ "max_size": {
997
+ "name": "์ตœ๋Œ€ ํฌ๊ธฐ",
998
+ "tooltip": "'๊ฐ€์ด๋“œ ํฌ๊ธฐ'๋กœ ํ™•๋Œ€ ํ•  ๋•Œ, ๊ฐ€์žฅ ๊ธด ๋ฉด์˜ ๊ธธ์ด๋ฅผ ์ด ํฌ๊ธฐ๋กœ ์ œํ•œํ•ฉ๋‹ˆ๋‹ค. ๋„ˆ๋ฌด ํฌ๊ฒŒ ํ™•๋Œ€ ๋˜๋Š” ๊ฒƒ์„ ๋ง‰์•„์ค๋‹ˆ๋‹ค."
999
+ },
1000
+ "mask_mode": {
1001
+ "name": "๋งˆ์Šคํฌ ๋ชจ๋“œ",
1002
+ "tooltip": "๋งˆ์Šคํฌ๋กœ ์„ค์ •๋œ ์˜์—ญ๋งŒ์„ ์ธํŽ˜์ธํŠธ ํ• ์ง€, ์ž˜๋ผ๋‚ธ ์˜์—ญ ์ „์ฒด๋ฅผ ์ธํŽ˜์ธํŠธ ํ•  ๊ฒƒ์ธ์ง€๋ฅผ ์„ค์ •ํ•ฉ๋‹ˆ๋‹ค."
1003
+ },
1004
+ "seed": {
1005
+ "name": "์‹œ๋“œ"
1006
+ },
1007
+ "steps": {
1008
+ "name": "์Šคํ…์ˆ˜"
1009
+ },
1010
+ "sampler_name": {
1011
+ "name": "์ƒ˜ํ”Œ๋Ÿฌ ์ด๋ฆ„"
1012
+ },
1013
+ "scheduler": {
1014
+ "name": "์Šค์ผ€์ฅด๋Ÿฌ"
1015
+ },
1016
+ "denoise": {
1017
+ "name": "๋…ธ์ด์ฆˆ ์ œ๊ฑฐ์–‘"
1018
+ },
1019
+ "feather": {
1020
+ "name": "๊ฐ€์žฅ์ž๋ฆฌ ํ๋ฆผ",
1021
+ "tooltip": "ํ™•๋Œ€ ํ•ด์„œ ์ธํŽ˜์ธํŠธ ๋œ ์ด๋ฏธ์ง€๋ฅผ ์›๋ณธ ์ด๋ฏธ์ง€์— ๋ถ™์—ฌ๋„ฃ์„ ๋•Œ, ์ด ์ˆ˜์น˜๋กœ ๋งˆ์Šคํฌ์˜ ๊ฐ€์žฅ ์ž๋ฆฌ๋ฅผ ํ๋ฆฌ๊ฒŒ ํ•ด์„œ ๋ถ™์—ฌ๋„ฃ์–ด ์ด์Œ๋งค์˜ ์œ„ํ™”๊ฐ์„ ์ค„์—ฌ์ค๋‹ˆ๋‹ค."
1022
+ },
1023
+ "crop_factor": {
1024
+ "name": "์ž๋ฅด๊ธฐ ๋ฐฐ์œจ",
1025
+ "tooltip": "๊ฐ ๋งˆ์Šคํฌ๋กœ ์„ค์ •๋œ ์˜์—ญ์— ๋Œ€ํ•ด์„œ ๋ช‡๋ฐฐ ํฌ๊ธฐ๋ฅผ ์ž˜๋ผ๋‚ด์–ด์„œ ์ธํŽ˜์ธํŠธ์— ์‚ฌ์šฉํ• ์ง€๋ฅผ ์„ค์ •ํ•ฉ๋‹ˆ๋‹ค. ์ด ํฌ๊ธฐ๊ฐ€ ๋„ˆ๋ฌด ์ž‘์œผ๋ฉด, ์ธํŽ˜์ธํŠธ ํ•  ์ด๋ฏธ์ง€์˜ ์ฃผ๋ณ€ ์ •๋ณด๊ฐ€ ๋ถ€์กฑํ•ด์„œ ์œ„ํ™”๊ฐ์ด ๊ฐ•ํ•œ ์ด๋ฏธ์ง€๊ฐ€ ์ƒ์„ฑ๋ฉ๋‹ˆ๋‹ค. ์ด ํฌ๊ธฐ๊ฐ€ ๋„ˆ๋ฌด ํฌ๋ฉด, ์ธํŽ˜์ธํŒ…์— ๋„ˆ๋ฌด ์˜ค๋žœ ์‹œ๊ฐ„์ด ๊ฑธ๋ฆด ์ˆ˜ ์žˆ์œผ๋ฉฐ, ๋ชจ๋ธ์˜ ์—ญ๋Ÿ‰์„ ์ดˆ๊ณผํ•  ์ •๋„๋กœ ํด ๊ฒฝ์šฐ ์˜ฌ๋ฐ”๋ฅด์ง€ ์•Š์€ ์ด๋ฏธ์ง€๋ฅผ ์ƒ์„ฑํ•˜๊ฒŒ ๋ฉ๋‹ˆ๋‹ค."
1026
+ },
1027
+ "drop_size": {
1028
+ "name": "๊ฐ์ง€ ์ตœ์†Œ ํฌ๊ธฐ",
1029
+ "tooltip": "์‚ฌ๊ฐ ์˜์—ญ(bbox) ๊ฐ์ง€๊ธฐ๋กœ ๊ฐ์ง€ํ•œ ํฌ๊ธฐ๊ฐ€ ์ด ์„ค์ •๊ฐ’ ๋ณด๋‹ค ์ž‘์„ ๊ฒฝ์šฐ ๋ฌด์‹œํ•ฉ๋‹ˆ๋‹ค."
1030
+ },
1031
+ "refiner_ratio": {
1032
+ "name": "๋ผํŒŒ์ด๋„ˆ ์ ์šฉ ๋น„์œจ",
1033
+ "tooltip": "SDXL ๋ฆฌํŒŒ์ด๋„ˆ ๋ชจ๋ธ์„ ์‚ฌ์šฉํ•  ๊ฒฝ์šฐ ์ ์šฉ๋  ํ›„๋ฐ˜ ์Šคํ…์ˆ˜ ๋น„์œจ์„ ์„ค์ •ํ•ฉ๋‹ˆ๋‹ค."
1034
+ },
1035
+ "batch_size": {
1036
+ "name": "๋ฐฐ์น˜ ๊ฐฏ์ˆ˜",
1037
+ "tooltip": "๋Œ€์ƒ SEGS ์— ๋Œ€ํ•ด์„œ ๋ฐฐ์น˜ ๊ฐฏ์ˆ˜๋งŒํผ ์—ฌ๋Ÿฌ๊ฐœ์˜ ํ›„๋ณด๋ฅผ ์ƒ์„ฑํ•ฉ๋‹ˆ๋‹ค. ์—ฌ๋Ÿฌ๊ฐœ๋ฅผ ์ƒ์„ฑํ•  ๊ฒฝ์šฐ '๊ณ ๋ฅด๊ธฐ (SEGS)'์™€ ํ•จ๊ป˜ ์‚ฌ์šฉํ•˜์„ธ์š”."
1038
+ },
1039
+ "cycle": {
1040
+ "name": "๋ฐ˜๋ณต์ˆ˜",
1041
+ "tooltip": "์„ค์ •๋œ ๊ฐ’๋งŒํผ ์ธํŽ˜์ธํŒ…์„ ๋ฐ˜๋ณต ์ ์šฉํ•ฉ๋‹ˆ๋‹ค. ์ธ์ฝ”๋”ฉ/๋””์ฝ”๋”ฉ ์—†์ด ํ™•๋Œ€๋œ ์ž ์žฌ ์ด๋ฏธ์ง€ ๋‹จ๊ณ„์—์„œ ๋ฐ˜๋ณต๋ฉ๋‹ˆ๋‹ค."
1042
+ },
1043
+ "refiner_basic_pipe_opt": {
1044
+ "name": "๋ฆฌํŒŒ์ด๋„ˆ ๊ธฐ๋ณธ ํŒŒ์ดํ”„",
1045
+ "tooltip": "SDXL ๋ฆฌํŒŒ์ด๋„ˆ ๋‹จ๊ณ„์— ์ ์šฉํ•  ๊ธฐ๋ณธ ํŒŒ์ดํ”„๋ฅผ ์—ฐ๊ฒฐํ•ฉ๋‹ˆ๋‹ค."
1046
+ },
1047
+ "detailer_hook": {
1048
+ "name": "๋””ํ…Œ์ผ๋Ÿฌ ํ›„ํฌ",
1049
+ "tooltip": "์ด ๋…ธ๋“œ์˜ ์‹คํ–‰ ์ค‘๊ฐ„๋‹จ๊ณ„์—์„œ ์—ฌ๋Ÿฌ๊ฐ€์ง€ ๊ธฐ๋Šฅ์„ ์ˆ˜ํ–‰ํ•  ์ˆ˜ ์žˆ๋Š” ํ›„ํฌ๋ฅผ ์—ฐ๊ฒฐํ•ฉ๋‹ˆ๋‹ค."
1050
+ },
1051
+ "inpaint_model": {
1052
+ "name": "์ธํŽ˜์ธํŠธ ๋ชจ๋ธ ๋ชจ๋“œ",
1053
+ "tooltip": "์ธํŽ˜์ธํŠธ ์ „์šฉ ๋ชจ๋ธ์„ ์‚ฌ์šฉํ•  ๊ฒฝ์šฐ ์ด ์˜ต์…˜์„ ์ผœ๋ฉด, ์ธํŽ˜์ธํŒ…์‹œ์— '์ธํŽ˜์ธํŠธ ๋ชจ๋ธ ์กฐ๊ฑด ์„ค์ •'์ด ์ ์šฉ๋˜์–ด ์ˆ˜ํ–‰๋ฉ๋‹ˆ๋‹ค."
1054
+ },
1055
+ "noise_mask_feather": {
1056
+ "name": "๋…ธ์ด์ฆˆ ๋งˆ์Šคํฌ ๊ฐ€์žฅ์ž๋ฆฌ ํ๋ฆผ",
1057
+ "tooltip": "์ธํŽ˜์ธํŠธ์‹œ์— ์ ์šฉ๋˜๋Š” ๋…ธ์ด์ฆˆ ๋งˆ์Šคํฌ์˜ ๊ฐ€์žฅ์ž๋ฆฌ๋ฅผ ํ๋ฆฌ๊ฒŒ ํ•ฉ๋‹ˆ๋‹ค. ์ด ์„ค์ •๊ฐ’์ด 0์„ ์ดˆ๊ณผํ•  ๊ฒฝ์šฐ, ๋‚ด๋ถ€์ ์œผ๋กœ ์ž๋™์œผ๋กœ '์ฐจ๋“ฑ ํ™•์‚ฐ' ๋…ธ๋“œ๋ฅผ ์ ์šฉํ•ฉ๋‹ˆ๋‹ค."
1058
+ },
1059
+ "bbox_fill": {
1060
+ "name": "bbox ์ฑ„์šฐ๊ธฐ",
1061
+ "tooltip": "๊ฐ ๋งˆ์Šคํฌ ์กฐ๊ฐ๋“ค์„ ํ•ด๋‹น ๋งˆ์Šคํฌ๋ฅผ ํฌํ•จํ•˜๋Š” ๊ฐ€์žฅ ์ž‘์€ ์‚ฌ๊ฐ ์˜์—ญ์˜ ๋งˆ์Šคํฌ๋กœ ๊ฐ„์ฃผํ•ฉ๋‹ˆ๋‹ค."
1062
+ },
1063
+ "contour_fill": {
1064
+ "name": "์œค๊ณฝ ๋‚ด๋ถ€ ์ฑ„์šฐ๊ธฐ",
1065
+ "tooltip": "์œค๊ณฝ์„  ํ˜•ํƒœ์˜ ๋งˆ์Šคํฌ ์กฐ๊ฐ๋“ค์˜ ๊ฒฝ์šฐ ๋งˆ์Šคํฌ ๋‚ด๋ถ€๊ฐ€ ๋ชจ๋‘ ์ฑ„์›Œ์ง„ ๊ฒƒ์œผ๋กœ ๊ฐ„์ฃผํ•ฉ๋‹ˆ๋‹ค."
1066
+ },
1067
+ "scheduler_func_opt": {
1068
+ "name": "์Šค์ผ€์ฅด๋Ÿฌ ํ•จ์ˆ˜",
1069
+ "tooltip": "GITS ์Šค์ผ€์ฅด๋Ÿฌ ์ฒ˜๋Ÿผ ๊ธฐ๋ณธ ์Šค์ผ€์ฅด๋Ÿฌ ๋ฆฌ์ŠคํŠธ์—์„œ ์„ ํƒํ•  ์ˆ˜ ์—†๋Š” ํŠน์ˆ˜ ์Šค์ผ€์ฅด๋Ÿฌ๋ฅผ ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ๊ฒŒ ํ•ด์ค๋‹ˆ๋‹ค. ์ด ์ž…๋ ฅ์ด ์—ฐ๊ฒฐ๋˜๋ฉด, ๊ธฐ๋ณธ ์Šค์ผ€์ฅด๋Ÿฌ ์„ ํƒ์€ ๋ฌด์‹œ๋ฉ๋‹ˆ๋‹ค."
1070
+ }
1071
+ },
1072
+ "outputs": {
1073
+ "0": {
1074
+ "name": "๊ฐœ์„  ์ด๋ฏธ์ง€"
1075
+ },
1076
+ "1": {
1077
+ "name": "์ž˜๋ผ๋‚ธ ๊ฐœ์„  ์ด๋ฏธ์ง€"
1078
+ },
1079
+ "2": {
1080
+ "name": "์ž˜๋ผ๋‚ธ ํˆฌ๋ช… ๊ฐœ์„  ์ด๋ฏธ์ง€"
1081
+ },
1082
+ "3": {
1083
+ "name": "๊ธฐ๋ณธ ํŒŒ์ดํ”„"
1084
+ },
1085
+ "4": {
1086
+ "name": "๋ฆฌํŒŒ์ด๋„ˆ ๊ธฐ๋ณธ ํŒŒ์ดํ”„"
1087
+ }
1088
+ }
1089
+ },
1090
+
1091
+ "SEGSPaste": {
1092
+ "description": "SEGS ๋””ํ…Œ์ผ๋Ÿฌ๋ฅผ ํ†ตํ•ด ๊ฐœ์„ ๋œ SEGS๋ฅผ ์›๋ณธ ์ด๋ฏธ์ง€์— ๋ถ™์—ฌ๋„ฃ๋Š” ๊ธฐ๋Šฅ์„ ์ œ๊ณตํ•˜๊ธฐ ์œ„ํ•œ ๋…ธ๋“œ์ž…๋‹ˆ๋‹ค.",
1093
+ "display_name": "SEGS ๋ถ™์—ฌ๋„ฃ๊ธฐ",
1094
+ "inputs": {
1095
+ "image": {
1096
+ "name": "์›๋ณธ ์ด๋ฏธ์ง€"
1097
+ },
1098
+ "segs": {
1099
+ "name": "segs"
1100
+ },
1101
+ "feather": {
1102
+ "name": "๊ฐ€์žฅ์ž๋ฆฌ ํ๋ฆผ",
1103
+ "tooltip": "๊ฐœ์„ ๋œ SEGS์˜ ์ด๋ฏธ์ง€๋ฅผ ์›๋ณธ ์ด๋ฏธ์ง€์— ๋ถ™์—ฌ๋„ฃ์„ ๋•Œ, ์ด ์ˆ˜์น˜๋กœ ๋งˆ์Šคํฌ์˜ ๊ฐ€์žฅ ์ž๋ฆฌ๋ฅผ ํ๋ฆฌ๊ฒŒ ํ•ด์„œ ๋ถ™์—ฌ๋„ฃ์–ด ์ด์Œ๋งค์˜ ์œ„ํ™”๊ฐ์„ ์ค„์—ฌ์ค๋‹ˆ๋‹ค."
1104
+ },
1105
+ "alpha": {
1106
+ "name": "ํˆฌ๋ช…๋„",
1107
+ "tooltip": "์›๋ณธ์— ๋ถ™์—ฌ๋„ฃ๋Š” ์ด๋ฏธ์ง€์— ํˆฌ๋ช…๋„๋ฅผ ์„ค์ •ํ•ฉ๋‹ˆ๋‹ค."
1108
+ },
1109
+ "ref_image_opt": {
1110
+ "name": "์ฐธ์กฐ ์ด๋ฏธ์ง€",
1111
+ "tooltip": "๋””ํ…Œ์ผ๋Ÿฌ๋ฅผ ํ†ต๊ณผ์‹œํ‚ค๊ฑฐ๋‚˜ 'SEGS์— ๊ธฐ๋ณธ ์ด๋ฏธ์ง€ ์„ค์ •'์„ ํ•œ ๊ฒฝ์šฐ๊ฐ€ ์•„๋‹ˆ๋ผ๋ฉด, SEGS๋Š” ์ด๋ฏธ์ง€๊ฐ€ ์—†์ด ๊ฐ์ง€ ์˜์—ญ ์ •๋ณด๋งŒ ์žˆ์Šต๋‹ˆ๋‹ค. ์ด ๋•Œ ๊ฐ์ง€์˜์—ญ์ด ์ฐธ์กฐํ•  ์›๋ณธ ์ด๋ฏธ์ง€๋ฅผ ์„ค์ •ํ•ฉ๋‹ˆ๋‹ค."
1112
+ }
1113
+ },
1114
+ "outputs": {
1115
+ "0": {
1116
+ "name": "๊ฐœ์„  SEGS"
1117
+ }
1118
+ }
1119
+ },
1120
+
1121
+ "ImpactSEGSPicker": {
1122
+ "description": "์ž…๋ ฅ๋œ SEGS ์ค‘์—์„œ ์„ ํƒ๋œ SEGS๋งŒ์„ ๊ณ ๋ฅผ ์ˆ˜ ์žˆ๋Š” ์žˆ๋Š” ๊ธฐ๋Šฅ์„ ์ œ๊ณตํ•ฉ๋‹ˆ๋‹ค.",
1123
+ "display_name": "๊ณ ๋ฅด๊ธฐ (SEGS)",
1124
+ "inputs": {
1125
+ "picks": {
1126
+ "name": "์„ ํƒ ๋ชฉ๋ก",
1127
+ "tooltip": "์ถœ๋ ฅํ•  SEGS ๋ฒˆํ˜ธ ๋ชฉ๋ก์„ ๋‚˜์—ดํ•ฉ๋‹ˆ๋‹ค. 'pick' ๋ฒ„ํŠผ์„ ๋ˆŒ๋Ÿฌ์„œ ์„ ํƒํ•˜์„ธ์š”."
1128
+ },
1129
+ "segs": {
1130
+ "name": "segs"
1131
+ },
1132
+ "fallback_image_opt": {
1133
+ "name": "์ฐธ์กฐ ์ด๋ฏธ์ง€",
1134
+ "tooltip": "๋””ํ…Œ์ผ๋Ÿฌ๋ฅผ ํ†ต๊ณผ์‹œํ‚ค๊ฑฐ๋‚˜ 'SEGS์— ๊ธฐ๋ณธ ์ด๋ฏธ์ง€ ์„ค์ •'์„ ํ•œ ๊ฒฝ์šฐ๊ฐ€ ์•„๋‹ˆ๋ผ๋ฉด, SEGS๋Š” ์ด๋ฏธ์ง€๊ฐ€ ์—†์ด ๊ฐ์ง€ ์˜์—ญ ์ •๋ณด๋งŒ ์žˆ์Šต๋‹ˆ๋‹ค. ์ด ๋•Œ ๊ฐ์ง€์˜์—ญ์ด ์ฐธ์กฐํ•  ์›๋ณธ ์ด๋ฏธ์ง€๋ฅผ ์„ค์ •ํ•ฉ๋‹ˆ๋‹ค."
1135
+ }
1136
+ },
1137
+ "outputs": {
1138
+ "0": {
1139
+ "name": "์„ ํƒ๋œ SEGS"
1140
+ }
1141
+ }
1142
+ },
1143
+
1144
+ "SetDefaultImageForSEGS": {
1145
+ "description": "๋””ํ…Œ์ผ๋Ÿฌ๋ฅผ ํ†ต๊ณผ์‹œํ‚จ ๊ฒฝ์šฐ๊ฐ€ ์•„๋‹ˆ๋ผ๋ฉด, SEGS๋Š” ์ด๋ฏธ์ง€๊ฐ€ ์—†์ด ๊ฐ์ง€ ์˜์—ญ ์ •๋ณด๋งŒ ์žˆ์Šต๋‹ˆ๋‹ค. ์ด ๋…ธ๋“œ๋Š” SEGS์— ๊ธฐ๋ณธ ์ด๋ฏธ์ง€๋ฅผ ์„ค์ •ํ•ด ์ค๋‹ˆ๋‹ค.",
1146
+ "display_name": "SEGS์— ๊ธฐ๋ณธ ์ด๋ฏธ์ง€ ์„ค์ •",
1147
+ "inputs": {
1148
+ "segs": {
1149
+ "name": "segs"
1150
+ },
1151
+ "image": {
1152
+ "name": "์ด๋ฏธ์ง€"
1153
+ },
1154
+ "override": {
1155
+ "name": "๋ฎ์–ด์“ฐ๊ธฐ",
1156
+ "tooltip": "์ด๋ฏธ ์„ค์ •๋œ ์ด๋ฏธ์ง€๊ฐ€ ์žˆ๋Š” ๊ฒฝ์šฐ ๋ฎ์–ด์“ธ์ง€ ์—ฌ๋ถ€๋ฅผ ์„ค์ •ํ•ฉ๋‹ˆ๋‹ค."
1157
+ }
1158
+ },
1159
+ "outputs": {
1160
+ "0": {
1161
+ "name": "segs"
1162
+ }
1163
+ }
1164
+ },
1165
+
1166
+ "ImpactWildcardProcessor": {
1167
+ "description": "์ด ๋…ธ๋“œ๋Š” ์™€์ผ๋“œ์นด๋“œ ๊ตฌ๋ฌธ์œผ๋กœ ์ž‘์„ฑ๋œ ํ…์ŠคํŠธ ํ”„๋กฌํ”„ํŠธ๋ฅผ ์ฒ˜๋ฆฌํ•˜๊ณ , ์ฒ˜๋ฆฌ๋œ ํ…์ŠคํŠธ ํ”„๋กฌํ”„ํŠธ๋ฅผ ์ถœ๋ ฅํ•ฉ๋‹ˆ๋‹ค.\n\nTIP: ์›Œํฌํ”Œ๋กœ๊ฐ€ ์‹คํ–‰๋˜๊ธฐ ์ „์— '์™€์ผ๋“œ์นด๋“œ ํ…์ŠคํŠธ'์˜ ์ฒ˜๋ฆฌ ๊ฒฐ๊ณผ๊ฐ€ '์ฑ„์›Œ์ง„(populated) ํ…์ŠคํŠธ'์— ํ‘œ์‹œ๋˜๋ฉฐ, ์ด ๊ฐ’์€ ์›Œํฌํ”Œ๋กœ์™€ ํ•จ๊ป˜ ์ €์žฅ๋ฉ๋‹ˆ๋‹ค. ์ž…๋ ฅ์œผ๋กœ ๋ณ€ํ™˜๋œ ์‹œ๋“œ๋ฅผ ์‚ฌ์šฉํ•˜๋ ค๋ฉด '์™€์ผ๋“œ์นด๋“œ ํ…์ŠคํŠธ' ๋Œ€์‹  '์ฑ„์›Œ์ง„(populated) ํ…์ŠคํŠธ'์— ์ง์ ‘ ํ”„๋กฌํ”„ํŠธ๋ฅผ ์ž‘์„ฑํ•˜๊ณ , ๋ชจ๋“œ๋ฅผ '๊ณ ์ •(fixed)'๋กœ ์„ค์ •ํ•˜์„ธ์š”.",
1168
+ "display_name": "์™€์ผ๋“œ์นด๋“œ ์ฒ˜๋ฆฌ๊ธฐ (Impact)",
1169
+ "inputs": {
1170
+ "wildcard_text": {
1171
+ "name": "์™€์ผ๋“œ์นด๋“œ ํ…์ŠคํŠธ",
1172
+ "tooltip": "์™€์ผ๋“œ์นด๋“œ ๋ฌธ๋ฒ•์œผ๋กœ ์ž‘์„ฑ๋œ ํ…์ŠคํŠธ ํ”„๋กฌํ”„ํŠธ๋ฅผ ์ž…๋ ฅํ•˜์„ธ์š”."
1173
+ },
1174
+ "populated_text": {
1175
+ "name": "์ฑ„์›Œ์ง„ ํ…์ŠคํŠธ",
1176
+ "tooltip": "์ด ๋…ธ๋“œ์— ์‹คํ–‰ ์ค‘์— ์ „๋‹ฌ๋˜๋Š” ์‹ค์ œ ๊ฐ’์€ ์—ฌ๊ธฐ ํ‘œ์‹œ๋œ ๊ฐ’์ž…๋‹ˆ๋‹ค. ๋™์ž‘์€ ๋ชจ๋“œ์— ๋”ฐ๋ผ ์•ฝ๊ฐ„ ๋‹ค๋ฅผ ์ˆ˜ ์žˆ์œผ๋ฉฐ, '์ฑ„์›Œ์ง„ ํ…์ŠคํŠธ'์—์„œ๋„ ์™€์ผ๋“œ์นด๋“œ ๊ตฌ๋ฌธ์„ ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค."
1177
+ },
1178
+ "mode": {
1179
+ "name": "๋ชจ๋“œ",
1180
+ "tooltip": "์ฑ„์šฐ๊ธฐ(populate): ์›Œํฌํ”Œ๋กœ๋ฅผ ์‹คํ–‰ํ•˜๊ธฐ ์ „์— '์™€์ผ๋“œ์นด๋“œ ํ…์ŠคํŠธ'์—์„œ ์ฒ˜๋ฆฌ๋œ ํ”„๋กฌํ”„ํŠธ๋กœ '์ฑ„์›Œ์ง„ ํ…์ŠคํŠธ'์˜ ๊ธฐ์กด ๊ฐ’์„ ๋ฎ์–ด์”๋‹ˆ๋‹ค. ์ด ๋ชจ๋“œ์—์„œ๋Š” '์ฑ„์›Œ์ง„ ํ…์ŠคํŠธ'๋ฅผ ์ˆ˜์ •ํ•  ์ˆ˜ ์—†์Šต๋‹ˆ๋‹ค.\n\n๊ณ ์ •(fixed): '์™€์ผ๋“œ์นด๋“œ ํ…์ŠคํŠธ'๋ฅผ ๋ฌด์‹œํ•˜๊ณ  '์ฑ„์›Œ์ง„ ํ…์ŠคํŠธ'์˜ ๊ฐ’์„ ๊ทธ๋Œ€๋กœ ์œ ์ง€ํ•ฉ๋‹ˆ๋‹ค. ์ด ๋ชจ๋“œ์—์„œ๋Š” '์ฑ„์›Œ์ง„ ํ…์ŠคํŠธ'๋ฅผ ์ˆ˜์ •ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.\n\n์žฌํ˜„(reproduce): ์ด ๋ชจ๋“œ๋Š” ํ•œ ๋ฒˆ๋งŒ '๊ณ ์ •(fixed)' ๋ชจ๋“œ๋กœ ์ž‘๋™ํ•˜์—ฌ ์žฌํ˜„ํ•œ ํ›„, ์ดํ›„์—๋Š” '์ฑ„์šฐ๊ธฐ(populate)' ๋ชจ๋“œ๋กœ ์ „ํ™˜๋ฉ๋‹ˆ๋‹ค."
1181
+ },
1182
+ "seed": {
1183
+ "name": "์‹œ๋“œ",
1184
+ "tooltip": "์™€์ผ๋“œ์นด๋“œ์˜ ๋ฌด์ž‘์œ„ ์„ ํƒ์— ์‚ฌ์šฉํ•  ์‹œ๋“œ ์ž…๋‹ˆ๋‹ค"
1185
+ },
1186
+ "Select to add Wildcard": {
1187
+ "name": "์ถ”๊ฐ€ํ•  ์™€์ผ๋“œ์นด๋“œ ์„ ํƒ"
1188
+ }
1189
+ },
1190
+ "outputs": {
1191
+ "0": {
1192
+ "name": "์ฒ˜๋ฆฌ๋œ ํ…์ŠคํŠธ"
1193
+ }
1194
+ }
1195
+ },
1196
+
1197
+ "ImpactWildcardEncode": {
1198
+ "description": "์ด ๋…ธ๋“œ๋Š” ์™€์ผ๋“œ์นด๋“œ ๊ตฌ๋ฌธ์œผ๋กœ ์ž‘์„ฑ๋œ ํ…์ŠคํŠธ ํ”„๋กฌํ”„ํŠธ๋ฅผ ์ฒ˜๋ฆฌํ•˜๊ณ  ์ด๋ฅผ ์กฐ๊ฑด์œผ๋กœ ์ถœ๋ ฅํ•ฉ๋‹ˆ๋‹ค. ๋˜ํ•œ LoRA ๊ตฌ๋ฌธ์„ ์ง€์›ํ•˜๋ฉฐ, ์ ์šฉ๋œ LoRA๋Š” ๋ชจ๋ธ ์ถœ๋ ฅ์— ๋ฐ˜์˜๋ฉ๋‹ˆ๋‹ค.\n\nTIP1: ์›Œํฌํ”Œ๋กœ๊ฐ€ ์‹คํ–‰๋˜๊ธฐ ์ „์— '์™€์ผ๋“œ์นด๋“œ ํ…์ŠคํŠธ'์˜ ์ฒ˜๋ฆฌ ๊ฒฐ๊ณผ๊ฐ€ '์ฑ„์›Œ์ง„ ํ…์ŠคํŠธ'์— ํ‘œ์‹œ๋˜๋ฉฐ, ์ด ๊ฐ’์€ ์›Œํฌํ”Œ๋กœ์™€ ํ•จ๊ป˜ ์ €์žฅ๋ฉ๋‹ˆ๋‹ค. ์ž…๋ ฅ์œผ๋กœ ๋ณ€ํ™˜๋œ ์‹œ๋“œ๋ฅผ ์‚ฌ์šฉํ•˜๋ ค๋ฉด '์™€์ผ๋“œ์นด๋“œ ํ…์ŠคํŠธ' ๋Œ€์‹  '์ฑ„์›Œ์ง„ ํ…์ŠคํŠธ'์— ์ง์ ‘ ํ”„๋กฌํ”„ํŠธ๋ฅผ ์ž‘์„ฑํ•˜๊ณ , ๋ชจ๋“œ๋ฅผ '๊ณ ์ •(fixed)'๋กœ ์„ค์ •ํ•˜์„ธ์š”.\nTIP2: 'Inspire Pack'์ด ์„ค์น˜๋˜์–ด ์žˆ์œผ๋ฉด LBW(๋กœ๋ผ ๋ธ”๋ก ์›จ์ดํŠธ) ๊ตฌ๋ฌธ๋„ ์ ์šฉํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.",
1199
+ "display_name": "์™€์ผ๋“œ์นด๋“œ ์ธ์ฝ”๋”ฉ (Impact)",
1200
+ "inputs": {
1201
+ "wildcard_text": {
1202
+ "name": "์™€์ผ๋“œ์นด๋“œ ํ…์ŠคํŠธ",
1203
+ "tooltip": "์™€์ผ๋“œ์นด๋“œ ๋ฌธ๋ฒ•์œผ๋กœ ์ž‘์„ฑ๋œ ํ…์ŠคํŠธ ํ”„๋กฌํ”„ํŠธ๋ฅผ ์ž…๋ ฅํ•˜์„ธ์š”."
1204
+ },
1205
+ "populated_text": {
1206
+ "name": "์ฑ„์›Œ์ง„ ํ…์ŠคํŠธ",
1207
+ "tooltip": "์ด ๋…ธ๋“œ์— ์‹คํ–‰ ์ค‘์— ์ „๋‹ฌ๋˜๋Š” ์‹ค์ œ ๊ฐ’์€ ์—ฌ๊ธฐ ํ‘œ์‹œ๋œ ๊ฐ’์ž…๋‹ˆ๋‹ค. ๋™์ž‘์€ ๋ชจ๋“œ์— ๋”ฐ๋ผ ์•ฝ๊ฐ„ ๋‹ค๋ฅผ ์ˆ˜ ์žˆ์œผ๋ฉฐ, '์ฑ„์›Œ์ง„ ํ…์ŠคํŠธ'์—์„œ๋„ ์™€์ผ๋“œ์นด๋“œ ๊ตฌ๋ฌธ์„ ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค."
1208
+ },
1209
+ "mode": {
1210
+ "name": "๋ชจ๋“œ",
1211
+ "tooltip": "์ฑ„์šฐ๊ธฐ(populate): ์›Œํฌํ”Œ๋กœ๋ฅผ ๏ฟฝ๏ฟฝํ–‰ํ•˜๊ธฐ ์ „์— '์™€์ผ๋“œ์นด๋“œ ํ…์ŠคํŠธ'์—์„œ ์ฒ˜๋ฆฌ๋œ ํ”„๋กฌํ”„ํŠธ๋กœ '์ฑ„์›Œ์ง„ ํ…์ŠคํŠธ'์˜ ๊ธฐ์กด ๊ฐ’์„ ๋ฎ์–ด์”๋‹ˆ๋‹ค. ์ด ๋ชจ๋“œ์—์„œ๋Š” '์ฑ„์›Œ์ง„ ํ…์ŠคํŠธ'๋ฅผ ์ˆ˜์ •ํ•  ์ˆ˜ ์—†์Šต๋‹ˆ๋‹ค.\n\n๊ณ ์ •(fixed): '์™€์ผ๋“œ์นด๋“œ ํ…์ŠคํŠธ'๋ฅผ ๋ฌด์‹œํ•˜๊ณ  '์ฑ„์›Œ์ง„ ํ…์ŠคํŠธ'์˜ ๊ฐ’์„ ๊ทธ๋Œ€๋กœ ์œ ์ง€ํ•ฉ๋‹ˆ๋‹ค. ์ด ๋ชจ๋“œ์—์„œ๋Š” '์ฑ„์›Œ์ง„ ํ…์ŠคํŠธ'๋ฅผ ์ˆ˜์ •ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.\n\n์žฌํ˜„(reproduce): ์ด ๋ชจ๋“œ๋Š” ํ•œ ๋ฒˆ๋งŒ '๊ณ ์ •(fixed)' ๋ชจ๋“œ๋กœ ์ž‘๋™ํ•˜์—ฌ ์žฌํ˜„ํ•œ ํ›„, ์ดํ›„์—๋Š” '์ฑ„์šฐ๊ธฐ(populate)' ๋ชจ๋“œ๋กœ ์ „ํ™˜๋ฉ๋‹ˆ๋‹ค."
1212
+ },
1213
+ "Select to add LoRA": {
1214
+ "name": "์ถ”๊ฐ€ํ•  LoRA ์„ ํƒ"
1215
+ },
1216
+ "Select to add Wildcard": {
1217
+ "name": "์ถ”๊ฐ€ํ•  ์™€์ผ๋“œ์นด๋“œ ์„ ํƒ"
1218
+ },
1219
+ "seed": {
1220
+ "name": "์‹œ๋“œ",
1221
+ "tooltip": "์™€์ผ๋“œ์นด๋“œ์˜ ๋ฌด์ž‘์œ„ ์„ ํƒ์— ์‚ฌ์šฉํ•  ์‹œ๋“œ ์ž…๋‹ˆ๋‹ค"
1222
+ }
1223
+ },
1224
+ "outputs": {
1225
+ "0": {
1226
+ "name": "model",
1227
+ "tooltip": "LoRA ์ ์šฉ ๋ฌธ๋ฒ•์ด ์‚ฌ์šฉ๋œ ๊ฒฝ์šฐ, LoRA ๊ฐ€ ์ ์šฉ๋œ model์ด ์ถœ๋ ฅ๋ฉ๋‹ˆ๋‹ค."
1228
+ },
1229
+ "1": {
1230
+ "name": "clip",
1231
+ "tooltip": "LoRA ์ ์šฉ ๋ฌธ๋ฒ•์ด ์‚ฌ์šฉ๋œ ๊ฒฝ์šฐ, LoRA ๊ฐ€ ์ ์šฉ๋œ clip์ด ์ถœ๋ ฅ๋ฉ๋‹ˆ๋‹ค."
1232
+ },
1233
+ "2": {
1234
+ "name": "์กฐ๊ฑด"
1235
+ },
1236
+ "3": {
1237
+ "name": "์ฑ„์›Œ์ง„ ํ…์ŠคํŠธ"
1238
+ }
1239
+ }
1240
+ }
1241
+ }
zavodik/nodes/ComfyUI-Impact-Pack/modules/impact/__pycache__/animatediff_nodes.cpython-313.pyc ADDED
Binary file (10.3 kB). View file
 
zavodik/nodes/ComfyUI-Impact-Pack/modules/impact/__pycache__/bridge_nodes.cpython-313.pyc ADDED
Binary file (22.1 kB). View file
 
zavodik/nodes/ComfyUI-Impact-Pack/modules/impact/__pycache__/config.cpython-313.pyc ADDED
Binary file (4.19 kB). View file
 
zavodik/nodes/ComfyUI-Impact-Pack/modules/impact/__pycache__/core.cpython-313.pyc ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9345264e19ea457ace45ad44b703b97c0fc9160b85a1a01358e475ec9b678c98
3
+ size 113008
zavodik/nodes/ComfyUI-Impact-Pack/modules/impact/__pycache__/defs.cpython-313.pyc ADDED
Binary file (1.22 kB). View file
 
zavodik/nodes/ComfyUI-Impact-Pack/modules/impact/__pycache__/detectors.cpython-313.pyc ADDED
Binary file (27.6 kB). View file
 
zavodik/nodes/ComfyUI-Impact-Pack/modules/impact/__pycache__/hf_nodes.cpython-313.pyc ADDED
Binary file (5.77 kB). View file
 
zavodik/nodes/ComfyUI-Impact-Pack/modules/impact/__pycache__/hook_nodes.cpython-313.pyc ADDED
Binary file (5.9 kB). View file
 
zavodik/nodes/ComfyUI-Impact-Pack/modules/impact/__pycache__/hooks.cpython-313.pyc ADDED
Binary file (33.4 kB). View file
 
zavodik/nodes/ComfyUI-Impact-Pack/modules/impact/__pycache__/impact_pack.cpython-313.pyc ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:25ac3814d1d7e1ab061e52e0ec9fb0d0e0806068d4dd2ed2b10f663e35662b30
3
+ size 121127
zavodik/nodes/ComfyUI-Impact-Pack/modules/impact/__pycache__/impact_sampling.cpython-313.pyc ADDED
Binary file (14.6 kB). View file