Delete ComfyUI/custom_nodes/manager-core
Browse filesThis view is limited to 50 files because it contains too many changes.
See raw diff
- ComfyUI/custom_nodes/manager-core/.cache/.cache_directory +0 -0
- ComfyUI/custom_nodes/manager-core/.gitignore +0 -19
- ComfyUI/custom_nodes/manager-core/LICENSE.txt +0 -674
- ComfyUI/custom_nodes/manager-core/README.md +0 -14
- ComfyUI/custom_nodes/manager-core/__init__.py +0 -15
- ComfyUI/custom_nodes/manager-core/alter-list.json +0 -224
- ComfyUI/custom_nodes/manager-core/channels.list.template +0 -2
- ComfyUI/custom_nodes/manager-core/check.bat +0 -21
- ComfyUI/custom_nodes/manager-core/check.sh +0 -43
- ComfyUI/custom_nodes/manager-core/cm-cli.py +0 -1078
- ComfyUI/custom_nodes/manager-core/cm-cli.sh +0 -2
- ComfyUI/custom_nodes/manager-core/custom-node-list.json +0 -0
- ComfyUI/custom_nodes/manager-core/docs/en/cm-cli.md +0 -146
- ComfyUI/custom_nodes/manager-core/docs/en/use_aria2.md +0 -40
- ComfyUI/custom_nodes/manager-core/docs/ko/cm-cli.md +0 -149
- ComfyUI/custom_nodes/manager-core/extension-node-map.json +0 -0
- ComfyUI/custom_nodes/manager-core/extras.json +0 -26
- ComfyUI/custom_nodes/manager-core/git_helper.py +0 -473
- ComfyUI/custom_nodes/manager-core/github-stats.json +0 -0
- ComfyUI/custom_nodes/manager-core/glob/__init__.py +0 -0
- ComfyUI/custom_nodes/manager-core/glob/cm_global.py +0 -112
- ComfyUI/custom_nodes/manager-core/glob/cnr_utils.py +0 -101
- ComfyUI/custom_nodes/manager-core/glob/manager_core.py +0 -0
- ComfyUI/custom_nodes/manager-core/glob/manager_downloader.py +0 -70
- ComfyUI/custom_nodes/manager-core/glob/manager_server.py +0 -1164
- ComfyUI/custom_nodes/manager-core/glob/manager_util.py +0 -323
- ComfyUI/custom_nodes/manager-core/glob/security_check.py +0 -92
- ComfyUI/custom_nodes/manager-core/js/cm-api.js +0 -63
- ComfyUI/custom_nodes/manager-core/js/comfyui-manager.js +0 -976
- ComfyUI/custom_nodes/manager-core/js/common.js +0 -166
- ComfyUI/custom_nodes/manager-core/js/custom-nodes-manager.js +0 -1688
- ComfyUI/custom_nodes/manager-core/js/model-manager.js +0 -893
- ComfyUI/custom_nodes/manager-core/js/snapshot.js +0 -300
- ComfyUI/custom_nodes/manager-core/js/turbogrid.esm.js +0 -0
- ComfyUI/custom_nodes/manager-core/json-checker.py +0 -25
- ComfyUI/custom_nodes/manager-core/model-list.json +0 -0
- ComfyUI/custom_nodes/manager-core/node_db/dev/custom-node-list.json +0 -0
- ComfyUI/custom_nodes/manager-core/node_db/dev/extension-node-map.json +0 -0
- ComfyUI/custom_nodes/manager-core/node_db/dev/github-stats.json +0 -1327
- ComfyUI/custom_nodes/manager-core/node_db/dev/model-list.json +0 -3
- ComfyUI/custom_nodes/manager-core/node_db/dev/scan.sh +0 -3
- ComfyUI/custom_nodes/manager-core/node_db/forked/custom-node-list.json +0 -114
- ComfyUI/custom_nodes/manager-core/node_db/forked/extension-node-map.json +0 -1
- ComfyUI/custom_nodes/manager-core/node_db/forked/model-list.json +0 -3
- ComfyUI/custom_nodes/manager-core/node_db/forked/scan.sh +0 -4
- ComfyUI/custom_nodes/manager-core/node_db/legacy/alter-list.json +0 -1
- ComfyUI/custom_nodes/manager-core/node_db/legacy/custom-node-list.json +0 -993
- ComfyUI/custom_nodes/manager-core/node_db/legacy/extension-node-map.json +0 -1
- ComfyUI/custom_nodes/manager-core/node_db/legacy/model-list.json +0 -3
- ComfyUI/custom_nodes/manager-core/node_db/new/alter-list.json +0 -4
ComfyUI/custom_nodes/manager-core/.cache/.cache_directory
DELETED
File without changes
|
ComfyUI/custom_nodes/manager-core/.gitignore
DELETED
@@ -1,19 +0,0 @@
|
|
1 |
-
__pycache__/
|
2 |
-
.idea/
|
3 |
-
.vscode/
|
4 |
-
.history/
|
5 |
-
*.code-workspace
|
6 |
-
.tmp
|
7 |
-
.cache
|
8 |
-
config.ini
|
9 |
-
snapshots/**
|
10 |
-
startup-scripts/**
|
11 |
-
.openart_key
|
12 |
-
.youml
|
13 |
-
matrix_auth
|
14 |
-
channels.list
|
15 |
-
comfyworkflows_sharekey
|
16 |
-
github-stats-cache.json
|
17 |
-
pip_overrides.json
|
18 |
-
*.json
|
19 |
-
check2.sh
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ComfyUI/custom_nodes/manager-core/LICENSE.txt
DELETED
@@ -1,674 +0,0 @@
|
|
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>.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ComfyUI/custom_nodes/manager-core/README.md
DELETED
@@ -1,14 +0,0 @@
|
|
1 |
-
# ComfyUI Manager (Essential)
|
2 |
-
|
3 |
-
* This extension provides only the core functionality of ComfyUI-Manager, which is the custom node management feature.
|
4 |
-
|
5 |
-
|
6 |
-
# Disclaimer
|
7 |
-
|
8 |
-
* This extension simply provides the convenience of installing custom nodes and does not guarantee their proper functioning.
|
9 |
-
|
10 |
-
|
11 |
-
## Credit
|
12 |
-
ComfyUI/[ComfyUI](https://github.com/comfyanonymous/ComfyUI) - A powerful and modular stable diffusion GUI.
|
13 |
-
|
14 |
-
**And, for all ComfyUI custom node developers**
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ComfyUI/custom_nodes/manager-core/__init__.py
DELETED
@@ -1,15 +0,0 @@
|
|
1 |
-
import os
|
2 |
-
|
3 |
-
cli_mode_flag = os.path.join(os.path.dirname(__file__), '.enable-cli-only-mode')
|
4 |
-
|
5 |
-
if not os.path.exists(cli_mode_flag):
|
6 |
-
from .glob import manager_server
|
7 |
-
WEB_DIRECTORY = "js"
|
8 |
-
else:
|
9 |
-
print(f"\n[ComfyUI-Manager] !! cli-only-mode is enabled !!\n")
|
10 |
-
|
11 |
-
NODE_CLASS_MAPPINGS = {}
|
12 |
-
__all__ = ['NODE_CLASS_MAPPINGS']
|
13 |
-
|
14 |
-
|
15 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ComfyUI/custom_nodes/manager-core/alter-list.json
DELETED
@@ -1,224 +0,0 @@
|
|
1 |
-
{
|
2 |
-
"items": [
|
3 |
-
{
|
4 |
-
"id":"https://github.com/Fannovel16/comfyui_controlnet_aux",
|
5 |
-
"tags":"controlnet",
|
6 |
-
"description": "This extension provides preprocessor nodes for using controlnet."
|
7 |
-
},
|
8 |
-
{
|
9 |
-
"id":"https://github.com/comfyanonymous/ComfyUI_experiments",
|
10 |
-
"tags":"Dynamic Thresholding, DT, CFG, controlnet, reference only",
|
11 |
-
"description": "This experimental nodes contains a 'Reference Only' node and a 'ModelSamplerTonemapNoiseTest' node corresponding to the 'Dynamic Threshold'."
|
12 |
-
},
|
13 |
-
{
|
14 |
-
"id":"https://github.com/ltdrdata/ComfyUI-Impact-Pack",
|
15 |
-
"tags":"ddetailer, adetailer, ddsd, DD, loopback scaler, prompt, wildcard, dynamic prompt",
|
16 |
-
"description": "To implement the feature of automatically detecting faces and enhancing details, various detection nodes and detailers provided by the Impact Pack can be applied. Similarly to Loopback Scaler, it also provides various custom workflows that can apply Ksampler while gradually scaling up."
|
17 |
-
},
|
18 |
-
{
|
19 |
-
"id":"https://github.com/ltdrdata/ComfyUI-Inspire-Pack",
|
20 |
-
"tags":"lora block weight, effective block analyzer, lbw, variation seed",
|
21 |
-
"description": "The Inspire Pack provides the functionality of Lora Block Weight, Variation Seed."
|
22 |
-
},
|
23 |
-
{
|
24 |
-
"id":"https://github.com/biegert/ComfyUI-CLIPSeg/raw/main/custom_nodes/clipseg.py",
|
25 |
-
"tags":"ddsd",
|
26 |
-
"description": "This extension provides a feature that generates segment masks on an image using a text prompt. When used in conjunction with Impact Pack, it enables applications such as DDSD."
|
27 |
-
},
|
28 |
-
{
|
29 |
-
"id":"https://github.com/BadCafeCode/masquerade-nodes-comfyui",
|
30 |
-
"tags":"ddetailer",
|
31 |
-
"description": "This extension is a less feature-rich and well-maintained alternative to Impact Pack, but it has fewer dependencies and may be easier to install on abnormal configurations. The author recommends trying Impact Pack first."
|
32 |
-
},
|
33 |
-
{
|
34 |
-
"id":"https://github.com/BlenderNeko/ComfyUI_Cutoff",
|
35 |
-
"tags":"cutoff",
|
36 |
-
"description": "By using this extension, prompts like 'blue hair' can be prevented from interfering with other prompts by blocking the attribute 'blue' from being used in prompts other than 'hair'."
|
37 |
-
},
|
38 |
-
{
|
39 |
-
"id":"https://github.com/BlenderNeko/ComfyUI_ADV_CLIP_emb",
|
40 |
-
"tags":"prompt, weight",
|
41 |
-
"description": "There are differences in the processing methods of prompts, such as weighting and scheduling, between A1111 and ComfyUI. With this extension, various settings can be used to implement prompt processing methods similar to A1111. As this feature is also integrated into ComfyUI Cutoff, please download the Cutoff extension if you plan to use it in conjunction with Cutoff."
|
42 |
-
},
|
43 |
-
{
|
44 |
-
"id":"https://github.com/shiimizu/ComfyUI_smZNodes",
|
45 |
-
"tags":"prompt, weight",
|
46 |
-
"description": "There are differences in the processing methods of prompts, such as weighting and scheduling, between A1111 and ComfyUI. This extension helps to reproduce the same embedding as A1111."
|
47 |
-
},
|
48 |
-
{
|
49 |
-
"id":"https://github.com/BlenderNeko/ComfyUI_Noise",
|
50 |
-
"tags":"img2img alt, random",
|
51 |
-
"description": "The extension provides an unsampler that reverses the sampling process, allowing for a function similar to img2img alt to be implemented. Furthermore, ComfyUI uses CPU's Random instead of GPU's Random for better reproducibility compared to A1111. This extension provides the ability to use GPU's Random for Latent Noise. However, since GPU's Random may vary depending on the GPU model, reproducibility on different devices cannot be guaranteed."
|
52 |
-
},
|
53 |
-
{
|
54 |
-
"id":"https://github.com/BlenderNeko/ComfyUI_SeeCoder",
|
55 |
-
"tags":"seecoder, prompt-free-diffusion",
|
56 |
-
"description": "The extension provides seecoder feature."
|
57 |
-
},
|
58 |
-
{
|
59 |
-
"id":"https://github.com/lilly1987/ComfyUI_node_Lilly",
|
60 |
-
"tags":"prompt, wildcard",
|
61 |
-
"description": "This extension provides features such as a wildcard function that randomly selects prompts belonging to a category and the ability to directly load lora from prompts."
|
62 |
-
},
|
63 |
-
{
|
64 |
-
"id":"https://github.com/Davemane42/ComfyUI_Dave_CustomNode",
|
65 |
-
"tags":"latent couple",
|
66 |
-
"description": "ComfyUI already provides the ability to composite latents by default. However, this extension makes it more convenient to use by visualizing the composite area."
|
67 |
-
},
|
68 |
-
{
|
69 |
-
"id":"https://github.com/LEv145/images-grid-comfy-plugin",
|
70 |
-
"tags":"X/Y Plot",
|
71 |
-
"description": "This tool provides a viewer node that allows for checking multiple outputs in a grid, similar to the X/Y Plot extension."
|
72 |
-
},
|
73 |
-
{
|
74 |
-
"id":"https://github.com/pythongosssss/ComfyUI-WD14-Tagger",
|
75 |
-
"tags":"deepbooru, clip interrogation",
|
76 |
-
"description": "This extension generates clip text by taking an image as input and using the Deepbooru model."
|
77 |
-
},
|
78 |
-
{
|
79 |
-
"id":"https://github.com/szhublox/ambw_comfyui",
|
80 |
-
"tags":"supermerger",
|
81 |
-
"description": "This node takes two models, merges individual blocks together at various ratios, and automatically rates each merge, keeping the ratio with the highest score. "
|
82 |
-
},
|
83 |
-
{
|
84 |
-
"id":"https://github.com/ssitu/ComfyUI_UltimateSDUpscale",
|
85 |
-
"tags":"upscaler, Ultimate SD Upscale",
|
86 |
-
"description": "ComfyUI nodes for the Ultimate Stable Diffusion Upscale script by Coyote-A. Uses the same script used in the A1111 extension to hopefully replicate images generated using the A1111 webui."
|
87 |
-
},
|
88 |
-
{
|
89 |
-
"id":"https://github.com/dawangraoming/ComfyUI_ksampler_gpu/raw/main/ksampler_gpu.py",
|
90 |
-
"tags":"random, noise",
|
91 |
-
"description": "A1111 provides KSampler that uses GPU-based random noise. This extension offers KSampler utilizing GPU-based random noise."
|
92 |
-
},
|
93 |
-
{
|
94 |
-
"id":"https://github.com/space-nuko/nui-suite",
|
95 |
-
"tags":"prompt, dynamic prompt",
|
96 |
-
"description": "This extension provides nodes with the functionality of dynamic prompts."
|
97 |
-
},
|
98 |
-
{
|
99 |
-
"id":"https://github.com/melMass/comfy_mtb",
|
100 |
-
"tags":"roop",
|
101 |
-
"description": "This extension provides bunch of nodes including roop"
|
102 |
-
},
|
103 |
-
{
|
104 |
-
"id":"https://github.com/ssitu/ComfyUI_roop",
|
105 |
-
"tags":"roop",
|
106 |
-
"description": "This extension provides nodes for the roop A1111 webui script."
|
107 |
-
},
|
108 |
-
{
|
109 |
-
"id":"https://github.com/asagi4/comfyui-prompt-control",
|
110 |
-
"tags":"prompt, prompt editing",
|
111 |
-
"description": "This extension provides the ability to use prompts like \n\n**a [large::0.1] [cat|dog:0.05] [<lora:somelora:0.5:0.6>::0.5] [in a park:in space:0.4]**\n\n"
|
112 |
-
},
|
113 |
-
{
|
114 |
-
"id":"https://github.com/adieyal/comfyui-dynamicprompts",
|
115 |
-
"tags":"prompt, dynamic prompt",
|
116 |
-
"description": "This extension is a port of sd-dynamic-prompt to ComfyUI."
|
117 |
-
},
|
118 |
-
{
|
119 |
-
"id":"https://github.com/kwaroran/abg-comfyui",
|
120 |
-
"tags":"abg, background remover",
|
121 |
-
"description": "A Anime Background Remover node for comfyui, based on this hf space, works same as AGB extention in automatic1111."
|
122 |
-
},
|
123 |
-
{
|
124 |
-
"id":"https://github.com/Gourieff/comfyui-reactor-node",
|
125 |
-
"tags":"reactor, sd-webui-roop-nsfw",
|
126 |
-
"description": "This is a ported version of ComfyUI for the sd-webui-roop-nsfw extension."
|
127 |
-
},
|
128 |
-
{
|
129 |
-
"id":"https://github.com/laksjdjf/cgem156-ComfyUI",
|
130 |
-
"tags":"regional prompt, latent couple, prompt",
|
131 |
-
"description": "This custom nodes provide a functionality similar to regional prompts, offering couple features at the attention level."
|
132 |
-
},
|
133 |
-
{
|
134 |
-
"id":"https://github.com/FizzleDorf/ComfyUI_FizzNodes",
|
135 |
-
"tags":"deforum",
|
136 |
-
"description": "This custom nodes provide functionality that assists in animation creation, similar to deforum."
|
137 |
-
},
|
138 |
-
{
|
139 |
-
"id":"https://github.com/seanlynch/comfyui-optical-flow",
|
140 |
-
"tags":"deforum, vid2vid",
|
141 |
-
"description": "This custom nodes provide functionality that assists in animation creation, similar to deforum."
|
142 |
-
},
|
143 |
-
{
|
144 |
-
"id":"https://github.com/ssitu/ComfyUI_fabric",
|
145 |
-
"tags":"fabric",
|
146 |
-
"description": "Similar to sd-webui-fabric, this custom nodes provide the functionality of [a/FABRIC](https://github.com/sd-fabric/fabric)."
|
147 |
-
},
|
148 |
-
{
|
149 |
-
"id":"https://github.com/Zuellni/ComfyUI-ExLlama",
|
150 |
-
"tags":"ExLlama, prompt, language model",
|
151 |
-
"description": "Similar to text-generation-webui, this custom nodes provide the functionality of [a/exllama](https://github.com/turboderp/exllama)."
|
152 |
-
},
|
153 |
-
{
|
154 |
-
"id":"https://github.com/spinagon/ComfyUI-seamless-tiling",
|
155 |
-
"tags":"tiling",
|
156 |
-
"description": "ComfyUI node for generating seamless textures Replicates 'Tiling' option from A1111"
|
157 |
-
},
|
158 |
-
{
|
159 |
-
"id":"https://github.com/laksjdjf/cd-tuner_negpip-ComfyUI",
|
160 |
-
"tags":"cd-tuner, negpip",
|
161 |
-
"description": "This extension is a port of the [a/sd-webui-cd-tuner](https://github.com/hako-mikan/sd-webui-cd-tuner)(a.k.a. CD(color/Detail) Tuner )and [a/sd-webui-negpip](https://github.com/hako-mikan/sd-webui-negpip)(a.k.a. NegPiP) extensions of A1111 to ComfyUI."
|
162 |
-
},
|
163 |
-
{
|
164 |
-
"id":"https://github.com/mcmonkeyprojects/sd-dynamic-thresholding",
|
165 |
-
"tags":"DT, dynamic thresholding",
|
166 |
-
"description": "This custom node is a port of the Dynamic Thresholding extension from A1111 to make it available for use in ComfyUI."
|
167 |
-
},
|
168 |
-
{
|
169 |
-
"id":"https://github.com/hhhzzyang/Comfyui_Lama",
|
170 |
-
"tags":"lama, inpainting anything",
|
171 |
-
"description": "This extension provides custom nodes developed based on [a/LaMa](https://github.com/advimman/lama) and [a/Inpainting anything](https://github.com/geekyutao/Inpaint-Anything)."
|
172 |
-
},
|
173 |
-
{
|
174 |
-
"id":"https://github.com/mlinmg/ComfyUI-LaMA-Preprocessor",
|
175 |
-
"tags":"lama",
|
176 |
-
"description": "This extension provides custom nodes for [a/LaMa](https://github.com/advimman/lama) functionality."
|
177 |
-
},
|
178 |
-
{
|
179 |
-
"id":"https://github.com/Haoming02/comfyui-diffusion-cg",
|
180 |
-
"tags":"diffusion-cg",
|
181 |
-
"description": "This extension provides custom nodes for [a/SD Webui Diffusion Color Grading](https://github.com/Haoming02/sd-webui-diffusion-cg) functionality."
|
182 |
-
},
|
183 |
-
{
|
184 |
-
"id":"https://github.com/asagi4/ComfyUI-CADS",
|
185 |
-
"tags":"diffusion-cg",
|
186 |
-
"description": "This extension provides custom nodes for [a/sd-webui-cads](https://github.com/v0xie/sd-webui-cads) functionality."
|
187 |
-
},
|
188 |
-
{
|
189 |
-
"id":"https://git.mmaker.moe/mmaker/sd-webui-color-enhance",
|
190 |
-
"tags":"color-enhance",
|
191 |
-
"description": "This extension supports both A1111 and ComfyUI simultaneously."
|
192 |
-
},
|
193 |
-
{
|
194 |
-
"id":"https://github.com/shiimizu/ComfyUI-TiledDiffusion",
|
195 |
-
"tags":"multidiffusion",
|
196 |
-
"description": "This extension provides custom nodes for [a/Mixture of Diffusers](https://github.com/albarji/mixture-of-diffusers) and [a/MultiDiffusion](https://github.com/omerbt/MultiDiffusion)"
|
197 |
-
},
|
198 |
-
{
|
199 |
-
"id":"https://github.com/abyz22/image_control",
|
200 |
-
"tags":"BMAB",
|
201 |
-
"description": "This extension provides some alternative functionalities of the [a/sd-webui-bmab](https://github.com/portu-sim/sd-webui-bmab) extension."
|
202 |
-
},
|
203 |
-
{
|
204 |
-
"id":"https://github.com/blepping/ComfyUI-sonar",
|
205 |
-
"tags":"sonar",
|
206 |
-
"description": "This extension provides some alternative functionalities of the [a/stable-diffusion-webui-sonar](https://github.com/Kahsolt/stable-diffusion-webui-sonar) extension."
|
207 |
-
},
|
208 |
-
{
|
209 |
-
"id":"https://github.com/AIFSH/ComfyUI-RVC",
|
210 |
-
"tags":"sonar",
|
211 |
-
"description": "a comfyui custom node for [a/Retrieval-based-Voice-Conversion-WebUI](https://github.com/RVC-Project/Retrieval-based-Voice-Conversion-WebUI.git), you can Voice-Conversion in comfyui now!"
|
212 |
-
},
|
213 |
-
{
|
214 |
-
"id":"https://github.com/portu-sim/comfyui-bmab",
|
215 |
-
"tags":"bmab",
|
216 |
-
"description": "a comfyui custom node for [a/sd-webui-bmab](https://github.com/portu-sim/sd-webui-bmab)"
|
217 |
-
},
|
218 |
-
{
|
219 |
-
"id":"https://github.com/ThereforeGames/ComfyUI-Unprompted",
|
220 |
-
"tags":"unprompted",
|
221 |
-
"description": "This extension is a port of [a/unprompted](https://github.com/ThereforeGames/unprompted)"
|
222 |
-
}
|
223 |
-
]
|
224 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ComfyUI/custom_nodes/manager-core/channels.list.template
DELETED
@@ -1,2 +0,0 @@
|
|
1 |
-
default::https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main
|
2 |
-
recent::https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/node_db/new
|
|
|
|
|
|
ComfyUI/custom_nodes/manager-core/check.bat
DELETED
@@ -1,21 +0,0 @@
|
|
1 |
-
@echo off
|
2 |
-
|
3 |
-
python json-checker.py "custom-node-list.json"
|
4 |
-
python json-checker.py "model-list.json"
|
5 |
-
python json-checker.py "alter-list.json"
|
6 |
-
python json-checker.py "extension-node-map.json"
|
7 |
-
python json-checker.py "node_db\new\custom-node-list.json"
|
8 |
-
python json-checker.py "node_db\new\model-list.json"
|
9 |
-
python json-checker.py "node_db\new\extension-node-map.json"
|
10 |
-
python json-checker.py "node_db\dev\custom-node-list.json"
|
11 |
-
python json-checker.py "node_db\dev\model-list.json"
|
12 |
-
python json-checker.py "node_db\dev\extension-node-map.json"
|
13 |
-
python json-checker.py "node_db\tutorial\custom-node-list.json"
|
14 |
-
python json-checker.py "node_db\tutorial\model-list.json"
|
15 |
-
python json-checker.py "node_db\tutorial\extension-node-map.json"
|
16 |
-
python json-checker.py "node_db\legacy\custom-node-list.json"
|
17 |
-
python json-checker.py "node_db\legacy\model-list.json"
|
18 |
-
python json-checker.py "node_db\legacy\extension-node-map.json"
|
19 |
-
python json-checker.py "node_db\forked\custom-node-list.json"
|
20 |
-
python json-checker.py "node_db\forked\model-list.json"
|
21 |
-
python json-checker.py "node_db\forked\extension-node-map.json"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ComfyUI/custom_nodes/manager-core/check.sh
DELETED
@@ -1,43 +0,0 @@
|
|
1 |
-
#!/bin/bash
|
2 |
-
|
3 |
-
echo
|
4 |
-
echo CHECK1
|
5 |
-
|
6 |
-
files=(
|
7 |
-
"custom-node-list.json"
|
8 |
-
"model-list.json"
|
9 |
-
"alter-list.json"
|
10 |
-
"extension-node-map.json"
|
11 |
-
"github-stats.json"
|
12 |
-
"extras.json"
|
13 |
-
"node_db/new/custom-node-list.json"
|
14 |
-
"node_db/new/model-list.json"
|
15 |
-
"node_db/new/extension-node-map.json"
|
16 |
-
"node_db/dev/custom-node-list.json"
|
17 |
-
"node_db/dev/model-list.json"
|
18 |
-
"node_db/dev/extension-node-map.json"
|
19 |
-
"node_db/tutorial/custom-node-list.json"
|
20 |
-
"node_db/tutorial/model-list.json"
|
21 |
-
"node_db/tutorial/extension-node-map.json"
|
22 |
-
"node_db/legacy/custom-node-list.json"
|
23 |
-
"node_db/legacy/model-list.json"
|
24 |
-
"node_db/legacy/extension-node-map.json"
|
25 |
-
"node_db/forked/custom-node-list.json"
|
26 |
-
"node_db/forked/model-list.json"
|
27 |
-
"node_db/forked/extension-node-map.json"
|
28 |
-
)
|
29 |
-
|
30 |
-
for file in "${files[@]}"; do
|
31 |
-
python json-checker.py "$file"
|
32 |
-
done
|
33 |
-
|
34 |
-
echo
|
35 |
-
echo CHECK2
|
36 |
-
find ~/.tmp/default -name "*.py" -print0 | xargs -0 grep -E "crypto|^_A="
|
37 |
-
|
38 |
-
echo
|
39 |
-
echo CHECK3
|
40 |
-
find ~/.tmp/default -name "requirements.txt" | xargs grep "^\s*https\\?:"
|
41 |
-
find ~/.tmp/default -name "requirements.txt" | xargs grep "\.whl"
|
42 |
-
|
43 |
-
echo
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ComfyUI/custom_nodes/manager-core/cm-cli.py
DELETED
@@ -1,1078 +0,0 @@
|
|
1 |
-
import os
|
2 |
-
import sys
|
3 |
-
import traceback
|
4 |
-
import json
|
5 |
-
import asyncio
|
6 |
-
import subprocess
|
7 |
-
import concurrent
|
8 |
-
import threading
|
9 |
-
import yaml
|
10 |
-
from typing import Optional
|
11 |
-
|
12 |
-
import typer
|
13 |
-
from rich import print
|
14 |
-
from typing_extensions import List, Annotated
|
15 |
-
import re
|
16 |
-
import git
|
17 |
-
|
18 |
-
sys.path.append(os.path.dirname(__file__))
|
19 |
-
sys.path.append(os.path.join(os.path.dirname(__file__), "glob"))
|
20 |
-
import cm_global
|
21 |
-
import manager_core as core
|
22 |
-
from manager_core import unified_manager
|
23 |
-
import cnr_utils
|
24 |
-
|
25 |
-
comfyui_manager_path = os.path.abspath(os.path.dirname(__file__))
|
26 |
-
comfy_path = os.environ.get('COMFYUI_PATH')
|
27 |
-
|
28 |
-
if comfy_path is None:
|
29 |
-
print(f"\n[bold yellow]WARN: The `COMFYUI_PATH` environment variable is not set. Assuming `custom_nodes/ComfyUI-Manager/../../` as the ComfyUI path.[/bold yellow]", file=sys.stderr)
|
30 |
-
comfy_path = os.path.abspath(os.path.join(comfyui_manager_path, '..', '..'))
|
31 |
-
|
32 |
-
startup_script_path = os.path.join(comfyui_manager_path, "startup-scripts")
|
33 |
-
custom_nodes_path = os.path.join(comfy_path, 'custom_nodes')
|
34 |
-
|
35 |
-
script_path = os.path.join(startup_script_path, "install-scripts.txt")
|
36 |
-
restore_snapshot_path = os.path.join(startup_script_path, "restore-snapshot.json")
|
37 |
-
pip_overrides_path = os.path.join(comfyui_manager_path, "pip_overrides.json")
|
38 |
-
git_script_path = os.path.join(comfyui_manager_path, "git_helper.py")
|
39 |
-
|
40 |
-
cm_global.pip_blacklist = ['torch', 'torchsde', 'torchvision']
|
41 |
-
cm_global.pip_downgrade_blacklist = ['torch', 'torchsde', 'torchvision', 'transformers', 'safetensors', 'kornia']
|
42 |
-
cm_global.pip_overrides = {}
|
43 |
-
if os.path.exists(pip_overrides_path):
|
44 |
-
with open(pip_overrides_path, 'r', encoding="UTF-8", errors="ignore") as json_file:
|
45 |
-
cm_global.pip_overrides = json.load(json_file)
|
46 |
-
cm_global.pip_overrides['numpy'] = 'numpy<2'
|
47 |
-
|
48 |
-
|
49 |
-
def check_comfyui_hash():
|
50 |
-
repo = git.Repo(comfy_path)
|
51 |
-
core.comfy_ui_revision = len(list(repo.iter_commits('HEAD')))
|
52 |
-
|
53 |
-
comfy_ui_hash = repo.head.commit.hexsha
|
54 |
-
cm_global.variables['comfyui.revision'] = core.comfy_ui_revision
|
55 |
-
|
56 |
-
core.comfy_ui_commit_datetime = repo.head.commit.committed_datetime
|
57 |
-
|
58 |
-
|
59 |
-
check_comfyui_hash() # This is a preparation step for manager_core
|
60 |
-
core.check_invalid_nodes()
|
61 |
-
|
62 |
-
|
63 |
-
def read_downgrade_blacklist():
|
64 |
-
try:
|
65 |
-
import configparser
|
66 |
-
config_path = os.path.join(os.path.dirname(__file__), "config.ini")
|
67 |
-
config = configparser.ConfigParser()
|
68 |
-
config.read(config_path)
|
69 |
-
default_conf = config['default']
|
70 |
-
|
71 |
-
if 'downgrade_blacklist' in default_conf:
|
72 |
-
items = default_conf['downgrade_blacklist'].split(',')
|
73 |
-
items = [x.strip() for x in items if x != '']
|
74 |
-
cm_global.pip_downgrade_blacklist += items
|
75 |
-
cm_global.pip_downgrade_blacklist = list(set(cm_global.pip_downgrade_blacklist))
|
76 |
-
except:
|
77 |
-
pass
|
78 |
-
|
79 |
-
|
80 |
-
read_downgrade_blacklist() # This is a preparation step for manager_core
|
81 |
-
|
82 |
-
|
83 |
-
class Ctx:
|
84 |
-
def __init__(self):
|
85 |
-
self.channel = 'default'
|
86 |
-
self.no_deps = False
|
87 |
-
self.mode = 'cache'
|
88 |
-
|
89 |
-
def set_channel_mode(self, channel, mode):
|
90 |
-
if mode is not None:
|
91 |
-
self.mode = mode
|
92 |
-
|
93 |
-
valid_modes = ["remote", "local", "cache"]
|
94 |
-
if mode and mode.lower() not in valid_modes:
|
95 |
-
typer.echo(
|
96 |
-
f"Invalid mode: {mode}. Allowed modes are 'remote', 'local', 'cache'.",
|
97 |
-
err=True,
|
98 |
-
)
|
99 |
-
exit(1)
|
100 |
-
|
101 |
-
if channel is not None:
|
102 |
-
self.channel = channel
|
103 |
-
|
104 |
-
asyncio.run(unified_manager.reload(cache_mode=self.mode == 'cache'))
|
105 |
-
asyncio.run(unified_manager.load_nightly(self.channel, self.mode))
|
106 |
-
|
107 |
-
def set_no_deps(self, no_deps):
|
108 |
-
self.no_deps = no_deps
|
109 |
-
|
110 |
-
|
111 |
-
channel_ctx = Ctx()
|
112 |
-
|
113 |
-
|
114 |
-
def install_node(node_spec_str, is_all=False, cnt_msg=''):
|
115 |
-
if core.is_valid_url(node_spec_str):
|
116 |
-
# install via urls
|
117 |
-
res = asyncio.run(core.gitclone_install(node_spec_str, no_deps=channel_ctx.no_deps))
|
118 |
-
if not res.result:
|
119 |
-
print(res.msg)
|
120 |
-
print(f"[bold red]ERROR: An error occurred while installing '{node_spec_str}'.[/bold red]")
|
121 |
-
else:
|
122 |
-
print(f"{cnt_msg} [INSTALLED] {node_spec_str:50}")
|
123 |
-
else:
|
124 |
-
node_spec = unified_manager.resolve_node_spec(node_spec_str)
|
125 |
-
|
126 |
-
if node_spec is None:
|
127 |
-
return
|
128 |
-
|
129 |
-
node_name, version_spec, is_specified = node_spec
|
130 |
-
|
131 |
-
# NOTE: install node doesn't allow update if version is not specified
|
132 |
-
if not is_specified:
|
133 |
-
version_spec = None
|
134 |
-
|
135 |
-
res = asyncio.run(unified_manager.install_by_id(node_name, version_spec, channel_ctx.channel, channel_ctx.mode, instant_execution=True, no_deps=channel_ctx.no_deps))
|
136 |
-
|
137 |
-
if res.action == 'skip':
|
138 |
-
print(f"{cnt_msg} [ SKIP ] {node_name:50} => Already installed")
|
139 |
-
elif res.action == 'enable':
|
140 |
-
print(f"{cnt_msg} [ ENABLED ] {node_name:50}")
|
141 |
-
elif res.action == 'install-git' and res.target == 'nightly':
|
142 |
-
print(f"{cnt_msg} [INSTALLED] {node_name:50}[NIGHTLY]")
|
143 |
-
elif res.action == 'install-git' and res.target == 'unknown':
|
144 |
-
print(f"{cnt_msg} [INSTALLED] {node_name:50}[UNKNOWN]")
|
145 |
-
elif res.action == 'install-cnr' and res.result:
|
146 |
-
print(f"{cnt_msg} [INSTALLED] {node_name:50}[{res.target}]")
|
147 |
-
elif res.action == 'switch-cnr' and res.result:
|
148 |
-
print(f"{cnt_msg} [INSTALLED] {node_name:50}[{res.target}]")
|
149 |
-
elif (res.action == 'switch-cnr' or res.action == 'install-cnr') and not res.result and node_name in unified_manager.cnr_map:
|
150 |
-
print(f"\nAvailable version of '{node_name}'")
|
151 |
-
show_versions(node_name)
|
152 |
-
print("")
|
153 |
-
else:
|
154 |
-
print(f"[bold red]ERROR: An error occurred while installing '{node_name}'.\n{res.msg}[/bold red]")
|
155 |
-
|
156 |
-
|
157 |
-
def reinstall_node(node_spec_str, is_all=False, cnt_msg=''):
|
158 |
-
node_spec = unified_manager.resolve_node_spec(node_spec_str)
|
159 |
-
|
160 |
-
node_name, version_spec, _ = node_spec
|
161 |
-
|
162 |
-
unified_manager.unified_uninstall(node_name, version_spec == 'unknown')
|
163 |
-
install_node(node_name, is_all=is_all, cnt_msg=cnt_msg)
|
164 |
-
|
165 |
-
|
166 |
-
def fix_node(node_spec_str, is_all=False, cnt_msg=''):
|
167 |
-
node_spec = unified_manager.resolve_node_spec(node_spec_str, guess_mode='active')
|
168 |
-
|
169 |
-
if node_spec is None:
|
170 |
-
if not is_all:
|
171 |
-
if unified_manager.resolve_node_spec(node_spec_str, guess_mode='inactive') is not None:
|
172 |
-
print(f"{cnt_msg} [ SKIPPED ]: {node_spec_str:50} => Disabled")
|
173 |
-
else:
|
174 |
-
print(f"{cnt_msg} [ SKIPPED ]: {node_spec_str:50} => Not installed")
|
175 |
-
|
176 |
-
return
|
177 |
-
|
178 |
-
node_name, version_spec, _ = node_spec
|
179 |
-
|
180 |
-
print(f"{cnt_msg} [ FIXING ]: {node_name:50}[{version_spec}]")
|
181 |
-
res = unified_manager.unified_fix(node_name, version_spec, no_deps=channel_ctx.no_deps)
|
182 |
-
|
183 |
-
if not res.result:
|
184 |
-
print(f"ERROR: f{res.msg}")
|
185 |
-
|
186 |
-
|
187 |
-
def uninstall_node(node_spec_str, is_all=False, cnt_msg=''):
|
188 |
-
spec = node_spec_str.split('@')
|
189 |
-
if len(spec) == 2 and spec[1] == 'unknown':
|
190 |
-
node_name = spec[0]
|
191 |
-
is_unknown = True
|
192 |
-
else:
|
193 |
-
node_name = spec[0]
|
194 |
-
is_unknown = False
|
195 |
-
|
196 |
-
res = unified_manager.unified_uninstall(node_name, is_unknown)
|
197 |
-
if len(spec) == 1 and res.action == 'skip' and not is_unknown:
|
198 |
-
res = unified_manager.unified_uninstall(node_name, True)
|
199 |
-
|
200 |
-
if res.action == 'skip':
|
201 |
-
print(f"{cnt_msg} [ SKIPPED ]: {node_name:50} => Not installed")
|
202 |
-
|
203 |
-
elif res.result:
|
204 |
-
print(f"{cnt_msg} [UNINSTALLED] {node_name:50}")
|
205 |
-
else:
|
206 |
-
print(f"ERROR: An error occurred while uninstalling '{node_name}'.")
|
207 |
-
|
208 |
-
|
209 |
-
def update_node(node_spec_str, is_all=False, cnt_msg=''):
|
210 |
-
node_spec = unified_manager.resolve_node_spec(node_spec_str, 'active')
|
211 |
-
|
212 |
-
if node_spec is None:
|
213 |
-
if unified_manager.resolve_node_spec(node_spec_str, 'inactive'):
|
214 |
-
print(f"{cnt_msg} [ SKIPPED ]: {node_spec_str:50} => Disabled")
|
215 |
-
else:
|
216 |
-
print(f"{cnt_msg} [ SKIPPED ]: {node_spec_str:50} => Not installed")
|
217 |
-
return None
|
218 |
-
|
219 |
-
node_name, version_spec, _ = node_spec
|
220 |
-
|
221 |
-
res = unified_manager.unified_update(node_name, version_spec, no_deps=channel_ctx.no_deps, return_postinstall=True)
|
222 |
-
|
223 |
-
if not res.result:
|
224 |
-
print(f"ERROR: An error occurred while updating '{node_name}'.")
|
225 |
-
elif res.action == 'skip':
|
226 |
-
print(f"{cnt_msg} [ SKIPPED ]: {node_name:50} => {res.msg}")
|
227 |
-
else:
|
228 |
-
print(f"{cnt_msg} [ UPDATED ]: {node_name:50} => ({version_spec} -> {res.target})")
|
229 |
-
|
230 |
-
return res.with_target(f'{node_name}@{res.target}')
|
231 |
-
|
232 |
-
|
233 |
-
def update_parallel(nodes):
|
234 |
-
is_all = False
|
235 |
-
if 'all' in nodes:
|
236 |
-
is_all = True
|
237 |
-
nodes = []
|
238 |
-
for x in unified_manager.active_nodes.keys():
|
239 |
-
nodes.append(x)
|
240 |
-
for x in unified_manager.unknown_active_nodes.keys():
|
241 |
-
nodes.append(x+"@unknown")
|
242 |
-
else:
|
243 |
-
nodes = [x for x in nodes if x.lower() not in ['comfy', 'comfyui']]
|
244 |
-
|
245 |
-
total = len(nodes)
|
246 |
-
|
247 |
-
lock = threading.Lock()
|
248 |
-
processed = []
|
249 |
-
|
250 |
-
i = 0
|
251 |
-
|
252 |
-
def process_custom_node(x):
|
253 |
-
nonlocal i
|
254 |
-
nonlocal processed
|
255 |
-
|
256 |
-
with lock:
|
257 |
-
i += 1
|
258 |
-
|
259 |
-
try:
|
260 |
-
res = update_node(x, is_all=is_all, cnt_msg=f'{i}/{total}')
|
261 |
-
with lock:
|
262 |
-
processed.append(res)
|
263 |
-
except Exception as e:
|
264 |
-
print(f"ERROR: {e}")
|
265 |
-
traceback.print_exc()
|
266 |
-
|
267 |
-
with concurrent.futures.ThreadPoolExecutor(4) as executor:
|
268 |
-
for item in nodes:
|
269 |
-
executor.submit(process_custom_node, item)
|
270 |
-
|
271 |
-
i = 1
|
272 |
-
for res in processed:
|
273 |
-
if res is not None:
|
274 |
-
print(f"[{i}/{total}] Post update: {res.target}")
|
275 |
-
if res.postinstall is not None:
|
276 |
-
res.postinstall()
|
277 |
-
i += 1
|
278 |
-
|
279 |
-
|
280 |
-
def update_comfyui():
|
281 |
-
res = core.update_path(comfy_path, instant_execution=True)
|
282 |
-
if res == 'fail':
|
283 |
-
print("Updating ComfyUI has failed.")
|
284 |
-
elif res == 'updated':
|
285 |
-
print("ComfyUI is updated.")
|
286 |
-
else:
|
287 |
-
print("ComfyUI is already up to date.")
|
288 |
-
|
289 |
-
|
290 |
-
def enable_node(node_spec_str, is_all=False, cnt_msg=''):
|
291 |
-
if unified_manager.resolve_node_spec(node_spec_str, guess_mode='active') is not None:
|
292 |
-
print(f"{cnt_msg} [ SKIP ] {node_spec_str:50} => Already enabled")
|
293 |
-
return
|
294 |
-
|
295 |
-
node_spec = unified_manager.resolve_node_spec(node_spec_str, guess_mode='inactive')
|
296 |
-
|
297 |
-
if node_spec is None:
|
298 |
-
print(f"{cnt_msg} [ SKIP ] {node_spec_str:50} => Not found")
|
299 |
-
return
|
300 |
-
|
301 |
-
node_name, version_spec, _ = node_spec
|
302 |
-
|
303 |
-
res = unified_manager.unified_enable(node_name, version_spec)
|
304 |
-
|
305 |
-
if res.action == 'skip':
|
306 |
-
print(f"{cnt_msg} [ SKIP ] {node_name:50} => {res.msg}")
|
307 |
-
elif res.result:
|
308 |
-
print(f"{cnt_msg} [ENABLED] {node_name:50}")
|
309 |
-
else:
|
310 |
-
print(f"{cnt_msg} [ FAIL ] {node_name:50} => {res.msg}")
|
311 |
-
|
312 |
-
|
313 |
-
def disable_node(node_spec_str: str, is_all=False, cnt_msg=''):
|
314 |
-
if 'comfyui-manager' in node_spec_str.lower():
|
315 |
-
return
|
316 |
-
|
317 |
-
node_spec = unified_manager.resolve_node_spec(node_spec_str, guess_mode='active')
|
318 |
-
|
319 |
-
if node_spec is None:
|
320 |
-
if unified_manager.resolve_node_spec(node_spec_str, guess_mode='inactive') is not None:
|
321 |
-
print(f"{cnt_msg} [ SKIP ] {node_spec_str:50} => Already disabled")
|
322 |
-
else:
|
323 |
-
print(f"{cnt_msg} [ SKIP ] {node_spec_str:50} => Not found")
|
324 |
-
return
|
325 |
-
|
326 |
-
node_name, version_spec, _ = node_spec
|
327 |
-
|
328 |
-
res = unified_manager.unified_disable(node_name, version_spec == 'unknown')
|
329 |
-
|
330 |
-
if res.action == 'skip':
|
331 |
-
print(f"{cnt_msg} [ SKIP ] {node_name:50} => {res.msg}")
|
332 |
-
elif res.result:
|
333 |
-
print(f"{cnt_msg} [DISABLED] {node_name:50}")
|
334 |
-
else:
|
335 |
-
print(f"{cnt_msg} [ FAIL ] {node_name:50} => {res.msg}")
|
336 |
-
|
337 |
-
|
338 |
-
def show_list(kind, simple=False):
|
339 |
-
custom_nodes = asyncio.run(unified_manager.get_custom_nodes(channel=channel_ctx.channel, mode=channel_ctx.mode))
|
340 |
-
|
341 |
-
# collect not-installed unknown nodes
|
342 |
-
not_installed_unknown_nodes = []
|
343 |
-
repo_unknown = {}
|
344 |
-
|
345 |
-
for k, v in custom_nodes.items():
|
346 |
-
if 'cnr_latest' not in v:
|
347 |
-
if len(v['files']) == 1:
|
348 |
-
repo_url = v['files'][0]
|
349 |
-
node_name = repo_url.split('/')[-1]
|
350 |
-
if node_name not in unified_manager.unknown_inactive_nodes and node_name not in unified_manager.unknown_active_nodes:
|
351 |
-
not_installed_unknown_nodes.append(v)
|
352 |
-
else:
|
353 |
-
repo_unknown[node_name] = v
|
354 |
-
|
355 |
-
processed = {}
|
356 |
-
unknown_processed = []
|
357 |
-
|
358 |
-
flag = kind in ['all', 'cnr', 'installed', 'enabled']
|
359 |
-
for k, v in unified_manager.active_nodes.items():
|
360 |
-
if flag:
|
361 |
-
cnr = unified_manager.cnr_map[k]
|
362 |
-
processed[k] = "[ ENABLED ] ", cnr['name'], k, cnr['publisher']['name'], v[0]
|
363 |
-
else:
|
364 |
-
processed[k] = None
|
365 |
-
|
366 |
-
if flag and kind != 'cnr':
|
367 |
-
for k, v in unified_manager.unknown_active_nodes.items():
|
368 |
-
item = repo_unknown.get(k)
|
369 |
-
|
370 |
-
if item is None:
|
371 |
-
continue
|
372 |
-
|
373 |
-
log_item = "[ ENABLED ] ", item['title'], k, item['author']
|
374 |
-
unknown_processed.append(log_item)
|
375 |
-
|
376 |
-
flag = kind in ['all', 'cnr', 'installed', 'disabled']
|
377 |
-
for k, v in unified_manager.cnr_inactive_nodes.items():
|
378 |
-
if k in processed:
|
379 |
-
continue
|
380 |
-
|
381 |
-
if flag:
|
382 |
-
cnr = unified_manager.cnr_map[k]
|
383 |
-
processed[k] = "[ DISABLED ] ", cnr['name'], k, cnr['publisher']['name'], ", ".join(list(v.keys()))
|
384 |
-
else:
|
385 |
-
processed[k] = None
|
386 |
-
|
387 |
-
for k, v in unified_manager.nightly_inactive_nodes.items():
|
388 |
-
if k in processed:
|
389 |
-
continue
|
390 |
-
|
391 |
-
if flag:
|
392 |
-
cnr = unified_manager.cnr_map[k]
|
393 |
-
processed[k] = "[ DISABLED ] ", cnr['name'], k, cnr['publisher']['name'], 'nightly'
|
394 |
-
else:
|
395 |
-
processed[k] = None
|
396 |
-
|
397 |
-
if flag and kind != 'cnr':
|
398 |
-
for k, v in unified_manager.unknown_inactive_nodes.items():
|
399 |
-
item = repo_unknown.get(k)
|
400 |
-
|
401 |
-
if item is None:
|
402 |
-
continue
|
403 |
-
|
404 |
-
log_item = "[ DISABLED ] ", item['title'], k, item['author']
|
405 |
-
unknown_processed.append(log_item)
|
406 |
-
|
407 |
-
flag = kind in ['all', 'cnr', 'not-installed']
|
408 |
-
for k, v in unified_manager.cnr_map.items():
|
409 |
-
if k in processed:
|
410 |
-
continue
|
411 |
-
|
412 |
-
if flag:
|
413 |
-
cnr = unified_manager.cnr_map[k]
|
414 |
-
ver_spec = v['latest_version']['version'] if 'latest_version' in v else '0.0.0'
|
415 |
-
processed[k] = "[ NOT INSTALLED ] ", cnr['name'], k, cnr['publisher']['name'], ver_spec
|
416 |
-
else:
|
417 |
-
processed[k] = None
|
418 |
-
|
419 |
-
if flag and kind != 'cnr':
|
420 |
-
for x in not_installed_unknown_nodes:
|
421 |
-
if len(x['files']) == 1:
|
422 |
-
node_id = os.path.basename(x['files'][0])
|
423 |
-
log_item = "[ NOT INSTALLED ] ", x['title'], node_id, x['author']
|
424 |
-
unknown_processed.append(log_item)
|
425 |
-
|
426 |
-
for x in processed.values():
|
427 |
-
if x is None:
|
428 |
-
continue
|
429 |
-
|
430 |
-
prefix, title, short_id, author, ver_spec = x
|
431 |
-
if simple:
|
432 |
-
print(title+'@'+ver_spec)
|
433 |
-
else:
|
434 |
-
print(f"{prefix} {title:50} {short_id:30} (author: {author:20}) \\[{ver_spec}]")
|
435 |
-
|
436 |
-
for x in unknown_processed:
|
437 |
-
prefix, title, short_id, author = x
|
438 |
-
if simple:
|
439 |
-
print(title+'@unknown')
|
440 |
-
else:
|
441 |
-
print(f"{prefix} {title:50} {short_id:30} (author: {author:20}) [UNKNOWN]")
|
442 |
-
|
443 |
-
|
444 |
-
def show_snapshot(simple_mode=False):
|
445 |
-
json_obj = core.get_current_snapshot()
|
446 |
-
|
447 |
-
if simple_mode:
|
448 |
-
print(f"[{json_obj['comfyui']}] comfyui")
|
449 |
-
for k, v in json_obj['git_custom_nodes'].items():
|
450 |
-
print(f"[{v['hash']}] {k}")
|
451 |
-
for v in json_obj['file_custom_nodes']:
|
452 |
-
print(f"[ N/A ] {v['filename']}")
|
453 |
-
|
454 |
-
else:
|
455 |
-
formatted_json = json.dumps(json_obj, ensure_ascii=False, indent=4)
|
456 |
-
print(formatted_json)
|
457 |
-
|
458 |
-
|
459 |
-
def show_snapshot_list(simple_mode=False):
|
460 |
-
snapshot_path = os.path.join(comfyui_manager_path, 'snapshots')
|
461 |
-
|
462 |
-
files = os.listdir(snapshot_path)
|
463 |
-
json_files = [x for x in files if x.endswith('.json')]
|
464 |
-
for x in sorted(json_files):
|
465 |
-
print(x)
|
466 |
-
|
467 |
-
|
468 |
-
def cancel():
|
469 |
-
if os.path.exists(script_path):
|
470 |
-
os.remove(script_path)
|
471 |
-
|
472 |
-
if os.path.exists(restore_snapshot_path):
|
473 |
-
os.remove(restore_snapshot_path)
|
474 |
-
|
475 |
-
|
476 |
-
def auto_save_snapshot():
|
477 |
-
path = core.save_snapshot_with_postfix('cli-autosave')
|
478 |
-
print(f"Current snapshot is saved as `{path}`")
|
479 |
-
|
480 |
-
|
481 |
-
def get_all_installed_node_specs():
|
482 |
-
res = []
|
483 |
-
processed = set()
|
484 |
-
for k, v in unified_manager.active_nodes.items():
|
485 |
-
node_spec_str = f"{k}@{v[0]}"
|
486 |
-
res.append(node_spec_str)
|
487 |
-
processed.add(k)
|
488 |
-
|
489 |
-
for k, _ in unified_manager.cnr_inactive_nodes.keys():
|
490 |
-
if k in processed:
|
491 |
-
continue
|
492 |
-
|
493 |
-
latest = unified_manager.get_from_cnr_inactive_nodes(k)
|
494 |
-
if latest is not None:
|
495 |
-
node_spec_str = f"{k}@{str(latest[0])}"
|
496 |
-
res.append(node_spec_str)
|
497 |
-
|
498 |
-
for k, _ in unified_manager.nightly_inactive_nodes.keys():
|
499 |
-
if k in processed:
|
500 |
-
continue
|
501 |
-
|
502 |
-
node_spec_str = f"{k}@nightly"
|
503 |
-
res.append(node_spec_str)
|
504 |
-
|
505 |
-
for k in unified_manager.unknown_active_nodes.keys():
|
506 |
-
node_spec_str = f"{k}@unknown"
|
507 |
-
res.append(node_spec_str)
|
508 |
-
|
509 |
-
for k in unified_manager.unknown_inactive_nodes.keys():
|
510 |
-
node_spec_str = f"{k}@unknown"
|
511 |
-
res.append(node_spec_str)
|
512 |
-
|
513 |
-
return res
|
514 |
-
|
515 |
-
|
516 |
-
def for_each_nodes(nodes, act, allow_all=True):
|
517 |
-
is_all = False
|
518 |
-
if allow_all and 'all' in nodes:
|
519 |
-
is_all = True
|
520 |
-
nodes = get_all_installed_node_specs()
|
521 |
-
else:
|
522 |
-
nodes = [x for x in nodes if x.lower() not in ['comfy', 'comfyui', 'all']]
|
523 |
-
|
524 |
-
total = len(nodes)
|
525 |
-
i = 1
|
526 |
-
for x in nodes:
|
527 |
-
try:
|
528 |
-
act(x, is_all=is_all, cnt_msg=f'{i}/{total}')
|
529 |
-
except Exception as e:
|
530 |
-
print(f"ERROR: {e}")
|
531 |
-
traceback.print_exc()
|
532 |
-
i += 1
|
533 |
-
|
534 |
-
|
535 |
-
app = typer.Typer()
|
536 |
-
|
537 |
-
|
538 |
-
@app.command(help="Display help for commands")
|
539 |
-
def help(ctx: typer.Context):
|
540 |
-
print(ctx.find_root().get_help())
|
541 |
-
ctx.exit(0)
|
542 |
-
|
543 |
-
|
544 |
-
@app.command(help="Install custom nodes")
|
545 |
-
def install(
|
546 |
-
nodes: List[str] = typer.Argument(
|
547 |
-
..., help="List of custom nodes to install"
|
548 |
-
),
|
549 |
-
channel: Annotated[
|
550 |
-
str,
|
551 |
-
typer.Option(
|
552 |
-
show_default=False,
|
553 |
-
help="Specify the operation mode"
|
554 |
-
),
|
555 |
-
] = None,
|
556 |
-
mode: str = typer.Option(
|
557 |
-
None,
|
558 |
-
help="[remote|local|cache]"
|
559 |
-
),
|
560 |
-
no_deps: Annotated[
|
561 |
-
Optional[bool],
|
562 |
-
typer.Option(
|
563 |
-
"--no-deps",
|
564 |
-
show_default=False,
|
565 |
-
help="Skip installing any Python dependencies",
|
566 |
-
),
|
567 |
-
] = False,
|
568 |
-
):
|
569 |
-
channel_ctx.set_channel_mode(channel, mode)
|
570 |
-
channel_ctx.set_no_deps(no_deps)
|
571 |
-
for_each_nodes(nodes, act=install_node)
|
572 |
-
|
573 |
-
|
574 |
-
@app.command(help="Reinstall custom nodes")
|
575 |
-
def reinstall(
|
576 |
-
nodes: List[str] = typer.Argument(
|
577 |
-
..., help="List of custom nodes to reinstall"
|
578 |
-
),
|
579 |
-
channel: Annotated[
|
580 |
-
str,
|
581 |
-
typer.Option(
|
582 |
-
show_default=False,
|
583 |
-
help="Specify the operation mode"
|
584 |
-
),
|
585 |
-
] = None,
|
586 |
-
mode: str = typer.Option(
|
587 |
-
None,
|
588 |
-
help="[remote|local|cache]"
|
589 |
-
),
|
590 |
-
no_deps: Annotated[
|
591 |
-
Optional[bool],
|
592 |
-
typer.Option(
|
593 |
-
"--no-deps",
|
594 |
-
show_default=False,
|
595 |
-
help="Skip installing any Python dependencies",
|
596 |
-
),
|
597 |
-
] = False,
|
598 |
-
):
|
599 |
-
channel_ctx.set_channel_mode(channel, mode)
|
600 |
-
channel_ctx.set_no_deps(no_deps)
|
601 |
-
for_each_nodes(nodes, act=reinstall_node)
|
602 |
-
|
603 |
-
|
604 |
-
@app.command(help="Uninstall custom nodes")
|
605 |
-
def uninstall(
|
606 |
-
nodes: List[str] = typer.Argument(
|
607 |
-
..., help="List of custom nodes to uninstall"
|
608 |
-
),
|
609 |
-
channel: Annotated[
|
610 |
-
str,
|
611 |
-
typer.Option(
|
612 |
-
show_default=False,
|
613 |
-
help="Specify the operation mode"
|
614 |
-
),
|
615 |
-
] = None,
|
616 |
-
mode: str = typer.Option(
|
617 |
-
None,
|
618 |
-
help="[remote|local|cache]"
|
619 |
-
),
|
620 |
-
):
|
621 |
-
channel_ctx.set_channel_mode(channel, mode)
|
622 |
-
for_each_nodes(nodes, act=uninstall_node)
|
623 |
-
|
624 |
-
|
625 |
-
@app.command(help="Disable custom nodes")
|
626 |
-
def update(
|
627 |
-
nodes: List[str] = typer.Argument(
|
628 |
-
...,
|
629 |
-
help="[all|List of custom nodes to update]"
|
630 |
-
),
|
631 |
-
channel: Annotated[
|
632 |
-
str,
|
633 |
-
typer.Option(
|
634 |
-
show_default=False,
|
635 |
-
help="Specify the operation mode"
|
636 |
-
),
|
637 |
-
] = None,
|
638 |
-
mode: str = typer.Option(
|
639 |
-
None,
|
640 |
-
help="[remote|local|cache]"
|
641 |
-
),
|
642 |
-
):
|
643 |
-
channel_ctx.set_channel_mode(channel, mode)
|
644 |
-
|
645 |
-
if 'all' in nodes:
|
646 |
-
auto_save_snapshot()
|
647 |
-
|
648 |
-
for x in nodes:
|
649 |
-
if x.lower() in ['comfyui', 'comfy', 'all']:
|
650 |
-
update_comfyui()
|
651 |
-
break
|
652 |
-
|
653 |
-
update_parallel(nodes)
|
654 |
-
|
655 |
-
|
656 |
-
@app.command(help="Disable custom nodes")
|
657 |
-
def disable(
|
658 |
-
nodes: List[str] = typer.Argument(
|
659 |
-
...,
|
660 |
-
help="[all|List of custom nodes to disable]"
|
661 |
-
),
|
662 |
-
channel: Annotated[
|
663 |
-
str,
|
664 |
-
typer.Option(
|
665 |
-
show_default=False,
|
666 |
-
help="Specify the operation mode"
|
667 |
-
),
|
668 |
-
] = None,
|
669 |
-
mode: str = typer.Option(
|
670 |
-
None,
|
671 |
-
help="[remote|local|cache]"
|
672 |
-
),
|
673 |
-
):
|
674 |
-
channel_ctx.set_channel_mode(channel, mode)
|
675 |
-
|
676 |
-
if 'all' in nodes:
|
677 |
-
auto_save_snapshot()
|
678 |
-
|
679 |
-
for_each_nodes(nodes, disable_node, allow_all=True)
|
680 |
-
|
681 |
-
|
682 |
-
@app.command(help="Enable custom nodes")
|
683 |
-
def enable(
|
684 |
-
nodes: List[str] = typer.Argument(
|
685 |
-
...,
|
686 |
-
help="[all|List of custom nodes to enable]"
|
687 |
-
),
|
688 |
-
channel: Annotated[
|
689 |
-
str,
|
690 |
-
typer.Option(
|
691 |
-
show_default=False,
|
692 |
-
help="Specify the operation mode"
|
693 |
-
),
|
694 |
-
] = None,
|
695 |
-
mode: str = typer.Option(
|
696 |
-
None,
|
697 |
-
help="[remote|local|cache]"
|
698 |
-
),
|
699 |
-
):
|
700 |
-
channel_ctx.set_channel_mode(channel, mode)
|
701 |
-
|
702 |
-
if 'all' in nodes:
|
703 |
-
auto_save_snapshot()
|
704 |
-
|
705 |
-
for_each_nodes(nodes, enable_node, allow_all=True)
|
706 |
-
|
707 |
-
|
708 |
-
@app.command(help="Fix dependencies of custom nodes")
|
709 |
-
def fix(
|
710 |
-
nodes: List[str] = typer.Argument(
|
711 |
-
...,
|
712 |
-
help="[all|List of custom nodes to fix]"
|
713 |
-
),
|
714 |
-
channel: Annotated[
|
715 |
-
str,
|
716 |
-
typer.Option(
|
717 |
-
show_default=False,
|
718 |
-
help="Specify the operation mode"
|
719 |
-
),
|
720 |
-
] = None,
|
721 |
-
mode: str = typer.Option(
|
722 |
-
None,
|
723 |
-
help="[remote|local|cache]"
|
724 |
-
),
|
725 |
-
):
|
726 |
-
channel_ctx.set_channel_mode(channel, mode)
|
727 |
-
|
728 |
-
if 'all' in nodes:
|
729 |
-
auto_save_snapshot()
|
730 |
-
|
731 |
-
for_each_nodes(nodes, fix_node, allow_all=True)
|
732 |
-
|
733 |
-
|
734 |
-
@app.command("show-versions", help="Show all available versions of the node")
|
735 |
-
def show_versions(node_name: str):
|
736 |
-
versions = cnr_utils.all_versions_of_node(node_name)
|
737 |
-
if versions is None:
|
738 |
-
print(f"Node not found in Comfy Registry: {node_name}")
|
739 |
-
|
740 |
-
for x in versions:
|
741 |
-
print(f"[{x['createdAt'][:10]}] {x['version']} -- {x['changelog']}")
|
742 |
-
|
743 |
-
|
744 |
-
@app.command("show", help="Show node list")
|
745 |
-
def show(
|
746 |
-
arg: str = typer.Argument(
|
747 |
-
help="[installed|enabled|not-installed|disabled|all|cnr|snapshot|snapshot-list]"
|
748 |
-
),
|
749 |
-
channel: Annotated[
|
750 |
-
str,
|
751 |
-
typer.Option(
|
752 |
-
show_default=False,
|
753 |
-
help="Specify the operation mode"
|
754 |
-
),
|
755 |
-
] = None,
|
756 |
-
mode: str = typer.Option(
|
757 |
-
None,
|
758 |
-
help="[remote|local|cache]"
|
759 |
-
),
|
760 |
-
):
|
761 |
-
valid_commands = [
|
762 |
-
"installed",
|
763 |
-
"enabled",
|
764 |
-
"not-installed",
|
765 |
-
"disabled",
|
766 |
-
"all",
|
767 |
-
"cnr",
|
768 |
-
"snapshot",
|
769 |
-
"snapshot-list",
|
770 |
-
]
|
771 |
-
if arg not in valid_commands:
|
772 |
-
typer.echo(f"Invalid command: `show {arg}`", err=True)
|
773 |
-
exit(1)
|
774 |
-
|
775 |
-
channel_ctx.set_channel_mode(channel, mode)
|
776 |
-
if arg == 'snapshot':
|
777 |
-
show_snapshot()
|
778 |
-
elif arg == 'snapshot-list':
|
779 |
-
show_snapshot_list()
|
780 |
-
else:
|
781 |
-
show_list(arg)
|
782 |
-
|
783 |
-
|
784 |
-
@app.command("simple-show", help="Show node list (simple mode)")
|
785 |
-
def simple_show(
|
786 |
-
arg: str = typer.Argument(
|
787 |
-
help="[installed|enabled|not-installed|disabled|all|snapshot|snapshot-list]"
|
788 |
-
),
|
789 |
-
channel: Annotated[
|
790 |
-
str,
|
791 |
-
typer.Option(
|
792 |
-
show_default=False,
|
793 |
-
help="Specify the operation mode"
|
794 |
-
),
|
795 |
-
] = None,
|
796 |
-
mode: str = typer.Option(
|
797 |
-
None,
|
798 |
-
help="[remote|local|cache]"
|
799 |
-
),
|
800 |
-
):
|
801 |
-
valid_commands = [
|
802 |
-
"installed",
|
803 |
-
"enabled",
|
804 |
-
"not-installed",
|
805 |
-
"disabled",
|
806 |
-
"all",
|
807 |
-
"snapshot",
|
808 |
-
"snapshot-list",
|
809 |
-
]
|
810 |
-
if arg not in valid_commands:
|
811 |
-
typer.echo(f"[bold red]Invalid command: `show {arg}`[/bold red]", err=True)
|
812 |
-
exit(1)
|
813 |
-
|
814 |
-
channel_ctx.set_channel_mode(channel, mode)
|
815 |
-
if arg == 'snapshot':
|
816 |
-
show_snapshot(True)
|
817 |
-
elif arg == 'snapshot-list':
|
818 |
-
show_snapshot_list(True)
|
819 |
-
else:
|
820 |
-
show_list(arg, True)
|
821 |
-
|
822 |
-
|
823 |
-
@app.command('cli-only-mode', help="Set whether to use ComfyUI-Manager in CLI-only mode.")
|
824 |
-
def cli_only_mode(
|
825 |
-
mode: str = typer.Argument(
|
826 |
-
..., help="[enable|disable]"
|
827 |
-
)):
|
828 |
-
cli_mode_flag = os.path.join(os.path.dirname(__file__), '.enable-cli-only-mode')
|
829 |
-
if mode.lower() == 'enable':
|
830 |
-
with open(cli_mode_flag, 'w') as file:
|
831 |
-
pass
|
832 |
-
print(f"\nINFO: `cli-only-mode` is enabled\n")
|
833 |
-
elif mode.lower() == 'disable':
|
834 |
-
if os.path.exists(cli_mode_flag):
|
835 |
-
os.remove(cli_mode_flag)
|
836 |
-
print(f"\nINFO: `cli-only-mode` is disabled\n")
|
837 |
-
else:
|
838 |
-
print(f"\n[bold red]Invalid value for cli-only-mode: {mode}[/bold red]\n")
|
839 |
-
exit(1)
|
840 |
-
|
841 |
-
|
842 |
-
@app.command(
|
843 |
-
"deps-in-workflow", help="Generate dependencies file from workflow (.json/.png)"
|
844 |
-
)
|
845 |
-
def deps_in_workflow(
|
846 |
-
workflow: Annotated[
|
847 |
-
str, typer.Option(show_default=False, help="Workflow file (.json/.png)")
|
848 |
-
],
|
849 |
-
output: Annotated[
|
850 |
-
str, typer.Option(show_default=False, help="Output file (.json)")
|
851 |
-
],
|
852 |
-
channel: Annotated[
|
853 |
-
str,
|
854 |
-
typer.Option(
|
855 |
-
show_default=False,
|
856 |
-
help="Specify the operation mode"
|
857 |
-
),
|
858 |
-
] = None,
|
859 |
-
mode: str = typer.Option(
|
860 |
-
None,
|
861 |
-
help="[remote|local|cache]"
|
862 |
-
),
|
863 |
-
):
|
864 |
-
channel_ctx.set_channel_mode(channel, mode)
|
865 |
-
|
866 |
-
input_path = workflow
|
867 |
-
output_path = output
|
868 |
-
|
869 |
-
if not os.path.exists(input_path):
|
870 |
-
print(f"[bold red]File not found: {input_path}[/bold red]")
|
871 |
-
exit(1)
|
872 |
-
|
873 |
-
used_exts, unknown_nodes = asyncio.run(core.extract_nodes_from_workflow(input_path, mode=channel_ctx.mode, channel_url=channel_ctx.channel))
|
874 |
-
|
875 |
-
custom_nodes = {}
|
876 |
-
for x in used_exts:
|
877 |
-
custom_nodes[x] = {'state': core.simple_check_custom_node(x),
|
878 |
-
'hash': '-'
|
879 |
-
}
|
880 |
-
|
881 |
-
res = {
|
882 |
-
'custom_nodes': custom_nodes,
|
883 |
-
'unknown_nodes': list(unknown_nodes)
|
884 |
-
}
|
885 |
-
|
886 |
-
with open(output_path, "w", encoding='utf-8') as output_file:
|
887 |
-
json.dump(res, output_file, indent=4)
|
888 |
-
|
889 |
-
print(f"Workflow dependencies are being saved into {output_path}.")
|
890 |
-
|
891 |
-
|
892 |
-
@app.command("save-snapshot", help="Save a snapshot of the current ComfyUI environment. If output path isn't provided. Save to ComfyUI-Manager/snapshots path.")
|
893 |
-
def save_snapshot(
|
894 |
-
output: Annotated[
|
895 |
-
str,
|
896 |
-
typer.Option(
|
897 |
-
show_default=False, help="Specify the output file path. (.json/.yaml)"
|
898 |
-
),
|
899 |
-
] = None,
|
900 |
-
):
|
901 |
-
path = core.save_snapshot_with_postfix('snapshot', output)
|
902 |
-
print(f"Current snapshot is saved as `{path}`")
|
903 |
-
|
904 |
-
|
905 |
-
@app.command("restore-snapshot", help="Restore snapshot from snapshot file")
|
906 |
-
def restore_snapshot(
|
907 |
-
snapshot_name: str,
|
908 |
-
pip_non_url: Optional[bool] = typer.Option(
|
909 |
-
default=None,
|
910 |
-
show_default=False,
|
911 |
-
is_flag=True,
|
912 |
-
help="Restore for pip packages registered on PyPI.",
|
913 |
-
),
|
914 |
-
pip_non_local_url: Optional[bool] = typer.Option(
|
915 |
-
default=None,
|
916 |
-
show_default=False,
|
917 |
-
is_flag=True,
|
918 |
-
help="Restore for pip packages registered at web URLs.",
|
919 |
-
),
|
920 |
-
pip_local_url: Optional[bool] = typer.Option(
|
921 |
-
default=None,
|
922 |
-
show_default=False,
|
923 |
-
is_flag=True,
|
924 |
-
help="Restore for pip packages specified by local paths.",
|
925 |
-
),
|
926 |
-
):
|
927 |
-
extras = []
|
928 |
-
if pip_non_url:
|
929 |
-
extras.append('--pip-non-url')
|
930 |
-
|
931 |
-
if pip_non_local_url:
|
932 |
-
extras.append('--pip-non-local-url')
|
933 |
-
|
934 |
-
if pip_local_url:
|
935 |
-
extras.append('--pip-local-url')
|
936 |
-
|
937 |
-
print(f"PIPs restore mode: {extras}")
|
938 |
-
|
939 |
-
if os.path.exists(snapshot_name):
|
940 |
-
snapshot_path = os.path.abspath(snapshot_name)
|
941 |
-
else:
|
942 |
-
snapshot_path = os.path.join(core.comfyui_manager_path, 'snapshots', snapshot_name)
|
943 |
-
if not os.path.exists(snapshot_path):
|
944 |
-
print(f"[bold red]ERROR: `{snapshot_path}` is not exists.[/bold red]")
|
945 |
-
exit(1)
|
946 |
-
|
947 |
-
try:
|
948 |
-
asyncio.run(core.restore_snapshot(snapshot_path, extras))
|
949 |
-
except Exception:
|
950 |
-
print("[bold red]ERROR: Failed to restore snapshot.[/bold red]")
|
951 |
-
traceback.print_exc()
|
952 |
-
raise typer.Exit(code=1)
|
953 |
-
|
954 |
-
|
955 |
-
@app.command(
|
956 |
-
"restore-dependencies", help="Restore dependencies from whole installed custom nodes."
|
957 |
-
)
|
958 |
-
def restore_dependencies():
|
959 |
-
node_paths = [os.path.join(custom_nodes_path, name) for name in os.listdir(custom_nodes_path)
|
960 |
-
if os.path.isdir(os.path.join(custom_nodes_path, name)) and not name.endswith('.disabled')]
|
961 |
-
|
962 |
-
total = len(node_paths)
|
963 |
-
i = 1
|
964 |
-
for x in node_paths:
|
965 |
-
print(f"----------------------------------------------------------------------------------------------------")
|
966 |
-
print(f"Restoring [{i}/{total}]: {x}")
|
967 |
-
unified_manager.execute_install_script('', x, instant_execution=True)
|
968 |
-
i += 1
|
969 |
-
|
970 |
-
|
971 |
-
@app.command(
|
972 |
-
"post-install", help="Install dependencies and execute installation script"
|
973 |
-
)
|
974 |
-
def post_install(
|
975 |
-
path: str = typer.Argument(
|
976 |
-
help="path to custom node",
|
977 |
-
)):
|
978 |
-
path = os.path.expanduser(path)
|
979 |
-
unified_manager.execute_install_script('', path, instant_execution=True)
|
980 |
-
|
981 |
-
|
982 |
-
@app.command(
|
983 |
-
"install-deps",
|
984 |
-
help="Install dependencies from dependencies file(.json) or workflow(.png/.json)",
|
985 |
-
)
|
986 |
-
def install_deps(
|
987 |
-
deps: str = typer.Argument(
|
988 |
-
help="Dependency spec file (.json)",
|
989 |
-
),
|
990 |
-
channel: Annotated[
|
991 |
-
str,
|
992 |
-
typer.Option(
|
993 |
-
show_default=False,
|
994 |
-
help="Specify the operation mode"
|
995 |
-
),
|
996 |
-
] = None,
|
997 |
-
mode: str = typer.Option(
|
998 |
-
None,
|
999 |
-
help="[remote|local|cache]"
|
1000 |
-
),
|
1001 |
-
):
|
1002 |
-
channel_ctx.set_channel_mode(channel, mode)
|
1003 |
-
auto_save_snapshot()
|
1004 |
-
|
1005 |
-
if not os.path.exists(deps):
|
1006 |
-
print(f"[bold red]File not found: {deps}[/bold red]")
|
1007 |
-
exit(1)
|
1008 |
-
else:
|
1009 |
-
with open(deps, 'r', encoding="UTF-8", errors="ignore") as json_file:
|
1010 |
-
try:
|
1011 |
-
json_obj = json.load(json_file)
|
1012 |
-
except:
|
1013 |
-
print(f"[bold red]Invalid json file: {deps}[/bold red]")
|
1014 |
-
exit(1)
|
1015 |
-
|
1016 |
-
for k in json_obj['custom_nodes'].keys():
|
1017 |
-
state = core.simple_check_custom_node(k)
|
1018 |
-
if state == 'installed':
|
1019 |
-
continue
|
1020 |
-
elif state == 'not-installed':
|
1021 |
-
asyncio.run(core.gitclone_install(k, instant_execution=True))
|
1022 |
-
else: # disabled
|
1023 |
-
core.gitclone_set_active([k], False)
|
1024 |
-
|
1025 |
-
print("Dependency installation and activation complete.")
|
1026 |
-
|
1027 |
-
|
1028 |
-
@app.command(help="Clear reserved startup action in ComfyUI-Manager")
|
1029 |
-
def clear():
|
1030 |
-
cancel()
|
1031 |
-
|
1032 |
-
|
1033 |
-
@app.command("export-custom-node-ids", help="Export custom node ids")
|
1034 |
-
def export_custom_node_ids(
|
1035 |
-
path: str,
|
1036 |
-
channel: Annotated[
|
1037 |
-
str,
|
1038 |
-
typer.Option(
|
1039 |
-
show_default=False,
|
1040 |
-
help="Specify the operation mode"
|
1041 |
-
),
|
1042 |
-
] = None,
|
1043 |
-
mode: str = typer.Option(
|
1044 |
-
None,
|
1045 |
-
help="[remote|local|cache]"
|
1046 |
-
)):
|
1047 |
-
channel_ctx.set_channel_mode(channel, mode)
|
1048 |
-
|
1049 |
-
with open(path, "w", encoding='utf-8') as output_file:
|
1050 |
-
for x in unified_manager.cnr_map.keys():
|
1051 |
-
print(x, file=output_file)
|
1052 |
-
|
1053 |
-
custom_nodes = asyncio.run(unified_manager.get_custom_nodes(channel=channel_ctx.channel, mode=channel_ctx.mode))
|
1054 |
-
for x in custom_nodes.values():
|
1055 |
-
if 'cnr_latest' not in x:
|
1056 |
-
if len(x['files']) == 1:
|
1057 |
-
repo_url = x['files'][0]
|
1058 |
-
node_id = repo_url.split('/')[-1]
|
1059 |
-
print(f"{node_id}@unknown", file=output_file)
|
1060 |
-
|
1061 |
-
if 'id' in x:
|
1062 |
-
print(f"{x['id']}@unknown", file=output_file)
|
1063 |
-
|
1064 |
-
|
1065 |
-
@app.command(
|
1066 |
-
"migrate",
|
1067 |
-
help="Migrate legacy node system to new node system",
|
1068 |
-
)
|
1069 |
-
def migrate():
|
1070 |
-
asyncio.run(unified_manager.migrate_unmanaged_nodes())
|
1071 |
-
|
1072 |
-
|
1073 |
-
if __name__ == '__main__':
|
1074 |
-
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
|
1075 |
-
sys.exit(app())
|
1076 |
-
|
1077 |
-
|
1078 |
-
print(f"")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ComfyUI/custom_nodes/manager-core/cm-cli.sh
DELETED
@@ -1,2 +0,0 @@
|
|
1 |
-
#!/bin/bash
|
2 |
-
python cm-cli.py $*
|
|
|
|
|
|
ComfyUI/custom_nodes/manager-core/custom-node-list.json
DELETED
The diff for this file is too large to render.
See raw diff
|
|
ComfyUI/custom_nodes/manager-core/docs/en/cm-cli.md
DELETED
@@ -1,146 +0,0 @@
|
|
1 |
-
# `cm-cli`: ComfyUI-Manager CLI
|
2 |
-
|
3 |
-
`cm-cli` is a tool that allows you to use various functions of ComfyUI-Manager from the command line without launching ComfyUI.
|
4 |
-
|
5 |
-
|
6 |
-
```
|
7 |
-
-= ComfyUI-Manager CLI (V2.24) =-
|
8 |
-
|
9 |
-
|
10 |
-
python cm-cli.py [OPTIONS]
|
11 |
-
|
12 |
-
OPTIONS:
|
13 |
-
[install|reinstall|uninstall|update|disable|enable|fix] node_name ... ?[--channel <channel name>] ?[--mode [remote|local|cache]]
|
14 |
-
[update|disable|enable|fix] all ?[--channel <channel name>] ?[--mode [remote|local|cache]]
|
15 |
-
[simple-show|show] [installed|enabled|not-installed|disabled|all|snapshot|snapshot-list] ?[--channel <channel name>] ?[--mode [remote|local|cache]]
|
16 |
-
save-snapshot ?[--output <snapshot .json/.yaml>]
|
17 |
-
restore-snapshot <snapshot .json/.yaml> ?[--pip-non-url] ?[--pip-non-local-url] ?[--pip-local-url]
|
18 |
-
cli-only-mode [enable|disable]
|
19 |
-
restore-dependencies
|
20 |
-
clear
|
21 |
-
```
|
22 |
-
|
23 |
-
## How To Use?
|
24 |
-
* You can execute it via `python cm-cli.py`.
|
25 |
-
* For example, if you want to update all custom nodes:
|
26 |
-
* In the ComfyUI-Manager directory, you can execute the command `python cm-cli.py update all`.
|
27 |
-
* If running from the ComfyUI directory, you can specify the path to cm-cli.py like this: `python custom_nodes/ComfyUI-Manager/cm-cli.py update all`.
|
28 |
-
|
29 |
-
## Prerequisite
|
30 |
-
* It must be run in the same Python environment as the one running ComfyUI.
|
31 |
-
* If using a venv, you must run it with the venv activated.
|
32 |
-
* If using a portable version, and you are in the directory with the run_nvidia_gpu.bat file, you should execute the command as follows:
|
33 |
-
`.\python_embeded\python.exe ComfyUI\custom_nodes\ComfyUI-Manager\cm-cli.py update all`
|
34 |
-
* The path for ComfyUI can be set with the COMFYUI_PATH environment variable. If omitted, a warning message will appear, and the path will be set relative to the installed location of ComfyUI-Manager:
|
35 |
-
```
|
36 |
-
WARN: The `COMFYUI_PATH` environment variable is not set. Assuming `custom_nodes/ComfyUI-Manager/../../` as the ComfyUI path.
|
37 |
-
```
|
38 |
-
|
39 |
-
## Features
|
40 |
-
|
41 |
-
### 1. --channel, --mode
|
42 |
-
* For viewing information and managing custom nodes, you can set the information database through --channel and --mode.
|
43 |
-
* For instance, executing the command `python cm-cli.py update all --channel recent --mode remote` will operate based on the latest information from remote rather than local data embedded in the current ComfyUI-Manager repo and will only target the list in the recent channel.
|
44 |
-
* --channel, --mode are only available with the commands `simple-show, show, install, uninstall, update, disable, enable, fix`.
|
45 |
-
|
46 |
-
### 2. Viewing Management Information
|
47 |
-
|
48 |
-
`[simple-show|show] [installed|enabled|not-installed|disabled|all|snapshot|snapshot-list] ?[--channel <channel name>] ?[--mode [remote|local|cache]]`
|
49 |
-
|
50 |
-
* `[show|simple-show]` - `show` provides detailed information, while `simple-show` displays information more simply.
|
51 |
-
|
52 |
-
Executing a command like `python cm-cli.py show installed` will display detailed information about the installed custom nodes.
|
53 |
-
|
54 |
-
```
|
55 |
-
-= ComfyUI-Manager CLI (V2.24) =-
|
56 |
-
|
57 |
-
FETCH DATA from: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/custom-node-list.json
|
58 |
-
[ ENABLED ] ComfyUI-Manager (author: Dr.Lt.Data)
|
59 |
-
[ ENABLED ] ComfyUI-Impact-Pack (author: Dr.Lt.Data)
|
60 |
-
[ ENABLED ] ComfyUI-Inspire-Pack (author: Dr.Lt.Data)
|
61 |
-
[ ENABLED ] ComfyUI_experiments (author: comfyanonymous)
|
62 |
-
[ ENABLED ] ComfyUI-SAI_API (author: Stability-AI)
|
63 |
-
[ ENABLED ] stability-ComfyUI-nodes (author: Stability-AI)
|
64 |
-
[ ENABLED ] comfyui_controlnet_aux (author: Fannovel16)
|
65 |
-
[ ENABLED ] ComfyUI-Frame-Interpolation (author: Fannovel16)
|
66 |
-
[ DISABLED ] ComfyUI-Loopchain (author: Fannovel16)
|
67 |
-
```
|
68 |
-
|
69 |
-
Using a command like `python cm-cli.py simple-show installed` will simply display information about the installed custom nodes.
|
70 |
-
|
71 |
-
```
|
72 |
-
-= ComfyUI-Manager CLI (V2.24) =-
|
73 |
-
|
74 |
-
FETCH DATA from: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/custom-node-list.json
|
75 |
-
ComfyUI-Manager
|
76 |
-
ComfyUI-Impact-Pack
|
77 |
-
ComfyUI-Inspire-Pack
|
78 |
-
ComfyUI_experiments
|
79 |
-
ComfyUI-SAI_API
|
80 |
-
stability-ComfyUI-nodes
|
81 |
-
comfyui_controlnet_aux
|
82 |
-
ComfyUI-Frame-Interpolation
|
83 |
-
ComfyUI-Loopchain
|
84 |
-
```
|
85 |
-
|
86 |
-
`[installed|enabled|not-installed|disabled|all|snapshot|snapshot-list]`
|
87 |
-
* `enabled`, `disabled`: Shows nodes that have been enabled or disabled among the installed custom nodes.
|
88 |
-
* `installed`: Shows all nodes that have been installed, regardless of whether they are enabled or disabled.
|
89 |
-
* `not-installed`: Shows a list of custom nodes that have not been installed.
|
90 |
-
* `all`: Shows a list of all custom nodes.
|
91 |
-
* `snapshot`: Displays snapshot information of the currently installed custom nodes. When viewed with `show`, it is displayed in JSON format, and with `simple-show`, it is displayed simply, along with the commit hash.
|
92 |
-
* `snapshot-list`: Shows a list of snapshot files stored in ComfyUI-Manager/snapshots.
|
93 |
-
|
94 |
-
### 3. Managing Custom Nodes
|
95 |
-
|
96 |
-
`[install|reinstall|uninstall|update|disable|enable|fix] node_name ... ?[--channel <channel name>] ?[--mode [remote|local|cache]]`
|
97 |
-
|
98 |
-
* You can apply management functions by listing the names of custom nodes, such as `python cm-cli.py install ComfyUI-Impact-Pack ComfyUI-Inspire-Pack ComfyUI_experiments`.
|
99 |
-
* The names of the custom nodes are as shown by `show` and are the names of the git repositories.
|
100 |
-
(Plans are to update the use of nicknames in the future.)
|
101 |
-
|
102 |
-
`[update|disable|enable|fix] all ?[--channel <channel name>] ?[--mode [remote|local|cache]]`
|
103 |
-
|
104 |
-
* The `update, disable, enable, fix` functions can be specified for all.
|
105 |
-
|
106 |
-
* Detailed Operations
|
107 |
-
* `install`: Installs the specified custom nodes.
|
108 |
-
* `reinstall`: Removes and then reinstalls the specified custom nodes.
|
109 |
-
* `uninstall`: Uninstalls the specified custom nodes.
|
110 |
-
* `update`: Updates the specified custom nodes.
|
111 |
-
* `disable`: Disables the specified custom nodes.
|
112 |
-
* `enable`: Enables the specified custom nodes.
|
113 |
-
* `fix`: Attempts to fix dependencies for the specified custom nodes.
|
114 |
-
|
115 |
-
|
116 |
-
### 4. Snapshot Management
|
117 |
-
* `python cm-cli.py save-snapshot [--output <snapshot .json/.yaml>]`: Saves the current snapshot.
|
118 |
-
* With `--output`, you can save a file in .yaml format to any specified path.
|
119 |
-
* `python cm-cli.py restore-snapshot <snapshot .json/.yaml>`: Restores to the specified snapshot.
|
120 |
-
* If a file exists at the snapshot path, that snapshot is loaded.
|
121 |
-
* If no file exists at the snapshot path, it is implicitly assumed to be in ComfyUI-Manager/snapshots.
|
122 |
-
* `--pip-non-url`: Restore for pip packages registered on PyPI.
|
123 |
-
* `--pip-non-local-url`: Restore for pip packages registered at web URLs.
|
124 |
-
* `--pip-local-url`: Restore for pip packages specified by local paths.
|
125 |
-
|
126 |
-
|
127 |
-
### 5. CLI Only Mode
|
128 |
-
|
129 |
-
You can set whether to use ComfyUI-Manager solely via CLI.
|
130 |
-
|
131 |
-
`cli-only-mode [enable|disable]`
|
132 |
-
|
133 |
-
* This mode can be used if you want to restrict the use of ComfyUI-Manager through the GUI for security or policy reasons.
|
134 |
-
* When CLI only mode is enabled, ComfyUI-Manager is loaded in a very restricted state, the internal web API is disabled, and the Manager button is not displayed in the main menu.
|
135 |
-
|
136 |
-
### 6. Dependency Restoration
|
137 |
-
|
138 |
-
`restore-dependencies`
|
139 |
-
|
140 |
-
* This command can be used if custom nodes are installed under the `ComfyUI/custom_nodes` path but their dependencies are not installed.
|
141 |
-
* It is useful when starting a new cloud instance, like colab, where dependencies need to be reinstalled and installation scripts re-executed.
|
142 |
-
* It can also be utilized if ComfyUI is reinstalled and only the custom_nodes path has been backed up and restored.
|
143 |
-
|
144 |
-
### 7. Clear
|
145 |
-
|
146 |
-
In the GUI, installations, updates, or snapshot restorations are scheduled to execute the next time ComfyUI is launched. The `clear` command clears this scheduled state, ensuring no pre-execution actions are applied.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ComfyUI/custom_nodes/manager-core/docs/en/use_aria2.md
DELETED
@@ -1,40 +0,0 @@
|
|
1 |
-
# Use `aria2` as downloader
|
2 |
-
|
3 |
-
Two environment variables are needed to use `aria2` as the downloader.
|
4 |
-
|
5 |
-
```bash
|
6 |
-
export COMFYUI_MANAGER_ARIA2_SERVER=http://127.0.0.1:6800
|
7 |
-
export COMFYUI_MANAGER_ARIA2_SECRET=__YOU_MUST_CHANGE_IT__
|
8 |
-
```
|
9 |
-
|
10 |
-
An example `docker-compose.yml`
|
11 |
-
|
12 |
-
```yaml
|
13 |
-
services:
|
14 |
-
|
15 |
-
aria2:
|
16 |
-
container_name: aria2
|
17 |
-
image: p3terx/aria2-pro
|
18 |
-
environment:
|
19 |
-
- PUID=1000
|
20 |
-
- PGID=1000
|
21 |
-
- UMASK_SET=022
|
22 |
-
- RPC_SECRET=__YOU_MUST_CHANGE_IT__
|
23 |
-
- RPC_PORT=5080
|
24 |
-
- DISK_CACHE=64M
|
25 |
-
- IPV6_MODE=false
|
26 |
-
- UPDATE_TRACKERS=false
|
27 |
-
- CUSTOM_TRACKER_URL=
|
28 |
-
volumes:
|
29 |
-
- ./config:/config
|
30 |
-
- ./downloads:/downloads
|
31 |
-
- ~/ComfyUI/models:/models
|
32 |
-
- ~/ComfyUI/custom_nodes:/custom_nodes
|
33 |
-
ports:
|
34 |
-
- 6800:6800
|
35 |
-
restart: unless-stopped
|
36 |
-
logging:
|
37 |
-
driver: json-file
|
38 |
-
options:
|
39 |
-
max-size: 1m
|
40 |
-
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ComfyUI/custom_nodes/manager-core/docs/ko/cm-cli.md
DELETED
@@ -1,149 +0,0 @@
|
|
1 |
-
# `cm-cli`: ComfyUI-Manager CLI
|
2 |
-
|
3 |
-
`cm-cli` 는 ComfyUI를 실행시키지 않고 command line에서 ComfyUI-Manager의 여러가지 기능을 사용할 수 있도록 도와주는 도구입니다.
|
4 |
-
|
5 |
-
|
6 |
-
```
|
7 |
-
-= ComfyUI-Manager CLI (V2.24) =-
|
8 |
-
|
9 |
-
|
10 |
-
python cm-cli.py [OPTIONS]
|
11 |
-
|
12 |
-
OPTIONS:
|
13 |
-
[install|reinstall|uninstall|update|disable|enable|fix] node_name ... ?[--channel <channel name>] ?[--mode [remote|local|cache]]
|
14 |
-
[update|disable|enable|fix] all ?[--channel <channel name>] ?[--mode [remote|local|cache]]
|
15 |
-
[simple-show|show] [installed|enabled|not-installed|disabled|all|snapshot|snapshot-list] ?[--channel <channel name>] ?[--mode [remote|local|cache]]
|
16 |
-
save-snapshot ?[--output <snapshot .json/.yaml>]
|
17 |
-
restore-snapshot <snapshot .json/.yaml> ?[--pip-non-url] ?[--pip-non-local-url] ?[--pip-local-url]
|
18 |
-
cli-only-mode [enable|disable]
|
19 |
-
restore-dependencies
|
20 |
-
clear
|
21 |
-
```
|
22 |
-
|
23 |
-
## How To Use?
|
24 |
-
* `python cm-cli.py` 를 통해서 실행 시킬 수 있습니다.
|
25 |
-
* 예를 들어 custom node를 모두 업데이트 하고 싶다면
|
26 |
-
* ComfyUI-Manager경로 에서 `python cm-cli.py update all` 를 command를 실행할 수 있습니다.
|
27 |
-
* ComfyUI 경로에서 실행한다면, `python custom_nodes/ComfyUI-Manager/cm-cli.py update all` 와 같이 cm-cli.py 의 경로를 지정할 수도 있습니다.
|
28 |
-
|
29 |
-
## Prerequisite
|
30 |
-
* ComfyUI 를 실행하는 python과 동일한 python 환경에서 실행해야 합니다.
|
31 |
-
* venv를 사용할 경우 해당 venv를 activate 한 상태에서 실행해야 합니다.
|
32 |
-
* portable 버전을 사용할 경우 run_nvidia_gpu.bat 파일이 있는 경로인 경우, 다음과 같은 방식으로 코맨드를 실행해야 합니다.
|
33 |
-
`.\python_embeded\python.exe ComfyUI\custom_nodes\ComfyUI-Manager\cm-cli.py update all`
|
34 |
-
* ComfyUI 의 경로는 COMFYUI_PATH 환경 변수로 설정할 수 있습니다. 만약 생략할 경우 다음과 같은 경고 메시지가 나타나며, ComfyUI-Manager가 설치된 경로를 기준으로 상대 경로로 설정됩니다.
|
35 |
-
```
|
36 |
-
WARN: The `COMFYUI_PATH` environment variable is not set. Assuming `custom_nodes/ComfyUI-Manager/../../` as the ComfyUI path.
|
37 |
-
```
|
38 |
-
|
39 |
-
## Features
|
40 |
-
|
41 |
-
### 1. --channel, --mode
|
42 |
-
* 정보 보기 기능과 커스텀 노드 관리 기능의 경우는 --channel과 --mode를 통해 정보 DB를 설정할 수 있습니다.
|
43 |
-
* 예들 들어 `python cm-cli.py update all --channel recent --mode remote`와 같은 command를 실행할 경우, 현재 ComfyUI-Manager repo에 내장된 로컬의 정보가 아닌 remote의 최신 정보를 기준으로 동작하며, recent channel에 있는 목록을 대상으로만 동작합니다.
|
44 |
-
* --channel, --mode 는 `simple-show, show, install, uninstall, update, disable, enable, fix` command에서만 사용 가능합니다.
|
45 |
-
|
46 |
-
### 2. 관리 정보 보기
|
47 |
-
|
48 |
-
`[simple-show|show] [installed|enabled|not-installed|disabled|all|snapshot|snapshot-list] ?[--channel <channel name>] ?[--mode [remote|local|cache]]`
|
49 |
-
|
50 |
-
|
51 |
-
* `[show|simple-show]` - `show`는 상세하게 정보를 보여주며, `simple-show`는 간단하게 정보를 보여줍니다.
|
52 |
-
|
53 |
-
|
54 |
-
`python cm-cli.py show installed` 와 같은 코맨드를 실행하면 설치된 커스텀 노드의 정보를 상세하게 보여줍니다.
|
55 |
-
```
|
56 |
-
-= ComfyUI-Manager CLI (V2.24) =-
|
57 |
-
|
58 |
-
FETCH DATA from: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/custom-node-list.json
|
59 |
-
[ ENABLED ] ComfyUI-Manager (author: Dr.Lt.Data)
|
60 |
-
[ ENABLED ] ComfyUI-Impact-Pack (author: Dr.Lt.Data)
|
61 |
-
[ ENABLED ] ComfyUI-Inspire-Pack (author: Dr.Lt.Data)
|
62 |
-
[ ENABLED ] ComfyUI_experiments (author: comfyanonymous)
|
63 |
-
[ ENABLED ] ComfyUI-SAI_API (author: Stability-AI)
|
64 |
-
[ ENABLED ] stability-ComfyUI-nodes (author: Stability-AI)
|
65 |
-
[ ENABLED ] comfyui_controlnet_aux (author: Fannovel16)
|
66 |
-
[ ENABLED ] ComfyUI-Frame-Interpolation (author: Fannovel16)
|
67 |
-
[ DISABLED ] ComfyUI-Loopchain (author: Fannovel16)
|
68 |
-
```
|
69 |
-
|
70 |
-
`python cm-cli.py simple-show installed` 와 같은 코맨드를 이용해서 설치된 커스텀 노드의 정보를 간단하게 보여줍니다.
|
71 |
-
|
72 |
-
```
|
73 |
-
-= ComfyUI-Manager CLI (V2.24) =-
|
74 |
-
|
75 |
-
FETCH DATA from: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/custom-node-list.json
|
76 |
-
ComfyUI-Manager
|
77 |
-
ComfyUI-Impact-Pack
|
78 |
-
ComfyUI-Inspire-Pack
|
79 |
-
ComfyUI_experiments
|
80 |
-
ComfyUI-SAI_API
|
81 |
-
stability-ComfyUI-nodes
|
82 |
-
comfyui_controlnet_aux
|
83 |
-
ComfyUI-Frame-Interpolation
|
84 |
-
ComfyUI-Loopchain
|
85 |
-
```
|
86 |
-
|
87 |
-
* `[installed|enabled|not-installed|disabled|all|snapshot|snapshot-list]`
|
88 |
-
* `enabled`, `disabled`: 설치된 커스텀 노드들 중 enable 되었거나, disable된 노드들을 보여줍니다.
|
89 |
-
* `installed`: enable, disable 여부와 상관없이 설치된 모든 노드를 보여줍니다
|
90 |
-
* `not-installed`: 설치되지 않은 커스텀 노드의 목록을 보여줍니다.
|
91 |
-
* `all`: 모든 커스텀 노드의 목록을 보여줍니다.
|
92 |
-
* `snapshot`: 현재 설치된 커스텀 노드의 snapshot 정보를 보여줍니다. `show`롤 통해서 볼 경우는 json 출력 형태로 보여주며, `simple-show`를 통해서 볼 경우는 간단하게, 커밋 해시와 함께 보여줍니다.
|
93 |
-
* `snapshot-list`: ComfyUI-Manager/snapshots 에 저장된 snapshot 파일의 목록을 보여줍니다.
|
94 |
-
|
95 |
-
### 3. 커스텀 노드 관리 하기
|
96 |
-
|
97 |
-
`[install|reinstall|uninstall|update|disable|enable|fix] node_name ... ?[--channel <channel name>] ?[--mode [remote|local|cache]]`
|
98 |
-
|
99 |
-
* `python cm-cli.py install ComfyUI-Impact-Pack ComfyUI-Inspire-Pack ComfyUI_experiments` 와 같이 커스텀 노드의 이름을 나열해서 관리 기능을 적용할 수 있습니다.
|
100 |
-
* 커스텀 노드의 이름은 `show`를 했을 때 보여주는 이름이며, git repository의 이름입니다.
|
101 |
-
(추후 nickname 을 사용가능하돌고 업데이트 할 예정입니다.)
|
102 |
-
|
103 |
-
`[update|disable|enable|fix] all ?[--channel <channel name>] ?[--mode [remote|local|cache]]`
|
104 |
-
|
105 |
-
* `update, disable, enable, fix` 기능은 all 로 지정 가능합니다.
|
106 |
-
|
107 |
-
* 세부 동작
|
108 |
-
* `install`: 지정된 커스텀 노드들을 설치합니다
|
109 |
-
* `reinstall`: 지정된 커스텀 노드를 삭제하고 재설치 합니다.
|
110 |
-
* `uninstall`: 지정된 커스텀 노드들을 삭제합니다.
|
111 |
-
* `update`: 지정된 커스텀 노드들을 업데이트합니다.
|
112 |
-
* `disable`: 지정된 커스텀 노드들을 비활성화합니다.
|
113 |
-
* `enable`: 지정된 커스텀 노드들을 활성화합니다.
|
114 |
-
* `fix`: 지정된 커스텀 노드의 의존성을 고치기 위한 시도를 합니다.
|
115 |
-
|
116 |
-
|
117 |
-
### 4. 스냅샷 관리 기능
|
118 |
-
* `python cm-cli.py save-snapshot ?[--output <snapshot .json/.yaml>]`: 현재의 snapshot을 저장합니다.
|
119 |
-
* --output 으로 임의의 경로에 .yaml 파일과 format으로 저장할 수 있습니다.
|
120 |
-
* `python cm-cli.py restore-snapshot <snapshot .json/.yaml>`: 지정된 snapshot으로 복구합니다.
|
121 |
-
* snapshot 경로에 파일이 존재하는 경우 해당 snapshot을 로드합니다.
|
122 |
-
* snapshot 경로에 파일이 존재하지 않는 경우 묵시적으로, ComfyUI-Manager/snapshots 에 있다고 가정합니다.
|
123 |
-
* `--pip-non-url`: PyPI 에 등록된 pip 패키지들에 대해서 복구를 수행
|
124 |
-
* `--pip-non-local-url`: web URL에 등록된 pip 패키지들에 대해서 복구를 수행
|
125 |
-
* `--pip-local-url`: local 경로를 지정하고 있는 pip 패키지들에 대해서 복구를 수행
|
126 |
-
|
127 |
-
|
128 |
-
### 5. CLI only mode
|
129 |
-
|
130 |
-
ComfyUI-Manager를 CLI로만 사용할 것인지를 설정할 수 있습니다.
|
131 |
-
|
132 |
-
`cli-only-mode [enable|disable]`
|
133 |
-
|
134 |
-
* security 혹은 policy 의 이유로 GUI 를 통한 ComfyUI-Manager 사용을 제한하고 싶은 경우 이 모드를 사용할 수 있습니다.
|
135 |
-
* CLI only mode를 적용할 경우 ComfyUI-Manager 가 매우 제한된 상태로 로드되어, 내부적으로 제공하는 web API가 비활성화 되며, 메인 메뉴에서도 Manager 버튼이 표시되지 않습니다.
|
136 |
-
|
137 |
-
|
138 |
-
### 6. 의존성 설치
|
139 |
-
|
140 |
-
`restore-dependencies`
|
141 |
-
|
142 |
-
* `ComfyUI/custom_nodes` 하위 경로에 커스텀 노드들이 설치되어 있긴 하지만, 의존성이 설치되지 않은 경우 사용할 수 있습니다.
|
143 |
-
* colab 과 같이 cloud instance를 새로 시작하는 경우 의존성 재설치 및 설치 스크립트가 재실행 되어야 하는 경우 사용합니다.
|
144 |
-
* ComfyUI을 재설치할 경우, custom_nodes 경로만 백업했다가 재설치 할 경우 활용 가능합니다.
|
145 |
-
|
146 |
-
|
147 |
-
### 7. clear
|
148 |
-
|
149 |
-
GUI에서 install, update를 하거나 snapshot 을 restore하는 경우 예약을 통해서 다음번 ComfyUI를 실행할 경우 실행되는 구조입니다. `clear` 는 이런 예약 상태를 clear해서, 아무런 사전 실행이 적용되지 않도록 합니다.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ComfyUI/custom_nodes/manager-core/extension-node-map.json
DELETED
The diff for this file is too large to render.
See raw diff
|
|
ComfyUI/custom_nodes/manager-core/extras.json
DELETED
@@ -1,26 +0,0 @@
|
|
1 |
-
{
|
2 |
-
"favorites": [
|
3 |
-
"comfyui-manager",
|
4 |
-
"comfyui_ipadapter_plus",
|
5 |
-
"comfyui-animatediff-evolved",
|
6 |
-
"comfyui_controlnet_aux",
|
7 |
-
"comfyui-impact-pack",
|
8 |
-
"comfyui-custom-scripts",
|
9 |
-
"comfyui-layerdiffuse",
|
10 |
-
"comfyui-liveportraitkj",
|
11 |
-
"aigodlike-comfyui-translation",
|
12 |
-
"comfyui-reactor-node",
|
13 |
-
"comfyui_instantid",
|
14 |
-
"sd-dynamic-thresholding",
|
15 |
-
"pr-was-node-suite-comfyui-47064894",
|
16 |
-
"comfyui-advancedliveportrait",
|
17 |
-
"comfyui_layerstyle",
|
18 |
-
"efficiency-nodes-comfyui",
|
19 |
-
"comfyui-crystools",
|
20 |
-
"comfyui-advanced-controlnet",
|
21 |
-
"comfyui-videohelpersuite",
|
22 |
-
"comfyui-kjnodes",
|
23 |
-
"comfy-mtb",
|
24 |
-
"comfyui_essentials"
|
25 |
-
]
|
26 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ComfyUI/custom_nodes/manager-core/git_helper.py
DELETED
@@ -1,473 +0,0 @@
|
|
1 |
-
import subprocess
|
2 |
-
import sys
|
3 |
-
import os
|
4 |
-
import traceback
|
5 |
-
|
6 |
-
import git
|
7 |
-
import configparser
|
8 |
-
import json
|
9 |
-
import yaml
|
10 |
-
import requests
|
11 |
-
from tqdm.auto import tqdm
|
12 |
-
from git.remote import RemoteProgress
|
13 |
-
|
14 |
-
|
15 |
-
comfy_path = os.environ.get('COMFYUI_PATH')
|
16 |
-
|
17 |
-
if comfy_path is None:
|
18 |
-
print(f"\n[bold yellow]WARN: The `COMFYUI_PATH` environment variable is not set. Assuming `custom_nodes/ComfyUI-Manager/../../` as the ComfyUI path.[/bold yellow]", file=sys.stderr)
|
19 |
-
comfy_path = os.path.abspath(os.path.join(os.path.dirname(__file__), '..', '..'))
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
def download_url(url, dest_folder, filename=None):
|
24 |
-
# Ensure the destination folder exists
|
25 |
-
if not os.path.exists(dest_folder):
|
26 |
-
os.makedirs(dest_folder)
|
27 |
-
|
28 |
-
# Extract filename from URL if not provided
|
29 |
-
if filename is None:
|
30 |
-
filename = os.path.basename(url)
|
31 |
-
|
32 |
-
# Full path to save the file
|
33 |
-
dest_path = os.path.join(dest_folder, filename)
|
34 |
-
|
35 |
-
# Download the file
|
36 |
-
response = requests.get(url, stream=True)
|
37 |
-
if response.status_code == 200:
|
38 |
-
with open(dest_path, 'wb') as file:
|
39 |
-
for chunk in response.iter_content(chunk_size=1024):
|
40 |
-
if chunk:
|
41 |
-
file.write(chunk)
|
42 |
-
else:
|
43 |
-
print(f"Failed to download file from {url}")
|
44 |
-
|
45 |
-
|
46 |
-
config_path = os.path.join(os.path.dirname(__file__), "config.ini")
|
47 |
-
nodelist_path = os.path.join(os.path.dirname(__file__), "custom-node-list.json")
|
48 |
-
working_directory = os.getcwd()
|
49 |
-
|
50 |
-
if os.path.basename(working_directory) != 'custom_nodes':
|
51 |
-
print(f"WARN: This script should be executed in custom_nodes dir")
|
52 |
-
print(f"DBG: INFO {working_directory}")
|
53 |
-
print(f"DBG: INFO {sys.argv}")
|
54 |
-
# exit(-1)
|
55 |
-
|
56 |
-
|
57 |
-
class GitProgress(RemoteProgress):
|
58 |
-
def __init__(self):
|
59 |
-
super().__init__()
|
60 |
-
self.pbar = tqdm(ascii=True)
|
61 |
-
|
62 |
-
def update(self, op_code, cur_count, max_count=None, message=''):
|
63 |
-
self.pbar.total = max_count
|
64 |
-
self.pbar.n = cur_count
|
65 |
-
self.pbar.pos = 0
|
66 |
-
self.pbar.refresh()
|
67 |
-
|
68 |
-
|
69 |
-
def gitclone(custom_nodes_path, url, target_hash=None, repo_path=None):
|
70 |
-
repo_name = os.path.splitext(os.path.basename(url))[0]
|
71 |
-
|
72 |
-
if repo_path is None:
|
73 |
-
repo_path = os.path.join(custom_nodes_path, repo_name)
|
74 |
-
|
75 |
-
# Clone the repository from the remote URL
|
76 |
-
repo = git.Repo.clone_from(url, repo_path, recursive=True, progress=GitProgress())
|
77 |
-
|
78 |
-
if target_hash is not None:
|
79 |
-
print(f"CHECKOUT: {repo_name} [{target_hash}]")
|
80 |
-
repo.git.checkout(target_hash)
|
81 |
-
|
82 |
-
repo.git.clear_cache()
|
83 |
-
repo.close()
|
84 |
-
|
85 |
-
|
86 |
-
def gitcheck(path, do_fetch=False):
|
87 |
-
try:
|
88 |
-
# Fetch the latest commits from the remote repository
|
89 |
-
repo = git.Repo(path)
|
90 |
-
|
91 |
-
if repo.head.is_detached:
|
92 |
-
print("CUSTOM NODE CHECK: True")
|
93 |
-
return
|
94 |
-
|
95 |
-
current_branch = repo.active_branch
|
96 |
-
branch_name = current_branch.name
|
97 |
-
|
98 |
-
remote_name = current_branch.tracking_branch().remote_name
|
99 |
-
remote = repo.remote(name=remote_name)
|
100 |
-
|
101 |
-
if do_fetch:
|
102 |
-
remote.fetch()
|
103 |
-
|
104 |
-
# Get the current commit hash and the commit hash of the remote branch
|
105 |
-
commit_hash = repo.head.commit.hexsha
|
106 |
-
|
107 |
-
if f'{remote_name}/{branch_name}' in repo.refs:
|
108 |
-
remote_commit_hash = repo.refs[f'{remote_name}/{branch_name}'].object.hexsha
|
109 |
-
else:
|
110 |
-
print("CUSTOM NODE CHECK: True") # non default branch is treated as updatable
|
111 |
-
return
|
112 |
-
|
113 |
-
# Compare the commit hashes to determine if the local repository is behind the remote repository
|
114 |
-
if commit_hash != remote_commit_hash:
|
115 |
-
# Get the commit dates
|
116 |
-
commit_date = repo.head.commit.committed_datetime
|
117 |
-
remote_commit_date = repo.refs[f'{remote_name}/{branch_name}'].object.committed_datetime
|
118 |
-
|
119 |
-
# Compare the commit dates to determine if the local repository is behind the remote repository
|
120 |
-
if commit_date < remote_commit_date:
|
121 |
-
print("CUSTOM NODE CHECK: True")
|
122 |
-
else:
|
123 |
-
print("CUSTOM NODE CHECK: False")
|
124 |
-
except Exception as e:
|
125 |
-
print(e)
|
126 |
-
print("CUSTOM NODE CHECK: Error")
|
127 |
-
|
128 |
-
|
129 |
-
def switch_to_default_branch(repo):
|
130 |
-
default_branch = repo.git.symbolic_ref('refs/remotes/origin/HEAD').replace('refs/remotes/origin/', '')
|
131 |
-
repo.git.checkout(default_branch)
|
132 |
-
|
133 |
-
|
134 |
-
def gitpull(path):
|
135 |
-
# Check if the path is a git repository
|
136 |
-
if not os.path.exists(os.path.join(path, '.git')):
|
137 |
-
raise ValueError('Not a git repository')
|
138 |
-
|
139 |
-
# Pull the latest changes from the remote repository
|
140 |
-
repo = git.Repo(path)
|
141 |
-
if repo.is_dirty():
|
142 |
-
print(f"STASH: '{path}' is dirty.")
|
143 |
-
repo.git.stash()
|
144 |
-
|
145 |
-
commit_hash = repo.head.commit.hexsha
|
146 |
-
try:
|
147 |
-
if repo.head.is_detached:
|
148 |
-
switch_to_default_branch(repo)
|
149 |
-
|
150 |
-
current_branch = repo.active_branch
|
151 |
-
branch_name = current_branch.name
|
152 |
-
|
153 |
-
remote_name = current_branch.tracking_branch().remote_name
|
154 |
-
remote = repo.remote(name=remote_name)
|
155 |
-
|
156 |
-
if f'{remote_name}/{branch_name}' not in repo.refs:
|
157 |
-
switch_to_default_branch(repo)
|
158 |
-
current_branch = repo.active_branch
|
159 |
-
branch_name = current_branch.name
|
160 |
-
|
161 |
-
remote.fetch()
|
162 |
-
remote_commit_hash = repo.refs[f'{remote_name}/{branch_name}'].object.hexsha
|
163 |
-
|
164 |
-
if commit_hash == remote_commit_hash:
|
165 |
-
print("CUSTOM NODE PULL: None") # there is no update
|
166 |
-
repo.close()
|
167 |
-
return
|
168 |
-
|
169 |
-
remote.pull()
|
170 |
-
|
171 |
-
repo.git.submodule('update', '--init', '--recursive')
|
172 |
-
new_commit_hash = repo.head.commit.hexsha
|
173 |
-
|
174 |
-
if commit_hash != new_commit_hash:
|
175 |
-
print("CUSTOM NODE PULL: Success") # update success
|
176 |
-
else:
|
177 |
-
print("CUSTOM NODE PULL: Fail") # update fail
|
178 |
-
except Exception as e:
|
179 |
-
print(e)
|
180 |
-
print("CUSTOM NODE PULL: Fail") # unknown git error
|
181 |
-
|
182 |
-
repo.close()
|
183 |
-
|
184 |
-
|
185 |
-
def checkout_comfyui_hash(target_hash):
|
186 |
-
repo = git.Repo(comfy_path)
|
187 |
-
commit_hash = repo.head.commit.hexsha
|
188 |
-
|
189 |
-
if commit_hash != target_hash:
|
190 |
-
try:
|
191 |
-
print(f"CHECKOUT: ComfyUI [{target_hash}]")
|
192 |
-
repo.git.checkout(target_hash)
|
193 |
-
except git.GitCommandError as e:
|
194 |
-
print(f"Error checking out the ComfyUI: {str(e)}")
|
195 |
-
|
196 |
-
|
197 |
-
def checkout_custom_node_hash(git_custom_node_infos):
|
198 |
-
repo_name_to_url = {}
|
199 |
-
|
200 |
-
for url in git_custom_node_infos.keys():
|
201 |
-
repo_name = url.split('/')[-1]
|
202 |
-
|
203 |
-
if repo_name.endswith('.git'):
|
204 |
-
repo_name = repo_name[:-4]
|
205 |
-
|
206 |
-
repo_name_to_url[repo_name] = url
|
207 |
-
|
208 |
-
for path in os.listdir(working_directory):
|
209 |
-
if '@' in path or path.endswith("ComfyUI-Manager"):
|
210 |
-
continue
|
211 |
-
|
212 |
-
fullpath = os.path.join(working_directory, path)
|
213 |
-
|
214 |
-
if os.path.isdir(fullpath):
|
215 |
-
is_disabled = path.endswith(".disabled")
|
216 |
-
|
217 |
-
try:
|
218 |
-
git_dir = os.path.join(fullpath, '.git')
|
219 |
-
if not os.path.exists(git_dir):
|
220 |
-
continue
|
221 |
-
|
222 |
-
need_checkout = False
|
223 |
-
repo_name = os.path.basename(fullpath)
|
224 |
-
|
225 |
-
if repo_name.endswith('.disabled'):
|
226 |
-
repo_name = repo_name[:-9]
|
227 |
-
|
228 |
-
if repo_name not in repo_name_to_url:
|
229 |
-
if not is_disabled:
|
230 |
-
# should be disabled
|
231 |
-
print(f"DISABLE: {repo_name}")
|
232 |
-
new_path = fullpath + ".disabled"
|
233 |
-
os.rename(fullpath, new_path)
|
234 |
-
need_checkout = False
|
235 |
-
else:
|
236 |
-
item = git_custom_node_infos[repo_name_to_url[repo_name]]
|
237 |
-
if item['disabled'] and is_disabled:
|
238 |
-
pass
|
239 |
-
elif item['disabled'] and not is_disabled:
|
240 |
-
# disable
|
241 |
-
print(f"DISABLE: {repo_name}")
|
242 |
-
new_path = fullpath + ".disabled"
|
243 |
-
os.rename(fullpath, new_path)
|
244 |
-
|
245 |
-
elif not item['disabled'] and is_disabled:
|
246 |
-
# enable
|
247 |
-
print(f"ENABLE: {repo_name}")
|
248 |
-
new_path = fullpath[:-9]
|
249 |
-
os.rename(fullpath, new_path)
|
250 |
-
fullpath = new_path
|
251 |
-
need_checkout = True
|
252 |
-
else:
|
253 |
-
need_checkout = True
|
254 |
-
|
255 |
-
if need_checkout:
|
256 |
-
repo = git.Repo(fullpath)
|
257 |
-
commit_hash = repo.head.commit.hexsha
|
258 |
-
|
259 |
-
if commit_hash != item['hash']:
|
260 |
-
print(f"CHECKOUT: {repo_name} [{item['hash']}]")
|
261 |
-
repo.git.checkout(item['hash'])
|
262 |
-
|
263 |
-
except Exception:
|
264 |
-
print(f"Failed to restore snapshots for the custom node '{path}'")
|
265 |
-
|
266 |
-
# clone missing
|
267 |
-
for k, v in git_custom_node_infos.items():
|
268 |
-
if 'ComfyUI-Manager' in k:
|
269 |
-
continue
|
270 |
-
|
271 |
-
if not v['disabled']:
|
272 |
-
repo_name = k.split('/')[-1]
|
273 |
-
if repo_name.endswith('.git'):
|
274 |
-
repo_name = repo_name[:-4]
|
275 |
-
|
276 |
-
path = os.path.join(working_directory, repo_name)
|
277 |
-
if not os.path.exists(path):
|
278 |
-
print(f"CLONE: {path}")
|
279 |
-
gitclone(working_directory, k, target_hash=v['hash'])
|
280 |
-
|
281 |
-
|
282 |
-
def invalidate_custom_node_file(file_custom_node_infos):
|
283 |
-
global nodelist_path
|
284 |
-
|
285 |
-
enabled_set = set()
|
286 |
-
for item in file_custom_node_infos:
|
287 |
-
if not item['disabled']:
|
288 |
-
enabled_set.add(item['filename'])
|
289 |
-
|
290 |
-
for path in os.listdir(working_directory):
|
291 |
-
fullpath = os.path.join(working_directory, path)
|
292 |
-
|
293 |
-
if not os.path.isdir(fullpath) and fullpath.endswith('.py'):
|
294 |
-
if path not in enabled_set:
|
295 |
-
print(f"DISABLE: {path}")
|
296 |
-
new_path = fullpath+'.disabled'
|
297 |
-
os.rename(fullpath, new_path)
|
298 |
-
|
299 |
-
elif not os.path.isdir(fullpath) and fullpath.endswith('.py.disabled'):
|
300 |
-
path = path[:-9]
|
301 |
-
if path in enabled_set:
|
302 |
-
print(f"ENABLE: {path}")
|
303 |
-
new_path = fullpath[:-9]
|
304 |
-
os.rename(fullpath, new_path)
|
305 |
-
|
306 |
-
# download missing: just support for 'copy' style
|
307 |
-
py_to_url = {}
|
308 |
-
|
309 |
-
with open(nodelist_path, 'r', encoding="UTF-8") as json_file:
|
310 |
-
info = json.load(json_file)
|
311 |
-
for item in info['custom_nodes']:
|
312 |
-
if item['install_type'] == 'copy':
|
313 |
-
for url in item['files']:
|
314 |
-
if url.endswith('.py'):
|
315 |
-
py = url.split('/')[-1]
|
316 |
-
py_to_url[py] = url
|
317 |
-
|
318 |
-
for item in file_custom_node_infos:
|
319 |
-
filename = item['filename']
|
320 |
-
if not item['disabled']:
|
321 |
-
target_path = os.path.join(working_directory, filename)
|
322 |
-
|
323 |
-
if not os.path.exists(target_path) and filename in py_to_url:
|
324 |
-
url = py_to_url[filename]
|
325 |
-
print(f"DOWNLOAD: {filename}")
|
326 |
-
download_url(url, working_directory)
|
327 |
-
|
328 |
-
|
329 |
-
def apply_snapshot(target):
|
330 |
-
try:
|
331 |
-
# todo: should be if target is not in snapshots dir
|
332 |
-
path = os.path.join(os.path.dirname(__file__), 'snapshots', f"{target}")
|
333 |
-
if os.path.exists(path):
|
334 |
-
if not target.endswith('.json') and not target.endswith('.yaml'):
|
335 |
-
print(f"Snapshot file not found: `{path}`")
|
336 |
-
print("APPLY SNAPSHOT: False")
|
337 |
-
return None
|
338 |
-
|
339 |
-
with open(path, 'r', encoding="UTF-8") as snapshot_file:
|
340 |
-
if target.endswith('.json'):
|
341 |
-
info = json.load(snapshot_file)
|
342 |
-
elif target.endswith('.yaml'):
|
343 |
-
info = yaml.load(snapshot_file, Loader=yaml.SafeLoader)
|
344 |
-
info = info['custom_nodes']
|
345 |
-
else:
|
346 |
-
# impossible case
|
347 |
-
print("APPLY SNAPSHOT: False")
|
348 |
-
return None
|
349 |
-
|
350 |
-
comfyui_hash = info['comfyui']
|
351 |
-
git_custom_node_infos = info['git_custom_nodes']
|
352 |
-
file_custom_node_infos = info['file_custom_nodes']
|
353 |
-
|
354 |
-
checkout_comfyui_hash(comfyui_hash)
|
355 |
-
checkout_custom_node_hash(git_custom_node_infos)
|
356 |
-
invalidate_custom_node_file(file_custom_node_infos)
|
357 |
-
|
358 |
-
print("APPLY SNAPSHOT: True")
|
359 |
-
if 'pips' in info:
|
360 |
-
return info['pips']
|
361 |
-
else:
|
362 |
-
return None
|
363 |
-
|
364 |
-
print(f"Snapshot file not found: `{path}`")
|
365 |
-
print("APPLY SNAPSHOT: False")
|
366 |
-
|
367 |
-
return None
|
368 |
-
except Exception as e:
|
369 |
-
print(e)
|
370 |
-
traceback.print_exc()
|
371 |
-
print("APPLY SNAPSHOT: False")
|
372 |
-
|
373 |
-
return None
|
374 |
-
|
375 |
-
|
376 |
-
def restore_pip_snapshot(pips, options):
|
377 |
-
non_url = []
|
378 |
-
local_url = []
|
379 |
-
non_local_url = []
|
380 |
-
for k, v in pips.items():
|
381 |
-
if v == "":
|
382 |
-
non_url.append(k)
|
383 |
-
else:
|
384 |
-
if v.startswith('file:'):
|
385 |
-
local_url.append(v)
|
386 |
-
else:
|
387 |
-
non_local_url.append(v)
|
388 |
-
|
389 |
-
failed = []
|
390 |
-
if '--pip-non-url' in options:
|
391 |
-
# try all at once
|
392 |
-
res = 1
|
393 |
-
try:
|
394 |
-
res = subprocess.check_call([sys.executable, '-m', 'pip', 'install'] + non_url)
|
395 |
-
except:
|
396 |
-
pass
|
397 |
-
|
398 |
-
# fallback
|
399 |
-
if res != 0:
|
400 |
-
for x in non_url:
|
401 |
-
res = 1
|
402 |
-
try:
|
403 |
-
res = subprocess.check_call([sys.executable, '-m', 'pip', 'install', x])
|
404 |
-
except:
|
405 |
-
pass
|
406 |
-
|
407 |
-
if res != 0:
|
408 |
-
failed.append(x)
|
409 |
-
|
410 |
-
if '--pip-non-local-url' in options:
|
411 |
-
for x in non_local_url:
|
412 |
-
res = 1
|
413 |
-
try:
|
414 |
-
res = subprocess.check_call([sys.executable, '-m', 'pip', 'install', x])
|
415 |
-
except:
|
416 |
-
pass
|
417 |
-
|
418 |
-
if res != 0:
|
419 |
-
failed.append(x)
|
420 |
-
|
421 |
-
if '--pip-local-url' in options:
|
422 |
-
for x in local_url:
|
423 |
-
res = 1
|
424 |
-
try:
|
425 |
-
res = subprocess.check_call([sys.executable, '-m', 'pip', 'install', x])
|
426 |
-
except:
|
427 |
-
pass
|
428 |
-
|
429 |
-
if res != 0:
|
430 |
-
failed.append(x)
|
431 |
-
|
432 |
-
print(f"Installation failed for pip packages: {failed}")
|
433 |
-
|
434 |
-
|
435 |
-
def setup_environment():
|
436 |
-
config = configparser.ConfigParser()
|
437 |
-
config.read(config_path)
|
438 |
-
if 'default' in config and 'git_exe' in config['default'] and config['default']['git_exe'] != '':
|
439 |
-
git.Git().update_environment(GIT_PYTHON_GIT_EXECUTABLE=config['default']['git_exe'])
|
440 |
-
|
441 |
-
|
442 |
-
setup_environment()
|
443 |
-
|
444 |
-
|
445 |
-
try:
|
446 |
-
if sys.argv[1] == "--clone":
|
447 |
-
repo_path = None
|
448 |
-
if len(sys.argv) > 4:
|
449 |
-
repo_path = sys.argv[4]
|
450 |
-
|
451 |
-
gitclone(sys.argv[2], sys.argv[3], repo_path=repo_path)
|
452 |
-
elif sys.argv[1] == "--check":
|
453 |
-
gitcheck(sys.argv[2], False)
|
454 |
-
elif sys.argv[1] == "--fetch":
|
455 |
-
gitcheck(sys.argv[2], True)
|
456 |
-
elif sys.argv[1] == "--pull":
|
457 |
-
gitpull(sys.argv[2])
|
458 |
-
elif sys.argv[1] == "--apply-snapshot":
|
459 |
-
options = set()
|
460 |
-
for x in sys.argv:
|
461 |
-
if x in ['--pip-non-url', '--pip-local-url', '--pip-non-local-url']:
|
462 |
-
options.add(x)
|
463 |
-
|
464 |
-
pips = apply_snapshot(sys.argv[2])
|
465 |
-
|
466 |
-
if pips and len(options) > 0:
|
467 |
-
restore_pip_snapshot(pips, options)
|
468 |
-
sys.exit(0)
|
469 |
-
except Exception as e:
|
470 |
-
print(e)
|
471 |
-
sys.exit(-1)
|
472 |
-
|
473 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ComfyUI/custom_nodes/manager-core/github-stats.json
DELETED
The diff for this file is too large to render.
See raw diff
|
|
ComfyUI/custom_nodes/manager-core/glob/__init__.py
DELETED
File without changes
|
ComfyUI/custom_nodes/manager-core/glob/cm_global.py
DELETED
@@ -1,112 +0,0 @@
|
|
1 |
-
import traceback
|
2 |
-
|
3 |
-
#
|
4 |
-
# Global Var
|
5 |
-
#
|
6 |
-
# Usage:
|
7 |
-
# import cm_global
|
8 |
-
# cm_global.variables['comfyui.revision'] = 1832
|
9 |
-
# print(f"log mode: {cm_global.variables['logger.enabled']}")
|
10 |
-
#
|
11 |
-
variables = {}
|
12 |
-
|
13 |
-
|
14 |
-
#
|
15 |
-
# Global API
|
16 |
-
#
|
17 |
-
# Usage:
|
18 |
-
# [register API]
|
19 |
-
# import cm_global
|
20 |
-
#
|
21 |
-
# def api_hello(msg):
|
22 |
-
# print(f"hello: {msg}")
|
23 |
-
# return msg
|
24 |
-
#
|
25 |
-
# cm_global.register_api('hello', api_hello)
|
26 |
-
#
|
27 |
-
# [use API]
|
28 |
-
# import cm_global
|
29 |
-
#
|
30 |
-
# test = cm_global.try_call(api='hello', msg='an example')
|
31 |
-
# print(f"'{test}' is returned")
|
32 |
-
#
|
33 |
-
|
34 |
-
APIs = {}
|
35 |
-
|
36 |
-
|
37 |
-
def register_api(k, f):
|
38 |
-
global APIs
|
39 |
-
APIs[k] = f
|
40 |
-
|
41 |
-
|
42 |
-
def try_call(**kwargs):
|
43 |
-
if 'api' in kwargs:
|
44 |
-
api_name = kwargs['api']
|
45 |
-
try:
|
46 |
-
api = APIs.get(api_name)
|
47 |
-
if api is not None:
|
48 |
-
del kwargs['api']
|
49 |
-
return api(**kwargs)
|
50 |
-
else:
|
51 |
-
print(f"WARN: The '{kwargs['api']}' API has not been registered.")
|
52 |
-
except Exception as e:
|
53 |
-
print(f"ERROR: An exception occurred while calling the '{api_name}' API.")
|
54 |
-
raise e
|
55 |
-
else:
|
56 |
-
return None
|
57 |
-
|
58 |
-
|
59 |
-
#
|
60 |
-
# Extension Info
|
61 |
-
#
|
62 |
-
# Usage:
|
63 |
-
# import cm_global
|
64 |
-
#
|
65 |
-
# cm_global.extension_infos['my_extension'] = {'version': [0, 1], 'name': 'me', 'description': 'example extension', }
|
66 |
-
#
|
67 |
-
extension_infos = {}
|
68 |
-
|
69 |
-
on_extension_registered_handlers = {}
|
70 |
-
|
71 |
-
|
72 |
-
def register_extension(extension_name, v):
|
73 |
-
global extension_infos
|
74 |
-
global on_extension_registered_handlers
|
75 |
-
extension_infos[extension_name] = v
|
76 |
-
|
77 |
-
if extension_name in on_extension_registered_handlers:
|
78 |
-
for k, f in on_extension_registered_handlers[extension_name]:
|
79 |
-
try:
|
80 |
-
f(extension_name, v)
|
81 |
-
except Exception:
|
82 |
-
print(f"[ERROR] '{k}' on_extension_registered_handlers")
|
83 |
-
traceback.print_exc()
|
84 |
-
|
85 |
-
del on_extension_registered_handlers[extension_name]
|
86 |
-
|
87 |
-
|
88 |
-
def add_on_extension_registered(k, extension_name, f):
|
89 |
-
global on_extension_registered_handlers
|
90 |
-
if extension_name in extension_infos:
|
91 |
-
try:
|
92 |
-
v = extension_infos[extension_name]
|
93 |
-
f(extension_name, v)
|
94 |
-
except Exception:
|
95 |
-
print(f"[ERROR] '{k}' on_extension_registered_handler")
|
96 |
-
traceback.print_exc()
|
97 |
-
else:
|
98 |
-
if extension_name not in on_extension_registered_handlers:
|
99 |
-
on_extension_registered_handlers[extension_name] = []
|
100 |
-
|
101 |
-
on_extension_registered_handlers[extension_name].append((k, f))
|
102 |
-
|
103 |
-
|
104 |
-
def add_on_revision_detected(k, f):
|
105 |
-
if 'comfyui.revision' in variables:
|
106 |
-
try:
|
107 |
-
f(variables['comfyui.revision'])
|
108 |
-
except Exception:
|
109 |
-
print(f"[ERROR] '{k}' on_revision_detected_handler")
|
110 |
-
traceback.print_exc()
|
111 |
-
else:
|
112 |
-
variables['cm.on_revision_detected_handler'].append((k, f))
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ComfyUI/custom_nodes/manager-core/glob/cnr_utils.py
DELETED
@@ -1,101 +0,0 @@
|
|
1 |
-
from manager_util import *
|
2 |
-
import zipfile
|
3 |
-
import requests
|
4 |
-
from dataclasses import dataclass
|
5 |
-
from typing import List
|
6 |
-
|
7 |
-
base_url = "https://api.comfy.org"
|
8 |
-
|
9 |
-
|
10 |
-
async def get_cnr_data(page=1, limit=1000, cache_mode=True):
|
11 |
-
try:
|
12 |
-
uri = f'{base_url}/nodes?page={page}&limit={limit}'
|
13 |
-
json_obj = await get_data_with_cache(uri, cache_mode=cache_mode)
|
14 |
-
|
15 |
-
for v in json_obj['nodes']:
|
16 |
-
if 'latest_version' not in v:
|
17 |
-
v['latest_version'] = dict(version='nightly')
|
18 |
-
|
19 |
-
return json_obj['nodes']
|
20 |
-
except:
|
21 |
-
res = {}
|
22 |
-
print(f"Cannot connect to comfyregistry.")
|
23 |
-
|
24 |
-
return res
|
25 |
-
|
26 |
-
|
27 |
-
@dataclass
|
28 |
-
class NodeVersion:
|
29 |
-
changelog: str
|
30 |
-
dependencies: List[str]
|
31 |
-
deprecated: bool
|
32 |
-
id: str
|
33 |
-
version: str
|
34 |
-
download_url: str
|
35 |
-
|
36 |
-
|
37 |
-
def map_node_version(api_node_version):
|
38 |
-
"""
|
39 |
-
Maps node version data from API response to NodeVersion dataclass.
|
40 |
-
|
41 |
-
Args:
|
42 |
-
api_data (dict): The 'node_version' part of the API response.
|
43 |
-
|
44 |
-
Returns:
|
45 |
-
NodeVersion: An instance of NodeVersion dataclass populated with data from the API.
|
46 |
-
"""
|
47 |
-
return NodeVersion(
|
48 |
-
changelog=api_node_version.get(
|
49 |
-
"changelog", ""
|
50 |
-
), # Provide a default value if 'changelog' is missing
|
51 |
-
dependencies=api_node_version.get(
|
52 |
-
"dependencies", []
|
53 |
-
), # Provide a default empty list if 'dependencies' is missing
|
54 |
-
deprecated=api_node_version.get(
|
55 |
-
"deprecated", False
|
56 |
-
), # Assume False if 'deprecated' is not specified
|
57 |
-
id=api_node_version[
|
58 |
-
"id"
|
59 |
-
], # 'id' should be mandatory; raise KeyError if missing
|
60 |
-
version=api_node_version[
|
61 |
-
"version"
|
62 |
-
], # 'version' should be mandatory; raise KeyError if missing
|
63 |
-
download_url=api_node_version.get(
|
64 |
-
"downloadUrl", ""
|
65 |
-
), # Provide a default value if 'downloadUrl' is missing
|
66 |
-
)
|
67 |
-
|
68 |
-
|
69 |
-
def install_node(node_id, version=None):
|
70 |
-
"""
|
71 |
-
Retrieves the node version for installation.
|
72 |
-
|
73 |
-
Args:
|
74 |
-
node_id (str): The unique identifier of the node.
|
75 |
-
version (str, optional): Specific version of the node to retrieve. If omitted, the latest version is returned.
|
76 |
-
|
77 |
-
Returns:
|
78 |
-
NodeVersion: Node version data or error message.
|
79 |
-
"""
|
80 |
-
if version is None:
|
81 |
-
url = f"{base_url}/nodes/{node_id}/install"
|
82 |
-
else:
|
83 |
-
url = f"{base_url}/nodes/{node_id}/install?version={version}"
|
84 |
-
|
85 |
-
response = requests.get(url)
|
86 |
-
if response.status_code == 200:
|
87 |
-
# Convert the API response to a NodeVersion object
|
88 |
-
return map_node_version(response.json())
|
89 |
-
else:
|
90 |
-
return None
|
91 |
-
|
92 |
-
|
93 |
-
def all_versions_of_node(node_id):
|
94 |
-
url = f"https://api.comfy.org/nodes/{node_id}/versions"
|
95 |
-
|
96 |
-
response = requests.get(url)
|
97 |
-
if response.status_code == 200:
|
98 |
-
return response.json()
|
99 |
-
else:
|
100 |
-
return None
|
101 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ComfyUI/custom_nodes/manager-core/glob/manager_core.py
DELETED
The diff for this file is too large to render.
See raw diff
|
|
ComfyUI/custom_nodes/manager-core/glob/manager_downloader.py
DELETED
@@ -1,70 +0,0 @@
|
|
1 |
-
import os
|
2 |
-
from urllib.parse import urlparse
|
3 |
-
|
4 |
-
aria2 = os.getenv('COMFYUI_MANAGER_ARIA2_SERVER')
|
5 |
-
HF_ENDPOINT = os.getenv('HF_ENDPOINT')
|
6 |
-
|
7 |
-
if aria2 is not None:
|
8 |
-
secret = os.getenv('COMFYUI_MANAGER_ARIA2_SECRET')
|
9 |
-
url = urlparse(aria2)
|
10 |
-
port = url.port
|
11 |
-
host = url.scheme + '://' + url.hostname
|
12 |
-
import aria2p
|
13 |
-
|
14 |
-
aria2 = aria2p.API(aria2p.Client(host=host, port=port, secret=secret))
|
15 |
-
|
16 |
-
|
17 |
-
def download_url(model_url: str, model_dir: str, filename: str):
|
18 |
-
if aria2:
|
19 |
-
return aria2_download_url(model_url, model_dir, filename)
|
20 |
-
else:
|
21 |
-
from torchvision.datasets.utils import download_url as torchvision_download_url
|
22 |
-
|
23 |
-
return torchvision_download_url(model_url, model_dir, filename)
|
24 |
-
|
25 |
-
|
26 |
-
def aria2_find_task(dir: str, filename: str):
|
27 |
-
target = os.path.join(dir, filename)
|
28 |
-
|
29 |
-
downloads = aria2.get_downloads()
|
30 |
-
|
31 |
-
for download in downloads:
|
32 |
-
for file in download.files:
|
33 |
-
if file.is_metadata:
|
34 |
-
continue
|
35 |
-
if str(file.path) == target:
|
36 |
-
return download
|
37 |
-
|
38 |
-
|
39 |
-
def aria2_download_url(model_url: str, model_dir: str, filename: str):
|
40 |
-
import manager_core as core
|
41 |
-
import tqdm
|
42 |
-
import time
|
43 |
-
|
44 |
-
if model_dir.startswith(core.comfy_path):
|
45 |
-
model_dir = model_dir[len(core.comfy_path) :]
|
46 |
-
|
47 |
-
if HF_ENDPOINT:
|
48 |
-
model_url = model_url.replace('https://huggingface.co', HF_ENDPOINT)
|
49 |
-
|
50 |
-
download_dir = model_dir if model_dir.startswith('/') else os.path.join('/models', model_dir)
|
51 |
-
|
52 |
-
download = aria2_find_task(download_dir, filename)
|
53 |
-
if download is None:
|
54 |
-
options = {'dir': download_dir, 'out': filename}
|
55 |
-
download = aria2.add(model_url, options)[0]
|
56 |
-
|
57 |
-
if download.is_active:
|
58 |
-
with tqdm.tqdm(
|
59 |
-
total=download.total_length,
|
60 |
-
bar_format='{l_bar}{bar}{r_bar}',
|
61 |
-
desc=filename,
|
62 |
-
unit='B',
|
63 |
-
unit_scale=True,
|
64 |
-
) as progress_bar:
|
65 |
-
while download.is_active:
|
66 |
-
if progress_bar.total == 0 and download.total_length != 0:
|
67 |
-
progress_bar.reset(download.total_length)
|
68 |
-
progress_bar.update(download.completed_length - progress_bar.n)
|
69 |
-
time.sleep(1)
|
70 |
-
download.update()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ComfyUI/custom_nodes/manager-core/glob/manager_server.py
DELETED
@@ -1,1164 +0,0 @@
|
|
1 |
-
import traceback
|
2 |
-
|
3 |
-
import folder_paths
|
4 |
-
import locale
|
5 |
-
import subprocess # don't remove this
|
6 |
-
import concurrent
|
7 |
-
import nodes
|
8 |
-
import os
|
9 |
-
import sys
|
10 |
-
import threading
|
11 |
-
import re
|
12 |
-
import shutil
|
13 |
-
import git
|
14 |
-
|
15 |
-
from server import PromptServer
|
16 |
-
|
17 |
-
# NOTE: When running from `comfy-cli`, since `prestartup_script.py` isn't pre-imported, it needs to be guaranteed here.
|
18 |
-
sys.path.append(os.path.join(os.path.dirname(__file__)))
|
19 |
-
|
20 |
-
import manager_core as core
|
21 |
-
import manager_util
|
22 |
-
import cm_global
|
23 |
-
|
24 |
-
print(f"### Loading: manager-core ({core.version_str})")
|
25 |
-
|
26 |
-
comfy_ui_hash = "-"
|
27 |
-
comfyui_tag = None
|
28 |
-
|
29 |
-
SECURITY_MESSAGE_MIDDLE_OR_BELOW = f"ERROR: To use this action, a security_level of `middle or below` is required. Please contact the administrator.\nReference: https://github.com/ltdrdata/ComfyUI-Manager#security-policy"
|
30 |
-
SECURITY_MESSAGE_NORMAL_MINUS = f"ERROR: To use this feature, you must either set '--listen' to a local IP and set the security level to 'normal-' or lower, or set the security level to 'middle' or 'weak'. Please contact the administrator.\nReference: https://github.com/ltdrdata/ComfyUI-Manager#security-policy"
|
31 |
-
SECURITY_MESSAGE_GENERAL = f"ERROR: This installation is not allowed in this security_level. Please contact the administrator.\nReference: https://github.com/ltdrdata/ComfyUI-Manager#security-policy"
|
32 |
-
|
33 |
-
routes = PromptServer.instance.routes
|
34 |
-
|
35 |
-
|
36 |
-
def handle_stream(stream, prefix):
|
37 |
-
stream.reconfigure(encoding=locale.getpreferredencoding(), errors='replace')
|
38 |
-
for msg in stream:
|
39 |
-
if prefix == '[!]' and ('it/s]' in msg or 's/it]' in msg) and ('%|' in msg or 'it [' in msg):
|
40 |
-
if msg.startswith('100%'):
|
41 |
-
print('\r' + msg, end="", file=sys.stderr),
|
42 |
-
else:
|
43 |
-
print('\r' + msg[:-1], end="", file=sys.stderr),
|
44 |
-
else:
|
45 |
-
if prefix == '[!]':
|
46 |
-
print(prefix, msg, end="", file=sys.stderr)
|
47 |
-
else:
|
48 |
-
print(prefix, msg, end="")
|
49 |
-
|
50 |
-
|
51 |
-
from comfy.cli_args import args
|
52 |
-
|
53 |
-
|
54 |
-
is_local_mode = args.listen.startswith('127.') or args.listen.startswith('local.')
|
55 |
-
|
56 |
-
|
57 |
-
def is_allowed_security_level(level):
|
58 |
-
if level == 'block':
|
59 |
-
return False
|
60 |
-
elif level == 'high':
|
61 |
-
if is_local_mode:
|
62 |
-
return core.get_config()['security_level'].lower() in ['weak', 'normal-']
|
63 |
-
else:
|
64 |
-
return core.get_config()['security_level'].lower() == 'weak'
|
65 |
-
elif level == 'middle':
|
66 |
-
return core.get_config()['security_level'].lower() in ['weak', 'normal', 'normal-']
|
67 |
-
else:
|
68 |
-
return True
|
69 |
-
|
70 |
-
|
71 |
-
async def get_risky_level(files, pip_packages):
|
72 |
-
json_data1 = await core.get_data_by_mode('local', 'custom-node-list.json')
|
73 |
-
json_data2 = await core.get_data_by_mode('cache', 'custom-node-list.json', channel_url='https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main')
|
74 |
-
|
75 |
-
all_urls = set()
|
76 |
-
for x in json_data1['custom_nodes'] + json_data2['custom_nodes']:
|
77 |
-
all_urls.update(x['files'])
|
78 |
-
|
79 |
-
for x in files:
|
80 |
-
if x not in all_urls:
|
81 |
-
return "high"
|
82 |
-
|
83 |
-
all_pip_packages = set()
|
84 |
-
for x in json_data1['custom_nodes'] + json_data2['custom_nodes']:
|
85 |
-
if "pip" in x:
|
86 |
-
all_pip_packages.update(x['pip'])
|
87 |
-
|
88 |
-
for p in pip_packages:
|
89 |
-
if p not in all_pip_packages:
|
90 |
-
return "block"
|
91 |
-
|
92 |
-
return "middle"
|
93 |
-
|
94 |
-
|
95 |
-
class ManagerFuncsInComfyUI(core.ManagerFuncs):
|
96 |
-
def run_script(self, cmd, cwd='.'):
|
97 |
-
if len(cmd) > 0 and cmd[0].startswith("#"):
|
98 |
-
print(f"[ComfyUI-Manager] Unexpected behavior: `{cmd}`")
|
99 |
-
return 0
|
100 |
-
|
101 |
-
process = subprocess.Popen(cmd, cwd=cwd, stdout=subprocess.PIPE, stderr=subprocess.PIPE, text=True, bufsize=1)
|
102 |
-
|
103 |
-
stdout_thread = threading.Thread(target=handle_stream, args=(process.stdout, ""))
|
104 |
-
stderr_thread = threading.Thread(target=handle_stream, args=(process.stderr, "[!]"))
|
105 |
-
|
106 |
-
stdout_thread.start()
|
107 |
-
stderr_thread.start()
|
108 |
-
|
109 |
-
stdout_thread.join()
|
110 |
-
stderr_thread.join()
|
111 |
-
|
112 |
-
return process.wait()
|
113 |
-
|
114 |
-
|
115 |
-
core.manager_funcs = ManagerFuncsInComfyUI()
|
116 |
-
|
117 |
-
sys.path.append('../..')
|
118 |
-
|
119 |
-
from manager_downloader import download_url
|
120 |
-
|
121 |
-
core.comfy_path = os.path.dirname(folder_paths.__file__)
|
122 |
-
core.js_path = os.path.join(core.comfy_path, "web", "extensions")
|
123 |
-
|
124 |
-
local_db_custom_node_list = os.path.join(core.comfyui_manager_path, "custom-node-list.json")
|
125 |
-
local_db_extension_node_mappings = os.path.join(core.comfyui_manager_path, "extension-node-map.json")
|
126 |
-
|
127 |
-
|
128 |
-
def print_comfyui_version():
|
129 |
-
global comfy_ui_hash
|
130 |
-
global comfyui_tag
|
131 |
-
|
132 |
-
is_detached = False
|
133 |
-
try:
|
134 |
-
repo = git.Repo(os.path.dirname(folder_paths.__file__))
|
135 |
-
core.comfy_ui_revision = len(list(repo.iter_commits('HEAD')))
|
136 |
-
|
137 |
-
comfy_ui_hash = repo.head.commit.hexsha
|
138 |
-
cm_global.variables['comfyui.revision'] = core.comfy_ui_revision
|
139 |
-
|
140 |
-
core.comfy_ui_commit_datetime = repo.head.commit.committed_datetime
|
141 |
-
cm_global.variables['comfyui.commit_datetime'] = core.comfy_ui_commit_datetime
|
142 |
-
|
143 |
-
is_detached = repo.head.is_detached
|
144 |
-
current_branch = repo.active_branch.name
|
145 |
-
|
146 |
-
try:
|
147 |
-
core.comfyui_tag = repo.git.describe('--tags', repo.heads.main.commit.hexsha)
|
148 |
-
if not core.comfyui_tag.startswith("v"):
|
149 |
-
core.comfyui_tag = None
|
150 |
-
except:
|
151 |
-
pass
|
152 |
-
|
153 |
-
try:
|
154 |
-
if core.comfy_ui_commit_datetime.date() < core.comfy_ui_required_commit_datetime.date():
|
155 |
-
print(f"\n\n## [WARN] ComfyUI-Manager: Your ComfyUI version ({core.comfy_ui_revision})[{core.comfy_ui_commit_datetime.date()}] is too old. Please update to the latest version. ##\n\n")
|
156 |
-
except:
|
157 |
-
pass
|
158 |
-
|
159 |
-
# process on_revision_detected -->
|
160 |
-
if 'cm.on_revision_detected_handler' in cm_global.variables:
|
161 |
-
for k, f in cm_global.variables['cm.on_revision_detected_handler']:
|
162 |
-
try:
|
163 |
-
f(core.comfy_ui_revision)
|
164 |
-
except Exception:
|
165 |
-
print(f"[ERROR] '{k}' on_revision_detected_handler")
|
166 |
-
traceback.print_exc()
|
167 |
-
|
168 |
-
del cm_global.variables['cm.on_revision_detected_handler']
|
169 |
-
else:
|
170 |
-
print(f"[ComfyUI-Manager] Some features are restricted due to your ComfyUI being outdated.")
|
171 |
-
# <--
|
172 |
-
|
173 |
-
if current_branch == "master":
|
174 |
-
if core.comfyui_tag:
|
175 |
-
print(f"### ComfyUI Version: {core.comfyui_tag} | Released on '{core.comfy_ui_commit_datetime.date()}'")
|
176 |
-
else:
|
177 |
-
print(f"### ComfyUI Revision: {core.comfy_ui_revision} [{comfy_ui_hash[:8]}] | Released on '{core.comfy_ui_commit_datetime.date()}'")
|
178 |
-
else:
|
179 |
-
if core.comfyui_tag:
|
180 |
-
print(f"### ComfyUI Version: {core.comfyui_tag} on '{current_branch}' | Released on '{core.comfy_ui_commit_datetime.date()}'")
|
181 |
-
else:
|
182 |
-
print(f"### ComfyUI Revision: {core.comfy_ui_revision} on '{current_branch}' [{comfy_ui_hash[:8]}] | Released on '{core.comfy_ui_commit_datetime.date()}'")
|
183 |
-
except:
|
184 |
-
if is_detached:
|
185 |
-
print(f"### ComfyUI Revision: {core.comfy_ui_revision} [{comfy_ui_hash[:8]}] *DETACHED | Released on '{core.comfy_ui_commit_datetime.date()}'")
|
186 |
-
else:
|
187 |
-
print("### ComfyUI Revision: UNKNOWN (The currently installed ComfyUI is not a Git repository)")
|
188 |
-
|
189 |
-
|
190 |
-
print_comfyui_version()
|
191 |
-
core.check_invalid_nodes()
|
192 |
-
|
193 |
-
|
194 |
-
def setup_environment():
|
195 |
-
git_exe = core.get_config()['git_exe']
|
196 |
-
|
197 |
-
if git_exe != '':
|
198 |
-
git.Git().update_environment(GIT_PYTHON_GIT_EXECUTABLE=git_exe)
|
199 |
-
|
200 |
-
|
201 |
-
setup_environment()
|
202 |
-
|
203 |
-
# Expand Server api
|
204 |
-
|
205 |
-
import server
|
206 |
-
from aiohttp import web
|
207 |
-
import aiohttp
|
208 |
-
import json
|
209 |
-
import zipfile
|
210 |
-
import urllib.request
|
211 |
-
|
212 |
-
|
213 |
-
def check_state_of_git_node_pack(node_packs, do_fetch=False, do_update_check=True, do_update=False):
|
214 |
-
if do_fetch:
|
215 |
-
print("Start fetching...", end="")
|
216 |
-
elif do_update:
|
217 |
-
print("Start updating...", end="")
|
218 |
-
elif do_update_check:
|
219 |
-
print("Start update check...", end="")
|
220 |
-
|
221 |
-
def process_custom_node(item):
|
222 |
-
core.check_state_of_git_node_pack_single(item, do_fetch, do_update_check, do_update)
|
223 |
-
|
224 |
-
with concurrent.futures.ThreadPoolExecutor(4) as executor:
|
225 |
-
for k, v in node_packs.items():
|
226 |
-
if v.get('active_version') in ['unknown', 'nightly']:
|
227 |
-
executor.submit(process_custom_node, v)
|
228 |
-
|
229 |
-
if do_fetch:
|
230 |
-
print(f"\x1b[2K\rFetching done.")
|
231 |
-
elif do_update:
|
232 |
-
update_exists = any(item.get('updatable', False) for item in node_packs.values())
|
233 |
-
if update_exists:
|
234 |
-
print(f"\x1b[2K\rUpdate done.")
|
235 |
-
else:
|
236 |
-
print(f"\x1b[2K\rAll extensions are already up-to-date.")
|
237 |
-
elif do_update_check:
|
238 |
-
print(f"\x1b[2K\rUpdate check done.")
|
239 |
-
|
240 |
-
|
241 |
-
def nickname_filter(json_obj):
|
242 |
-
preemptions_map = {}
|
243 |
-
|
244 |
-
for k, x in json_obj.items():
|
245 |
-
if 'preemptions' in x[1]:
|
246 |
-
for y in x[1]['preemptions']:
|
247 |
-
preemptions_map[y] = k
|
248 |
-
elif k.endswith("/ComfyUI"):
|
249 |
-
for y in x[0]:
|
250 |
-
preemptions_map[y] = k
|
251 |
-
|
252 |
-
updates = {}
|
253 |
-
for k, x in json_obj.items():
|
254 |
-
removes = set()
|
255 |
-
for y in x[0]:
|
256 |
-
k2 = preemptions_map.get(y)
|
257 |
-
if k2 is not None and k != k2:
|
258 |
-
removes.add(y)
|
259 |
-
|
260 |
-
if len(removes) > 0:
|
261 |
-
updates[k] = [y for y in x[0] if y not in removes]
|
262 |
-
|
263 |
-
for k, v in updates.items():
|
264 |
-
json_obj[k][0] = v
|
265 |
-
|
266 |
-
return json_obj
|
267 |
-
|
268 |
-
|
269 |
-
@routes.get("/customnode/getmappings")
|
270 |
-
async def fetch_customnode_mappings(request):
|
271 |
-
"""
|
272 |
-
provide unified (node -> node pack) mapping list
|
273 |
-
"""
|
274 |
-
mode = request.rel_url.query["mode"]
|
275 |
-
|
276 |
-
nickname_mode = False
|
277 |
-
if mode == "nickname":
|
278 |
-
mode = "local"
|
279 |
-
nickname_mode = True
|
280 |
-
|
281 |
-
json_obj = await core.get_data_by_mode(mode, 'extension-node-map.json')
|
282 |
-
json_obj = core.map_to_unified_keys(json_obj)
|
283 |
-
|
284 |
-
if nickname_mode:
|
285 |
-
json_obj = nickname_filter(json_obj)
|
286 |
-
|
287 |
-
all_nodes = set()
|
288 |
-
patterns = []
|
289 |
-
for k, x in json_obj.items():
|
290 |
-
all_nodes.update(set(x[0]))
|
291 |
-
|
292 |
-
if 'nodename_pattern' in x[1]:
|
293 |
-
patterns.append((x[1]['nodename_pattern'], x[0]))
|
294 |
-
|
295 |
-
missing_nodes = set(nodes.NODE_CLASS_MAPPINGS.keys()) - all_nodes
|
296 |
-
|
297 |
-
for x in missing_nodes:
|
298 |
-
for pat, item in patterns:
|
299 |
-
if re.match(pat, x):
|
300 |
-
item.append(x)
|
301 |
-
|
302 |
-
return web.json_response(json_obj, content_type='application/json')
|
303 |
-
|
304 |
-
|
305 |
-
@routes.get("/customnode/fetch_updates")
|
306 |
-
async def fetch_updates(request):
|
307 |
-
try:
|
308 |
-
if request.rel_url.query["mode"] == "local":
|
309 |
-
channel = 'local'
|
310 |
-
else:
|
311 |
-
channel = core.get_config()['channel_url']
|
312 |
-
|
313 |
-
await core.unified_manager.reload(request.rel_url.query["mode"])
|
314 |
-
await core.unified_manager.get_custom_nodes(channel, request.rel_url.query["mode"])
|
315 |
-
|
316 |
-
res = core.unified_manager.fetch_or_pull_git_repo(is_pull=False)
|
317 |
-
|
318 |
-
for x in res['failed']:
|
319 |
-
print(f"FETCH FAILED: {x}")
|
320 |
-
|
321 |
-
print("\nDone.")
|
322 |
-
|
323 |
-
if len(res['updated']) > 0:
|
324 |
-
return web.Response(status=201)
|
325 |
-
|
326 |
-
return web.Response(status=200)
|
327 |
-
except:
|
328 |
-
traceback.print_exc()
|
329 |
-
return web.Response(status=400)
|
330 |
-
|
331 |
-
|
332 |
-
@routes.get("/customnode/update_all")
|
333 |
-
async def update_all(request):
|
334 |
-
if not is_allowed_security_level('middle'):
|
335 |
-
print(SECURITY_MESSAGE_MIDDLE_OR_BELOW)
|
336 |
-
return web.Response(status=403)
|
337 |
-
|
338 |
-
try:
|
339 |
-
core.save_snapshot_with_postfix('autosave')
|
340 |
-
|
341 |
-
if request.rel_url.query["mode"] == "local":
|
342 |
-
channel = 'local'
|
343 |
-
else:
|
344 |
-
channel = core.get_config()['channel_url']
|
345 |
-
|
346 |
-
await core.unified_manager.reload(request.rel_url.query["mode"])
|
347 |
-
await core.unified_manager.get_custom_nodes(channel, request.rel_url.query["mode"])
|
348 |
-
|
349 |
-
updated_cnr = []
|
350 |
-
for k, v in core.unified_manager.active_nodes.items():
|
351 |
-
if v[0] != 'nightly':
|
352 |
-
res = core.unified_manager.unified_update(k, v[0])
|
353 |
-
if res.action == 'switch-cnr' and res:
|
354 |
-
updated_cnr.append(k)
|
355 |
-
|
356 |
-
res = core.unified_manager.fetch_or_pull_git_repo(is_pull=True)
|
357 |
-
|
358 |
-
res['updated'] += updated_cnr
|
359 |
-
|
360 |
-
for x in res['failed']:
|
361 |
-
print(f"PULL FAILED: {x}")
|
362 |
-
|
363 |
-
if len(res['updated']) == 0 and len(res['failed']) == 0:
|
364 |
-
status = 200
|
365 |
-
else:
|
366 |
-
status = 201
|
367 |
-
|
368 |
-
print(f"\nDone.")
|
369 |
-
return web.json_response(res, status=status, content_type='application/json')
|
370 |
-
except:
|
371 |
-
traceback.print_exc()
|
372 |
-
return web.Response(status=400)
|
373 |
-
finally:
|
374 |
-
core.clear_pip_cache()
|
375 |
-
|
376 |
-
|
377 |
-
def convert_markdown_to_html(input_text):
|
378 |
-
pattern_a = re.compile(r'\[a/([^]]+)\]\(([^)]+)\)')
|
379 |
-
pattern_w = re.compile(r'\[w/([^]]+)\]')
|
380 |
-
pattern_i = re.compile(r'\[i/([^]]+)\]')
|
381 |
-
pattern_bold = re.compile(r'\*\*([^*]+)\*\*')
|
382 |
-
pattern_white = re.compile(r'%%([^*]+)%%')
|
383 |
-
|
384 |
-
def replace_a(match):
|
385 |
-
return f"<a href='{match.group(2)}' target='blank'>{match.group(1)}</a>"
|
386 |
-
|
387 |
-
def replace_w(match):
|
388 |
-
return f"<p class='cm-warn-note'>{match.group(1)}</p>"
|
389 |
-
|
390 |
-
def replace_i(match):
|
391 |
-
return f"<p class='cm-info-note'>{match.group(1)}</p>"
|
392 |
-
|
393 |
-
def replace_bold(match):
|
394 |
-
return f"<B>{match.group(1)}</B>"
|
395 |
-
|
396 |
-
def replace_white(match):
|
397 |
-
return f"<font color='white'>{match.group(1)}</font>"
|
398 |
-
|
399 |
-
input_text = input_text.replace('\\[', '[').replace('\\]', ']').replace('<', '<').replace('>', '>')
|
400 |
-
|
401 |
-
result_text = re.sub(pattern_a, replace_a, input_text)
|
402 |
-
result_text = re.sub(pattern_w, replace_w, result_text)
|
403 |
-
result_text = re.sub(pattern_i, replace_i, result_text)
|
404 |
-
result_text = re.sub(pattern_bold, replace_bold, result_text)
|
405 |
-
result_text = re.sub(pattern_white, replace_white, result_text)
|
406 |
-
|
407 |
-
return result_text.replace("\n", "<BR>")
|
408 |
-
|
409 |
-
|
410 |
-
def populate_markdown(x):
|
411 |
-
if 'description' in x:
|
412 |
-
x['description'] = convert_markdown_to_html(manager_util.sanitize_tag(x['description']))
|
413 |
-
|
414 |
-
if 'name' in x:
|
415 |
-
x['name'] = manager_util.sanitize_tag(x['name'])
|
416 |
-
|
417 |
-
if 'title' in x:
|
418 |
-
x['title'] = manager_util.sanitize_tag(x['title'])
|
419 |
-
|
420 |
-
|
421 |
-
@routes.get("/customnode/getlist")
|
422 |
-
async def fetch_customnode_list(request):
|
423 |
-
"""
|
424 |
-
provide unified custom node list
|
425 |
-
"""
|
426 |
-
if "skip_update" in request.rel_url.query and request.rel_url.query["skip_update"] == "true":
|
427 |
-
skip_update = True
|
428 |
-
else:
|
429 |
-
skip_update = False
|
430 |
-
|
431 |
-
if request.rel_url.query["mode"] == "local":
|
432 |
-
channel = 'local'
|
433 |
-
else:
|
434 |
-
channel = core.get_config()['channel_url']
|
435 |
-
|
436 |
-
node_packs = await core.get_unified_total_nodes(channel, request.rel_url.query["mode"])
|
437 |
-
json_obj_github = core.get_data_by_mode(request.rel_url.query["mode"], 'github-stats.json', 'default')
|
438 |
-
json_obj_extras = core.get_data_by_mode(request.rel_url.query["mode"], 'extras.json', 'default')
|
439 |
-
|
440 |
-
core.populate_github_stats(node_packs, await json_obj_github)
|
441 |
-
core.populate_favorites(node_packs, await json_obj_extras)
|
442 |
-
|
443 |
-
check_state_of_git_node_pack(node_packs, False, do_update_check=not skip_update)
|
444 |
-
|
445 |
-
for v in node_packs.values():
|
446 |
-
populate_markdown(v)
|
447 |
-
|
448 |
-
if channel != 'local':
|
449 |
-
found = 'custom'
|
450 |
-
|
451 |
-
for name, url in core.get_channel_dict().items():
|
452 |
-
if url == channel:
|
453 |
-
found = name
|
454 |
-
break
|
455 |
-
|
456 |
-
channel = found
|
457 |
-
|
458 |
-
result = dict(channel=channel, node_packs=node_packs)
|
459 |
-
|
460 |
-
return web.json_response(result, content_type='application/json')
|
461 |
-
|
462 |
-
|
463 |
-
@PromptServer.instance.routes.get("/snapshot/getlist")
|
464 |
-
async def get_snapshot_list(request):
|
465 |
-
snapshots_directory = os.path.join(core.comfyui_manager_path, 'snapshots')
|
466 |
-
items = [f[:-5] for f in os.listdir(snapshots_directory) if f.endswith('.json')]
|
467 |
-
items.sort(reverse=True)
|
468 |
-
return web.json_response({'items': items}, content_type='application/json')
|
469 |
-
|
470 |
-
|
471 |
-
@routes.get("/snapshot/remove")
|
472 |
-
async def remove_snapshot(request):
|
473 |
-
if not is_allowed_security_level('middle'):
|
474 |
-
print(SECURITY_MESSAGE_MIDDLE_OR_BELOW)
|
475 |
-
return web.Response(status=403)
|
476 |
-
|
477 |
-
try:
|
478 |
-
target = request.rel_url.query["target"]
|
479 |
-
|
480 |
-
path = os.path.join(core.comfyui_manager_path, 'snapshots', f"{target}.json")
|
481 |
-
if os.path.exists(path):
|
482 |
-
os.remove(path)
|
483 |
-
|
484 |
-
return web.Response(status=200)
|
485 |
-
except:
|
486 |
-
return web.Response(status=400)
|
487 |
-
|
488 |
-
|
489 |
-
@routes.get("/snapshot/restore")
|
490 |
-
async def remove_snapshot(request):
|
491 |
-
if not is_allowed_security_level('middle'):
|
492 |
-
print(SECURITY_MESSAGE_MIDDLE_OR_BELOW)
|
493 |
-
return web.Response(status=403)
|
494 |
-
|
495 |
-
try:
|
496 |
-
target = request.rel_url.query["target"]
|
497 |
-
|
498 |
-
path = os.path.join(core.comfyui_manager_path, 'snapshots', f"{target}.json")
|
499 |
-
if os.path.exists(path):
|
500 |
-
target_path = os.path.join(core.startup_script_path, "restore-snapshot.json")
|
501 |
-
shutil.copy(path, target_path)
|
502 |
-
|
503 |
-
print(f"Snapshot restore scheduled: `{target}`")
|
504 |
-
return web.Response(status=200)
|
505 |
-
|
506 |
-
print(f"Snapshot file not found: `{path}`")
|
507 |
-
return web.Response(status=400)
|
508 |
-
except:
|
509 |
-
return web.Response(status=400)
|
510 |
-
|
511 |
-
|
512 |
-
@routes.get("/snapshot/get_current")
|
513 |
-
async def get_current_snapshot_api(request):
|
514 |
-
try:
|
515 |
-
return web.json_response(core.get_current_snapshot(), content_type='application/json')
|
516 |
-
except:
|
517 |
-
return web.Response(status=400)
|
518 |
-
|
519 |
-
|
520 |
-
@routes.get("/snapshot/save")
|
521 |
-
async def save_snapshot(request):
|
522 |
-
try:
|
523 |
-
core.save_snapshot_with_postfix('snapshot')
|
524 |
-
return web.Response(status=200)
|
525 |
-
except:
|
526 |
-
return web.Response(status=400)
|
527 |
-
|
528 |
-
|
529 |
-
def unzip_install(files):
|
530 |
-
temp_filename = 'manager-temp.zip'
|
531 |
-
for url in files:
|
532 |
-
if url.endswith("/"):
|
533 |
-
url = url[:-1]
|
534 |
-
try:
|
535 |
-
headers = {
|
536 |
-
'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.3'}
|
537 |
-
|
538 |
-
req = urllib.request.Request(url, headers=headers)
|
539 |
-
response = urllib.request.urlopen(req)
|
540 |
-
data = response.read()
|
541 |
-
|
542 |
-
with open(temp_filename, 'wb') as f:
|
543 |
-
f.write(data)
|
544 |
-
|
545 |
-
with zipfile.ZipFile(temp_filename, 'r') as zip_ref:
|
546 |
-
zip_ref.extractall(core.get_default_custom_nodes_path())
|
547 |
-
|
548 |
-
os.remove(temp_filename)
|
549 |
-
except Exception as e:
|
550 |
-
print(f"Install(unzip) error: {url} / {e}", file=sys.stderr)
|
551 |
-
return False
|
552 |
-
|
553 |
-
print("Installation was successful.")
|
554 |
-
return True
|
555 |
-
|
556 |
-
|
557 |
-
def download_url_with_agent(url, save_path):
|
558 |
-
try:
|
559 |
-
headers = {
|
560 |
-
'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.3'}
|
561 |
-
|
562 |
-
req = urllib.request.Request(url, headers=headers)
|
563 |
-
response = urllib.request.urlopen(req)
|
564 |
-
data = response.read()
|
565 |
-
|
566 |
-
if not os.path.exists(os.path.dirname(save_path)):
|
567 |
-
os.makedirs(os.path.dirname(save_path))
|
568 |
-
|
569 |
-
with open(save_path, 'wb') as f:
|
570 |
-
f.write(data)
|
571 |
-
|
572 |
-
except Exception as e:
|
573 |
-
print(f"Download error: {url} / {e}", file=sys.stderr)
|
574 |
-
return False
|
575 |
-
|
576 |
-
print("Installation was successful.")
|
577 |
-
return True
|
578 |
-
|
579 |
-
|
580 |
-
def copy_install(files, js_path_name=None):
|
581 |
-
for url in files:
|
582 |
-
if url.endswith("/"):
|
583 |
-
url = url[:-1]
|
584 |
-
try:
|
585 |
-
filename = os.path.basename(url)
|
586 |
-
if url.endswith(".py"):
|
587 |
-
download_url(url, core.get_default_custom_nodes_path(), filename)
|
588 |
-
else:
|
589 |
-
path = os.path.join(core.js_path, js_path_name) if js_path_name is not None else core.js_path
|
590 |
-
if not os.path.exists(path):
|
591 |
-
os.makedirs(path)
|
592 |
-
download_url(url, path, filename)
|
593 |
-
|
594 |
-
except Exception as e:
|
595 |
-
print(f"Install(copy) error: {url} / {e}", file=sys.stderr)
|
596 |
-
return False
|
597 |
-
|
598 |
-
print("Installation was successful.")
|
599 |
-
return True
|
600 |
-
|
601 |
-
|
602 |
-
def copy_uninstall(files, js_path_name='.'):
|
603 |
-
for url in files:
|
604 |
-
if url.endswith("/"):
|
605 |
-
url = url[:-1]
|
606 |
-
dir_name = os.path.basename(url)
|
607 |
-
base_path = core.get_default_custom_nodes_path() if url.endswith('.py') else os.path.join(core.js_path, js_path_name)
|
608 |
-
file_path = os.path.join(base_path, dir_name)
|
609 |
-
|
610 |
-
try:
|
611 |
-
if os.path.exists(file_path):
|
612 |
-
os.remove(file_path)
|
613 |
-
elif os.path.exists(file_path + ".disabled"):
|
614 |
-
os.remove(file_path + ".disabled")
|
615 |
-
except Exception as e:
|
616 |
-
print(f"Uninstall(copy) error: {url} / {e}", file=sys.stderr)
|
617 |
-
return False
|
618 |
-
|
619 |
-
print("Uninstallation was successful.")
|
620 |
-
return True
|
621 |
-
|
622 |
-
|
623 |
-
def copy_set_active(files, is_disable, js_path_name='.'):
|
624 |
-
if is_disable:
|
625 |
-
action_name = "Disable"
|
626 |
-
else:
|
627 |
-
action_name = "Enable"
|
628 |
-
|
629 |
-
for url in files:
|
630 |
-
if url.endswith("/"):
|
631 |
-
url = url[:-1]
|
632 |
-
dir_name = os.path.basename(url)
|
633 |
-
base_path = core.get_default_custom_nodes_path() if url.endswith('.py') else os.path.join(core.js_path, js_path_name)
|
634 |
-
file_path = os.path.join(base_path, dir_name)
|
635 |
-
|
636 |
-
try:
|
637 |
-
if is_disable:
|
638 |
-
current_name = file_path
|
639 |
-
new_name = file_path + ".disabled"
|
640 |
-
else:
|
641 |
-
current_name = file_path + ".disabled"
|
642 |
-
new_name = file_path
|
643 |
-
|
644 |
-
os.rename(current_name, new_name)
|
645 |
-
|
646 |
-
except Exception as e:
|
647 |
-
print(f"{action_name}(copy) error: {url} / {e}", file=sys.stderr)
|
648 |
-
|
649 |
-
return False
|
650 |
-
|
651 |
-
print(f"{action_name} was successful.")
|
652 |
-
return True
|
653 |
-
|
654 |
-
|
655 |
-
@routes.get("/customnode/versions/{node_name}")
|
656 |
-
async def get_cnr_versions(request):
|
657 |
-
node_name = request.match_info.get("node_name", None)
|
658 |
-
versions = core.cnr_utils.all_versions_of_node(node_name)
|
659 |
-
|
660 |
-
if versions:
|
661 |
-
return web.json_response(versions, content_type='application/json')
|
662 |
-
|
663 |
-
return web.Response(status=400)
|
664 |
-
|
665 |
-
|
666 |
-
@routes.get("/customnode/disabled_versions/{node_name}")
|
667 |
-
async def get_disabled_versions(request):
|
668 |
-
node_name = request.match_info.get("node_name", None)
|
669 |
-
versions = []
|
670 |
-
if node_name in core.unified_manager.nightly_inactive_nodes:
|
671 |
-
versions.append(dict(version='nightly'))
|
672 |
-
|
673 |
-
for v in core.unified_manager.cnr_inactive_nodes.get(node_name, {}).keys():
|
674 |
-
versions.append(dict(version=v))
|
675 |
-
|
676 |
-
if versions:
|
677 |
-
return web.json_response(versions, content_type='application/json')
|
678 |
-
|
679 |
-
return web.Response(status=400)
|
680 |
-
|
681 |
-
|
682 |
-
@routes.post("/customnode/reinstall")
|
683 |
-
async def reinstall_custom_node(request):
|
684 |
-
await uninstall_custom_node(request)
|
685 |
-
await install_custom_node(request)
|
686 |
-
|
687 |
-
|
688 |
-
@routes.post("/customnode/install")
|
689 |
-
async def install_custom_node(request):
|
690 |
-
if not is_allowed_security_level('middle'):
|
691 |
-
print(SECURITY_MESSAGE_MIDDLE_OR_BELOW)
|
692 |
-
return web.Response(status=403, text="A security error has occurred. Please check the terminal logs")
|
693 |
-
|
694 |
-
json_data = await request.json()
|
695 |
-
|
696 |
-
# HOTFIX: Temporarily blocking the installation of ComfyUI-Manager's nightly version until manager-ext is merged into main
|
697 |
-
if json_data.get('id') == 'comfyui-manager' and json_data.get('selected_version') == 'nightly':
|
698 |
-
print("[manager-core] WARN: Until a version of ComfyUI-Manager that is compatible with manager-core is officially released, manager-core will not support the installation of ComfyUI-Manager's nightly version to avoid conflicts.")
|
699 |
-
return web.Response(status=400, text="Until a version of ComfyUI-Manager that is compatible with manager-core is officially released, manager-core will not support the installation of ComfyUI-Manager's nightly version to avoid conflicts.")
|
700 |
-
# <-----------------------------------
|
701 |
-
|
702 |
-
# non-nightly cnr is safe
|
703 |
-
risky_level = None
|
704 |
-
cnr_id = json_data.get('id')
|
705 |
-
skip_post_install = json_data.get('skip_post_install')
|
706 |
-
|
707 |
-
if json_data['version'] != 'unknown':
|
708 |
-
selected_version = json_data.get('selected_version', 'latest')
|
709 |
-
if selected_version != 'nightly':
|
710 |
-
risky_level = 'low'
|
711 |
-
node_spec_str = f"{cnr_id}@{selected_version}"
|
712 |
-
else:
|
713 |
-
node_spec_str = f"{cnr_id}@nightly"
|
714 |
-
else:
|
715 |
-
# unknown
|
716 |
-
unknown_name = os.path.basename(json_data['files'][0])
|
717 |
-
node_spec_str = f"{unknown_name}@unknown"
|
718 |
-
|
719 |
-
# apply security policy if not cnr node (nightly isn't regarded as cnr node)
|
720 |
-
if risky_level is None:
|
721 |
-
risky_level = await get_risky_level(json_data['files'], json_data.get('pip', []))
|
722 |
-
|
723 |
-
if not is_allowed_security_level(risky_level):
|
724 |
-
print(SECURITY_MESSAGE_GENERAL)
|
725 |
-
return web.Response(status=404, text="A security error has occurred. Please check the terminal logs")
|
726 |
-
|
727 |
-
node_spec = core.unified_manager.resolve_node_spec(node_spec_str)
|
728 |
-
|
729 |
-
if node_spec is None:
|
730 |
-
return web.Response(status=400, text=f"Cannot resolve install target: '{node_spec_str}'")
|
731 |
-
|
732 |
-
node_name, version_spec, is_specified = node_spec
|
733 |
-
res = await core.unified_manager.install_by_id(node_name, version_spec, json_data['channel'], json_data['mode'], return_postinstall=skip_post_install)
|
734 |
-
# discard post install if skip_post_install mode
|
735 |
-
|
736 |
-
if res.action not in ['skip', 'enable', 'install-git', 'install-cnr', 'switch-cnr']:
|
737 |
-
return web.Response(status=400, text=f"Installation failed: {res}")
|
738 |
-
|
739 |
-
return web.Response(status=200, text="Installation success.")
|
740 |
-
|
741 |
-
|
742 |
-
@routes.post("/customnode/fix")
|
743 |
-
async def fix_custom_node(request):
|
744 |
-
if not is_allowed_security_level('middle'):
|
745 |
-
print(SECURITY_MESSAGE_GENERAL)
|
746 |
-
return web.Response(status=403, text="A security error has occurred. Please check the terminal logs")
|
747 |
-
|
748 |
-
json_data = await request.json()
|
749 |
-
|
750 |
-
node_id = json_data.get('id')
|
751 |
-
node_ver = json_data['version']
|
752 |
-
if node_ver != 'unknown':
|
753 |
-
node_name = node_id
|
754 |
-
else:
|
755 |
-
# unknown
|
756 |
-
node_name = os.path.basename(json_data['files'][0])
|
757 |
-
|
758 |
-
res = core.unified_manager.unified_fix(node_name, node_ver)
|
759 |
-
|
760 |
-
if res.result:
|
761 |
-
print(f"After restarting ComfyUI, please refresh the browser.")
|
762 |
-
return web.json_response({}, content_type='application/json')
|
763 |
-
|
764 |
-
print(f"ERROR: An error occurred while fixing '{node_name}@{node_ver}'.")
|
765 |
-
return web.Response(status=400, text=f"An error occurred while fixing '{node_name}@{node_ver}'.")
|
766 |
-
|
767 |
-
|
768 |
-
@routes.post("/customnode/uninstall")
|
769 |
-
async def uninstall_custom_node(request):
|
770 |
-
if not is_allowed_security_level('middle'):
|
771 |
-
print(SECURITY_MESSAGE_MIDDLE_OR_BELOW)
|
772 |
-
return web.Response(status=403, text="A security error has occurred. Please check the terminal logs")
|
773 |
-
|
774 |
-
json_data = await request.json()
|
775 |
-
|
776 |
-
node_id = json_data.get('id')
|
777 |
-
if json_data['version'] != 'unknown':
|
778 |
-
is_unknown = False
|
779 |
-
node_name = node_id
|
780 |
-
else:
|
781 |
-
# unknown
|
782 |
-
is_unknown = True
|
783 |
-
node_name = os.path.basename(json_data['files'][0])
|
784 |
-
|
785 |
-
res = core.unified_manager.unified_uninstall(node_name, is_unknown)
|
786 |
-
|
787 |
-
if res.result:
|
788 |
-
print(f"After restarting ComfyUI, please refresh the browser.")
|
789 |
-
return web.json_response({}, content_type='application/json')
|
790 |
-
|
791 |
-
print(f"ERROR: An error occurred while uninstalling '{node_name}'.")
|
792 |
-
return web.Response(status=400, text=f"An error occurred while uninstalling '{node_name}'.")
|
793 |
-
|
794 |
-
|
795 |
-
@routes.post("/customnode/update")
|
796 |
-
async def update_custom_node(request):
|
797 |
-
if not is_allowed_security_level('middle'):
|
798 |
-
print(SECURITY_MESSAGE_MIDDLE_OR_BELOW)
|
799 |
-
return web.Response(status=403, text="A security error has occurred. Please check the terminal logs")
|
800 |
-
|
801 |
-
json_data = await request.json()
|
802 |
-
|
803 |
-
node_id = json_data.get('id')
|
804 |
-
if json_data['version'] != 'unknown':
|
805 |
-
node_name = node_id
|
806 |
-
else:
|
807 |
-
# unknown
|
808 |
-
node_name = os.path.basename(json_data['files'][0])
|
809 |
-
|
810 |
-
res = core.unified_manager.unified_update(node_name, json_data['version'])
|
811 |
-
|
812 |
-
core.clear_pip_cache()
|
813 |
-
|
814 |
-
if res.result:
|
815 |
-
print(f"After restarting ComfyUI, please refresh the browser.")
|
816 |
-
return web.json_response({}, content_type='application/json')
|
817 |
-
|
818 |
-
print(f"ERROR: An error occurred while updating '{node_name}'.")
|
819 |
-
return web.Response(status=400, text=f"An error occurred while updating '{node_name}'.")
|
820 |
-
|
821 |
-
|
822 |
-
@routes.get("/comfyui_manager/comfyui_versions")
|
823 |
-
async def comfyui_versions(request):
|
824 |
-
try:
|
825 |
-
res, current = core.get_comfyui_versions()
|
826 |
-
return web.json_response({'versions': res, 'current': current}, status=200, content_type='application/json')
|
827 |
-
except Exception as e:
|
828 |
-
print(f"ComfyUI update fail: {e}", file=sys.stderr)
|
829 |
-
|
830 |
-
return web.Response(status=400)
|
831 |
-
|
832 |
-
|
833 |
-
@routes.post("/customnode/disable")
|
834 |
-
async def disable_node(request):
|
835 |
-
json_data = await request.json()
|
836 |
-
|
837 |
-
node_id = json_data.get('id')
|
838 |
-
if json_data['version'] != 'unknown':
|
839 |
-
is_unknown = False
|
840 |
-
node_name = node_id
|
841 |
-
else:
|
842 |
-
# unknown
|
843 |
-
is_unknown = True
|
844 |
-
node_name = os.path.basename(json_data['files'][0])
|
845 |
-
|
846 |
-
res = core.unified_manager.unified_disable(node_name, is_unknown)
|
847 |
-
|
848 |
-
if res:
|
849 |
-
return web.json_response({}, content_type='application/json')
|
850 |
-
|
851 |
-
return web.Response(status=400, text=f"Failed to disable")
|
852 |
-
|
853 |
-
|
854 |
-
@routes.get("/manager/migrate_unmanaged_nodes")
|
855 |
-
async def migrate_unmanaged_nodes(request):
|
856 |
-
print(f"[ComfyUI-Manager] Migrating unmanaged nodes...")
|
857 |
-
await core.unified_manager.migrate_unmanaged_nodes()
|
858 |
-
print("Done.")
|
859 |
-
return web.Response(status=200)
|
860 |
-
|
861 |
-
|
862 |
-
@routes.get("/manager/need_to_migrate")
|
863 |
-
async def need_to_migrate(request):
|
864 |
-
return web.Response(text=str(core.need_to_migrate), status=200)
|
865 |
-
|
866 |
-
|
867 |
-
@routes.get("/manager/channel_url_list")
|
868 |
-
async def channel_url_list(request):
|
869 |
-
channels = core.get_channel_dict()
|
870 |
-
if "value" in request.rel_url.query:
|
871 |
-
channel_url = channels.get(request.rel_url.query['value'])
|
872 |
-
if channel_url is not None:
|
873 |
-
core.get_config()['channel_url'] = channel_url
|
874 |
-
core.write_config()
|
875 |
-
else:
|
876 |
-
selected = 'custom'
|
877 |
-
selected_url = core.get_config()['channel_url']
|
878 |
-
|
879 |
-
for name, url in channels.items():
|
880 |
-
if url == selected_url:
|
881 |
-
selected = name
|
882 |
-
break
|
883 |
-
|
884 |
-
res = {'selected': selected,
|
885 |
-
'list': core.get_channel_list()}
|
886 |
-
return web.json_response(res, status=200)
|
887 |
-
|
888 |
-
return web.Response(status=200)
|
889 |
-
|
890 |
-
|
891 |
-
def get_model_dir(data):
|
892 |
-
if data['save_path'] != 'default':
|
893 |
-
if '..' in data['save_path'] or data['save_path'].startswith('/'):
|
894 |
-
print(f"[WARN] '{data['save_path']}' is not allowed path. So it will be saved into 'models/etc'.")
|
895 |
-
base_model = os.path.join(folder_paths.models_dir, "etc")
|
896 |
-
else:
|
897 |
-
if data['save_path'].startswith("custom_nodes"):
|
898 |
-
base_model = os.path.join(core.comfy_path, data['save_path'])
|
899 |
-
else:
|
900 |
-
base_model = os.path.join(folder_paths.models_dir, data['save_path'])
|
901 |
-
else:
|
902 |
-
model_type = data['type']
|
903 |
-
if model_type == "checkpoints" or model_type == "checkpoint":
|
904 |
-
base_model = folder_paths.folder_names_and_paths["checkpoints"][0][0]
|
905 |
-
elif model_type == "unclip":
|
906 |
-
base_model = folder_paths.folder_names_and_paths["checkpoints"][0][0]
|
907 |
-
elif model_type == "clip":
|
908 |
-
base_model = folder_paths.folder_names_and_paths["text_encoders"][0][0]
|
909 |
-
elif model_type == "text_encoders":
|
910 |
-
base_model = folder_paths.folder_names_and_paths["text_encoders"][0][0]
|
911 |
-
elif model_type == "VAE":
|
912 |
-
base_model = folder_paths.folder_names_and_paths["vae"][0][0]
|
913 |
-
elif model_type == "lora":
|
914 |
-
base_model = folder_paths.folder_names_and_paths["loras"][0][0]
|
915 |
-
elif model_type == "T2I-Adapter":
|
916 |
-
base_model = folder_paths.folder_names_and_paths["controlnet"][0][0]
|
917 |
-
elif model_type == "T2I-Style":
|
918 |
-
base_model = folder_paths.folder_names_and_paths["controlnet"][0][0]
|
919 |
-
elif model_type == "controlnet":
|
920 |
-
base_model = folder_paths.folder_names_and_paths["controlnet"][0][0]
|
921 |
-
elif model_type == "clip_vision":
|
922 |
-
base_model = folder_paths.folder_names_and_paths["clip_vision"][0][0]
|
923 |
-
elif model_type == "gligen":
|
924 |
-
base_model = folder_paths.folder_names_and_paths["gligen"][0][0]
|
925 |
-
elif model_type == "upscale":
|
926 |
-
base_model = folder_paths.folder_names_and_paths["upscale_models"][0][0]
|
927 |
-
elif model_type == "embeddings":
|
928 |
-
base_model = folder_paths.folder_names_and_paths["embeddings"][0][0]
|
929 |
-
elif model_type == "unet" or model_type == "diffusion_model":
|
930 |
-
if folder_paths.folder_names_and_paths.get("diffusion_models"):
|
931 |
-
base_model = folder_paths.folder_names_and_paths["diffusion_models"][0][1]
|
932 |
-
else:
|
933 |
-
print(f"[ComfyUI-Manager] Your ComfyUI is outdated version.")
|
934 |
-
base_model = folder_paths.folder_names_and_paths["unet"][0][0] # outdated version
|
935 |
-
else:
|
936 |
-
base_model = os.path.join(folder_paths.models_dir, "etc")
|
937 |
-
|
938 |
-
return base_model
|
939 |
-
|
940 |
-
|
941 |
-
def get_model_path(data):
|
942 |
-
base_model = get_model_dir(data)
|
943 |
-
return os.path.join(base_model, data['filename'])
|
944 |
-
|
945 |
-
|
946 |
-
def check_model_installed(json_obj):
|
947 |
-
def process_model(item):
|
948 |
-
model_path = get_model_path(item)
|
949 |
-
item['installed'] = 'None'
|
950 |
-
|
951 |
-
if model_path is not None:
|
952 |
-
if model_path.endswith('.zip'):
|
953 |
-
if os.path.exists(model_path[:-4]):
|
954 |
-
item['installed'] = 'True'
|
955 |
-
else:
|
956 |
-
item['installed'] = 'False'
|
957 |
-
elif os.path.exists(model_path):
|
958 |
-
item['installed'] = 'True'
|
959 |
-
else:
|
960 |
-
item['installed'] = 'False'
|
961 |
-
|
962 |
-
with concurrent.futures.ThreadPoolExecutor(8) as executor:
|
963 |
-
for item in json_obj['models']:
|
964 |
-
executor.submit(process_model, item)
|
965 |
-
|
966 |
-
|
967 |
-
@routes.get("/externalmodel/getlist")
|
968 |
-
async def fetch_externalmodel_list(request):
|
969 |
-
json_obj = await core.get_data_by_mode(request.rel_url.query["mode"], 'model-list.json')
|
970 |
-
|
971 |
-
check_model_installed(json_obj)
|
972 |
-
|
973 |
-
for x in json_obj['models']:
|
974 |
-
populate_markdown(x)
|
975 |
-
|
976 |
-
return web.json_response(json_obj, content_type='application/json')
|
977 |
-
|
978 |
-
|
979 |
-
@routes.post("/model/install")
|
980 |
-
async def install_model(request):
|
981 |
-
json_data = await request.json()
|
982 |
-
|
983 |
-
model_path = get_model_path(json_data)
|
984 |
-
|
985 |
-
if not is_allowed_security_level('middle'):
|
986 |
-
print(SECURITY_MESSAGE_MIDDLE_OR_BELOW)
|
987 |
-
return web.Response(status=403)
|
988 |
-
|
989 |
-
if not json_data['filename'].endswith('.safetensors') and not is_allowed_security_level('high'):
|
990 |
-
models_json = await core.get_data_by_mode('cache', 'model-list.json')
|
991 |
-
|
992 |
-
is_belongs_to_whitelist = False
|
993 |
-
for x in models_json['models']:
|
994 |
-
if x.get('url') == json_data['url']:
|
995 |
-
is_belongs_to_whitelist = True
|
996 |
-
break
|
997 |
-
|
998 |
-
if not is_belongs_to_whitelist:
|
999 |
-
print(SECURITY_MESSAGE_NORMAL_MINUS)
|
1000 |
-
return web.Response(status=403)
|
1001 |
-
|
1002 |
-
res = False
|
1003 |
-
|
1004 |
-
try:
|
1005 |
-
if model_path is not None:
|
1006 |
-
print(f"Install model '{json_data['name']}' into '{model_path}'")
|
1007 |
-
|
1008 |
-
model_url = json_data['url']
|
1009 |
-
if not core.get_config()['model_download_by_agent'] and (
|
1010 |
-
model_url.startswith('https://github.com') or model_url.startswith('https://huggingface.co') or model_url.startswith('https://heibox.uni-heidelberg.de')):
|
1011 |
-
model_dir = get_model_dir(json_data)
|
1012 |
-
download_url(model_url, model_dir, filename=json_data['filename'])
|
1013 |
-
if model_path.endswith('.zip'):
|
1014 |
-
res = core.unzip(model_path)
|
1015 |
-
else:
|
1016 |
-
res = True
|
1017 |
-
|
1018 |
-
if res:
|
1019 |
-
return web.json_response({}, content_type='application/json')
|
1020 |
-
else:
|
1021 |
-
res = download_url_with_agent(model_url, model_path)
|
1022 |
-
if res and model_path.endswith('.zip'):
|
1023 |
-
res = core.unzip(model_path)
|
1024 |
-
else:
|
1025 |
-
print(f"Model installation error: invalid model type - {json_data['type']}")
|
1026 |
-
|
1027 |
-
if res:
|
1028 |
-
return web.json_response({}, content_type='application/json')
|
1029 |
-
except Exception as e:
|
1030 |
-
print(f"[ERROR] {e}", file=sys.stderr)
|
1031 |
-
|
1032 |
-
return web.Response(status=400)
|
1033 |
-
|
1034 |
-
|
1035 |
-
def add_target_blank(html_text):
|
1036 |
-
pattern = r'(<a\s+href="[^"]*"\s*[^>]*)(>)'
|
1037 |
-
|
1038 |
-
def add_target(match):
|
1039 |
-
if 'target=' not in match.group(1):
|
1040 |
-
return match.group(1) + ' target="_blank"' + match.group(2)
|
1041 |
-
return match.group(0)
|
1042 |
-
|
1043 |
-
modified_html = re.sub(pattern, add_target, html_text)
|
1044 |
-
|
1045 |
-
return modified_html
|
1046 |
-
|
1047 |
-
|
1048 |
-
@routes.get("/manager/reboot")
|
1049 |
-
def restart(self):
|
1050 |
-
if not is_allowed_security_level('middle'):
|
1051 |
-
print(SECURITY_MESSAGE_MIDDLE_OR_BELOW)
|
1052 |
-
return web.Response(status=403)
|
1053 |
-
|
1054 |
-
try:
|
1055 |
-
sys.stdout.close_log()
|
1056 |
-
except Exception as e:
|
1057 |
-
pass
|
1058 |
-
|
1059 |
-
if '__COMFY_CLI_SESSION__' in os.environ:
|
1060 |
-
with open(os.path.join(os.environ['__COMFY_CLI_SESSION__'] + '.reboot'), 'w') as file:
|
1061 |
-
pass
|
1062 |
-
|
1063 |
-
print(f"\nRestarting...\n\n")
|
1064 |
-
exit(0)
|
1065 |
-
|
1066 |
-
print(f"\nRestarting... [Legacy Mode]\n\n")
|
1067 |
-
|
1068 |
-
sys_argv = sys.argv.copy()
|
1069 |
-
if '--windows-standalone-build' in sys_argv:
|
1070 |
-
sys_argv.remove('--windows-standalone-build')
|
1071 |
-
|
1072 |
-
if sys.platform.startswith('win32'):
|
1073 |
-
return os.execv(sys.executable, ['"' + sys.executable + '"', '"' + sys_argv[0] + '"'] + sys_argv[1:])
|
1074 |
-
else:
|
1075 |
-
return os.execv(sys.executable, [sys.executable] + sys_argv)
|
1076 |
-
|
1077 |
-
|
1078 |
-
@routes.get("/manager/show_menu")
|
1079 |
-
def show_menu(self):
|
1080 |
-
if cm_global.variables['manager-core.show_menu']:
|
1081 |
-
return web.Response(status=200)
|
1082 |
-
else:
|
1083 |
-
return web.Response(status=201)
|
1084 |
-
|
1085 |
-
|
1086 |
-
def sanitize_filename(input_string):
|
1087 |
-
result_string = re.sub(r'[^a-zA-Z0-9_]', '_', input_string)
|
1088 |
-
return result_string
|
1089 |
-
|
1090 |
-
|
1091 |
-
args.enable_cors_header = "*"
|
1092 |
-
if hasattr(PromptServer.instance, "app"):
|
1093 |
-
app = PromptServer.instance.app
|
1094 |
-
cors_middleware = server.create_cors_middleware(args.enable_cors_header)
|
1095 |
-
app.middlewares.append(cors_middleware)
|
1096 |
-
|
1097 |
-
|
1098 |
-
def sanitize(data):
|
1099 |
-
return data.replace("<", "<").replace(">", ">")
|
1100 |
-
|
1101 |
-
|
1102 |
-
async def _confirm_try_install(sender, custom_node_url, msg):
|
1103 |
-
json_obj = await core.get_data_by_mode('default', 'custom-node-list.json')
|
1104 |
-
|
1105 |
-
sender = manager_util.sanitize_tag(sender)
|
1106 |
-
msg = manager_util.sanitize_tag(msg)
|
1107 |
-
target = core.lookup_customnode_by_url(json_obj, custom_node_url)
|
1108 |
-
|
1109 |
-
if target is not None:
|
1110 |
-
PromptServer.instance.send_sync("cm-api-try-install-customnode",
|
1111 |
-
{"sender": sender, "target": target, "msg": msg})
|
1112 |
-
else:
|
1113 |
-
print(f"[ComfyUI Manager API] Failed to try install - Unknown custom node url '{custom_node_url}'")
|
1114 |
-
|
1115 |
-
|
1116 |
-
def confirm_try_install(sender, custom_node_url, msg):
|
1117 |
-
asyncio.run(_confirm_try_install(sender, custom_node_url, msg))
|
1118 |
-
|
1119 |
-
|
1120 |
-
cm_global.register_api('cm.try-install-custom-node', confirm_try_install)
|
1121 |
-
|
1122 |
-
import asyncio
|
1123 |
-
|
1124 |
-
|
1125 |
-
async def default_cache_update():
|
1126 |
-
async def get_cache(filename):
|
1127 |
-
uri = f"{core.DEFAULT_CHANNEL}/{filename}"
|
1128 |
-
cache_uri = str(manager_util.simple_hash(uri)) + '_' + filename
|
1129 |
-
cache_uri = os.path.join(core.cache_dir, cache_uri)
|
1130 |
-
|
1131 |
-
json_obj = await manager_util.get_data(uri, True)
|
1132 |
-
|
1133 |
-
with core.cache_lock:
|
1134 |
-
with open(cache_uri, "w", encoding='utf-8') as file:
|
1135 |
-
json.dump(json_obj, file, indent=4, sort_keys=True)
|
1136 |
-
print(f"[ComfyUI-Manager] default cache updated: {uri}")
|
1137 |
-
|
1138 |
-
a = get_cache("custom-node-list.json")
|
1139 |
-
b = get_cache("extension-node-map.json")
|
1140 |
-
e = get_cache("github-stats.json")
|
1141 |
-
|
1142 |
-
await asyncio.gather(a, b, e)
|
1143 |
-
|
1144 |
-
if not core.get_config()['skip_migration_check']:
|
1145 |
-
await core.check_need_to_migrate()
|
1146 |
-
else:
|
1147 |
-
print("[ComfyUI-Manager] Migration check is skipped...")
|
1148 |
-
|
1149 |
-
|
1150 |
-
threading.Thread(target=lambda: asyncio.run(default_cache_update())).start()
|
1151 |
-
|
1152 |
-
if not os.path.exists(core.manager_core_config_path):
|
1153 |
-
core.get_config()
|
1154 |
-
core.write_config()
|
1155 |
-
|
1156 |
-
|
1157 |
-
cm_global.register_extension('manager-core',
|
1158 |
-
{'version': core.version,
|
1159 |
-
'name': 'ComfyUI Manager (Essential)',
|
1160 |
-
'nodes': {},
|
1161 |
-
'description': 'ComfyUI-Manager (Essential)', })
|
1162 |
-
|
1163 |
-
if 'manager-core.show_menu' not in cm_global.variables:
|
1164 |
-
cm_global.variables['manager-core.show_menu'] = True
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ComfyUI/custom_nodes/manager-core/glob/manager_util.py
DELETED
@@ -1,323 +0,0 @@
|
|
1 |
-
import traceback
|
2 |
-
|
3 |
-
import aiohttp
|
4 |
-
import json
|
5 |
-
import threading
|
6 |
-
import os
|
7 |
-
from datetime import datetime
|
8 |
-
import subprocess
|
9 |
-
import sys
|
10 |
-
|
11 |
-
cache_lock = threading.Lock()
|
12 |
-
|
13 |
-
comfyui_manager_path = os.path.abspath(os.path.join(os.path.dirname(__file__), '..'))
|
14 |
-
cache_dir = os.path.join(comfyui_manager_path, '.cache')
|
15 |
-
|
16 |
-
|
17 |
-
# DON'T USE StrictVersion - cannot handle pre_release version
|
18 |
-
# try:
|
19 |
-
# from distutils.version import StrictVersion
|
20 |
-
# except:
|
21 |
-
# print(f"[ComfyUI-Manager] 'distutils' package not found. Activating fallback mode for compatibility.")
|
22 |
-
class StrictVersion:
|
23 |
-
def __init__(self, version_string):
|
24 |
-
self.version_string = version_string
|
25 |
-
self.major = 0
|
26 |
-
self.minor = 0
|
27 |
-
self.patch = 0
|
28 |
-
self.pre_release = None
|
29 |
-
self.parse_version_string()
|
30 |
-
|
31 |
-
def parse_version_string(self):
|
32 |
-
parts = self.version_string.split('.')
|
33 |
-
if not parts:
|
34 |
-
raise ValueError("Version string must not be empty")
|
35 |
-
|
36 |
-
self.major = int(parts[0])
|
37 |
-
self.minor = int(parts[1]) if len(parts) > 1 else 0
|
38 |
-
self.patch = int(parts[2]) if len(parts) > 2 else 0
|
39 |
-
|
40 |
-
# Handling pre-release versions if present
|
41 |
-
if len(parts) > 3:
|
42 |
-
self.pre_release = parts[3]
|
43 |
-
|
44 |
-
def __str__(self):
|
45 |
-
version = f"{self.major}.{self.minor}.{self.patch}"
|
46 |
-
if self.pre_release:
|
47 |
-
version += f"-{self.pre_release}"
|
48 |
-
return version
|
49 |
-
|
50 |
-
def __eq__(self, other):
|
51 |
-
return (self.major, self.minor, self.patch, self.pre_release) == \
|
52 |
-
(other.major, other.minor, other.patch, other.pre_release)
|
53 |
-
|
54 |
-
def __lt__(self, other):
|
55 |
-
if (self.major, self.minor, self.patch) == (other.major, other.minor, other.patch):
|
56 |
-
return self.pre_release_compare(self.pre_release, other.pre_release) < 0
|
57 |
-
return (self.major, self.minor, self.patch) < (other.major, other.minor, other.patch)
|
58 |
-
|
59 |
-
@staticmethod
|
60 |
-
def pre_release_compare(pre1, pre2):
|
61 |
-
if pre1 == pre2:
|
62 |
-
return 0
|
63 |
-
if pre1 is None:
|
64 |
-
return 1
|
65 |
-
if pre2 is None:
|
66 |
-
return -1
|
67 |
-
return -1 if pre1 < pre2 else 1
|
68 |
-
|
69 |
-
def __le__(self, other):
|
70 |
-
return self == other or self < other
|
71 |
-
|
72 |
-
def __gt__(self, other):
|
73 |
-
return not self <= other
|
74 |
-
|
75 |
-
def __ge__(self, other):
|
76 |
-
return not self < other
|
77 |
-
|
78 |
-
def __ne__(self, other):
|
79 |
-
return not self == other
|
80 |
-
|
81 |
-
|
82 |
-
def simple_hash(input_string):
|
83 |
-
hash_value = 0
|
84 |
-
for char in input_string:
|
85 |
-
hash_value = (hash_value * 31 + ord(char)) % (2**32)
|
86 |
-
|
87 |
-
return hash_value
|
88 |
-
|
89 |
-
|
90 |
-
def is_file_created_within_one_day(file_path):
|
91 |
-
if not os.path.exists(file_path):
|
92 |
-
return False
|
93 |
-
|
94 |
-
file_creation_time = os.path.getctime(file_path)
|
95 |
-
current_time = datetime.now().timestamp()
|
96 |
-
time_difference = current_time - file_creation_time
|
97 |
-
|
98 |
-
return time_difference <= 86400
|
99 |
-
|
100 |
-
|
101 |
-
async def get_data(uri, silent=False):
|
102 |
-
if not silent:
|
103 |
-
print(f"FETCH DATA from: {uri}", end="")
|
104 |
-
|
105 |
-
if uri.startswith("http"):
|
106 |
-
async with aiohttp.ClientSession(trust_env=True, connector=aiohttp.TCPConnector(verify_ssl=False)) as session:
|
107 |
-
async with session.get(uri) as resp:
|
108 |
-
json_text = await resp.text()
|
109 |
-
else:
|
110 |
-
with cache_lock:
|
111 |
-
with open(uri, "r", encoding="utf-8") as f:
|
112 |
-
json_text = f.read()
|
113 |
-
|
114 |
-
json_obj = json.loads(json_text)
|
115 |
-
|
116 |
-
if not silent:
|
117 |
-
print(f" [DONE]")
|
118 |
-
|
119 |
-
return json_obj
|
120 |
-
|
121 |
-
|
122 |
-
async def get_data_with_cache(uri, silent=False, cache_mode=True):
|
123 |
-
cache_uri = str(simple_hash(uri)) + '_' + os.path.basename(uri).replace('&', "_").replace('?', "_").replace('=', "_")
|
124 |
-
cache_uri = os.path.join(cache_dir, cache_uri+'.json')
|
125 |
-
|
126 |
-
if cache_mode and is_file_created_within_one_day(cache_uri):
|
127 |
-
json_obj = await get_data(cache_uri, silent=silent)
|
128 |
-
else:
|
129 |
-
json_obj = await get_data(uri, silent=silent)
|
130 |
-
|
131 |
-
with cache_lock:
|
132 |
-
with open(cache_uri, "w", encoding='utf-8') as file:
|
133 |
-
json.dump(json_obj, file, indent=4, sort_keys=True)
|
134 |
-
if not silent:
|
135 |
-
print(f"[ComfyUI-Manager] default cache updated: {uri}")
|
136 |
-
|
137 |
-
return json_obj
|
138 |
-
|
139 |
-
|
140 |
-
def sanitize_tag(x):
|
141 |
-
return x.replace('<', '<').replace('>', '>')
|
142 |
-
|
143 |
-
|
144 |
-
def download_url(url, dest_folder, filename):
|
145 |
-
import requests
|
146 |
-
|
147 |
-
# Ensure the destination folder exists
|
148 |
-
if not os.path.exists(dest_folder):
|
149 |
-
os.makedirs(dest_folder)
|
150 |
-
|
151 |
-
# Full path to save the file
|
152 |
-
dest_path = os.path.join(dest_folder, filename)
|
153 |
-
|
154 |
-
# Download the file
|
155 |
-
response = requests.get(url, stream=True)
|
156 |
-
if response.status_code == 200:
|
157 |
-
with open(dest_path, 'wb') as file:
|
158 |
-
for chunk in response.iter_content(chunk_size=1024):
|
159 |
-
if chunk:
|
160 |
-
file.write(chunk)
|
161 |
-
else:
|
162 |
-
raise Exception(f"Failed to download file from {url}")
|
163 |
-
|
164 |
-
|
165 |
-
def extract_package_as_zip(file_path, extract_path):
|
166 |
-
import zipfile
|
167 |
-
try:
|
168 |
-
with zipfile.ZipFile(file_path, "r") as zip_ref:
|
169 |
-
zip_ref.extractall(extract_path)
|
170 |
-
extracted_files = zip_ref.namelist()
|
171 |
-
print(f"Extracted zip file to {extract_path}")
|
172 |
-
return extracted_files
|
173 |
-
except zipfile.BadZipFile:
|
174 |
-
print(f"File '{file_path}' is not a zip or is corrupted.")
|
175 |
-
return None
|
176 |
-
|
177 |
-
|
178 |
-
pip_map = None
|
179 |
-
|
180 |
-
def get_installed_packages(renew=False):
|
181 |
-
global pip_map
|
182 |
-
|
183 |
-
if renew or pip_map is None:
|
184 |
-
try:
|
185 |
-
result = subprocess.check_output([sys.executable, '-m', 'pip', 'list'], universal_newlines=True)
|
186 |
-
|
187 |
-
pip_map = {}
|
188 |
-
for line in result.split('\n'):
|
189 |
-
x = line.strip()
|
190 |
-
if x:
|
191 |
-
y = line.split()
|
192 |
-
if y[0] == 'Package' or y[0].startswith('-'):
|
193 |
-
continue
|
194 |
-
|
195 |
-
pip_map[y[0]] = y[1]
|
196 |
-
except subprocess.CalledProcessError as e:
|
197 |
-
print(f"[ComfyUI-Manager] Failed to retrieve the information of installed pip packages.")
|
198 |
-
return set()
|
199 |
-
|
200 |
-
return pip_map
|
201 |
-
|
202 |
-
|
203 |
-
def clear_pip_cache():
|
204 |
-
global pip_map
|
205 |
-
pip_map = None
|
206 |
-
|
207 |
-
|
208 |
-
torch_torchvision_version_map = {
|
209 |
-
'2.5.1': '0.20.1',
|
210 |
-
'2.5.0': '0.20.0',
|
211 |
-
'2.4.1': '0.19.1',
|
212 |
-
'2.4.0': '0.19.0',
|
213 |
-
'2.3.1': '0.18.1',
|
214 |
-
'2.3.0': '0.18.0',
|
215 |
-
'2.2.2': '0.17.2',
|
216 |
-
'2.2.1': '0.17.1',
|
217 |
-
'2.2.0': '0.17.0',
|
218 |
-
'2.1.2': '0.16.2',
|
219 |
-
'2.1.1': '0.16.1',
|
220 |
-
'2.1.0': '0.16.0',
|
221 |
-
'2.0.1': '0.15.2',
|
222 |
-
'2.0.0': '0.15.1',
|
223 |
-
}
|
224 |
-
|
225 |
-
|
226 |
-
class PIPFixer:
|
227 |
-
def __init__(self, prev_pip_versions):
|
228 |
-
self.prev_pip_versions = { **prev_pip_versions }
|
229 |
-
|
230 |
-
def torch_rollback(self):
|
231 |
-
spec = self.prev_pip_versions['torch'].split('+')
|
232 |
-
if len(spec) > 0:
|
233 |
-
platform = spec[1]
|
234 |
-
else:
|
235 |
-
cmd = [sys.executable, '-m', 'pip', 'install', '--force', 'torch', 'torchvision', 'torchaudio']
|
236 |
-
subprocess.check_output(cmd, universal_newlines=True)
|
237 |
-
print(cmd)
|
238 |
-
return
|
239 |
-
|
240 |
-
torch_ver = StrictVersion(spec[0])
|
241 |
-
torch_ver = f"{torch_ver.major}.{torch_ver.minor}.{torch_ver.patch}"
|
242 |
-
torchvision_ver = torch_torchvision_version_map.get(torch_ver)
|
243 |
-
|
244 |
-
if torchvision_ver is None:
|
245 |
-
cmd = [sys.executable, '-m', 'pip', 'install', '--pre',
|
246 |
-
'torch', 'torchvision', 'torchaudio',
|
247 |
-
'--index-url', f"https://download.pytorch.org/whl/nightly/{platform}"]
|
248 |
-
print("[manager-core] restore PyTorch to nightly version")
|
249 |
-
else:
|
250 |
-
cmd = [sys.executable, '-m', 'pip', 'install',
|
251 |
-
f'torch=={torch_ver}', f'torchvision=={torchvision_ver}', f"torchaudio=={torch_ver}",
|
252 |
-
'--index-url', f"https://download.pytorch.org/whl/{platform}"]
|
253 |
-
print(f"[manager-core] restore PyTorch to {torch_ver}+{platform}")
|
254 |
-
|
255 |
-
subprocess.check_output(cmd, universal_newlines=True)
|
256 |
-
|
257 |
-
def fix_broken(self):
|
258 |
-
new_pip_versions = get_installed_packages(True)
|
259 |
-
|
260 |
-
# remove `comfy` python package
|
261 |
-
try:
|
262 |
-
if 'comfy' in new_pip_versions:
|
263 |
-
cmd = [sys.executable, '-m', 'pip', 'uninstall', 'comfy']
|
264 |
-
subprocess.check_output(cmd, universal_newlines=True)
|
265 |
-
|
266 |
-
print(f"[manager-core] 'comfy' python package is uninstalled.\nWARN: The 'comfy' package is completely unrelated to ComfyUI and should never be installed as it causes conflicts with ComfyUI.")
|
267 |
-
except Exception as e:
|
268 |
-
print(f"[manager-core] Failed to uninstall `comfy` python package")
|
269 |
-
print(e)
|
270 |
-
|
271 |
-
# fix torch - reinstall torch packages if version is changed
|
272 |
-
try:
|
273 |
-
if self.prev_pip_versions['torch'] != new_pip_versions['torch'] \
|
274 |
-
or self.prev_pip_versions['torchvision'] != new_pip_versions['torchvision'] \
|
275 |
-
or self.prev_pip_versions['torchaudio'] != new_pip_versions['torchaudio']:
|
276 |
-
self.torch_rollback()
|
277 |
-
except Exception as e:
|
278 |
-
print(f"[manager-core] Failed to restore PyTorch")
|
279 |
-
print(e)
|
280 |
-
|
281 |
-
# fix opencv
|
282 |
-
try:
|
283 |
-
ocp = new_pip_versions.get('opencv-contrib-python')
|
284 |
-
ocph = new_pip_versions.get('opencv-contrib-python-headless')
|
285 |
-
op = new_pip_versions.get('opencv-python')
|
286 |
-
oph = new_pip_versions.get('opencv-python-headless')
|
287 |
-
|
288 |
-
versions = [ocp, ocph, op, oph]
|
289 |
-
versions = [StrictVersion(x) for x in versions if x is not None]
|
290 |
-
versions.sort(reverse=True)
|
291 |
-
|
292 |
-
if len(versions) > 0:
|
293 |
-
# upgrade to maximum version
|
294 |
-
targets = []
|
295 |
-
cur = versions[0]
|
296 |
-
if ocp is not None and StrictVersion(ocp) != cur:
|
297 |
-
targets.append('opencv-contrib-python')
|
298 |
-
if ocph is not None and StrictVersion(ocph) != cur:
|
299 |
-
targets.append('opencv-contrib-python-headless')
|
300 |
-
if op is not None and StrictVersion(op) != cur:
|
301 |
-
targets.append('opencv-python')
|
302 |
-
if oph is not None and StrictVersion(oph) != cur:
|
303 |
-
targets.append('opencv-python-headless')
|
304 |
-
|
305 |
-
if len(targets) > 0:
|
306 |
-
for x in targets:
|
307 |
-
cmd = [sys.executable, '-m', 'pip', 'install', f"{x}=={versions[0].version_string}"]
|
308 |
-
subprocess.check_output(cmd, universal_newlines=True)
|
309 |
-
|
310 |
-
print(f"[manager-core] 'opencv' dependencies were fixed: {targets}")
|
311 |
-
except Exception as e:
|
312 |
-
print(f"[manager-core] Failed to restore opencv")
|
313 |
-
print(e)
|
314 |
-
|
315 |
-
# fix numpy
|
316 |
-
try:
|
317 |
-
np = new_pip_versions.get('numpy')
|
318 |
-
if np is not None:
|
319 |
-
if StrictVersion(np) >= StrictVersion('2'):
|
320 |
-
subprocess.check_output([sys.executable, '-m', 'pip', 'install', f"numpy<2"], universal_newlines=True)
|
321 |
-
except Exception as e:
|
322 |
-
print(f"[manager-core] Failed to restore numpy")
|
323 |
-
print(e)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ComfyUI/custom_nodes/manager-core/glob/security_check.py
DELETED
@@ -1,92 +0,0 @@
|
|
1 |
-
import sys
|
2 |
-
import subprocess
|
3 |
-
import os
|
4 |
-
|
5 |
-
|
6 |
-
def security_check():
|
7 |
-
print("[START] Security scan")
|
8 |
-
|
9 |
-
custom_nodes_path = os.path.abspath(os.path.join(os.path.dirname(__file__), '..', '..'))
|
10 |
-
comfyui_path = os.path.abspath(os.path.join(custom_nodes_path, '..'))
|
11 |
-
|
12 |
-
guide = {
|
13 |
-
"ComfyUI_LLMVISION": """
|
14 |
-
0.Remove ComfyUI\\custom_nodes\\ComfyUI_LLMVISION.
|
15 |
-
1.Remove pip packages: openai-1.16.3.dist-info, anthropic-0.21.4.dist-info, openai-1.30.2.dist-info, anthropic-0.21.5.dist-info, anthropic-0.26.1.dist-info, %LocalAppData%\\rundll64.exe
|
16 |
-
(For portable versions, it is recommended to reinstall. If you are using a venv, it is advised to recreate the venv.)
|
17 |
-
2.Remove these files in your system: lib/browser/admin.py, Cadmino.py, Fadmino.py, VISION-D.exe, BeamNG.UI.exe
|
18 |
-
3.Check your Windows registry for the key listed above and remove it.
|
19 |
-
(HKEY_CURRENT_USER\\Software\\OpenAICLI)
|
20 |
-
4.Run a malware scanner.
|
21 |
-
5.Change all of your passwords, everywhere.
|
22 |
-
|
23 |
-
(Reinstall OS is recommended.)
|
24 |
-
\n
|
25 |
-
Detailed information: https://old.reddit.com/r/comfyui/comments/1dbls5n/psa_if_youve_used_the_comfyui_llmvision_node_from/
|
26 |
-
""",
|
27 |
-
"lolMiner": """
|
28 |
-
1. Remove pip packages: lolMiner*
|
29 |
-
2. Remove files: lolMiner*, 4G_Ethash_Linux_Readme.txt, mine* in ComfyUI dir.
|
30 |
-
|
31 |
-
(Reinstall ComfyUI is recommended.)
|
32 |
-
"""
|
33 |
-
}
|
34 |
-
|
35 |
-
node_blacklist = {"ComfyUI_LLMVISION": "ComfyUI_LLMVISION"}
|
36 |
-
|
37 |
-
pip_blacklist = {"AppleBotzz": "ComfyUI_LLMVISION"}
|
38 |
-
|
39 |
-
file_blacklist = {
|
40 |
-
"ComfyUI_LLMVISION": ["%LocalAppData%\\rundll64.exe"],
|
41 |
-
"lolMiner": [os.path.join(comfyui_path, 'lolMiner')]
|
42 |
-
}
|
43 |
-
|
44 |
-
installed_pips = subprocess.check_output([sys.executable, '-m', "pip", "freeze"], text=True)
|
45 |
-
|
46 |
-
detected = set()
|
47 |
-
try:
|
48 |
-
anthropic_info = subprocess.check_output([sys.executable, '-m', "pip", "show", "anthropic"], text=True, stderr=subprocess.DEVNULL)
|
49 |
-
anthropic_reqs = [x for x in anthropic_info.split('\n') if x.startswith("Requires")][0].split(': ')[1]
|
50 |
-
if "pycrypto" in anthropic_reqs:
|
51 |
-
location = [x for x in anthropic_info.split('\n') if x.startswith("Location")][0].split(': ')[1]
|
52 |
-
for fi in os.listdir(location):
|
53 |
-
if fi.startswith("anthropic"):
|
54 |
-
guide["ComfyUI_LLMVISION"] = f"\n0.Remove {os.path.join(location, fi)}" + guide["ComfyUI_LLMVISION"]
|
55 |
-
detected.add("ComfyUI_LLMVISION")
|
56 |
-
except subprocess.CalledProcessError:
|
57 |
-
pass
|
58 |
-
|
59 |
-
for k, v in node_blacklist.items():
|
60 |
-
if os.path.exists(os.path.join(custom_nodes_path, k)):
|
61 |
-
print(f"[SECURITY ALERT] custom node '{k}' is dangerous.")
|
62 |
-
detected.add(v)
|
63 |
-
|
64 |
-
for k, v in pip_blacklist.items():
|
65 |
-
if k in installed_pips:
|
66 |
-
detected.add(v)
|
67 |
-
break
|
68 |
-
|
69 |
-
for k, v in file_blacklist.items():
|
70 |
-
for x in v:
|
71 |
-
if os.path.exists(os.path.expandvars(x)):
|
72 |
-
detected.add(k)
|
73 |
-
break
|
74 |
-
|
75 |
-
if len(detected) > 0:
|
76 |
-
for line in installed_pips.split('\n'):
|
77 |
-
for k, v in pip_blacklist.items():
|
78 |
-
if k in line:
|
79 |
-
print(f"[SECURITY ALERT] '{line}' is dangerous.")
|
80 |
-
|
81 |
-
print("\n########################################################################")
|
82 |
-
print(" Malware has been detected, forcibly terminating ComfyUI execution.")
|
83 |
-
print("########################################################################\n")
|
84 |
-
|
85 |
-
for x in detected:
|
86 |
-
print(f"\n======== TARGET: {x} =========")
|
87 |
-
print(f"\nTODO:")
|
88 |
-
print(guide.get(x))
|
89 |
-
|
90 |
-
exit(-1)
|
91 |
-
|
92 |
-
print("[DONE] Security scan")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ComfyUI/custom_nodes/manager-core/js/cm-api.js
DELETED
@@ -1,63 +0,0 @@
|
|
1 |
-
import { api } from "../../scripts/api.js";
|
2 |
-
import { app } from "../../scripts/app.js";
|
3 |
-
import { sleep } from "./common.js";
|
4 |
-
|
5 |
-
async function tryInstallCustomNode(event) {
|
6 |
-
let msg = '-= [ComfyUI Manager] extension installation request =-\n\n';
|
7 |
-
msg += `The '${event.detail.sender}' extension requires the installation of the '${event.detail.target.title}' extension. `;
|
8 |
-
|
9 |
-
if(event.detail.target.installed == 'Disabled') {
|
10 |
-
msg += 'However, the extension is currently disabled. Would you like to enable it and reboot?'
|
11 |
-
}
|
12 |
-
else if(event.detail.target.installed == 'True') {
|
13 |
-
msg += 'However, it seems that the extension is in an import-fail state or is not compatible with the current version. Please address this issue.';
|
14 |
-
}
|
15 |
-
else {
|
16 |
-
msg += `Would you like to install it and reboot?`;
|
17 |
-
}
|
18 |
-
|
19 |
-
msg += `\n\nRequest message:\n${event.detail.msg}`;
|
20 |
-
|
21 |
-
if(event.detail.target.installed == 'True') {
|
22 |
-
alert(msg);
|
23 |
-
return;
|
24 |
-
}
|
25 |
-
|
26 |
-
let res = confirm(msg);
|
27 |
-
if(res) {
|
28 |
-
if(event.detail.target.installed == 'Disabled') {
|
29 |
-
const response = await api.fetchApi(`/customnode/toggle_active`, {
|
30 |
-
method: 'POST',
|
31 |
-
headers: { 'Content-Type': 'application/json' },
|
32 |
-
body: JSON.stringify(event.detail.target)
|
33 |
-
});
|
34 |
-
}
|
35 |
-
else {
|
36 |
-
await sleep(300);
|
37 |
-
app.ui.dialog.show(`Installing... '${event.detail.target.title}'`);
|
38 |
-
|
39 |
-
const response = await api.fetchApi(`/customnode/install`, {
|
40 |
-
method: 'POST',
|
41 |
-
headers: { 'Content-Type': 'application/json' },
|
42 |
-
body: JSON.stringify(event.detail.target)
|
43 |
-
});
|
44 |
-
|
45 |
-
if(response.status == 403) {
|
46 |
-
show_message('This action is not allowed with this security level configuration.');
|
47 |
-
return false;
|
48 |
-
}
|
49 |
-
}
|
50 |
-
|
51 |
-
let response = await api.fetchApi("/manager/reboot");
|
52 |
-
if(response.status == 403) {
|
53 |
-
show_message('This action is not allowed with this security level configuration.');
|
54 |
-
return false;
|
55 |
-
}
|
56 |
-
|
57 |
-
await sleep(300);
|
58 |
-
|
59 |
-
app.ui.dialog.show(`Rebooting...`);
|
60 |
-
}
|
61 |
-
}
|
62 |
-
|
63 |
-
api.addEventListener("cm-api-try-install-customnode", tryInstallCustomNode);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ComfyUI/custom_nodes/manager-core/js/comfyui-manager.js
DELETED
@@ -1,976 +0,0 @@
|
|
1 |
-
import { api } from "../../scripts/api.js";
|
2 |
-
import { app } from "../../scripts/app.js";
|
3 |
-
import { $el, ComfyDialog } from "../../scripts/ui.js";
|
4 |
-
import { manager_instance, rebootAPI, migrateAPI, setManagerInstance, show_message } from "./common.js";
|
5 |
-
import { CustomNodesManager } from "./custom-nodes-manager.js";
|
6 |
-
import { SnapshotManager } from "./snapshot.js";
|
7 |
-
import { ModelManager } from "./model-manager.js";
|
8 |
-
|
9 |
-
var docStyle = document.createElement('style');
|
10 |
-
docStyle.innerHTML = `
|
11 |
-
.comfy-toast {
|
12 |
-
position: fixed;
|
13 |
-
bottom: 20px;
|
14 |
-
left: 50%;
|
15 |
-
transform: translateX(-50%);
|
16 |
-
background-color: rgba(0, 0, 0, 0.7);
|
17 |
-
color: white;
|
18 |
-
padding: 10px 20px;
|
19 |
-
border-radius: 5px;
|
20 |
-
z-index: 1000;
|
21 |
-
transition: opacity 0.5s;
|
22 |
-
}
|
23 |
-
|
24 |
-
.comfy-toast-fadeout {
|
25 |
-
opacity: 0;
|
26 |
-
}
|
27 |
-
|
28 |
-
#cm-manager-dialog {
|
29 |
-
width: 1000px;
|
30 |
-
height: 350px;
|
31 |
-
box-sizing: content-box;
|
32 |
-
z-index: 10000;
|
33 |
-
overflow-y: auto;
|
34 |
-
}
|
35 |
-
|
36 |
-
.cb-widget {
|
37 |
-
width: 400px;
|
38 |
-
height: 25px;
|
39 |
-
box-sizing: border-box;
|
40 |
-
z-index: 10000;
|
41 |
-
margin-top: 10px;
|
42 |
-
margin-bottom: 5px;
|
43 |
-
}
|
44 |
-
|
45 |
-
.cb-widget-input {
|
46 |
-
width: 305px;
|
47 |
-
height: 25px;
|
48 |
-
box-sizing: border-box;
|
49 |
-
}
|
50 |
-
.cb-widget-input:disabled {
|
51 |
-
background-color: #444444;
|
52 |
-
color: white;
|
53 |
-
}
|
54 |
-
|
55 |
-
.cb-widget-input-label {
|
56 |
-
width: 90px;
|
57 |
-
height: 25px;
|
58 |
-
box-sizing: border-box;
|
59 |
-
color: white;
|
60 |
-
text-align: right;
|
61 |
-
display: inline-block;
|
62 |
-
margin-right: 5px;
|
63 |
-
}
|
64 |
-
|
65 |
-
.cm-menu-container {
|
66 |
-
column-gap: 20px;
|
67 |
-
display: flex;
|
68 |
-
flex-wrap: wrap;
|
69 |
-
justify-content: center;
|
70 |
-
box-sizing: content-box;
|
71 |
-
}
|
72 |
-
|
73 |
-
.cm-menu-column {
|
74 |
-
display: flex;
|
75 |
-
flex-direction: column;
|
76 |
-
flex: 1 1 auto;
|
77 |
-
width: 300px;
|
78 |
-
box-sizing: content-box;
|
79 |
-
}
|
80 |
-
|
81 |
-
.cm-title {
|
82 |
-
background-color: black;
|
83 |
-
text-align: center;
|
84 |
-
height: 40px;
|
85 |
-
width: calc(100% - 10px);
|
86 |
-
font-weight: bold;
|
87 |
-
justify-content: center;
|
88 |
-
align-content: center;
|
89 |
-
vertical-align: middle;
|
90 |
-
}
|
91 |
-
|
92 |
-
#custom-nodes-grid a {
|
93 |
-
color: #5555FF;
|
94 |
-
font-weight: bold;
|
95 |
-
text-decoration: none;
|
96 |
-
}
|
97 |
-
|
98 |
-
#custom-nodes-grid a:hover {
|
99 |
-
color: #7777FF;
|
100 |
-
text-decoration: underline;
|
101 |
-
}
|
102 |
-
|
103 |
-
.cm-conflicted-nodes-text {
|
104 |
-
background-color: #CCCC55 !important;
|
105 |
-
color: #AA3333 !important;
|
106 |
-
font-size: 10px;
|
107 |
-
border-radius: 5px;
|
108 |
-
padding: 10px;
|
109 |
-
}
|
110 |
-
|
111 |
-
.cm-warn-note {
|
112 |
-
background-color: #101010 !important;
|
113 |
-
color: #FF3800 !important;
|
114 |
-
font-size: 13px;
|
115 |
-
border-radius: 5px;
|
116 |
-
padding: 10px;
|
117 |
-
overflow-x: hidden;
|
118 |
-
overflow: auto;
|
119 |
-
}
|
120 |
-
|
121 |
-
.cm-info-note {
|
122 |
-
background-color: #101010 !important;
|
123 |
-
color: #FF3800 !important;
|
124 |
-
font-size: 13px;
|
125 |
-
border-radius: 5px;
|
126 |
-
padding: 10px;
|
127 |
-
overflow-x: hidden;
|
128 |
-
overflow: auto;
|
129 |
-
}
|
130 |
-
`;
|
131 |
-
|
132 |
-
document.head.appendChild(docStyle);
|
133 |
-
|
134 |
-
var update_comfyui_button = null;
|
135 |
-
var switch_comfyui_button = null;
|
136 |
-
var fetch_updates_button = null;
|
137 |
-
var update_all_button = null;
|
138 |
-
let share_option = 'all';
|
139 |
-
|
140 |
-
// copied style from https://github.com/pythongosssss/ComfyUI-Custom-Scripts
|
141 |
-
const style = `
|
142 |
-
#workflowgallery-button {
|
143 |
-
width: 310px;
|
144 |
-
height: 27px;
|
145 |
-
padding: 0px !important;
|
146 |
-
position: relative;
|
147 |
-
overflow: hidden;
|
148 |
-
font-size: 17px !important;
|
149 |
-
}
|
150 |
-
#cm-nodeinfo-button {
|
151 |
-
width: 310px;
|
152 |
-
height: 27px;
|
153 |
-
padding: 0px !important;
|
154 |
-
position: relative;
|
155 |
-
overflow: hidden;
|
156 |
-
font-size: 17px !important;
|
157 |
-
}
|
158 |
-
#cm-manual-button {
|
159 |
-
width: 310px;
|
160 |
-
height: 27px;
|
161 |
-
position: relative;
|
162 |
-
overflow: hidden;
|
163 |
-
}
|
164 |
-
|
165 |
-
.cm-button {
|
166 |
-
width: 310px;
|
167 |
-
height: 30px;
|
168 |
-
position: relative;
|
169 |
-
overflow: hidden;
|
170 |
-
font-size: 17px !important;
|
171 |
-
}
|
172 |
-
|
173 |
-
.cm-button-red {
|
174 |
-
width: 310px;
|
175 |
-
height: 30px;
|
176 |
-
position: relative;
|
177 |
-
overflow: hidden;
|
178 |
-
font-size: 17px !important;
|
179 |
-
background-color: #500000 !important;
|
180 |
-
color: white !important;
|
181 |
-
}
|
182 |
-
|
183 |
-
|
184 |
-
.cm-button-orange {
|
185 |
-
width: 310px;
|
186 |
-
height: 30px;
|
187 |
-
position: relative;
|
188 |
-
overflow: hidden;
|
189 |
-
font-size: 17px !important;
|
190 |
-
font-weight: bold;
|
191 |
-
background-color: orange !important;
|
192 |
-
color: black !important;
|
193 |
-
}
|
194 |
-
|
195 |
-
.cm-experimental-button {
|
196 |
-
width: 290px;
|
197 |
-
height: 30px;
|
198 |
-
position: relative;
|
199 |
-
overflow: hidden;
|
200 |
-
font-size: 17px !important;
|
201 |
-
}
|
202 |
-
|
203 |
-
.cm-experimental {
|
204 |
-
width: 310px;
|
205 |
-
border: 1px solid #555;
|
206 |
-
border-radius: 5px;
|
207 |
-
padding: 10px;
|
208 |
-
align-items: center;
|
209 |
-
text-align: center;
|
210 |
-
justify-content: center;
|
211 |
-
box-sizing: border-box;
|
212 |
-
}
|
213 |
-
|
214 |
-
.cm-experimental-legend {
|
215 |
-
margin-top: -20px;
|
216 |
-
margin-left: 50%;
|
217 |
-
width:auto;
|
218 |
-
height:20px;
|
219 |
-
font-size: 13px;
|
220 |
-
font-weight: bold;
|
221 |
-
background-color: #990000;
|
222 |
-
color: #CCFFFF;
|
223 |
-
border-radius: 5px;
|
224 |
-
text-align: center;
|
225 |
-
transform: translateX(-50%);
|
226 |
-
display: block;
|
227 |
-
}
|
228 |
-
|
229 |
-
.cm-menu-combo {
|
230 |
-
cursor: pointer;
|
231 |
-
width: 310px;
|
232 |
-
box-sizing: border-box;
|
233 |
-
}
|
234 |
-
|
235 |
-
.cm-small-button {
|
236 |
-
width: 120px;
|
237 |
-
height: 30px;
|
238 |
-
position: relative;
|
239 |
-
overflow: hidden;
|
240 |
-
box-sizing: border-box;
|
241 |
-
font-size: 17px !important;
|
242 |
-
}
|
243 |
-
|
244 |
-
#cm-install-customnodes-button {
|
245 |
-
width: 200px;
|
246 |
-
height: 30px;
|
247 |
-
position: relative;
|
248 |
-
overflow: hidden;
|
249 |
-
box-sizing: border-box;
|
250 |
-
font-size: 17px !important;
|
251 |
-
}
|
252 |
-
|
253 |
-
.cm-search-filter {
|
254 |
-
width: 200px;
|
255 |
-
height: 30px !important;
|
256 |
-
position: relative;
|
257 |
-
overflow: hidden;
|
258 |
-
box-sizing: border-box;
|
259 |
-
}
|
260 |
-
|
261 |
-
.cb-node-label {
|
262 |
-
width: 400px;
|
263 |
-
height:28px;
|
264 |
-
color: black;
|
265 |
-
background-color: #777777;
|
266 |
-
font-size: 18px;
|
267 |
-
text-align: center;
|
268 |
-
font-weight: bold;
|
269 |
-
}
|
270 |
-
|
271 |
-
#cm-close-button {
|
272 |
-
width: calc(100% - 65px);
|
273 |
-
bottom: 10px;
|
274 |
-
position: absolute;
|
275 |
-
overflow: hidden;
|
276 |
-
}
|
277 |
-
|
278 |
-
#cm-save-button {
|
279 |
-
width: calc(100% - 65px);
|
280 |
-
bottom:40px;
|
281 |
-
position: absolute;
|
282 |
-
overflow: hidden;
|
283 |
-
}
|
284 |
-
#cm-save-button:disabled {
|
285 |
-
background-color: #444444;
|
286 |
-
}
|
287 |
-
|
288 |
-
.pysssss-workflow-arrow-2 {
|
289 |
-
position: absolute;
|
290 |
-
top: 0;
|
291 |
-
bottom: 0;
|
292 |
-
right: 0;
|
293 |
-
font-size: 12px;
|
294 |
-
display: flex;
|
295 |
-
align-items: center;
|
296 |
-
width: 24px;
|
297 |
-
justify-content: center;
|
298 |
-
background: rgba(255,255,255,0.1);
|
299 |
-
content: "▼";
|
300 |
-
}
|
301 |
-
.pysssss-workflow-arrow-2:after {
|
302 |
-
content: "▼";
|
303 |
-
}
|
304 |
-
.pysssss-workflow-arrow-2:hover {
|
305 |
-
filter: brightness(1.6);
|
306 |
-
background-color: var(--comfy-menu-bg);
|
307 |
-
}
|
308 |
-
.pysssss-workflow-popup-2 ~ .litecontextmenu {
|
309 |
-
transform: scale(1.3);
|
310 |
-
}
|
311 |
-
#workflowgallery-button-menu {
|
312 |
-
z-index: 10000000000 !important;
|
313 |
-
}
|
314 |
-
#cm-manual-button-menu {
|
315 |
-
z-index: 10000000000 !important;
|
316 |
-
}
|
317 |
-
`;
|
318 |
-
|
319 |
-
async function fetchNicknames() {
|
320 |
-
const response1 = await api.fetchApi(`/customnode/getmappings?mode=nickname`);
|
321 |
-
const mappings = await response1.json();
|
322 |
-
|
323 |
-
let result = {};
|
324 |
-
let nickname_patterns = [];
|
325 |
-
|
326 |
-
for (let i in mappings) {
|
327 |
-
let item = mappings[i];
|
328 |
-
var nickname;
|
329 |
-
if (item[1].nickname) {
|
330 |
-
nickname = item[1].nickname;
|
331 |
-
}
|
332 |
-
else if (item[1].title) {
|
333 |
-
nickname = item[1].title;
|
334 |
-
}
|
335 |
-
else {
|
336 |
-
nickname = item[1].title_aux;
|
337 |
-
}
|
338 |
-
|
339 |
-
for (let j in item[0]) {
|
340 |
-
result[item[0][j]] = nickname;
|
341 |
-
}
|
342 |
-
|
343 |
-
if(item[1].nodename_pattern) {
|
344 |
-
nickname_patterns.push([item[1].nodename_pattern, nickname]);
|
345 |
-
}
|
346 |
-
}
|
347 |
-
|
348 |
-
return [result, nickname_patterns];
|
349 |
-
}
|
350 |
-
|
351 |
-
const [nicknames, nickname_patterns] = await fetchNicknames();
|
352 |
-
|
353 |
-
function getNickname(node, nodename) {
|
354 |
-
if(node.nickname) {
|
355 |
-
return node.nickname;
|
356 |
-
}
|
357 |
-
else {
|
358 |
-
if (nicknames[nodename]) {
|
359 |
-
node.nickname = nicknames[nodename];
|
360 |
-
}
|
361 |
-
else if(node.getInnerNodes) {
|
362 |
-
let pure_name = getPureName(node);
|
363 |
-
let groupNode = app.graph.extra?.groupNodes?.[pure_name];
|
364 |
-
if(groupNode) {
|
365 |
-
let packname = groupNode.packname;
|
366 |
-
node.nickname = packname;
|
367 |
-
}
|
368 |
-
return node.nickname;
|
369 |
-
}
|
370 |
-
else {
|
371 |
-
for(let i in nickname_patterns) {
|
372 |
-
let item = nickname_patterns[i];
|
373 |
-
if(nodename.match(item[0])) {
|
374 |
-
node.nickname = item[1];
|
375 |
-
}
|
376 |
-
}
|
377 |
-
}
|
378 |
-
|
379 |
-
return node.nickname;
|
380 |
-
}
|
381 |
-
}
|
382 |
-
|
383 |
-
async function updateComfyUI() {
|
384 |
-
let prev_text = update_comfyui_button.innerText;
|
385 |
-
update_comfyui_button.innerText = "Updating ComfyUI...";
|
386 |
-
update_comfyui_button.disabled = true;
|
387 |
-
update_comfyui_button.style.backgroundColor = "gray";
|
388 |
-
|
389 |
-
try {
|
390 |
-
const response = await api.fetchApi('/comfyui_manager/update_comfyui');
|
391 |
-
|
392 |
-
if (response.status == 400) {
|
393 |
-
show_message('Failed to update ComfyUI.');
|
394 |
-
return false;
|
395 |
-
}
|
396 |
-
|
397 |
-
if (response.status == 201) {
|
398 |
-
show_message('ComfyUI has been successfully updated.');
|
399 |
-
}
|
400 |
-
else {
|
401 |
-
show_message('ComfyUI is already up to date with the latest version.');
|
402 |
-
}
|
403 |
-
|
404 |
-
return true;
|
405 |
-
}
|
406 |
-
catch (exception) {
|
407 |
-
show_message(`Failed to update ComfyUI / ${exception}`);
|
408 |
-
return false;
|
409 |
-
}
|
410 |
-
finally {
|
411 |
-
update_comfyui_button.disabled = false;
|
412 |
-
update_comfyui_button.innerText = prev_text;
|
413 |
-
update_comfyui_button.style.backgroundColor = "";
|
414 |
-
}
|
415 |
-
}
|
416 |
-
|
417 |
-
function showVersionSelectorDialog(versions, current, onSelect) {
|
418 |
-
const dialog = new ComfyDialog();
|
419 |
-
dialog.element.style.zIndex = 100003;
|
420 |
-
dialog.element.style.width = "300px";
|
421 |
-
dialog.element.style.padding = "0";
|
422 |
-
dialog.element.style.backgroundColor = "#2a2a2a";
|
423 |
-
dialog.element.style.border = "1px solid #3a3a3a";
|
424 |
-
dialog.element.style.borderRadius = "8px";
|
425 |
-
dialog.element.style.boxSizing = "border-box";
|
426 |
-
dialog.element.style.overflow = "hidden";
|
427 |
-
|
428 |
-
const contentStyle = {
|
429 |
-
width: "300px",
|
430 |
-
display: "flex",
|
431 |
-
flexDirection: "column",
|
432 |
-
alignItems: "center",
|
433 |
-
padding: "20px",
|
434 |
-
boxSizing: "border-box",
|
435 |
-
gap: "15px"
|
436 |
-
};
|
437 |
-
|
438 |
-
let selectedVersion = versions[0];
|
439 |
-
|
440 |
-
const versionList = $el("select", {
|
441 |
-
multiple: true,
|
442 |
-
size: Math.min(10, versions.length),
|
443 |
-
style: {
|
444 |
-
width: "260px",
|
445 |
-
height: "auto",
|
446 |
-
backgroundColor: "#383838",
|
447 |
-
color: "#ffffff",
|
448 |
-
border: "1px solid #4a4a4a",
|
449 |
-
borderRadius: "4px",
|
450 |
-
padding: "5px",
|
451 |
-
boxSizing: "border-box"
|
452 |
-
}
|
453 |
-
},
|
454 |
-
versions.map((v, index) => $el("option", {
|
455 |
-
value: v,
|
456 |
-
textContent: v,
|
457 |
-
selected: v === current
|
458 |
-
}))
|
459 |
-
);
|
460 |
-
|
461 |
-
versionList.addEventListener('change', (e) => {
|
462 |
-
selectedVersion = e.target.value;
|
463 |
-
Array.from(e.target.options).forEach(opt => {
|
464 |
-
opt.selected = opt.value === selectedVersion;
|
465 |
-
});
|
466 |
-
});
|
467 |
-
|
468 |
-
const content = $el("div", {
|
469 |
-
style: contentStyle
|
470 |
-
}, [
|
471 |
-
$el("h3", {
|
472 |
-
textContent: "Select Version",
|
473 |
-
style: {
|
474 |
-
color: "#ffffff",
|
475 |
-
backgroundColor: "#1a1a1a",
|
476 |
-
padding: "10px 15px",
|
477 |
-
margin: "0 0 10px 0",
|
478 |
-
width: "260px",
|
479 |
-
textAlign: "center",
|
480 |
-
borderRadius: "4px",
|
481 |
-
boxSizing: "border-box",
|
482 |
-
whiteSpace: "nowrap",
|
483 |
-
overflow: "hidden",
|
484 |
-
textOverflow: "ellipsis"
|
485 |
-
}
|
486 |
-
}),
|
487 |
-
versionList,
|
488 |
-
$el("div", {
|
489 |
-
style: {
|
490 |
-
display: "flex",
|
491 |
-
justifyContent: "space-between",
|
492 |
-
width: "260px",
|
493 |
-
gap: "10px"
|
494 |
-
}
|
495 |
-
}, [
|
496 |
-
$el("button", {
|
497 |
-
textContent: "Cancel",
|
498 |
-
onclick: () => dialog.close(),
|
499 |
-
style: {
|
500 |
-
flex: "1",
|
501 |
-
padding: "8px",
|
502 |
-
backgroundColor: "#4a4a4a",
|
503 |
-
color: "#ffffff",
|
504 |
-
border: "none",
|
505 |
-
borderRadius: "4px",
|
506 |
-
cursor: "pointer",
|
507 |
-
whiteSpace: "nowrap",
|
508 |
-
overflow: "hidden",
|
509 |
-
textOverflow: "ellipsis"
|
510 |
-
}
|
511 |
-
}),
|
512 |
-
$el("button", {
|
513 |
-
textContent: "Select",
|
514 |
-
onclick: () => {
|
515 |
-
if (selectedVersion) {
|
516 |
-
onSelect(selectedVersion);
|
517 |
-
dialog.close();
|
518 |
-
} else {
|
519 |
-
alert("Please select a version.");
|
520 |
-
}
|
521 |
-
},
|
522 |
-
style: {
|
523 |
-
flex: "1",
|
524 |
-
padding: "8px",
|
525 |
-
backgroundColor: "#4CAF50",
|
526 |
-
color: "#ffffff",
|
527 |
-
border: "none",
|
528 |
-
borderRadius: "4px",
|
529 |
-
cursor: "pointer",
|
530 |
-
whiteSpace: "nowrap",
|
531 |
-
overflow: "hidden",
|
532 |
-
textOverflow: "ellipsis"
|
533 |
-
}
|
534 |
-
}),
|
535 |
-
])
|
536 |
-
]);
|
537 |
-
|
538 |
-
dialog.show(content);
|
539 |
-
}
|
540 |
-
|
541 |
-
async function switchComfyUI() {
|
542 |
-
let res = await api.fetchApi(`/comfyui_manager/comfyui_versions`, { cache: "no-store" });
|
543 |
-
|
544 |
-
if(res.status == 200) {
|
545 |
-
let obj = await res.json();
|
546 |
-
|
547 |
-
let versions = [];
|
548 |
-
let default_version;
|
549 |
-
|
550 |
-
for(let v of obj.versions) {
|
551 |
-
default_version = v;
|
552 |
-
versions.push(v);
|
553 |
-
}
|
554 |
-
|
555 |
-
showVersionSelectorDialog(versions, obj.current, (selected_version) => {
|
556 |
-
api.fetchApi(`/comfyui_manager/comfyui_switch_version?ver=${selected_version}`, { cache: "no-store" });
|
557 |
-
});
|
558 |
-
}
|
559 |
-
else {
|
560 |
-
show_message('Failed to fetch ComfyUI versions.');
|
561 |
-
}
|
562 |
-
}
|
563 |
-
|
564 |
-
|
565 |
-
async function fetchUpdates(update_check_checkbox) {
|
566 |
-
let prev_text = fetch_updates_button.innerText;
|
567 |
-
fetch_updates_button.innerText = "Fetching updates...";
|
568 |
-
fetch_updates_button.disabled = true;
|
569 |
-
fetch_updates_button.style.backgroundColor = "gray";
|
570 |
-
|
571 |
-
try {
|
572 |
-
var mode = manager_instance.datasrc_combo.value;
|
573 |
-
|
574 |
-
const response = await api.fetchApi(`/customnode/fetch_updates?mode=${mode}`);
|
575 |
-
|
576 |
-
if (response.status != 200 && response.status != 201) {
|
577 |
-
show_message('Failed to fetch updates.');
|
578 |
-
return false;
|
579 |
-
}
|
580 |
-
|
581 |
-
if (response.status == 201) {
|
582 |
-
show_message("There is an updated extension available.<BR><BR><P><B>NOTE:<BR>Fetch Updates is not an update.<BR>Please update from <button id='cm-install-customnodes-button'>Install Custom Nodes</button> </B></P>");
|
583 |
-
|
584 |
-
const button = document.getElementById('cm-install-customnodes-button');
|
585 |
-
button.addEventListener("click",
|
586 |
-
async function() {
|
587 |
-
app.ui.dialog.close();
|
588 |
-
|
589 |
-
if(!CustomNodesManager.instance) {
|
590 |
-
CustomNodesManager.instance = new CustomNodesManager(app, self);
|
591 |
-
}
|
592 |
-
await CustomNodesManager.instance.show(CustomNodesManager.ShowMode.UPDATE);
|
593 |
-
}
|
594 |
-
);
|
595 |
-
|
596 |
-
update_check_checkbox.checked = false;
|
597 |
-
}
|
598 |
-
else {
|
599 |
-
show_message('All extensions are already up-to-date with the latest versions.');
|
600 |
-
}
|
601 |
-
|
602 |
-
return true;
|
603 |
-
}
|
604 |
-
catch (exception) {
|
605 |
-
show_message(`Failed to update custom nodes / ${exception}`);
|
606 |
-
return false;
|
607 |
-
}
|
608 |
-
finally {
|
609 |
-
fetch_updates_button.disabled = false;
|
610 |
-
fetch_updates_button.innerText = prev_text;
|
611 |
-
fetch_updates_button.style.backgroundColor = "";
|
612 |
-
}
|
613 |
-
}
|
614 |
-
|
615 |
-
async function updateAll(update_check_checkbox, manager_dialog) {
|
616 |
-
let prev_text = update_all_button.innerText;
|
617 |
-
update_all_button.innerText = "Updating all custom nodes...";
|
618 |
-
update_all_button.disabled = true;
|
619 |
-
update_all_button.style.backgroundColor = "gray";
|
620 |
-
|
621 |
-
try {
|
622 |
-
var mode = manager_instance.datasrc_combo.value;
|
623 |
-
|
624 |
-
update_all_button.innerText = "Updating all custom nodes...";
|
625 |
-
const response = await api.fetchApi(`/customnode/update_all?mode=${mode}`);
|
626 |
-
|
627 |
-
if (response.status == 403) {
|
628 |
-
show_message('This action is not allowed with this security level configuration.');
|
629 |
-
return false;
|
630 |
-
}
|
631 |
-
|
632 |
-
if (response.status == 400) {
|
633 |
-
show_message('Failed to update ComfyUI or several extensions.<BR><BR>See terminal log.<BR>');
|
634 |
-
return false;
|
635 |
-
}
|
636 |
-
|
637 |
-
if(response.status == 201) {
|
638 |
-
const update_info = await response2.json();
|
639 |
-
|
640 |
-
let failed_list = "";
|
641 |
-
if(update_info.failed.length > 0) {
|
642 |
-
failed_list = "<BR>FAILED: "+update_info.failed.join(", ");
|
643 |
-
}
|
644 |
-
|
645 |
-
let updated_list = "";
|
646 |
-
if(update_info.updated.length > 0) {
|
647 |
-
updated_list = "<BR>UPDATED: "+update_info.updated.join(", ");
|
648 |
-
}
|
649 |
-
|
650 |
-
show_message(
|
651 |
-
"All extensions have been updated to the latest version.<BR>To apply the updated custom node, please <button class='cm-small-button' id='cm-reboot-button5'>RESTART</button> ComfyUI. And refresh browser.<BR>"
|
652 |
-
+failed_list
|
653 |
-
+updated_list
|
654 |
-
);
|
655 |
-
|
656 |
-
const rebootButton = document.getElementById('cm-reboot-button5');
|
657 |
-
rebootButton.addEventListener("click",
|
658 |
-
function() {
|
659 |
-
if(rebootAPI()) {
|
660 |
-
manager_dialog.close();
|
661 |
-
}
|
662 |
-
});
|
663 |
-
}
|
664 |
-
else {
|
665 |
-
show_message('All extensions are already up-to-date with the latest versions.');
|
666 |
-
}
|
667 |
-
|
668 |
-
return true;
|
669 |
-
}
|
670 |
-
catch (exception) {
|
671 |
-
show_message(`Failed to update ComfyUI or several extensions / ${exception}`);
|
672 |
-
return false;
|
673 |
-
}
|
674 |
-
finally {
|
675 |
-
update_all_button.disabled = false;
|
676 |
-
update_all_button.innerText = prev_text;
|
677 |
-
update_all_button.style.backgroundColor = "";
|
678 |
-
}
|
679 |
-
}
|
680 |
-
|
681 |
-
function newDOMTokenList(initialTokens) {
|
682 |
-
const tmp = document.createElement(`div`);
|
683 |
-
|
684 |
-
const classList = tmp.classList;
|
685 |
-
if (initialTokens) {
|
686 |
-
initialTokens.forEach(token => {
|
687 |
-
classList.add(token);
|
688 |
-
});
|
689 |
-
}
|
690 |
-
|
691 |
-
return classList;
|
692 |
-
}
|
693 |
-
|
694 |
-
// -----------
|
695 |
-
class ManagerMenuDialog extends ComfyDialog {
|
696 |
-
createControlsMid() {
|
697 |
-
let self = this;
|
698 |
-
|
699 |
-
const res =
|
700 |
-
[
|
701 |
-
$el("button.cm-button", {
|
702 |
-
type: "button",
|
703 |
-
textContent: "Favorites Node List",
|
704 |
-
onclick:
|
705 |
-
() => {
|
706 |
-
if(!CustomNodesManager.instance) {
|
707 |
-
CustomNodesManager.instance = new CustomNodesManager(app, self);
|
708 |
-
}
|
709 |
-
CustomNodesManager.instance.show(CustomNodesManager.ShowMode.FAVORITES);
|
710 |
-
}
|
711 |
-
}),
|
712 |
-
|
713 |
-
$el("button.cm-button", {
|
714 |
-
type: "button",
|
715 |
-
textContent: "Full Node List",
|
716 |
-
onclick:
|
717 |
-
() => {
|
718 |
-
if(!CustomNodesManager.instance) {
|
719 |
-
CustomNodesManager.instance = new CustomNodesManager(app, self);
|
720 |
-
}
|
721 |
-
CustomNodesManager.instance.show(CustomNodesManager.ShowMode.NORMAL);
|
722 |
-
}
|
723 |
-
}),
|
724 |
-
|
725 |
-
$el("button.cm-button", {
|
726 |
-
type: "button",
|
727 |
-
textContent: "Missing Node List",
|
728 |
-
onclick:
|
729 |
-
() => {
|
730 |
-
if(!CustomNodesManager.instance) {
|
731 |
-
CustomNodesManager.instance = new CustomNodesManager(app, self);
|
732 |
-
}
|
733 |
-
CustomNodesManager.instance.show(CustomNodesManager.ShowMode.MISSING);
|
734 |
-
}
|
735 |
-
}),
|
736 |
-
|
737 |
-
$el("br", {}, []),
|
738 |
-
|
739 |
-
$el("button.cm-button", {
|
740 |
-
type: "button",
|
741 |
-
textContent: "Model Manager",
|
742 |
-
onclick:
|
743 |
-
() => {
|
744 |
-
if(!ModelManager.instance) {
|
745 |
-
ModelManager.instance = new ModelManager(app, self);
|
746 |
-
}
|
747 |
-
ModelManager.instance.show();
|
748 |
-
}
|
749 |
-
}),
|
750 |
-
|
751 |
-
$el("br", {}, []),
|
752 |
-
|
753 |
-
$el("button.cm-button-red", {
|
754 |
-
type: "button",
|
755 |
-
textContent: "Restart",
|
756 |
-
onclick: () => rebootAPI()
|
757 |
-
}),
|
758 |
-
];
|
759 |
-
|
760 |
-
let migration_btn =
|
761 |
-
$el("button.cm-button-orange", {
|
762 |
-
type: "button",
|
763 |
-
textContent: "Migrate to New Node System",
|
764 |
-
onclick: () => migrateAPI()
|
765 |
-
});
|
766 |
-
|
767 |
-
migration_btn.style.display = 'none';
|
768 |
-
|
769 |
-
res.push(migration_btn);
|
770 |
-
|
771 |
-
api.fetchApi('/manager/need_to_migrate')
|
772 |
-
.then(response => response.text())
|
773 |
-
.then(text => {
|
774 |
-
if (text === 'True') {
|
775 |
-
migration_btn.style.display = 'block';
|
776 |
-
}
|
777 |
-
})
|
778 |
-
.catch(error => {
|
779 |
-
console.error('Error checking migration status:', error);
|
780 |
-
});
|
781 |
-
|
782 |
-
return res;
|
783 |
-
}
|
784 |
-
|
785 |
-
createControlsLeft() {
|
786 |
-
let self = this;
|
787 |
-
|
788 |
-
this.update_check_checkbox = $el("input",{type:'checkbox', id:"skip_update_check"},[])
|
789 |
-
const uc_checkbox_text = $el("label",{for:"skip_update_check"},[" Skip update check"])
|
790 |
-
uc_checkbox_text.style.color = "var(--fg-color)";
|
791 |
-
uc_checkbox_text.style.cursor = "pointer";
|
792 |
-
this.update_check_checkbox.checked = true;
|
793 |
-
|
794 |
-
// db mode
|
795 |
-
this.datasrc_combo = document.createElement("select");
|
796 |
-
this.datasrc_combo.setAttribute("title", "Configure where to retrieve node/model information. If set to 'local,' the channel is ignored, and if set to 'channel (remote),' it fetches the latest information each time the list is opened.");
|
797 |
-
this.datasrc_combo.className = "cm-menu-combo";
|
798 |
-
this.datasrc_combo.appendChild($el('option', { value: 'cache', text: 'DB: Channel (1day cache)' }, []));
|
799 |
-
this.datasrc_combo.appendChild($el('option', { value: 'local', text: 'DB: Local' }, []));
|
800 |
-
this.datasrc_combo.appendChild($el('option', { value: 'url', text: 'DB: Channel (remote)' }, []));
|
801 |
-
|
802 |
-
// channel
|
803 |
-
let channel_combo = document.createElement("select");
|
804 |
-
channel_combo.setAttribute("title", "Configure the channel for retrieving data from the Custom Node list (including missing nodes) or the Model list.");
|
805 |
-
channel_combo.className = "cm-menu-combo";
|
806 |
-
api.fetchApi('/manager/channel_url_list')
|
807 |
-
.then(response => response.json())
|
808 |
-
.then(async data => {
|
809 |
-
try {
|
810 |
-
let urls = data.list;
|
811 |
-
for (let i in urls) {
|
812 |
-
if (urls[i] != '') {
|
813 |
-
let name_url = urls[i].split('::');
|
814 |
-
channel_combo.appendChild($el('option', { value: name_url[0], text: `Channel: ${name_url[0]}` }, []));
|
815 |
-
}
|
816 |
-
}
|
817 |
-
|
818 |
-
channel_combo.addEventListener('change', function (event) {
|
819 |
-
api.fetchApi(`/manager/channel_url_list?value=${event.target.value}`);
|
820 |
-
});
|
821 |
-
|
822 |
-
channel_combo.value = data.selected;
|
823 |
-
}
|
824 |
-
catch (exception) {
|
825 |
-
|
826 |
-
}
|
827 |
-
});
|
828 |
-
|
829 |
-
|
830 |
-
return [
|
831 |
-
$el("div", {}, [this.update_check_checkbox, uc_checkbox_text]),
|
832 |
-
$el("br", {}, []),
|
833 |
-
this.datasrc_combo,
|
834 |
-
channel_combo,
|
835 |
-
$el("br", {}, []),
|
836 |
-
|
837 |
-
$el("button.cm-button", {
|
838 |
-
type: "button",
|
839 |
-
textContent: "Snapshot Manager",
|
840 |
-
onclick:
|
841 |
-
() => {
|
842 |
-
if(!SnapshotManager.instance)
|
843 |
-
SnapshotManager.instance = new SnapshotManager(app, self);
|
844 |
-
SnapshotManager.instance.show();
|
845 |
-
}
|
846 |
-
})
|
847 |
-
];
|
848 |
-
}
|
849 |
-
|
850 |
-
createControlsRight() {
|
851 |
-
let self = this;
|
852 |
-
|
853 |
-
fetch_updates_button =
|
854 |
-
$el("button.cm-button", {
|
855 |
-
type: "button",
|
856 |
-
textContent: "Fetch Updates",
|
857 |
-
onclick:
|
858 |
-
() => fetchUpdates(this.update_check_checkbox)
|
859 |
-
});
|
860 |
-
|
861 |
-
update_all_button =
|
862 |
-
$el("button.cm-button", {
|
863 |
-
type: "button",
|
864 |
-
textContent: "Update All Custom Nodes",
|
865 |
-
onclick:
|
866 |
-
() => updateAll(this.update_check_checkbox, self)
|
867 |
-
});
|
868 |
-
|
869 |
-
const res =
|
870 |
-
[
|
871 |
-
update_all_button,
|
872 |
-
$el("br", {}, []),
|
873 |
-
fetch_updates_button
|
874 |
-
];
|
875 |
-
|
876 |
-
return res;
|
877 |
-
}
|
878 |
-
|
879 |
-
constructor() {
|
880 |
-
super();
|
881 |
-
|
882 |
-
const close_button = $el("button", { id: "cm-close-button", type: "button", textContent: "Close", onclick: () => this.close() });
|
883 |
-
|
884 |
-
const content =
|
885 |
-
$el("div.comfy-modal-content",
|
886 |
-
[
|
887 |
-
$el("tr.cm-title", {}, [
|
888 |
-
$el("font", {size:6, color:"white"}, [`ComfyUI Manager (Essential)`])]
|
889 |
-
),
|
890 |
-
$el("br", {}, []),
|
891 |
-
$el("div.cm-menu-container",
|
892 |
-
[
|
893 |
-
$el("div.cm-menu-column", [...this.createControlsLeft()]),
|
894 |
-
$el("div.cm-menu-column", [...this.createControlsMid()]),
|
895 |
-
$el("div.cm-menu-column", [...this.createControlsRight()])
|
896 |
-
]),
|
897 |
-
|
898 |
-
$el("br", {}, []),
|
899 |
-
close_button,
|
900 |
-
]
|
901 |
-
);
|
902 |
-
|
903 |
-
content.style.width = '100%';
|
904 |
-
content.style.height = '100%';
|
905 |
-
|
906 |
-
this.element = $el("div.comfy-modal", { id:'cm-manager-dialog', parent: document.body }, [ content ]);
|
907 |
-
}
|
908 |
-
|
909 |
-
show() {
|
910 |
-
this.element.style.display = "block";
|
911 |
-
}
|
912 |
-
}
|
913 |
-
|
914 |
-
|
915 |
-
app.registerExtension({
|
916 |
-
name: "Comfy.ManagerMenu",
|
917 |
-
init() {
|
918 |
-
$el("style", {
|
919 |
-
textContent: style,
|
920 |
-
parent: document.head,
|
921 |
-
});
|
922 |
-
},
|
923 |
-
async setup() {
|
924 |
-
const menu = document.querySelector(".comfy-menu");
|
925 |
-
const separator = document.createElement("hr");
|
926 |
-
|
927 |
-
separator.style.margin = "20px 0";
|
928 |
-
separator.style.width = "100%";
|
929 |
-
menu.append(separator);
|
930 |
-
|
931 |
-
const resp = await api.fetchApi('/manager/show_menu');
|
932 |
-
|
933 |
-
if(resp.status == 200) {
|
934 |
-
// new style Manager buttons
|
935 |
-
// unload models button into new style Manager button
|
936 |
-
let cmGroup = new (await import("../../scripts/ui/components/buttonGroup.js")).ComfyButtonGroup(
|
937 |
-
new(await import("../../scripts/ui/components/button.js")).ComfyButton({
|
938 |
-
icon: "star",
|
939 |
-
action: () => {
|
940 |
-
if(!manager_instance)
|
941 |
-
setManagerInstance(new ManagerMenuDialog());
|
942 |
-
|
943 |
-
if(!CustomNodesManager.instance) {
|
944 |
-
CustomNodesManager.instance = new CustomNodesManager(app, self);
|
945 |
-
}
|
946 |
-
CustomNodesManager.instance.show(CustomNodesManager.ShowMode.FAVORITES);
|
947 |
-
},
|
948 |
-
tooltip: "Show favorite custom node list",
|
949 |
-
content: "Manager",
|
950 |
-
classList: "comfyui-button comfyui-menu-mobile-collapse primary"
|
951 |
-
}).element,
|
952 |
-
new(await import("../../scripts/ui/components/button.js")).ComfyButton({
|
953 |
-
icon: "puzzle",
|
954 |
-
action: () => {
|
955 |
-
if(!manager_instance)
|
956 |
-
setManagerInstance(new ManagerMenuDialog());
|
957 |
-
manager_instance.show();
|
958 |
-
},
|
959 |
-
tooltip: "ComfyUI Manager",
|
960 |
-
}).element
|
961 |
-
);
|
962 |
-
|
963 |
-
app.menu?.settingsGroup.element.before(cmGroup.element);
|
964 |
-
|
965 |
-
// old style Manager button
|
966 |
-
const managerButton = document.createElement("button");
|
967 |
-
managerButton.textContent = "Manager";
|
968 |
-
managerButton.onclick = () => {
|
969 |
-
if(!manager_instance)
|
970 |
-
setManagerInstance(new ManagerMenuDialog());
|
971 |
-
manager_instance.show();
|
972 |
-
}
|
973 |
-
menu.append(managerButton);
|
974 |
-
}
|
975 |
-
}
|
976 |
-
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ComfyUI/custom_nodes/manager-core/js/common.js
DELETED
@@ -1,166 +0,0 @@
|
|
1 |
-
import { app } from "../../scripts/app.js";
|
2 |
-
import { api } from "../../scripts/api.js";
|
3 |
-
import { $el, ComfyDialog } from "../../scripts/ui.js";
|
4 |
-
|
5 |
-
export function show_message(msg) {
|
6 |
-
app.ui.dialog.show(msg);
|
7 |
-
app.ui.dialog.element.style.zIndex = 10010;
|
8 |
-
}
|
9 |
-
|
10 |
-
export async function sleep(ms) {
|
11 |
-
return new Promise(resolve => setTimeout(resolve, ms));
|
12 |
-
}
|
13 |
-
|
14 |
-
export function rebootAPI() {
|
15 |
-
if (confirm("Are you sure you'd like to reboot the server?")) {
|
16 |
-
if ('electronAPI' in window) {
|
17 |
-
console.log("Electron is here. Restarting app using electron.")
|
18 |
-
window.electronAPI.restartApp();
|
19 |
-
return true;
|
20 |
-
}
|
21 |
-
|
22 |
-
try {
|
23 |
-
api.fetchApi("/manager/reboot");
|
24 |
-
}
|
25 |
-
catch(exception) {
|
26 |
-
|
27 |
-
}
|
28 |
-
return true;
|
29 |
-
}
|
30 |
-
|
31 |
-
return false;
|
32 |
-
}
|
33 |
-
|
34 |
-
|
35 |
-
export async function migrateAPI() {
|
36 |
-
if (confirm("When performing a migration, existing installed custom nodes will be renamed and the server will be restarted. Are you sure you want to apply this?\n\n(If you don't perform the migration, ComfyUI-Manager's start-up time will be longer each time due to re-checking during startup.)")) {
|
37 |
-
try {
|
38 |
-
await api.fetchApi("/manager/migrate_unmanaged_nodes");
|
39 |
-
api.fetchApi("/manager/reboot");
|
40 |
-
}
|
41 |
-
catch(exception) {
|
42 |
-
|
43 |
-
}
|
44 |
-
return true;
|
45 |
-
}
|
46 |
-
|
47 |
-
return false;
|
48 |
-
}
|
49 |
-
|
50 |
-
|
51 |
-
export var manager_instance = null;
|
52 |
-
|
53 |
-
export function setManagerInstance(obj) {
|
54 |
-
manager_instance = obj;
|
55 |
-
}
|
56 |
-
|
57 |
-
export function showToast(message, duration = 3000) {
|
58 |
-
const toast = $el("div.comfy-toast", {textContent: message});
|
59 |
-
document.body.appendChild(toast);
|
60 |
-
setTimeout(() => {
|
61 |
-
toast.classList.add("comfy-toast-fadeout");
|
62 |
-
setTimeout(() => toast.remove(), 500);
|
63 |
-
}, duration);
|
64 |
-
}
|
65 |
-
|
66 |
-
function isValidURL(url) {
|
67 |
-
if(url.includes('&'))
|
68 |
-
return false;
|
69 |
-
|
70 |
-
const http_pattern = /^(https?|ftp):\/\/[^\s$?#]+$/;
|
71 |
-
const ssh_pattern = /^(.+@|ssh:\/\/).+:.+$/;
|
72 |
-
return http_pattern.test(url) || ssh_pattern.test(url);
|
73 |
-
}
|
74 |
-
|
75 |
-
|
76 |
-
export function md5(inputString) {
|
77 |
-
const hc = '0123456789abcdef';
|
78 |
-
const rh = n => {let j,s='';for(j=0;j<=3;j++) s+=hc.charAt((n>>(j*8+4))&0x0F)+hc.charAt((n>>(j*8))&0x0F);return s;}
|
79 |
-
const ad = (x,y) => {let l=(x&0xFFFF)+(y&0xFFFF);let m=(x>>16)+(y>>16)+(l>>16);return (m<<16)|(l&0xFFFF);}
|
80 |
-
const rl = (n,c) => (n<<c)|(n>>>(32-c));
|
81 |
-
const cm = (q,a,b,x,s,t) => ad(rl(ad(ad(a,q),ad(x,t)),s),b);
|
82 |
-
const ff = (a,b,c,d,x,s,t) => cm((b&c)|((~b)&d),a,b,x,s,t);
|
83 |
-
const gg = (a,b,c,d,x,s,t) => cm((b&d)|(c&(~d)),a,b,x,s,t);
|
84 |
-
const hh = (a,b,c,d,x,s,t) => cm(b^c^d,a,b,x,s,t);
|
85 |
-
const ii = (a,b,c,d,x,s,t) => cm(c^(b|(~d)),a,b,x,s,t);
|
86 |
-
const sb = x => {
|
87 |
-
let i;const nblk=((x.length+8)>>6)+1;const blks=[];for(i=0;i<nblk*16;i++) { blks[i]=0 };
|
88 |
-
for(i=0;i<x.length;i++) {blks[i>>2]|=x.charCodeAt(i)<<((i%4)*8);}
|
89 |
-
blks[i>>2]|=0x80<<((i%4)*8);blks[nblk*16-2]=x.length*8;return blks;
|
90 |
-
}
|
91 |
-
let i,x=sb(inputString),a=1732584193,b=-271733879,c=-1732584194,d=271733878,olda,oldb,oldc,oldd;
|
92 |
-
for(i=0;i<x.length;i+=16) {olda=a;oldb=b;oldc=c;oldd=d;
|
93 |
-
a=ff(a,b,c,d,x[i+ 0], 7, -680876936);d=ff(d,a,b,c,x[i+ 1],12, -389564586);c=ff(c,d,a,b,x[i+ 2],17, 606105819);
|
94 |
-
b=ff(b,c,d,a,x[i+ 3],22,-1044525330);a=ff(a,b,c,d,x[i+ 4], 7, -176418897);d=ff(d,a,b,c,x[i+ 5],12, 1200080426);
|
95 |
-
c=ff(c,d,a,b,x[i+ 6],17,-1473231341);b=ff(b,c,d,a,x[i+ 7],22, -45705983);a=ff(a,b,c,d,x[i+ 8], 7, 1770035416);
|
96 |
-
d=ff(d,a,b,c,x[i+ 9],12,-1958414417);c=ff(c,d,a,b,x[i+10],17, -42063);b=ff(b,c,d,a,x[i+11],22,-1990404162);
|
97 |
-
a=ff(a,b,c,d,x[i+12], 7, 1804603682);d=ff(d,a,b,c,x[i+13],12, -40341101);c=ff(c,d,a,b,x[i+14],17,-1502002290);
|
98 |
-
b=ff(b,c,d,a,x[i+15],22, 1236535329);a=gg(a,b,c,d,x[i+ 1], 5, -165796510);d=gg(d,a,b,c,x[i+ 6], 9,-1069501632);
|
99 |
-
c=gg(c,d,a,b,x[i+11],14, 643717713);b=gg(b,c,d,a,x[i+ 0],20, -373897302);a=gg(a,b,c,d,x[i+ 5], 5, -701558691);
|
100 |
-
d=gg(d,a,b,c,x[i+10], 9, 38016083);c=gg(c,d,a,b,x[i+15],14, -660478335);b=gg(b,c,d,a,x[i+ 4],20, -405537848);
|
101 |
-
a=gg(a,b,c,d,x[i+ 9], 5, 568446438);d=gg(d,a,b,c,x[i+14], 9,-1019803690);c=gg(c,d,a,b,x[i+ 3],14, -187363961);
|
102 |
-
b=gg(b,c,d,a,x[i+ 8],20, 1163531501);a=gg(a,b,c,d,x[i+13], 5,-1444681467);d=gg(d,a,b,c,x[i+ 2], 9, -51403784);
|
103 |
-
c=gg(c,d,a,b,x[i+ 7],14, 1735328473);b=gg(b,c,d,a,x[i+12],20,-1926607734);a=hh(a,b,c,d,x[i+ 5], 4, -378558);
|
104 |
-
d=hh(d,a,b,c,x[i+ 8],11,-2022574463);c=hh(c,d,a,b,x[i+11],16, 1839030562);b=hh(b,c,d,a,x[i+14],23, -35309556);
|
105 |
-
a=hh(a,b,c,d,x[i+ 1], 4,-1530992060);d=hh(d,a,b,c,x[i+ 4],11, 1272893353);c=hh(c,d,a,b,x[i+ 7],16, -155497632);
|
106 |
-
b=hh(b,c,d,a,x[i+10],23,-1094730640);a=hh(a,b,c,d,x[i+13], 4, 681279174);d=hh(d,a,b,c,x[i+ 0],11, -358537222);
|
107 |
-
c=hh(c,d,a,b,x[i+ 3],16, -722521979);b=hh(b,c,d,a,x[i+ 6],23, 76029189);a=hh(a,b,c,d,x[i+ 9], 4, -640364487);
|
108 |
-
d=hh(d,a,b,c,x[i+12],11, -421815835);c=hh(c,d,a,b,x[i+15],16, 530742520);b=hh(b,c,d,a,x[i+ 2],23, -995338651);
|
109 |
-
a=ii(a,b,c,d,x[i+ 0], 6, -198630844);d=ii(d,a,b,c,x[i+ 7],10, 1126891415);c=ii(c,d,a,b,x[i+14],15,-1416354905);
|
110 |
-
b=ii(b,c,d,a,x[i+ 5],21, -57434055);a=ii(a,b,c,d,x[i+12], 6, 1700485571);d=ii(d,a,b,c,x[i+ 3],10,-1894986606);
|
111 |
-
c=ii(c,d,a,b,x[i+10],15, -1051523);b=ii(b,c,d,a,x[i+ 1],21,-2054922799);a=ii(a,b,c,d,x[i+ 8], 6, 1873313359);
|
112 |
-
d=ii(d,a,b,c,x[i+15],10, -30611744);c=ii(c,d,a,b,x[i+ 6],15,-1560198380);b=ii(b,c,d,a,x[i+13],21, 1309151649);
|
113 |
-
a=ii(a,b,c,d,x[i+ 4], 6, -145523070);d=ii(d,a,b,c,x[i+11],10,-1120210379);c=ii(c,d,a,b,x[i+ 2],15, 718787259);
|
114 |
-
b=ii(b,c,d,a,x[i+ 9],21, -343485551);a=ad(a,olda);b=ad(b,oldb);c=ad(c,oldc);d=ad(d,oldd);
|
115 |
-
}
|
116 |
-
return rh(a)+rh(b)+rh(c)+rh(d);
|
117 |
-
}
|
118 |
-
|
119 |
-
export async function fetchData(route, options) {
|
120 |
-
let err;
|
121 |
-
const res = await api.fetchApi(route, options).catch(e => {
|
122 |
-
err = e;
|
123 |
-
});
|
124 |
-
|
125 |
-
if (!res) {
|
126 |
-
return {
|
127 |
-
status: 400,
|
128 |
-
error: new Error("Unknown Error")
|
129 |
-
}
|
130 |
-
}
|
131 |
-
|
132 |
-
const { status, statusText } = res;
|
133 |
-
if (err) {
|
134 |
-
return {
|
135 |
-
status,
|
136 |
-
error: err
|
137 |
-
}
|
138 |
-
}
|
139 |
-
|
140 |
-
if (status !== 200) {
|
141 |
-
return {
|
142 |
-
status,
|
143 |
-
error: new Error(statusText || "Unknown Error")
|
144 |
-
}
|
145 |
-
}
|
146 |
-
|
147 |
-
const data = await res.json();
|
148 |
-
if (!data) {
|
149 |
-
return {
|
150 |
-
status,
|
151 |
-
error: new Error(`Failed to load data: ${route}`)
|
152 |
-
}
|
153 |
-
}
|
154 |
-
return {
|
155 |
-
status,
|
156 |
-
data
|
157 |
-
}
|
158 |
-
}
|
159 |
-
|
160 |
-
export const icons = {
|
161 |
-
search: '<svg viewBox="0 0 24 24" width="100%" height="100%" pointer-events="none" xmlns="http://www.w3.org/2000/svg"><path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="m21 21-4.486-4.494M19 10.5a8.5 8.5 0 1 1-17 0 8.5 8.5 0 0 1 17 0"/></svg>',
|
162 |
-
extensions: '<svg viewBox="64 64 896 896" width="100%" height="100%" pointer-events="none" xmlns="http://www.w3.org/2000/svg"><path fill="currentColor" d="M843.5 737.4c-12.4-75.2-79.2-129.1-155.3-125.4S550.9 676 546 752c-153.5-4.8-208-40.7-199.1-113.7 3.3-27.3 19.8-41.9 50.1-49 18.4-4.3 38.8-4.9 57.3-3.2 1.7.2 3.5.3 5.2.5 11.3 2.7 22.8 5 34.3 6.8 34.1 5.6 68.8 8.4 101.8 6.6 92.8-5 156-45.9 159.2-132.7 3.1-84.1-54.7-143.7-147.9-183.6-29.9-12.8-61.6-22.7-93.3-30.2-14.3-3.4-26.3-5.7-35.2-7.2-7.9-75.9-71.5-133.8-147.8-134.4S189.7 168 180.5 243.8s40 146.3 114.2 163.9 149.9-23.3 175.7-95.1c9.4 1.7 18.7 3.6 28 5.8 28.2 6.6 56.4 15.4 82.4 26.6 70.7 30.2 109.3 70.1 107.5 119.9-1.6 44.6-33.6 65.2-96.2 68.6-27.5 1.5-57.6-.9-87.3-5.8-8.3-1.4-15.9-2.8-22.6-4.3-3.9-.8-6.6-1.5-7.8-1.8l-3.1-.6c-2.2-.3-5.9-.8-10.7-1.3-25-2.3-52.1-1.5-78.5 4.6-55.2 12.9-93.9 47.2-101.1 105.8-15.7 126.2 78.6 184.7 276 188.9 29.1 70.4 106.4 107.9 179.6 87 73.3-20.9 119.3-93.4 106.9-168.6M329.1 345.2a83.3 83.3 0 1 1 .01-166.61 83.3 83.3 0 0 1-.01 166.61M695.6 845a83.3 83.3 0 1 1 .01-166.61A83.3 83.3 0 0 1 695.6 845"/></svg>',
|
163 |
-
conflicts: '<svg viewBox="0 0 400 400" width="100%" height="100%" pointer-events="none" xmlns="http://www.w3.org/2000/svg"><path fill="currentColor" d="m397.2 350.4.2-.2-180-320-.2.2C213.8 24.2 207.4 20 200 20s-13.8 4.2-17.2 10.4l-.2-.2-180 320 .2.2c-1.6 2.8-2.8 6-2.8 9.6 0 11 9 20 20 20h360c11 0 20-9 20-20 0-3.6-1.2-6.8-2.8-9.6M220 340h-40v-40h40zm0-60h-40V120h40z"/></svg>',
|
164 |
-
passed: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 426.667 426.667"><path fill="#6AC259" d="M213.333,0C95.518,0,0,95.514,0,213.333s95.518,213.333,213.333,213.333c117.828,0,213.333-95.514,213.333-213.333S331.157,0,213.333,0z M174.199,322.918l-93.935-93.931l31.309-31.309l62.626,62.622l140.894-140.898l31.309,31.309L174.199,322.918z"/></svg>',
|
165 |
-
download: '<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" width="100%" height="100%" viewBox="0 0 32 32"><path fill="currentColor" d="M26 24v4H6v-4H4v4a2 2 0 0 0 2 2h20a2 2 0 0 0 2-2v-4zm0-10l-1.41-1.41L17 20.17V2h-2v18.17l-7.59-7.58L6 14l10 10l10-10z"></path></svg>'
|
166 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ComfyUI/custom_nodes/manager-core/js/custom-nodes-manager.js
DELETED
@@ -1,1688 +0,0 @@
|
|
1 |
-
import { app } from "../../scripts/app.js";
|
2 |
-
import { ComfyDialog, $el } from "../../scripts/ui.js";
|
3 |
-
import { api } from "../../scripts/api.js";
|
4 |
-
|
5 |
-
import {
|
6 |
-
manager_instance, rebootAPI,
|
7 |
-
fetchData, md5, icons, show_message
|
8 |
-
} from "./common.js";
|
9 |
-
|
10 |
-
// https://cenfun.github.io/turbogrid/api.html
|
11 |
-
import TG from "./turbogrid.esm.js";
|
12 |
-
|
13 |
-
const pageCss = `
|
14 |
-
.cn-manager {
|
15 |
-
--grid-font: -apple-system, BlinkMacSystemFont, "Segue UI", "Noto Sans", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
|
16 |
-
z-index: 10001;
|
17 |
-
width: 80%;
|
18 |
-
height: 80%;
|
19 |
-
display: flex;
|
20 |
-
flex-direction: column;
|
21 |
-
gap: 10px;
|
22 |
-
color: var(--fg-color);
|
23 |
-
font-family: arial, sans-serif;
|
24 |
-
}
|
25 |
-
|
26 |
-
.cn-manager .cn-flex-auto {
|
27 |
-
flex: auto;
|
28 |
-
}
|
29 |
-
|
30 |
-
.cn-manager button {
|
31 |
-
font-size: 16px;
|
32 |
-
color: var(--input-text);
|
33 |
-
background-color: var(--comfy-input-bg);
|
34 |
-
border-radius: 8px;
|
35 |
-
border-color: var(--border-color);
|
36 |
-
border-style: solid;
|
37 |
-
margin: 0;
|
38 |
-
padding: 4px 8px;
|
39 |
-
min-width: 100px;
|
40 |
-
}
|
41 |
-
|
42 |
-
.cn-manager button:disabled,
|
43 |
-
.cn-manager input:disabled,
|
44 |
-
.cn-manager select:disabled {
|
45 |
-
color: gray;
|
46 |
-
}
|
47 |
-
|
48 |
-
.cn-manager button:disabled {
|
49 |
-
background-color: var(--comfy-input-bg);
|
50 |
-
}
|
51 |
-
|
52 |
-
.cn-manager .cn-manager-restart {
|
53 |
-
display: none;
|
54 |
-
background-color: #500000;
|
55 |
-
color: white;
|
56 |
-
}
|
57 |
-
|
58 |
-
.cn-manager-header {
|
59 |
-
display: flex;
|
60 |
-
flex-wrap: wrap;
|
61 |
-
gap: 5px;
|
62 |
-
align-items: center;
|
63 |
-
padding: 0 5px;
|
64 |
-
}
|
65 |
-
|
66 |
-
.cn-manager-header label {
|
67 |
-
display: flex;
|
68 |
-
gap: 5px;
|
69 |
-
align-items: center;
|
70 |
-
}
|
71 |
-
|
72 |
-
.cn-manager-filter {
|
73 |
-
height: 28px;
|
74 |
-
line-height: 28px;
|
75 |
-
}
|
76 |
-
|
77 |
-
.cn-manager-keywords {
|
78 |
-
height: 28px;
|
79 |
-
line-height: 28px;
|
80 |
-
padding: 0 5px 0 26px;
|
81 |
-
background-size: 16px;
|
82 |
-
background-position: 5px center;
|
83 |
-
background-repeat: no-repeat;
|
84 |
-
background-image: url("data:image/svg+xml;charset=utf8,${encodeURIComponent(icons.search.replace("currentColor", "#888"))}");
|
85 |
-
}
|
86 |
-
|
87 |
-
.cn-manager-status {
|
88 |
-
padding-left: 10px;
|
89 |
-
}
|
90 |
-
|
91 |
-
.cn-manager-grid {
|
92 |
-
flex: auto;
|
93 |
-
border: 1px solid var(--border-color);
|
94 |
-
overflow: hidden;
|
95 |
-
}
|
96 |
-
|
97 |
-
.cn-manager-selection {
|
98 |
-
display: flex;
|
99 |
-
flex-wrap: wrap;
|
100 |
-
gap: 10px;
|
101 |
-
align-items: center;
|
102 |
-
}
|
103 |
-
|
104 |
-
.cn-manager-message {
|
105 |
-
|
106 |
-
}
|
107 |
-
|
108 |
-
.cn-manager-footer {
|
109 |
-
display: flex;
|
110 |
-
flex-wrap: wrap;
|
111 |
-
gap: 10px;
|
112 |
-
align-items: center;
|
113 |
-
}
|
114 |
-
|
115 |
-
.cn-manager-grid .tg-turbogrid {
|
116 |
-
font-family: var(--grid-font);
|
117 |
-
font-size: 15px;
|
118 |
-
background: var(--bg-color);
|
119 |
-
}
|
120 |
-
|
121 |
-
.cn-manager-grid .cn-node-name a {
|
122 |
-
color: skyblue;
|
123 |
-
text-decoration: none;
|
124 |
-
word-break: break-word;
|
125 |
-
}
|
126 |
-
|
127 |
-
.cn-manager-grid .cn-node-desc a {
|
128 |
-
color: #5555FF;
|
129 |
-
font-weight: bold;
|
130 |
-
text-decoration: none;
|
131 |
-
}
|
132 |
-
|
133 |
-
.cn-manager-grid .tg-cell a:hover {
|
134 |
-
text-decoration: underline;
|
135 |
-
}
|
136 |
-
|
137 |
-
.cn-manager-grid .cn-extensions-button,
|
138 |
-
.cn-manager-grid .cn-conflicts-button {
|
139 |
-
display: inline-block;
|
140 |
-
width: 20px;
|
141 |
-
height: 20px;
|
142 |
-
color: green;
|
143 |
-
border: none;
|
144 |
-
padding: 0;
|
145 |
-
margin: 0;
|
146 |
-
background: none;
|
147 |
-
min-width: 20px;
|
148 |
-
}
|
149 |
-
|
150 |
-
.cn-manager-grid .cn-conflicts-button {
|
151 |
-
color: orange;
|
152 |
-
}
|
153 |
-
|
154 |
-
.cn-manager-grid .cn-extensions-list,
|
155 |
-
.cn-manager-grid .cn-conflicts-list {
|
156 |
-
line-height: normal;
|
157 |
-
text-align: left;
|
158 |
-
max-height: 80%;
|
159 |
-
min-height: 200px;
|
160 |
-
min-width: 300px;
|
161 |
-
overflow-y: auto;
|
162 |
-
font-size: 12px;
|
163 |
-
border-radius: 5px;
|
164 |
-
padding: 10px;
|
165 |
-
filter: drop-shadow(2px 5px 5px rgb(0 0 0 / 30%));
|
166 |
-
white-space: normal;
|
167 |
-
}
|
168 |
-
|
169 |
-
.cn-manager-grid .cn-extensions-list {
|
170 |
-
border-color: var(--bg-color);
|
171 |
-
}
|
172 |
-
|
173 |
-
.cn-manager-grid .cn-conflicts-list {
|
174 |
-
background-color: #CCCC55;
|
175 |
-
color: #AA3333;
|
176 |
-
}
|
177 |
-
|
178 |
-
.cn-manager-grid .cn-extensions-list h3,
|
179 |
-
.cn-manager-grid .cn-conflicts-list h3 {
|
180 |
-
margin: 0;
|
181 |
-
padding: 5px 0;
|
182 |
-
color: #000;
|
183 |
-
}
|
184 |
-
|
185 |
-
.cn-tag-list {
|
186 |
-
display: flex;
|
187 |
-
flex-wrap: wrap;
|
188 |
-
gap: 5px;
|
189 |
-
align-items: center;
|
190 |
-
margin-bottom: 5px;
|
191 |
-
}
|
192 |
-
|
193 |
-
.cn-tag-list > div {
|
194 |
-
background-color: var(--border-color);
|
195 |
-
border-radius: 5px;
|
196 |
-
padding: 0 5px;
|
197 |
-
}
|
198 |
-
|
199 |
-
.cn-install-buttons {
|
200 |
-
display: flex;
|
201 |
-
flex-direction: column;
|
202 |
-
gap: 3px;
|
203 |
-
padding: 3px;
|
204 |
-
align-items: center;
|
205 |
-
justify-content: center;
|
206 |
-
height: 100%;
|
207 |
-
}
|
208 |
-
|
209 |
-
.cn-selected-buttons {
|
210 |
-
display: flex;
|
211 |
-
gap: 5px;
|
212 |
-
align-items: center;
|
213 |
-
padding-right: 20px;
|
214 |
-
}
|
215 |
-
|
216 |
-
.cn-manager .cn-btn-enable {
|
217 |
-
background-color: #333399;
|
218 |
-
color: white;
|
219 |
-
}
|
220 |
-
|
221 |
-
.cn-manager .cn-btn-disable {
|
222 |
-
background-color: #442277;
|
223 |
-
color: white;
|
224 |
-
}
|
225 |
-
|
226 |
-
.cn-manager .cn-btn-update {
|
227 |
-
background-color: #1155AA;
|
228 |
-
color: white;
|
229 |
-
}
|
230 |
-
|
231 |
-
.cn-manager .cn-btn-try-update {
|
232 |
-
background-color: Gray;
|
233 |
-
color: white;
|
234 |
-
}
|
235 |
-
|
236 |
-
.cn-manager .cn-btn-try-fix {
|
237 |
-
background-color: #6495ED;
|
238 |
-
color: white;
|
239 |
-
}
|
240 |
-
|
241 |
-
.cn-manager .cn-btn-install {
|
242 |
-
background-color: black;
|
243 |
-
color: white;
|
244 |
-
}
|
245 |
-
|
246 |
-
.cn-manager .cn-btn-try-install {
|
247 |
-
background-color: Gray;
|
248 |
-
color: white;
|
249 |
-
}
|
250 |
-
|
251 |
-
.cn-manager .cn-btn-uninstall {
|
252 |
-
background-color: #993333;
|
253 |
-
color: white;
|
254 |
-
}
|
255 |
-
|
256 |
-
.cn-manager .cn-btn-reinstall {
|
257 |
-
background-color: #993333;
|
258 |
-
color: white;
|
259 |
-
}
|
260 |
-
|
261 |
-
.cn-manager .cn-btn-switch {
|
262 |
-
background-color: #448833;
|
263 |
-
color: white;
|
264 |
-
|
265 |
-
}
|
266 |
-
|
267 |
-
@keyframes cn-btn-loading-bg {
|
268 |
-
0% {
|
269 |
-
left: 0;
|
270 |
-
}
|
271 |
-
100% {
|
272 |
-
left: -105px;
|
273 |
-
}
|
274 |
-
}
|
275 |
-
|
276 |
-
.cn-manager button.cn-btn-loading {
|
277 |
-
position: relative;
|
278 |
-
overflow: hidden;
|
279 |
-
border-color: rgb(0 119 207 / 80%);
|
280 |
-
background-color: var(--comfy-input-bg);
|
281 |
-
}
|
282 |
-
|
283 |
-
.cn-manager button.cn-btn-loading::after {
|
284 |
-
position: absolute;
|
285 |
-
top: 0;
|
286 |
-
left: 0;
|
287 |
-
content: "";
|
288 |
-
width: 500px;
|
289 |
-
height: 100%;
|
290 |
-
background-image: repeating-linear-gradient(
|
291 |
-
-45deg,
|
292 |
-
rgb(0 119 207 / 30%),
|
293 |
-
rgb(0 119 207 / 30%) 10px,
|
294 |
-
transparent 10px,
|
295 |
-
transparent 15px
|
296 |
-
);
|
297 |
-
animation: cn-btn-loading-bg 2s linear infinite;
|
298 |
-
}
|
299 |
-
|
300 |
-
.cn-manager-light .cn-node-name a {
|
301 |
-
color: blue;
|
302 |
-
}
|
303 |
-
|
304 |
-
.cn-manager-light .cm-warn-note {
|
305 |
-
background-color: #ccc !important;
|
306 |
-
}
|
307 |
-
|
308 |
-
.cn-manager-light .cn-btn-install {
|
309 |
-
background-color: #333;
|
310 |
-
}
|
311 |
-
|
312 |
-
`;
|
313 |
-
|
314 |
-
const pageHtml = `
|
315 |
-
<div class="cn-manager-header">
|
316 |
-
<label>Filter
|
317 |
-
<select class="cn-manager-filter"></select>
|
318 |
-
</label>
|
319 |
-
<input class="cn-manager-keywords" type="search" placeholder="Search" />
|
320 |
-
<div class="cn-manager-status"></div>
|
321 |
-
<div class="cn-flex-auto"></div>
|
322 |
-
<div class="cn-manager-channel"></div>
|
323 |
-
</div>
|
324 |
-
<div class="cn-manager-grid"></div>
|
325 |
-
<div class="cn-manager-selection"></div>
|
326 |
-
<div class="cn-manager-message"></div>
|
327 |
-
<div class="cn-manager-footer">
|
328 |
-
<button class="cn-manager-back">◀ Back</button>
|
329 |
-
<button class="cn-manager-restart">Restart</button>
|
330 |
-
<div class="cn-flex-auto"></div>
|
331 |
-
<button class="cn-manager-check-update">Check Update</button>
|
332 |
-
<button class="cn-manager-check-missing">Check Missing</button>
|
333 |
-
</div>
|
334 |
-
`;
|
335 |
-
|
336 |
-
const ShowMode = {
|
337 |
-
NORMAL: "Normal",
|
338 |
-
UPDATE: "Update",
|
339 |
-
MISSING: "Missing",
|
340 |
-
FAVORITES: "Favorites",
|
341 |
-
};
|
342 |
-
|
343 |
-
export class CustomNodesManager {
|
344 |
-
static instance = null;
|
345 |
-
static ShowMode = ShowMode;
|
346 |
-
|
347 |
-
constructor(app, manager_dialog) {
|
348 |
-
this.app = app;
|
349 |
-
this.manager_dialog = manager_dialog;
|
350 |
-
this.id = "cn-manager";
|
351 |
-
|
352 |
-
app.registerExtension({
|
353 |
-
name: "Comfy.CustomNodesManager",
|
354 |
-
afterConfigureGraph: (missingNodeTypes) => {
|
355 |
-
const item = this.getFilterItem(ShowMode.MISSING);
|
356 |
-
if (item) {
|
357 |
-
item.hasData = false;
|
358 |
-
item.hashMap = null;
|
359 |
-
}
|
360 |
-
}
|
361 |
-
});
|
362 |
-
|
363 |
-
this.filter = '';
|
364 |
-
this.keywords = '';
|
365 |
-
this.restartMap = {};
|
366 |
-
|
367 |
-
this.init();
|
368 |
-
}
|
369 |
-
|
370 |
-
init() {
|
371 |
-
if (!document.querySelector(`style[context="${this.id}"]`)) {
|
372 |
-
const $style = document.createElement("style");
|
373 |
-
$style.setAttribute("context", this.id);
|
374 |
-
$style.innerHTML = pageCss;
|
375 |
-
document.head.appendChild($style);
|
376 |
-
}
|
377 |
-
|
378 |
-
this.element = $el("div", {
|
379 |
-
parent: document.body,
|
380 |
-
className: "comfy-modal cn-manager"
|
381 |
-
});
|
382 |
-
this.element.innerHTML = pageHtml;
|
383 |
-
this.initFilter();
|
384 |
-
this.bindEvents();
|
385 |
-
this.initGrid();
|
386 |
-
}
|
387 |
-
|
388 |
-
showVersionSelectorDialog(versions, onSelect) {
|
389 |
-
const dialog = new ComfyDialog();
|
390 |
-
dialog.element.style.zIndex = 100003;
|
391 |
-
dialog.element.style.width = "300px";
|
392 |
-
dialog.element.style.padding = "0";
|
393 |
-
dialog.element.style.backgroundColor = "#2a2a2a";
|
394 |
-
dialog.element.style.border = "1px solid #3a3a3a";
|
395 |
-
dialog.element.style.borderRadius = "8px";
|
396 |
-
dialog.element.style.boxSizing = "border-box";
|
397 |
-
dialog.element.style.overflow = "hidden";
|
398 |
-
|
399 |
-
const contentStyle = {
|
400 |
-
width: "300px",
|
401 |
-
display: "flex",
|
402 |
-
flexDirection: "column",
|
403 |
-
alignItems: "center",
|
404 |
-
padding: "20px",
|
405 |
-
boxSizing: "border-box",
|
406 |
-
gap: "15px"
|
407 |
-
};
|
408 |
-
|
409 |
-
let selectedVersion = versions[0];
|
410 |
-
|
411 |
-
const versionList = $el("select", {
|
412 |
-
multiple: true,
|
413 |
-
size: Math.min(10, versions.length),
|
414 |
-
style: {
|
415 |
-
width: "260px",
|
416 |
-
height: "auto",
|
417 |
-
backgroundColor: "#383838",
|
418 |
-
color: "#ffffff",
|
419 |
-
border: "1px solid #4a4a4a",
|
420 |
-
borderRadius: "4px",
|
421 |
-
padding: "5px",
|
422 |
-
boxSizing: "border-box"
|
423 |
-
}
|
424 |
-
},
|
425 |
-
versions.map((v, index) => $el("option", {
|
426 |
-
value: v,
|
427 |
-
textContent: v,
|
428 |
-
selected: index === 0
|
429 |
-
}))
|
430 |
-
);
|
431 |
-
|
432 |
-
versionList.addEventListener('change', (e) => {
|
433 |
-
selectedVersion = e.target.value;
|
434 |
-
Array.from(e.target.options).forEach(opt => {
|
435 |
-
opt.selected = opt.value === selectedVersion;
|
436 |
-
});
|
437 |
-
});
|
438 |
-
|
439 |
-
const content = $el("div", {
|
440 |
-
style: contentStyle
|
441 |
-
}, [
|
442 |
-
$el("h3", {
|
443 |
-
textContent: "Select Version",
|
444 |
-
style: {
|
445 |
-
color: "#ffffff",
|
446 |
-
backgroundColor: "#1a1a1a",
|
447 |
-
padding: "10px 15px",
|
448 |
-
margin: "0 0 10px 0",
|
449 |
-
width: "260px",
|
450 |
-
textAlign: "center",
|
451 |
-
borderRadius: "4px",
|
452 |
-
boxSizing: "border-box",
|
453 |
-
whiteSpace: "nowrap",
|
454 |
-
overflow: "hidden",
|
455 |
-
textOverflow: "ellipsis"
|
456 |
-
}
|
457 |
-
}),
|
458 |
-
versionList,
|
459 |
-
$el("div", {
|
460 |
-
style: {
|
461 |
-
display: "flex",
|
462 |
-
justifyContent: "space-between",
|
463 |
-
width: "260px",
|
464 |
-
gap: "10px"
|
465 |
-
}
|
466 |
-
}, [
|
467 |
-
$el("button", {
|
468 |
-
textContent: "Cancel",
|
469 |
-
onclick: () => dialog.close(),
|
470 |
-
style: {
|
471 |
-
flex: "1",
|
472 |
-
padding: "8px",
|
473 |
-
backgroundColor: "#4a4a4a",
|
474 |
-
color: "#ffffff",
|
475 |
-
border: "none",
|
476 |
-
borderRadius: "4px",
|
477 |
-
cursor: "pointer",
|
478 |
-
whiteSpace: "nowrap",
|
479 |
-
overflow: "hidden",
|
480 |
-
textOverflow: "ellipsis"
|
481 |
-
}
|
482 |
-
}),
|
483 |
-
$el("button", {
|
484 |
-
textContent: "Select",
|
485 |
-
onclick: () => {
|
486 |
-
if (selectedVersion) {
|
487 |
-
onSelect(selectedVersion);
|
488 |
-
dialog.close();
|
489 |
-
} else {
|
490 |
-
alert("Please select a version.");
|
491 |
-
}
|
492 |
-
},
|
493 |
-
style: {
|
494 |
-
flex: "1",
|
495 |
-
padding: "8px",
|
496 |
-
backgroundColor: "#4CAF50",
|
497 |
-
color: "#ffffff",
|
498 |
-
border: "none",
|
499 |
-
borderRadius: "4px",
|
500 |
-
cursor: "pointer",
|
501 |
-
whiteSpace: "nowrap",
|
502 |
-
overflow: "hidden",
|
503 |
-
textOverflow: "ellipsis"
|
504 |
-
}
|
505 |
-
}),
|
506 |
-
])
|
507 |
-
]);
|
508 |
-
|
509 |
-
dialog.show(content);
|
510 |
-
}
|
511 |
-
|
512 |
-
initFilter() {
|
513 |
-
const $filter = this.element.querySelector(".cn-manager-filter");
|
514 |
-
const filterList = [{
|
515 |
-
label: "All",
|
516 |
-
value: "",
|
517 |
-
hasData: true
|
518 |
-
}, {
|
519 |
-
label: "Installed",
|
520 |
-
value: "installed",
|
521 |
-
hasData: true
|
522 |
-
}, {
|
523 |
-
label: "Enabled",
|
524 |
-
value: "enabled",
|
525 |
-
hasData: true
|
526 |
-
}, {
|
527 |
-
label: "Disabled",
|
528 |
-
value: "disabled",
|
529 |
-
hasData: true
|
530 |
-
}, {
|
531 |
-
label: "Import Failed",
|
532 |
-
value: "import-fail",
|
533 |
-
hasData: true
|
534 |
-
}, {
|
535 |
-
label: "Not Installed",
|
536 |
-
value: "not-installed",
|
537 |
-
hasData: true
|
538 |
-
}, {
|
539 |
-
label: "ComfyRegistry",
|
540 |
-
value: "cnr",
|
541 |
-
hasData: true
|
542 |
-
}, {
|
543 |
-
label: "Non-ComfyRegistry",
|
544 |
-
value: "unknown",
|
545 |
-
hasData: true
|
546 |
-
}, {
|
547 |
-
label: "Update",
|
548 |
-
value: ShowMode.UPDATE,
|
549 |
-
hasData: false
|
550 |
-
}, {
|
551 |
-
label: "Missing",
|
552 |
-
value: ShowMode.MISSING,
|
553 |
-
hasData: false
|
554 |
-
}, {
|
555 |
-
label: "Favorites",
|
556 |
-
value: ShowMode.FAVORITES,
|
557 |
-
hasData: false
|
558 |
-
}];
|
559 |
-
this.filterList = filterList;
|
560 |
-
$filter.innerHTML = filterList.map(item => {
|
561 |
-
return `<option value="${item.value}">${item.label}</option>`
|
562 |
-
}).join("");
|
563 |
-
}
|
564 |
-
|
565 |
-
getFilterItem(filter) {
|
566 |
-
return this.filterList.find(it => it.value === filter)
|
567 |
-
}
|
568 |
-
|
569 |
-
getActionButtons(action, rowItem, is_selected_button) {
|
570 |
-
const buttons = {
|
571 |
-
"enable": {
|
572 |
-
label: "Enable",
|
573 |
-
mode: "enable"
|
574 |
-
},
|
575 |
-
"disable": {
|
576 |
-
label: "Disable",
|
577 |
-
mode: "disable"
|
578 |
-
},
|
579 |
-
|
580 |
-
"update": {
|
581 |
-
label: "Update",
|
582 |
-
mode: "update"
|
583 |
-
},
|
584 |
-
"try-update": {
|
585 |
-
label: "Try update",
|
586 |
-
mode: "update"
|
587 |
-
},
|
588 |
-
|
589 |
-
"try-fix": {
|
590 |
-
label: "Try fix",
|
591 |
-
mode: "fix"
|
592 |
-
},
|
593 |
-
|
594 |
-
"reinstall": {
|
595 |
-
label: "Reinstall",
|
596 |
-
mode: "reinstall"
|
597 |
-
},
|
598 |
-
|
599 |
-
"install": {
|
600 |
-
label: "Install",
|
601 |
-
mode: "install"
|
602 |
-
},
|
603 |
-
|
604 |
-
"try-install": {
|
605 |
-
label: "Try install",
|
606 |
-
mode: "install"
|
607 |
-
},
|
608 |
-
|
609 |
-
"uninstall": {
|
610 |
-
label: "Uninstall",
|
611 |
-
mode: "uninstall"
|
612 |
-
},
|
613 |
-
|
614 |
-
"switch": {
|
615 |
-
label: "Switch",
|
616 |
-
mode: "switch"
|
617 |
-
}
|
618 |
-
}
|
619 |
-
|
620 |
-
const installGroups = {
|
621 |
-
"disabled": ["enable", "switch", "uninstall"],
|
622 |
-
"updatable": ["update", "switch", "disable", "uninstall"],
|
623 |
-
"import-fail": ["try-fix", "switch", "disable", "uninstall"],
|
624 |
-
"enabled": ["try-update", "switch", "disable", "uninstall"],
|
625 |
-
"not-installed": ["install"],
|
626 |
-
'unknown': ["try-install"],
|
627 |
-
"invalid-installation": ["reinstall"],
|
628 |
-
}
|
629 |
-
|
630 |
-
if (!manager_instance.update_check_checkbox.checked) {
|
631 |
-
installGroups.enabled = installGroups.enabled.filter(it => it !== "try-update");
|
632 |
-
}
|
633 |
-
|
634 |
-
if (rowItem?.title === "ComfyUI-Manager") {
|
635 |
-
installGroups.enabled = installGroups.enabled.filter(it => it !== "disable" && it !== "uninstall" && it !== "switch");
|
636 |
-
}
|
637 |
-
|
638 |
-
let list = installGroups[action];
|
639 |
-
|
640 |
-
if(is_selected_button || rowItem?.version === "unknown") {
|
641 |
-
list = list.filter(it => it !== "switch");
|
642 |
-
}
|
643 |
-
|
644 |
-
if (!list) {
|
645 |
-
return "";
|
646 |
-
}
|
647 |
-
|
648 |
-
return list.map(id => {
|
649 |
-
const bt = buttons[id];
|
650 |
-
return `<button class="cn-btn-${id}" group="${action}" mode="${bt.mode}">${bt.label}</button>`;
|
651 |
-
}).join("");
|
652 |
-
}
|
653 |
-
|
654 |
-
getButton(target) {
|
655 |
-
if(!target) {
|
656 |
-
return;
|
657 |
-
}
|
658 |
-
const mode = target.getAttribute("mode");
|
659 |
-
if (!mode) {
|
660 |
-
return;
|
661 |
-
}
|
662 |
-
const group = target.getAttribute("group");
|
663 |
-
if (!group) {
|
664 |
-
return;
|
665 |
-
}
|
666 |
-
return {
|
667 |
-
group,
|
668 |
-
mode,
|
669 |
-
target,
|
670 |
-
label: target.innerText
|
671 |
-
}
|
672 |
-
}
|
673 |
-
|
674 |
-
bindEvents() {
|
675 |
-
const eventsMap = {
|
676 |
-
".cn-manager-filter": {
|
677 |
-
change: (e) => {
|
678 |
-
|
679 |
-
if (this.grid) {
|
680 |
-
this.grid.selectAll(false);
|
681 |
-
}
|
682 |
-
|
683 |
-
const value = e.target.value
|
684 |
-
this.filter = value;
|
685 |
-
const item = this.getFilterItem(value);
|
686 |
-
if (item && !item.hasData) {
|
687 |
-
this.loadData(value);
|
688 |
-
return;
|
689 |
-
}
|
690 |
-
this.updateGrid();
|
691 |
-
}
|
692 |
-
},
|
693 |
-
|
694 |
-
".cn-manager-keywords": {
|
695 |
-
input: (e) => {
|
696 |
-
const keywords = `${e.target.value}`.trim();
|
697 |
-
if (keywords !== this.keywords) {
|
698 |
-
this.keywords = keywords;
|
699 |
-
this.updateGrid();
|
700 |
-
}
|
701 |
-
},
|
702 |
-
focus: (e) => e.target.select()
|
703 |
-
},
|
704 |
-
|
705 |
-
".cn-manager-selection": {
|
706 |
-
click: (e) => {
|
707 |
-
const btn = this.getButton(e.target);
|
708 |
-
if (btn) {
|
709 |
-
const nodes = this.selectedMap[btn.group];
|
710 |
-
if (nodes) {
|
711 |
-
this.installNodes(nodes, btn);
|
712 |
-
}
|
713 |
-
}
|
714 |
-
}
|
715 |
-
},
|
716 |
-
|
717 |
-
".cn-manager-back": {
|
718 |
-
click: (e) => {
|
719 |
-
this.close()
|
720 |
-
manager_instance.show();
|
721 |
-
}
|
722 |
-
},
|
723 |
-
|
724 |
-
".cn-manager-restart": {
|
725 |
-
click: () => {
|
726 |
-
if(rebootAPI()) {
|
727 |
-
this.close();
|
728 |
-
this.manager_dialog.close();
|
729 |
-
}
|
730 |
-
}
|
731 |
-
},
|
732 |
-
|
733 |
-
".cn-manager-check-update": {
|
734 |
-
click: (e) => {
|
735 |
-
e.target.classList.add("cn-btn-loading");
|
736 |
-
this.setFilter(ShowMode.UPDATE);
|
737 |
-
this.loadData(ShowMode.UPDATE);
|
738 |
-
}
|
739 |
-
},
|
740 |
-
|
741 |
-
".cn-manager-check-missing": {
|
742 |
-
click: (e) => {
|
743 |
-
e.target.classList.add("cn-btn-loading");
|
744 |
-
this.setFilter(ShowMode.MISSING);
|
745 |
-
this.loadData(ShowMode.MISSING);
|
746 |
-
}
|
747 |
-
}
|
748 |
-
};
|
749 |
-
Object.keys(eventsMap).forEach(selector => {
|
750 |
-
const target = this.element.querySelector(selector);
|
751 |
-
if (target) {
|
752 |
-
const events = eventsMap[selector];
|
753 |
-
if (events) {
|
754 |
-
Object.keys(events).forEach(type => {
|
755 |
-
target.addEventListener(type, events[type]);
|
756 |
-
});
|
757 |
-
}
|
758 |
-
}
|
759 |
-
});
|
760 |
-
}
|
761 |
-
|
762 |
-
// ===========================================================================================
|
763 |
-
|
764 |
-
initGrid() {
|
765 |
-
const container = this.element.querySelector(".cn-manager-grid");
|
766 |
-
const grid = new TG.Grid(container);
|
767 |
-
this.grid = grid;
|
768 |
-
|
769 |
-
let prevViewRowsLength = -1;
|
770 |
-
grid.bind('onUpdated', (e, d) => {
|
771 |
-
const viewRows = grid.viewRows;
|
772 |
-
prevViewRowsLength = viewRows.length;
|
773 |
-
this.showStatus(`${prevViewRowsLength.toLocaleString()} custom nodes`);
|
774 |
-
});
|
775 |
-
|
776 |
-
grid.bind('onSelectChanged', (e, changes) => {
|
777 |
-
this.renderSelected();
|
778 |
-
});
|
779 |
-
|
780 |
-
grid.bind('onClick', (e, d) => {
|
781 |
-
const btn = this.getButton(d.e.target);
|
782 |
-
if (btn) {
|
783 |
-
const item = this.grid.getRowItemBy("hash", d.rowItem.hash);
|
784 |
-
|
785 |
-
const { target, label, mode} = btn;
|
786 |
-
if((mode === "install" || mode === "switch" || mode == "enable") && item.originalData.version != 'unknown') {
|
787 |
-
// install after select version via dialog if item is cnr node
|
788 |
-
this.installNodeWithVersion(d.rowItem, btn, mode == 'enable');
|
789 |
-
}
|
790 |
-
else {
|
791 |
-
this.installNodes([d.rowItem.hash], btn, d.rowItem.title);
|
792 |
-
}
|
793 |
-
}
|
794 |
-
});
|
795 |
-
|
796 |
-
grid.setOption({
|
797 |
-
theme: 'dark',
|
798 |
-
selectVisible: true,
|
799 |
-
selectMultiple: true,
|
800 |
-
selectAllVisible: true,
|
801 |
-
|
802 |
-
textSelectable: true,
|
803 |
-
scrollbarRound: true,
|
804 |
-
|
805 |
-
frozenColumn: 1,
|
806 |
-
rowNotFound: "No Results",
|
807 |
-
|
808 |
-
rowHeight: 40,
|
809 |
-
bindWindowResize: true,
|
810 |
-
bindContainerResize: true,
|
811 |
-
|
812 |
-
cellResizeObserver: (rowItem, columnItem) => {
|
813 |
-
const autoHeightColumns = ['title', 'action', 'description'];
|
814 |
-
return autoHeightColumns.includes(columnItem.id)
|
815 |
-
},
|
816 |
-
|
817 |
-
// updateGrid handler for filter and keywords
|
818 |
-
rowFilter: (rowItem) => {
|
819 |
-
|
820 |
-
const searchableColumns = ["title", "author", "description"];
|
821 |
-
|
822 |
-
let shouldShown = grid.highlightKeywordsFilter(rowItem, searchableColumns, this.keywords);
|
823 |
-
|
824 |
-
if (shouldShown) {
|
825 |
-
if(this.filter && rowItem.filterTypes) {
|
826 |
-
shouldShown = rowItem.filterTypes.includes(this.filter);
|
827 |
-
}
|
828 |
-
}
|
829 |
-
|
830 |
-
return shouldShown;
|
831 |
-
}
|
832 |
-
});
|
833 |
-
|
834 |
-
}
|
835 |
-
|
836 |
-
renderGrid() {
|
837 |
-
|
838 |
-
// update theme
|
839 |
-
const colorPalette = this.app.ui.settings.settingsValues['Comfy.ColorPalette'];
|
840 |
-
Array.from(this.element.classList).forEach(cn => {
|
841 |
-
if (cn.startsWith("cn-manager-")) {
|
842 |
-
this.element.classList.remove(cn);
|
843 |
-
}
|
844 |
-
});
|
845 |
-
this.element.classList.add(`cn-manager-${colorPalette}`);
|
846 |
-
|
847 |
-
const options = {
|
848 |
-
theme: colorPalette === "light" ? "" : "dark"
|
849 |
-
};
|
850 |
-
|
851 |
-
const rows = this.custom_nodes || {};
|
852 |
-
for(let nodeKey in rows) {
|
853 |
-
let item = rows[nodeKey];
|
854 |
-
const extensionInfo = this.extension_mappings[nodeKey];
|
855 |
-
|
856 |
-
if(extensionInfo) {
|
857 |
-
const { extensions, conflicts } = extensionInfo;
|
858 |
-
if (extensions.length) {
|
859 |
-
item.extensions = extensions.length;
|
860 |
-
item.extensionsList = extensions;
|
861 |
-
}
|
862 |
-
if (conflicts) {
|
863 |
-
item.conflicts = conflicts.length;
|
864 |
-
item.conflictsList = conflicts;
|
865 |
-
}
|
866 |
-
}
|
867 |
-
}
|
868 |
-
|
869 |
-
const columns = [{
|
870 |
-
id: 'id',
|
871 |
-
name: 'ID',
|
872 |
-
width: 50,
|
873 |
-
align: 'center'
|
874 |
-
}, {
|
875 |
-
id: 'title',
|
876 |
-
name: 'Title',
|
877 |
-
width: 200,
|
878 |
-
minWidth: 100,
|
879 |
-
maxWidth: 500,
|
880 |
-
classMap: 'cn-node-name',
|
881 |
-
formatter: (title, rowItem, columnItem) => {
|
882 |
-
var prefix = '';
|
883 |
-
if(rowItem.action === 'invalid-installation') {
|
884 |
-
prefix = '<font color="red"><B>(INVALID)</B></font>';
|
885 |
-
}
|
886 |
-
|
887 |
-
else if(rowItem.action === 'import-fail') {
|
888 |
-
prefix = '<font color="red"><B>(IMPORT FAILED)</B></font>';
|
889 |
-
}
|
890 |
-
|
891 |
-
return `${prefix}<a href=${rowItem.reference} target="_blank"><b>${title}</b></a>`;
|
892 |
-
}
|
893 |
-
}, {
|
894 |
-
id: 'version',
|
895 |
-
name: 'Version',
|
896 |
-
width: 200,
|
897 |
-
minWidth: 100,
|
898 |
-
maxWidth: 500,
|
899 |
-
classMap: 'cn-node-desc',
|
900 |
-
formatter: (version, rowItem, columnItem) => {
|
901 |
-
if(version == undefined) {
|
902 |
-
return `undef`;
|
903 |
-
}
|
904 |
-
else {
|
905 |
-
if(rowItem.cnr_latest && version != rowItem.cnr_latest) {
|
906 |
-
if(version == 'nightly') {
|
907 |
-
return `${version} [${rowItem.cnr_latest}]`;
|
908 |
-
}
|
909 |
-
else {
|
910 |
-
return `${version} [↑${rowItem.cnr_latest}]`;
|
911 |
-
}
|
912 |
-
}
|
913 |
-
else {
|
914 |
-
return `${version}`;
|
915 |
-
}
|
916 |
-
}
|
917 |
-
}
|
918 |
-
}, {
|
919 |
-
id: 'action',
|
920 |
-
name: 'Action',
|
921 |
-
width: 130,
|
922 |
-
minWidth: 110,
|
923 |
-
maxWidth: 200,
|
924 |
-
sortable: false,
|
925 |
-
align: 'center',
|
926 |
-
formatter: (action, rowItem, columnItem) => {
|
927 |
-
if (rowItem.restart) {
|
928 |
-
return `<font color="red">Restart Required</span>`;
|
929 |
-
}
|
930 |
-
const buttons = this.getActionButtons(action, rowItem);
|
931 |
-
return `<div class="cn-install-buttons">${buttons}</div>`;
|
932 |
-
}
|
933 |
-
}, {
|
934 |
-
id: 'description',
|
935 |
-
name: 'Description',
|
936 |
-
width: 400,
|
937 |
-
maxWidth: 5000,
|
938 |
-
classMap: 'cn-node-desc'
|
939 |
-
}, {
|
940 |
-
id: "extensions",
|
941 |
-
name: "Extensions",
|
942 |
-
width: 80,
|
943 |
-
align: 'center',
|
944 |
-
formatter: (extensions, rowItem, columnItem) => {
|
945 |
-
const extensionsList = rowItem.extensionsList;
|
946 |
-
if (!extensionsList) {
|
947 |
-
return;
|
948 |
-
}
|
949 |
-
const list = [];
|
950 |
-
const eId = `popover_extensions_${columnItem.id}_${rowItem.tg_index}`;
|
951 |
-
list.push(`<button popovertarget="${eId}" title="${extensionsList.length} Extension Nodes" class="cn-extensions-button">${icons.extensions}</button>`)
|
952 |
-
list.push(`<div popover id="${eId}" class="cn-extensions-list">`)
|
953 |
-
list.push(`<h3>【${rowItem.title}】Extension Nodes (${extensionsList.length})</h3>`);
|
954 |
-
extensionsList.forEach(en => {
|
955 |
-
list.push(`<li>${en}</li>`);
|
956 |
-
})
|
957 |
-
list.push("</div>");
|
958 |
-
return list.join("");
|
959 |
-
}
|
960 |
-
}, {
|
961 |
-
id: "conflicts",
|
962 |
-
name: "Conflicts",
|
963 |
-
width: 80,
|
964 |
-
align: 'center',
|
965 |
-
formatter: (conflicts, rowItem, columnItem) => {
|
966 |
-
const conflictsList = rowItem.conflictsList;
|
967 |
-
if (!conflictsList) {
|
968 |
-
return;
|
969 |
-
}
|
970 |
-
const list = [];
|
971 |
-
const cId = `popover_conflicts_${columnItem.id}_${rowItem.tg_index}`;
|
972 |
-
list.push(`<button popovertarget="${cId}" title="${conflictsList.length} Conflicted Nodes" class="cn-conflicts-button">${icons.conflicts}</button>`)
|
973 |
-
list.push(`<div popover id="${cId}" class="cn-conflicts-list">`)
|
974 |
-
list.push(`<h3>【${rowItem.title}】Conflicted Nodes (${conflictsList.length})</h3>`);
|
975 |
-
conflictsList.forEach(en => {
|
976 |
-
let [node_name, extension_name] = en;
|
977 |
-
extension_name = extension_name.split('/').filter(it => it).pop();
|
978 |
-
if(extension_name.endsWith('.git')) {
|
979 |
-
extension_name = extension_name.slice(0, -4);
|
980 |
-
}
|
981 |
-
list.push(`<li><B>${node_name}</B> [${extension_name}]</li>`);
|
982 |
-
})
|
983 |
-
list.push("</div>");
|
984 |
-
return list.join("");
|
985 |
-
}
|
986 |
-
}, {
|
987 |
-
id: 'author',
|
988 |
-
name: 'Author',
|
989 |
-
width: 120,
|
990 |
-
classMap: "cn-node-author",
|
991 |
-
formatter: (author, rowItem, columnItem) => {
|
992 |
-
if (rowItem.trust) {
|
993 |
-
return `<span title="This author has been active for more than six months in GitHub">✅ ${author}</span>`;
|
994 |
-
}
|
995 |
-
return author;
|
996 |
-
}
|
997 |
-
}, {
|
998 |
-
id: 'stars',
|
999 |
-
name: '★',
|
1000 |
-
align: 'center',
|
1001 |
-
classMap: "cn-node-stars",
|
1002 |
-
formatter: (stars) => {
|
1003 |
-
if (stars < 0) {
|
1004 |
-
return 'N/A';
|
1005 |
-
}
|
1006 |
-
if (typeof stars === 'number') {
|
1007 |
-
return stars.toLocaleString();
|
1008 |
-
}
|
1009 |
-
return stars;
|
1010 |
-
}
|
1011 |
-
}, {
|
1012 |
-
id: 'last_update',
|
1013 |
-
name: 'Last Update',
|
1014 |
-
align: 'center',
|
1015 |
-
type: 'date',
|
1016 |
-
width: 100,
|
1017 |
-
classMap: "cn-node-last-update",
|
1018 |
-
formatter: (last_update) => {
|
1019 |
-
if (last_update < 0) {
|
1020 |
-
return 'N/A';
|
1021 |
-
}
|
1022 |
-
return `${last_update}`.split(' ')[0];
|
1023 |
-
}
|
1024 |
-
}];
|
1025 |
-
|
1026 |
-
let rows_values = Object.keys(rows).map(key => rows[key]);
|
1027 |
-
|
1028 |
-
rows_values =
|
1029 |
-
rows_values.sort((a, b) => {
|
1030 |
-
if (a.version == 'unknown' && b.version != 'unknown') return 1;
|
1031 |
-
if (a.version != 'unknown' && b.version == 'unknown') return -1;
|
1032 |
-
|
1033 |
-
if (a.stars !== b.stars) {
|
1034 |
-
return b.stars - a.stars;
|
1035 |
-
}
|
1036 |
-
|
1037 |
-
if (a.last_update !== b.last_update) {
|
1038 |
-
return new Date(b.last_update) - new Date(a.last_update);
|
1039 |
-
}
|
1040 |
-
|
1041 |
-
return 0;
|
1042 |
-
});
|
1043 |
-
|
1044 |
-
this.grid.setData({
|
1045 |
-
options: options,
|
1046 |
-
rows: rows_values,
|
1047 |
-
columns: columns
|
1048 |
-
});
|
1049 |
-
|
1050 |
-
for(let i=0; i<rows_values.length; i++) {
|
1051 |
-
rows_values[i].id = i+1;
|
1052 |
-
}
|
1053 |
-
|
1054 |
-
this.grid.render();
|
1055 |
-
}
|
1056 |
-
|
1057 |
-
updateGrid() {
|
1058 |
-
if (this.grid) {
|
1059 |
-
this.grid.update();
|
1060 |
-
}
|
1061 |
-
}
|
1062 |
-
|
1063 |
-
// ===========================================================================================
|
1064 |
-
|
1065 |
-
renderSelected() {
|
1066 |
-
const selectedList = this.grid.getSelectedRows();
|
1067 |
-
if (!selectedList.length) {
|
1068 |
-
this.showSelection("");
|
1069 |
-
return;
|
1070 |
-
}
|
1071 |
-
|
1072 |
-
const selectedMap = {};
|
1073 |
-
selectedList.forEach(item => {
|
1074 |
-
let type = item.action;
|
1075 |
-
if (item.restart) {
|
1076 |
-
type = "Restart Required";
|
1077 |
-
}
|
1078 |
-
if (selectedMap[type]) {
|
1079 |
-
selectedMap[type].push(item.hash);
|
1080 |
-
} else {
|
1081 |
-
selectedMap[type] = [item.hash];
|
1082 |
-
}
|
1083 |
-
});
|
1084 |
-
|
1085 |
-
this.selectedMap = selectedMap;
|
1086 |
-
|
1087 |
-
const list = [];
|
1088 |
-
Object.keys(selectedMap).forEach(v => {
|
1089 |
-
const filterItem = this.getFilterItem(v);
|
1090 |
-
list.push(`<div class="cn-selected-buttons">
|
1091 |
-
<span>Selected <b>${selectedMap[v].length}</b> ${filterItem ? filterItem.label : v}</span>
|
1092 |
-
${this.grid.hasMask ? "" : this.getActionButtons(v, null, true)}
|
1093 |
-
</div>`);
|
1094 |
-
});
|
1095 |
-
|
1096 |
-
this.showSelection(list.join(""));
|
1097 |
-
}
|
1098 |
-
|
1099 |
-
focusInstall(item, mode) {
|
1100 |
-
const cellNode = this.grid.getCellNode(item, "installed");
|
1101 |
-
if (cellNode) {
|
1102 |
-
const cellBtn = cellNode.querySelector(`button[mode="${mode}"]`);
|
1103 |
-
if (cellBtn) {
|
1104 |
-
cellBtn.classList.add("cn-btn-loading");
|
1105 |
-
return true
|
1106 |
-
}
|
1107 |
-
}
|
1108 |
-
}
|
1109 |
-
|
1110 |
-
async installNodeWithVersion(rowItem, btn, is_enable) {
|
1111 |
-
let hash = rowItem.hash;
|
1112 |
-
let title = rowItem.title;
|
1113 |
-
|
1114 |
-
const item = this.grid.getRowItemBy("hash", hash);
|
1115 |
-
|
1116 |
-
let node_id = item.originalData.id;
|
1117 |
-
|
1118 |
-
this.showLoading();
|
1119 |
-
let res;
|
1120 |
-
if(is_enable) {
|
1121 |
-
res = await api.fetchApi(`/customnode/disabled_versions/${node_id}`, { cache: "no-store" });
|
1122 |
-
}
|
1123 |
-
else {
|
1124 |
-
res = await api.fetchApi(`/customnode/versions/${node_id}`, { cache: "no-store" });
|
1125 |
-
}
|
1126 |
-
this.hideLoading();
|
1127 |
-
|
1128 |
-
if(res.status == 200) {
|
1129 |
-
let obj = await res.json();
|
1130 |
-
|
1131 |
-
let versions = [];
|
1132 |
-
let default_version;
|
1133 |
-
let version_cnt = 0;
|
1134 |
-
|
1135 |
-
if(!is_enable) {
|
1136 |
-
if(rowItem.cnr_latest != rowItem.originalData.active_version) {
|
1137 |
-
versions.push('latest');
|
1138 |
-
}
|
1139 |
-
|
1140 |
-
if(rowItem.originalData.active_version != 'nightly') {
|
1141 |
-
versions.push('nightly');
|
1142 |
-
default_version = 'nightly';
|
1143 |
-
version_cnt++;
|
1144 |
-
}
|
1145 |
-
}
|
1146 |
-
|
1147 |
-
for(let v of obj) {
|
1148 |
-
if(rowItem.originalData.active_version != v.version) {
|
1149 |
-
default_version = v.version;
|
1150 |
-
versions.push(v.version);
|
1151 |
-
version_cnt++;
|
1152 |
-
}
|
1153 |
-
}
|
1154 |
-
|
1155 |
-
if(version_cnt == 1) {
|
1156 |
-
// if only one version is available
|
1157 |
-
this.installNodes([hash], btn, title, default_version);
|
1158 |
-
}
|
1159 |
-
else {
|
1160 |
-
this.showVersionSelectorDialog(versions, (selected_version) => {
|
1161 |
-
this.installNodes([hash], btn, title, selected_version);
|
1162 |
-
});
|
1163 |
-
}
|
1164 |
-
}
|
1165 |
-
else {
|
1166 |
-
show_message('Failed to fetch versions from ComfyRegistry.');
|
1167 |
-
}
|
1168 |
-
}
|
1169 |
-
|
1170 |
-
async installNodes(list, btn, title, selected_version) {
|
1171 |
-
const { target, label, mode} = btn;
|
1172 |
-
|
1173 |
-
if(mode === "uninstall") {
|
1174 |
-
title = title || `${list.length} custom nodes`;
|
1175 |
-
if (!confirm(`Are you sure uninstall ${title}?`)) {
|
1176 |
-
return;
|
1177 |
-
}
|
1178 |
-
}
|
1179 |
-
|
1180 |
-
if(mode === "reinstall") {
|
1181 |
-
title = title || `${list.length} custom nodes`;
|
1182 |
-
if (!confirm(`Are you sure reinstall ${title}?`)) {
|
1183 |
-
return;
|
1184 |
-
}
|
1185 |
-
}
|
1186 |
-
|
1187 |
-
target.classList.add("cn-btn-loading");
|
1188 |
-
this.showError("");
|
1189 |
-
|
1190 |
-
let needRestart = false;
|
1191 |
-
let errorMsg = "";
|
1192 |
-
for (const hash of list) {
|
1193 |
-
const item = this.grid.getRowItemBy("hash", hash);
|
1194 |
-
if (!item) {
|
1195 |
-
errorMsg = `Not found custom node: ${hash}`;
|
1196 |
-
break;
|
1197 |
-
}
|
1198 |
-
|
1199 |
-
this.grid.scrollRowIntoView(item);
|
1200 |
-
|
1201 |
-
if (!this.focusInstall(item, mode)) {
|
1202 |
-
this.grid.onNextUpdated(() => {
|
1203 |
-
this.focusInstall(item, mode);
|
1204 |
-
});
|
1205 |
-
}
|
1206 |
-
|
1207 |
-
this.showStatus(`${label} ${item.title} ...`);
|
1208 |
-
|
1209 |
-
const data = item.originalData;
|
1210 |
-
data.selected_version = selected_version;
|
1211 |
-
data.channel = this.channel;
|
1212 |
-
data.mode = this.mode;
|
1213 |
-
|
1214 |
-
let install_mode = mode;
|
1215 |
-
if(mode == 'switch') {
|
1216 |
-
install_mode = 'install';
|
1217 |
-
}
|
1218 |
-
|
1219 |
-
// don't post install if install_mode == 'enable'
|
1220 |
-
data.skip_post_install = install_mode == 'enable';
|
1221 |
-
let api_mode = install_mode;
|
1222 |
-
if(install_mode == 'enable') {
|
1223 |
-
api_mode = 'install';
|
1224 |
-
}
|
1225 |
-
|
1226 |
-
if(install_mode == 'reinstall') {
|
1227 |
-
api_mode = 'reinstall';
|
1228 |
-
}
|
1229 |
-
|
1230 |
-
const res = await api.fetchApi(`/customnode/${api_mode}`, {
|
1231 |
-
method: 'POST',
|
1232 |
-
body: JSON.stringify(data)
|
1233 |
-
});
|
1234 |
-
|
1235 |
-
if (res.status != 200) {
|
1236 |
-
errorMsg = `'${item.title}' ${mode} failed: `;
|
1237 |
-
if(res.status == 403) {
|
1238 |
-
errorMsg += `This action is not allowed with this security level configuration.`;
|
1239 |
-
} else if(res.status == 404) {
|
1240 |
-
errorMsg += `With the current security level configuration, only custom nodes from the <B>"default channel"</B> can be installed.`;
|
1241 |
-
} else {
|
1242 |
-
errorMsg += await res.text();
|
1243 |
-
}
|
1244 |
-
|
1245 |
-
break;
|
1246 |
-
}
|
1247 |
-
|
1248 |
-
needRestart = true;
|
1249 |
-
|
1250 |
-
this.grid.setRowSelected(item, false);
|
1251 |
-
item.restart = true;
|
1252 |
-
this.restartMap[item.hash] = true;
|
1253 |
-
this.grid.updateCell(item, "action");
|
1254 |
-
|
1255 |
-
//console.log(res.data);
|
1256 |
-
|
1257 |
-
}
|
1258 |
-
|
1259 |
-
target.classList.remove("cn-btn-loading");
|
1260 |
-
|
1261 |
-
if (errorMsg) {
|
1262 |
-
this.showError(errorMsg);
|
1263 |
-
} else {
|
1264 |
-
this.showStatus(`${label} ${list.length} custom node(s) successfully`);
|
1265 |
-
}
|
1266 |
-
|
1267 |
-
if (needRestart) {
|
1268 |
-
this.showRestart();
|
1269 |
-
this.showMessage(`To apply the installed/updated/disabled/enabled custom node, please restart ComfyUI. And refresh browser.`, "red")
|
1270 |
-
}
|
1271 |
-
|
1272 |
-
}
|
1273 |
-
|
1274 |
-
// ===========================================================================================
|
1275 |
-
|
1276 |
-
async getExtensionMappings() {
|
1277 |
-
const mode = manager_instance.datasrc_combo.value;
|
1278 |
-
this.showStatus(`Loading extension mappings (${mode}) ...`);
|
1279 |
-
const res = await fetchData(`/customnode/getmappings?mode=${mode}`);
|
1280 |
-
if (res.error) {
|
1281 |
-
console.log(res.error);
|
1282 |
-
return {}
|
1283 |
-
}
|
1284 |
-
|
1285 |
-
const data = res.data;
|
1286 |
-
|
1287 |
-
const extension_mappings = {};
|
1288 |
-
const conflicts_map = {};
|
1289 |
-
Object.keys(data).forEach(k => {
|
1290 |
-
const [extensions, metadata] = data[k];
|
1291 |
-
extension_mappings[k] = {
|
1292 |
-
extensions,
|
1293 |
-
metadata
|
1294 |
-
}
|
1295 |
-
extensions.forEach(node => {
|
1296 |
-
let l = conflicts_map[node];
|
1297 |
-
if(!l) {
|
1298 |
-
l = [];
|
1299 |
-
conflicts_map[node] = l;
|
1300 |
-
}
|
1301 |
-
l.push(k);
|
1302 |
-
})
|
1303 |
-
})
|
1304 |
-
|
1305 |
-
Object.keys(conflicts_map).forEach(node => {
|
1306 |
-
const list = conflicts_map[node];
|
1307 |
-
if(list.length > 1) {
|
1308 |
-
list.forEach(k => {
|
1309 |
-
const item = extension_mappings[k];
|
1310 |
-
if(!item) {
|
1311 |
-
console.log(`not found ${k}`)
|
1312 |
-
return;
|
1313 |
-
}
|
1314 |
-
|
1315 |
-
if (!item.conflicts) {
|
1316 |
-
item.conflicts = [];
|
1317 |
-
}
|
1318 |
-
list.forEach(key => {
|
1319 |
-
if(k !== key) {
|
1320 |
-
item.conflicts.push([node, key])
|
1321 |
-
}
|
1322 |
-
})
|
1323 |
-
})
|
1324 |
-
}
|
1325 |
-
})
|
1326 |
-
|
1327 |
-
return extension_mappings;
|
1328 |
-
}
|
1329 |
-
|
1330 |
-
async getMissingNodes() {
|
1331 |
-
const mode = manager_instance.datasrc_combo.value;
|
1332 |
-
this.showStatus(`Loading missing nodes (${mode}) ...`);
|
1333 |
-
const res = await fetchData(`/customnode/getmappings?mode=${mode}`);
|
1334 |
-
if (res.error) {
|
1335 |
-
this.showError(`Failed to get custom node mappings: ${res.error}`);
|
1336 |
-
return;
|
1337 |
-
}
|
1338 |
-
|
1339 |
-
const mappings = res.data;
|
1340 |
-
|
1341 |
-
// build regex->url map
|
1342 |
-
const regex_to_pack = [];
|
1343 |
-
for(let k in this.custom_nodes) {
|
1344 |
-
let node = this.custom_nodes[k];
|
1345 |
-
|
1346 |
-
if(node.nodename_pattern) {
|
1347 |
-
regex_to_pack.push({
|
1348 |
-
regex: new RegExp(node.nodename_pattern),
|
1349 |
-
url: node.files[0]
|
1350 |
-
});
|
1351 |
-
}
|
1352 |
-
}
|
1353 |
-
|
1354 |
-
// build name->url map
|
1355 |
-
const name_to_packs = {};
|
1356 |
-
for (const url in mappings) {
|
1357 |
-
const names = mappings[url];
|
1358 |
-
|
1359 |
-
for(const name in names[0]) {
|
1360 |
-
let v = name_to_packs[names[0][name]];
|
1361 |
-
if(v == undefined) {
|
1362 |
-
v = [];
|
1363 |
-
name_to_packs[names[0][name]] = v;
|
1364 |
-
}
|
1365 |
-
v.push(url);
|
1366 |
-
}
|
1367 |
-
}
|
1368 |
-
|
1369 |
-
const registered_nodes = new Set();
|
1370 |
-
for (let i in LiteGraph.registered_node_types) {
|
1371 |
-
registered_nodes.add(LiteGraph.registered_node_types[i].type);
|
1372 |
-
}
|
1373 |
-
|
1374 |
-
const missing_nodes = new Set();
|
1375 |
-
const workflow = app.graph.serialize();
|
1376 |
-
const group_nodes = workflow.extra && workflow.extra.groupNodes ? workflow.extra.groupNodes : [];
|
1377 |
-
let nodes = workflow.nodes;
|
1378 |
-
|
1379 |
-
for (let i in group_nodes) {
|
1380 |
-
let group_node = group_nodes[i];
|
1381 |
-
nodes = nodes.concat(group_node.nodes);
|
1382 |
-
}
|
1383 |
-
|
1384 |
-
for (let i in nodes) {
|
1385 |
-
const node_type = nodes[i].type;
|
1386 |
-
if(node_type.startsWith('workflow/') || node_type.startsWith('workflow>'))
|
1387 |
-
continue;
|
1388 |
-
|
1389 |
-
if (!registered_nodes.has(node_type)) {
|
1390 |
-
const packs = name_to_packs[node_type.trim()];
|
1391 |
-
if(packs)
|
1392 |
-
packs.forEach(url => {
|
1393 |
-
missing_nodes.add(url);
|
1394 |
-
});
|
1395 |
-
else {
|
1396 |
-
for(let j in regex_to_pack) {
|
1397 |
-
if(regex_to_pack[j].regex.test(node_type)) {
|
1398 |
-
missing_nodes.add(regex_to_pack[j].url);
|
1399 |
-
}
|
1400 |
-
}
|
1401 |
-
}
|
1402 |
-
}
|
1403 |
-
}
|
1404 |
-
|
1405 |
-
const resUnresolved = await fetchData(`/component/get_unresolved`);
|
1406 |
-
const unresolved = resUnresolved.data;
|
1407 |
-
if (unresolved && unresolved.nodes) {
|
1408 |
-
unresolved.nodes.forEach(node_type => {
|
1409 |
-
const packs = name_to_packs[node_type];
|
1410 |
-
if(packs) {
|
1411 |
-
packs.forEach(url => {
|
1412 |
-
missing_nodes.add(url);
|
1413 |
-
});
|
1414 |
-
}
|
1415 |
-
});
|
1416 |
-
}
|
1417 |
-
|
1418 |
-
const hashMap = {};
|
1419 |
-
for(let k in this.custom_nodes) {
|
1420 |
-
let item = this.custom_nodes[k];
|
1421 |
-
|
1422 |
-
if(missing_nodes.has(item.id)) {
|
1423 |
-
hashMap[item.hash] = true;
|
1424 |
-
}
|
1425 |
-
else if (item.files?.some(file => missing_nodes.has(file))) {
|
1426 |
-
hashMap[item.hash] = true;
|
1427 |
-
}
|
1428 |
-
}
|
1429 |
-
|
1430 |
-
return hashMap;
|
1431 |
-
}
|
1432 |
-
|
1433 |
-
async getFavorites() {
|
1434 |
-
const hashMap = {};
|
1435 |
-
for(let k in this.custom_nodes) {
|
1436 |
-
let item = this.custom_nodes[k];
|
1437 |
-
if(item.is_favorite)
|
1438 |
-
hashMap[item.hash] = true;
|
1439 |
-
}
|
1440 |
-
|
1441 |
-
return hashMap;
|
1442 |
-
}
|
1443 |
-
|
1444 |
-
async loadData(show_mode = ShowMode.NORMAL) {
|
1445 |
-
this.show_mode = show_mode;
|
1446 |
-
console.log("Show mode:", show_mode);
|
1447 |
-
|
1448 |
-
this.showLoading();
|
1449 |
-
|
1450 |
-
this.extension_mappings = await this.getExtensionMappings();
|
1451 |
-
|
1452 |
-
const mode = manager_instance.datasrc_combo.value;
|
1453 |
-
this.showStatus(`Loading custom nodes (${mode}) ...`);
|
1454 |
-
|
1455 |
-
const skip_update = this.show_mode === ShowMode.UPDATE ? "" : "&skip_update=true";
|
1456 |
-
const res = await fetchData(`/customnode/getlist?mode=${mode}${skip_update}`);
|
1457 |
-
if (res.error) {
|
1458 |
-
this.showError("Failed to get custom node list.");
|
1459 |
-
this.hideLoading();
|
1460 |
-
return
|
1461 |
-
}
|
1462 |
-
|
1463 |
-
const { channel, node_packs } = res.data;
|
1464 |
-
this.channel = channel;
|
1465 |
-
this.mode = mode;
|
1466 |
-
this.custom_nodes = node_packs;
|
1467 |
-
|
1468 |
-
if(this.channel !== 'default') {
|
1469 |
-
this.element.querySelector(".cn-manager-channel").innerHTML = `Channel: ${this.channel} (Incomplete list)`;
|
1470 |
-
}
|
1471 |
-
|
1472 |
-
for (const k in node_packs) {
|
1473 |
-
let item = node_packs[k];
|
1474 |
-
item.originalData = JSON.parse(JSON.stringify(item));
|
1475 |
-
item.hash = md5(k);
|
1476 |
-
}
|
1477 |
-
|
1478 |
-
const filterItem = this.getFilterItem(this.show_mode);
|
1479 |
-
if(filterItem) {
|
1480 |
-
let hashMap;
|
1481 |
-
if(this.show_mode == ShowMode.UPDATE) {
|
1482 |
-
hashMap = {};
|
1483 |
-
for (const k in node_packs) {
|
1484 |
-
let it = node_packs[k];
|
1485 |
-
if (it['update-state'] === "true") {
|
1486 |
-
hashMap[it.hash] = true;
|
1487 |
-
}
|
1488 |
-
}
|
1489 |
-
} else if(this.show_mode == ShowMode.MISSING) {
|
1490 |
-
hashMap = await this.getMissingNodes();
|
1491 |
-
} else if(this.show_mode == ShowMode.FAVORITES) {
|
1492 |
-
hashMap = await this.getFavorites();
|
1493 |
-
}
|
1494 |
-
filterItem.hashMap = hashMap;
|
1495 |
-
filterItem.hasData = true;
|
1496 |
-
}
|
1497 |
-
|
1498 |
-
for(let k in node_packs) {
|
1499 |
-
let nodeItem = node_packs[k];
|
1500 |
-
|
1501 |
-
if (this.restartMap[nodeItem.hash]) {
|
1502 |
-
nodeItem.restart = true;
|
1503 |
-
}
|
1504 |
-
|
1505 |
-
if(nodeItem['update-state'] == "true") {
|
1506 |
-
nodeItem.action = 'updatable';
|
1507 |
-
}
|
1508 |
-
else if(nodeItem['import-fail']) {
|
1509 |
-
nodeItem.action = 'import-fail';
|
1510 |
-
}
|
1511 |
-
else {
|
1512 |
-
nodeItem.action = nodeItem.state;
|
1513 |
-
}
|
1514 |
-
|
1515 |
-
if(nodeItem['invalid-installation']) {
|
1516 |
-
nodeItem.action = 'invalid-installation';
|
1517 |
-
}
|
1518 |
-
|
1519 |
-
const filterTypes = new Set();
|
1520 |
-
this.filterList.forEach(filterItem => {
|
1521 |
-
const { value, hashMap } = filterItem;
|
1522 |
-
if (hashMap) {
|
1523 |
-
const hashData = hashMap[nodeItem.hash]
|
1524 |
-
if (hashData) {
|
1525 |
-
filterTypes.add(value);
|
1526 |
-
if (value === ShowMode.UPDATE) {
|
1527 |
-
nodeItem['update-state'] = "true";
|
1528 |
-
}
|
1529 |
-
if (value === ShowMode.MISSING) {
|
1530 |
-
nodeItem['missing-node'] = "true";
|
1531 |
-
}
|
1532 |
-
if (typeof hashData === "object") {
|
1533 |
-
Object.assign(nodeItem, hashData);
|
1534 |
-
}
|
1535 |
-
}
|
1536 |
-
} else {
|
1537 |
-
if (nodeItem.state === value) {
|
1538 |
-
filterTypes.add(value);
|
1539 |
-
}
|
1540 |
-
|
1541 |
-
switch(nodeItem.state) {
|
1542 |
-
case "enabled":
|
1543 |
-
filterTypes.add("enabled");
|
1544 |
-
case "disabled":
|
1545 |
-
filterTypes.add("installed");
|
1546 |
-
break;
|
1547 |
-
|
1548 |
-
case "not-installed":
|
1549 |
-
filterTypes.add("not-installed");
|
1550 |
-
break;
|
1551 |
-
}
|
1552 |
-
|
1553 |
-
if(nodeItem.version != 'unknown') {
|
1554 |
-
filterTypes.add("cnr");
|
1555 |
-
}
|
1556 |
-
else {
|
1557 |
-
filterTypes.add("unknown");
|
1558 |
-
}
|
1559 |
-
|
1560 |
-
if(nodeItem['update-state'] == 'true') {
|
1561 |
-
filterTypes.add("updatable");
|
1562 |
-
}
|
1563 |
-
|
1564 |
-
if(nodeItem['import-fail']) {
|
1565 |
-
filterTypes.add("import-fail");
|
1566 |
-
}
|
1567 |
-
|
1568 |
-
if(nodeItem['invalid-installation']) {
|
1569 |
-
filterTypes.add("invalid-installation");
|
1570 |
-
}
|
1571 |
-
}
|
1572 |
-
});
|
1573 |
-
|
1574 |
-
nodeItem.filterTypes = Array.from(filterTypes);
|
1575 |
-
}
|
1576 |
-
|
1577 |
-
this.renderGrid();
|
1578 |
-
|
1579 |
-
this.hideLoading();
|
1580 |
-
|
1581 |
-
}
|
1582 |
-
|
1583 |
-
// ===========================================================================================
|
1584 |
-
|
1585 |
-
showSelection(msg) {
|
1586 |
-
this.element.querySelector(".cn-manager-selection").innerHTML = msg;
|
1587 |
-
}
|
1588 |
-
|
1589 |
-
showError(err) {
|
1590 |
-
this.showMessage(err, "red");
|
1591 |
-
}
|
1592 |
-
|
1593 |
-
showMessage(msg, color) {
|
1594 |
-
if (color) {
|
1595 |
-
msg = `<font color="${color}">${msg}</font>`;
|
1596 |
-
}
|
1597 |
-
this.element.querySelector(".cn-manager-message").innerHTML = msg;
|
1598 |
-
}
|
1599 |
-
|
1600 |
-
showStatus(msg, color) {
|
1601 |
-
if (color) {
|
1602 |
-
msg = `<font color="${color}">${msg}</font>`;
|
1603 |
-
}
|
1604 |
-
this.element.querySelector(".cn-manager-status").innerHTML = msg;
|
1605 |
-
}
|
1606 |
-
|
1607 |
-
showLoading() {
|
1608 |
-
this.setDisabled(true);
|
1609 |
-
if (this.grid) {
|
1610 |
-
this.grid.showLoading();
|
1611 |
-
this.grid.showMask({
|
1612 |
-
opacity: 0.05
|
1613 |
-
});
|
1614 |
-
}
|
1615 |
-
}
|
1616 |
-
|
1617 |
-
hideLoading() {
|
1618 |
-
this.setDisabled(false);
|
1619 |
-
if (this.grid) {
|
1620 |
-
this.grid.hideLoading();
|
1621 |
-
this.grid.hideMask();
|
1622 |
-
}
|
1623 |
-
}
|
1624 |
-
|
1625 |
-
setDisabled(disabled) {
|
1626 |
-
|
1627 |
-
const $close = this.element.querySelector(".cn-manager-close");
|
1628 |
-
const $restart = this.element.querySelector(".cn-manager-restart");
|
1629 |
-
|
1630 |
-
const list = [
|
1631 |
-
".cn-manager-header input",
|
1632 |
-
".cn-manager-header select",
|
1633 |
-
".cn-manager-footer button",
|
1634 |
-
".cn-manager-selection button"
|
1635 |
-
].map(s => {
|
1636 |
-
return Array.from(this.element.querySelectorAll(s));
|
1637 |
-
})
|
1638 |
-
.flat()
|
1639 |
-
.filter(it => {
|
1640 |
-
return it !== $close && it !== $restart;
|
1641 |
-
});
|
1642 |
-
|
1643 |
-
list.forEach($elem => {
|
1644 |
-
if (disabled) {
|
1645 |
-
$elem.setAttribute("disabled", "disabled");
|
1646 |
-
} else {
|
1647 |
-
$elem.removeAttribute("disabled");
|
1648 |
-
}
|
1649 |
-
});
|
1650 |
-
|
1651 |
-
Array.from(this.element.querySelectorAll(".cn-btn-loading")).forEach($elem => {
|
1652 |
-
$elem.classList.remove("cn-btn-loading");
|
1653 |
-
});
|
1654 |
-
|
1655 |
-
}
|
1656 |
-
|
1657 |
-
showRestart() {
|
1658 |
-
this.element.querySelector(".cn-manager-restart").style.display = "block";
|
1659 |
-
}
|
1660 |
-
|
1661 |
-
setFilter(filterValue) {
|
1662 |
-
let filter = "";
|
1663 |
-
const filterItem = this.getFilterItem(filterValue);
|
1664 |
-
if(filterItem) {
|
1665 |
-
filter = filterItem.value;
|
1666 |
-
}
|
1667 |
-
this.filter = filter;
|
1668 |
-
this.element.querySelector(".cn-manager-filter").value = filter;
|
1669 |
-
}
|
1670 |
-
|
1671 |
-
setKeywords(keywords = "") {
|
1672 |
-
this.keywords = keywords;
|
1673 |
-
this.element.querySelector(".cn-manager-keywords").value = keywords;
|
1674 |
-
}
|
1675 |
-
|
1676 |
-
show(show_mode) {
|
1677 |
-
this.element.style.display = "flex";
|
1678 |
-
this.setFilter(show_mode);
|
1679 |
-
this.setKeywords("");
|
1680 |
-
this.showSelection("");
|
1681 |
-
this.showMessage("");
|
1682 |
-
this.loadData(show_mode);
|
1683 |
-
}
|
1684 |
-
|
1685 |
-
close() {
|
1686 |
-
this.element.style.display = "none";
|
1687 |
-
}
|
1688 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ComfyUI/custom_nodes/manager-core/js/model-manager.js
DELETED
@@ -1,893 +0,0 @@
|
|
1 |
-
import { $el } from "../../scripts/ui.js";
|
2 |
-
import {
|
3 |
-
manager_instance, rebootAPI,
|
4 |
-
fetchData, md5, icons
|
5 |
-
} from "./common.js";
|
6 |
-
|
7 |
-
// https://cenfun.github.io/turbogrid/api.html
|
8 |
-
import TG from "./turbogrid.esm.js";
|
9 |
-
|
10 |
-
const pageCss = `
|
11 |
-
.cmm-manager {
|
12 |
-
--grid-font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
|
13 |
-
z-index: 10001;
|
14 |
-
width: 80%;
|
15 |
-
height: 80%;
|
16 |
-
display: flex;
|
17 |
-
flex-direction: column;
|
18 |
-
gap: 10px;
|
19 |
-
color: var(--fg-color);
|
20 |
-
font-family: arial, sans-serif;
|
21 |
-
}
|
22 |
-
|
23 |
-
.cmm-manager .cmm-flex-auto {
|
24 |
-
flex: auto;
|
25 |
-
}
|
26 |
-
|
27 |
-
.cmm-manager button {
|
28 |
-
font-size: 16px;
|
29 |
-
color: var(--input-text);
|
30 |
-
background-color: var(--comfy-input-bg);
|
31 |
-
border-radius: 8px;
|
32 |
-
border-color: var(--border-color);
|
33 |
-
border-style: solid;
|
34 |
-
margin: 0;
|
35 |
-
padding: 4px 8px;
|
36 |
-
min-width: 100px;
|
37 |
-
}
|
38 |
-
|
39 |
-
.cmm-manager button:disabled,
|
40 |
-
.cmm-manager input:disabled,
|
41 |
-
.cmm-manager select:disabled {
|
42 |
-
color: gray;
|
43 |
-
}
|
44 |
-
|
45 |
-
.cmm-manager button:disabled {
|
46 |
-
background-color: var(--comfy-input-bg);
|
47 |
-
}
|
48 |
-
|
49 |
-
.cmm-manager-header {
|
50 |
-
display: flex;
|
51 |
-
flex-wrap: wrap;
|
52 |
-
gap: 5px;
|
53 |
-
align-items: center;
|
54 |
-
padding: 0 5px;
|
55 |
-
}
|
56 |
-
|
57 |
-
.cmm-manager-header label {
|
58 |
-
display: flex;
|
59 |
-
gap: 5px;
|
60 |
-
align-items: center;
|
61 |
-
}
|
62 |
-
|
63 |
-
.cmm-manager-type,
|
64 |
-
.cmm-manager-base,
|
65 |
-
.cmm-manager-filter {
|
66 |
-
height: 28px;
|
67 |
-
line-height: 28px;
|
68 |
-
}
|
69 |
-
|
70 |
-
.cmm-manager-keywords {
|
71 |
-
height: 28px;
|
72 |
-
line-height: 28px;
|
73 |
-
padding: 0 5px 0 26px;
|
74 |
-
background-size: 16px;
|
75 |
-
background-position: 5px center;
|
76 |
-
background-repeat: no-repeat;
|
77 |
-
background-image: url("data:image/svg+xml;charset=utf8,${encodeURIComponent(icons.search.replace("currentColor", "#888"))}");
|
78 |
-
}
|
79 |
-
|
80 |
-
.cmm-manager-status {
|
81 |
-
padding-left: 10px;
|
82 |
-
}
|
83 |
-
|
84 |
-
.cmm-manager-grid {
|
85 |
-
flex: auto;
|
86 |
-
border: 1px solid var(--border-color);
|
87 |
-
overflow: hidden;
|
88 |
-
}
|
89 |
-
|
90 |
-
.cmm-manager-selection {
|
91 |
-
display: flex;
|
92 |
-
flex-wrap: wrap;
|
93 |
-
gap: 10px;
|
94 |
-
align-items: center;
|
95 |
-
}
|
96 |
-
|
97 |
-
.cmm-manager-message {
|
98 |
-
|
99 |
-
}
|
100 |
-
|
101 |
-
.cmm-manager-footer {
|
102 |
-
display: flex;
|
103 |
-
flex-wrap: wrap;
|
104 |
-
gap: 10px;
|
105 |
-
align-items: center;
|
106 |
-
}
|
107 |
-
|
108 |
-
.cmm-manager-grid .tg-turbogrid {
|
109 |
-
font-family: var(--grid-font);
|
110 |
-
font-size: 15px;
|
111 |
-
background: var(--bg-color);
|
112 |
-
}
|
113 |
-
|
114 |
-
.cmm-manager-grid .cmm-node-name a {
|
115 |
-
color: skyblue;
|
116 |
-
text-decoration: none;
|
117 |
-
word-break: break-word;
|
118 |
-
}
|
119 |
-
|
120 |
-
.cmm-manager-grid .cmm-node-desc a {
|
121 |
-
color: #5555FF;
|
122 |
-
font-weight: bold;
|
123 |
-
text-decoration: none;
|
124 |
-
}
|
125 |
-
|
126 |
-
.cmm-manager-grid .tg-cell a:hover {
|
127 |
-
text-decoration: underline;
|
128 |
-
}
|
129 |
-
|
130 |
-
.cmm-icon-passed {
|
131 |
-
width: 20px;
|
132 |
-
height: 20px;
|
133 |
-
position: absolute;
|
134 |
-
left: calc(50% - 10px);
|
135 |
-
top: calc(50% - 10px);
|
136 |
-
}
|
137 |
-
|
138 |
-
.cmm-manager .cmm-btn-enable {
|
139 |
-
background-color: blue;
|
140 |
-
color: white;
|
141 |
-
}
|
142 |
-
|
143 |
-
.cmm-manager .cmm-btn-disable {
|
144 |
-
background-color: MediumSlateBlue;
|
145 |
-
color: white;
|
146 |
-
}
|
147 |
-
|
148 |
-
.cmm-manager .cmm-btn-install {
|
149 |
-
background-color: black;
|
150 |
-
color: white;
|
151 |
-
}
|
152 |
-
|
153 |
-
.cmm-btn-download {
|
154 |
-
width: 18px;
|
155 |
-
height: 18px;
|
156 |
-
position: absolute;
|
157 |
-
left: calc(50% - 10px);
|
158 |
-
top: calc(50% - 10px);
|
159 |
-
cursor: pointer;
|
160 |
-
opacity: 0.8;
|
161 |
-
color: #fff;
|
162 |
-
}
|
163 |
-
|
164 |
-
.cmm-btn-download:hover {
|
165 |
-
opacity: 1;
|
166 |
-
}
|
167 |
-
|
168 |
-
.cmm-manager-light .cmm-btn-download {
|
169 |
-
color: #000;
|
170 |
-
}
|
171 |
-
|
172 |
-
@keyframes cmm-btn-loading-bg {
|
173 |
-
0% {
|
174 |
-
left: 0;
|
175 |
-
}
|
176 |
-
100% {
|
177 |
-
left: -105px;
|
178 |
-
}
|
179 |
-
}
|
180 |
-
|
181 |
-
.cmm-manager button.cmm-btn-loading {
|
182 |
-
position: relative;
|
183 |
-
overflow: hidden;
|
184 |
-
border-color: rgb(0 119 207 / 80%);
|
185 |
-
background-color: var(--comfy-input-bg);
|
186 |
-
}
|
187 |
-
|
188 |
-
.cmm-manager button.cmm-btn-loading::after {
|
189 |
-
position: absolute;
|
190 |
-
top: 0;
|
191 |
-
left: 0;
|
192 |
-
content: "";
|
193 |
-
width: 500px;
|
194 |
-
height: 100%;
|
195 |
-
background-image: repeating-linear-gradient(
|
196 |
-
-45deg,
|
197 |
-
rgb(0 119 207 / 30%),
|
198 |
-
rgb(0 119 207 / 30%) 10px,
|
199 |
-
transparent 10px,
|
200 |
-
transparent 15px
|
201 |
-
);
|
202 |
-
animation: cmm-btn-loading-bg 2s linear infinite;
|
203 |
-
}
|
204 |
-
|
205 |
-
.cmm-manager-light .cmm-node-name a {
|
206 |
-
color: blue;
|
207 |
-
}
|
208 |
-
|
209 |
-
.cmm-manager-light .cm-warn-note {
|
210 |
-
background-color: #ccc !important;
|
211 |
-
}
|
212 |
-
|
213 |
-
.cmm-manager-light .cmm-btn-install {
|
214 |
-
background-color: #333;
|
215 |
-
}
|
216 |
-
|
217 |
-
`;
|
218 |
-
|
219 |
-
const pageHtml = `
|
220 |
-
<div class="cmm-manager-header">
|
221 |
-
<label>Filter
|
222 |
-
<select class="cmm-manager-filter"></select>
|
223 |
-
</label>
|
224 |
-
<label>Type
|
225 |
-
<select class="cmm-manager-type"></select>
|
226 |
-
</label>
|
227 |
-
<label>Base
|
228 |
-
<select class="cmm-manager-base"></select>
|
229 |
-
</label>
|
230 |
-
<input class="cmm-manager-keywords" type="search" placeholder="Search" />
|
231 |
-
<div class="cmm-manager-status"></div>
|
232 |
-
<div class="cmm-flex-auto"></div>
|
233 |
-
</div>
|
234 |
-
<div class="cmm-manager-grid"></div>
|
235 |
-
<div class="cmm-manager-selection"></div>
|
236 |
-
<div class="cmm-manager-message"></div>
|
237 |
-
<div class="cmm-manager-footer">
|
238 |
-
<button class="cmm-manager-back">Back</button>
|
239 |
-
<div class="cmm-flex-auto"></div>
|
240 |
-
</div>
|
241 |
-
`;
|
242 |
-
|
243 |
-
export class ModelManager {
|
244 |
-
static instance = null;
|
245 |
-
|
246 |
-
constructor(app, manager_dialog) {
|
247 |
-
this.app = app;
|
248 |
-
this.manager_dialog = manager_dialog;
|
249 |
-
this.id = "cmm-manager";
|
250 |
-
|
251 |
-
this.filter = '';
|
252 |
-
this.type = '';
|
253 |
-
this.base = '';
|
254 |
-
this.keywords = '';
|
255 |
-
|
256 |
-
this.init();
|
257 |
-
}
|
258 |
-
|
259 |
-
init() {
|
260 |
-
|
261 |
-
if (!document.querySelector(`style[context="${this.id}"]`)) {
|
262 |
-
const $style = document.createElement("style");
|
263 |
-
$style.setAttribute("context", this.id);
|
264 |
-
$style.innerHTML = pageCss;
|
265 |
-
document.head.appendChild($style);
|
266 |
-
}
|
267 |
-
|
268 |
-
this.element = $el("div", {
|
269 |
-
parent: document.body,
|
270 |
-
className: "comfy-modal cmm-manager"
|
271 |
-
});
|
272 |
-
this.element.innerHTML = pageHtml;
|
273 |
-
this.initFilter();
|
274 |
-
this.bindEvents();
|
275 |
-
this.initGrid();
|
276 |
-
}
|
277 |
-
|
278 |
-
initFilter() {
|
279 |
-
|
280 |
-
this.filterList = [{
|
281 |
-
label: "All",
|
282 |
-
value: ""
|
283 |
-
}, {
|
284 |
-
label: "Installed",
|
285 |
-
value: "True"
|
286 |
-
}, {
|
287 |
-
label: "Not Installed",
|
288 |
-
value: "False"
|
289 |
-
}];
|
290 |
-
|
291 |
-
this.typeList = [{
|
292 |
-
label: "All",
|
293 |
-
value: ""
|
294 |
-
}];
|
295 |
-
|
296 |
-
this.baseList = [{
|
297 |
-
label: "All",
|
298 |
-
value: ""
|
299 |
-
}];
|
300 |
-
|
301 |
-
this.updateFilter();
|
302 |
-
|
303 |
-
}
|
304 |
-
|
305 |
-
updateFilter() {
|
306 |
-
const $filter = this.element.querySelector(".cmm-manager-filter");
|
307 |
-
$filter.innerHTML = this.filterList.map(item => {
|
308 |
-
const selected = item.value === this.filter ? " selected" : "";
|
309 |
-
return `<option value="${item.value}"${selected}>${item.label}</option>`
|
310 |
-
}).join("");
|
311 |
-
|
312 |
-
const $type = this.element.querySelector(".cmm-manager-type");
|
313 |
-
$type.innerHTML = this.typeList.map(item => {
|
314 |
-
const selected = item.value === this.type ? " selected" : "";
|
315 |
-
return `<option value="${item.value}"${selected}>${item.label}</option>`
|
316 |
-
}).join("");
|
317 |
-
|
318 |
-
const $base = this.element.querySelector(".cmm-manager-base");
|
319 |
-
$base.innerHTML = this.baseList.map(item => {
|
320 |
-
const selected = item.value === this.base ? " selected" : "";
|
321 |
-
return `<option value="${item.value}"${selected}>${item.label}</option>`
|
322 |
-
}).join("");
|
323 |
-
|
324 |
-
}
|
325 |
-
|
326 |
-
bindEvents() {
|
327 |
-
const eventsMap = {
|
328 |
-
".cmm-manager-filter": {
|
329 |
-
change: (e) => {
|
330 |
-
this.filter = e.target.value;
|
331 |
-
this.updateGrid();
|
332 |
-
}
|
333 |
-
},
|
334 |
-
".cmm-manager-type": {
|
335 |
-
change: (e) => {
|
336 |
-
this.type = e.target.value;
|
337 |
-
this.updateGrid();
|
338 |
-
}
|
339 |
-
},
|
340 |
-
".cmm-manager-base": {
|
341 |
-
change: (e) => {
|
342 |
-
this.base = e.target.value;
|
343 |
-
this.updateGrid();
|
344 |
-
}
|
345 |
-
},
|
346 |
-
|
347 |
-
".cmm-manager-keywords": {
|
348 |
-
input: (e) => {
|
349 |
-
const keywords = `${e.target.value}`.trim();
|
350 |
-
if (keywords !== this.keywords) {
|
351 |
-
this.keywords = keywords;
|
352 |
-
this.updateGrid();
|
353 |
-
}
|
354 |
-
},
|
355 |
-
focus: (e) => e.target.select()
|
356 |
-
},
|
357 |
-
|
358 |
-
".cmm-manager-selection": {
|
359 |
-
click: (e) => {
|
360 |
-
const target = e.target;
|
361 |
-
const mode = target.getAttribute("mode");
|
362 |
-
if (mode === "install") {
|
363 |
-
this.installModels(this.selectedModels, target);
|
364 |
-
}
|
365 |
-
}
|
366 |
-
},
|
367 |
-
|
368 |
-
".cmm-manager-back": {
|
369 |
-
click: (e) => {
|
370 |
-
this.close()
|
371 |
-
manager_instance.show();
|
372 |
-
}
|
373 |
-
},
|
374 |
-
};
|
375 |
-
Object.keys(eventsMap).forEach(selector => {
|
376 |
-
const target = this.element.querySelector(selector);
|
377 |
-
if (target) {
|
378 |
-
const events = eventsMap[selector];
|
379 |
-
if (events) {
|
380 |
-
Object.keys(events).forEach(type => {
|
381 |
-
target.addEventListener(type, events[type]);
|
382 |
-
});
|
383 |
-
}
|
384 |
-
}
|
385 |
-
});
|
386 |
-
}
|
387 |
-
|
388 |
-
// ===========================================================================================
|
389 |
-
|
390 |
-
initGrid() {
|
391 |
-
const container = this.element.querySelector(".cmm-manager-grid");
|
392 |
-
const grid = new TG.Grid(container);
|
393 |
-
this.grid = grid;
|
394 |
-
|
395 |
-
grid.bind('onUpdated', (e, d) => {
|
396 |
-
|
397 |
-
this.showStatus(`${grid.viewRows.length.toLocaleString()} external models`);
|
398 |
-
|
399 |
-
});
|
400 |
-
|
401 |
-
grid.bind('onSelectChanged', (e, changes) => {
|
402 |
-
this.renderSelected();
|
403 |
-
});
|
404 |
-
|
405 |
-
grid.bind('onClick', (e, d) => {
|
406 |
-
const { rowItem } = d;
|
407 |
-
const target = d.e.target;
|
408 |
-
const mode = target.getAttribute("mode");
|
409 |
-
if (mode === "install") {
|
410 |
-
this.installModels([rowItem], target);
|
411 |
-
}
|
412 |
-
|
413 |
-
});
|
414 |
-
|
415 |
-
grid.setOption({
|
416 |
-
theme: 'dark',
|
417 |
-
|
418 |
-
selectVisible: true,
|
419 |
-
selectMultiple: true,
|
420 |
-
selectAllVisible: true,
|
421 |
-
|
422 |
-
textSelectable: true,
|
423 |
-
scrollbarRound: true,
|
424 |
-
|
425 |
-
frozenColumn: 1,
|
426 |
-
rowNotFound: "No Results",
|
427 |
-
|
428 |
-
rowHeight: 40,
|
429 |
-
bindWindowResize: true,
|
430 |
-
bindContainerResize: true,
|
431 |
-
|
432 |
-
cellResizeObserver: (rowItem, columnItem) => {
|
433 |
-
const autoHeightColumns = ['name', 'description'];
|
434 |
-
return autoHeightColumns.includes(columnItem.id)
|
435 |
-
},
|
436 |
-
|
437 |
-
// updateGrid handler for filter and keywords
|
438 |
-
rowFilter: (rowItem) => {
|
439 |
-
|
440 |
-
const searchableColumns = ["name", "type", "base", "description", "filename", "save_path"];
|
441 |
-
|
442 |
-
let shouldShown = grid.highlightKeywordsFilter(rowItem, searchableColumns, this.keywords);
|
443 |
-
|
444 |
-
if (shouldShown) {
|
445 |
-
if(this.filter && rowItem.installed !== this.filter) {
|
446 |
-
return false;
|
447 |
-
}
|
448 |
-
|
449 |
-
if(this.type && rowItem.type !== this.type) {
|
450 |
-
return false;
|
451 |
-
}
|
452 |
-
|
453 |
-
if(this.base && rowItem.base !== this.base) {
|
454 |
-
return false;
|
455 |
-
}
|
456 |
-
|
457 |
-
}
|
458 |
-
|
459 |
-
return shouldShown;
|
460 |
-
}
|
461 |
-
});
|
462 |
-
|
463 |
-
}
|
464 |
-
|
465 |
-
renderGrid() {
|
466 |
-
|
467 |
-
// update theme
|
468 |
-
const colorPalette = this.app.ui.settings.settingsValues['Comfy.ColorPalette'];
|
469 |
-
Array.from(this.element.classList).forEach(cn => {
|
470 |
-
if (cn.startsWith("cmm-manager-")) {
|
471 |
-
this.element.classList.remove(cn);
|
472 |
-
}
|
473 |
-
});
|
474 |
-
this.element.classList.add(`cmm-manager-${colorPalette}`);
|
475 |
-
|
476 |
-
const options = {
|
477 |
-
theme: colorPalette === "light" ? "" : "dark"
|
478 |
-
};
|
479 |
-
|
480 |
-
const rows = this.modelList || [];
|
481 |
-
|
482 |
-
const columns = [{
|
483 |
-
id: 'id',
|
484 |
-
name: 'ID',
|
485 |
-
width: 50,
|
486 |
-
align: 'center'
|
487 |
-
}, {
|
488 |
-
id: 'name',
|
489 |
-
name: 'Name',
|
490 |
-
width: 200,
|
491 |
-
minWidth: 100,
|
492 |
-
maxWidth: 500,
|
493 |
-
classMap: 'cmm-node-name',
|
494 |
-
formatter: function(name, rowItem, columnItem, cellNode) {
|
495 |
-
return `<a href=${rowItem.reference} target="_blank"><b>${name}</b></a>`;
|
496 |
-
}
|
497 |
-
}, {
|
498 |
-
id: 'installed',
|
499 |
-
name: 'Install',
|
500 |
-
width: 130,
|
501 |
-
minWidth: 110,
|
502 |
-
maxWidth: 200,
|
503 |
-
sortable: false,
|
504 |
-
align: 'center',
|
505 |
-
formatter: (installed, rowItem, columnItem) => {
|
506 |
-
if (rowItem.refresh) {
|
507 |
-
return `<font color="red">Refresh Required</span>`;
|
508 |
-
}
|
509 |
-
if (installed === "True") {
|
510 |
-
return `<div class="cmm-icon-passed">${icons.passed}</div>`;
|
511 |
-
}
|
512 |
-
return `<button class="cmm-btn-install" mode="install">Install</button>`;
|
513 |
-
}
|
514 |
-
}, {
|
515 |
-
id: 'url',
|
516 |
-
name: '',
|
517 |
-
width: 50,
|
518 |
-
sortable: false,
|
519 |
-
align: 'center',
|
520 |
-
formatter: (url, rowItem, columnItem) => {
|
521 |
-
return `<a class="cmm-btn-download" title="Download file" href="${url}" target="_blank">${icons.download}</a>`;
|
522 |
-
}
|
523 |
-
}, {
|
524 |
-
id: 'size',
|
525 |
-
name: 'Size',
|
526 |
-
width: 100,
|
527 |
-
formatter: (size) => {
|
528 |
-
if (typeof size === "number") {
|
529 |
-
return this.formatSize(size);
|
530 |
-
}
|
531 |
-
return size;
|
532 |
-
}
|
533 |
-
}, {
|
534 |
-
id: 'type',
|
535 |
-
name: 'Type',
|
536 |
-
width: 100
|
537 |
-
}, {
|
538 |
-
id: 'base',
|
539 |
-
name: 'Base'
|
540 |
-
}, {
|
541 |
-
id: 'description',
|
542 |
-
name: 'Description',
|
543 |
-
width: 400,
|
544 |
-
maxWidth: 5000,
|
545 |
-
classMap: 'cmm-node-desc'
|
546 |
-
}, {
|
547 |
-
id: "save_path",
|
548 |
-
name: 'Save Path',
|
549 |
-
width: 200
|
550 |
-
}, {
|
551 |
-
id: 'filename',
|
552 |
-
name: 'Filename',
|
553 |
-
width: 200
|
554 |
-
}];
|
555 |
-
|
556 |
-
this.grid.setData({
|
557 |
-
options,
|
558 |
-
rows,
|
559 |
-
columns
|
560 |
-
});
|
561 |
-
|
562 |
-
this.grid.render();
|
563 |
-
|
564 |
-
}
|
565 |
-
|
566 |
-
updateGrid() {
|
567 |
-
if (this.grid) {
|
568 |
-
this.grid.update();
|
569 |
-
}
|
570 |
-
}
|
571 |
-
|
572 |
-
// ===========================================================================================
|
573 |
-
|
574 |
-
renderSelected() {
|
575 |
-
const selectedList = this.grid.getSelectedRows();
|
576 |
-
if (!selectedList.length) {
|
577 |
-
this.showSelection("");
|
578 |
-
this.selectedModels = [];
|
579 |
-
return;
|
580 |
-
}
|
581 |
-
|
582 |
-
this.selectedModels = selectedList;
|
583 |
-
this.showSelection(`<span>Selected <b>${selectedList.length}</b> models <button class="cmm-btn-install" mode="install">Install</button>`);
|
584 |
-
}
|
585 |
-
|
586 |
-
focusInstall(item) {
|
587 |
-
const cellNode = this.grid.getCellNode(item, "installed");
|
588 |
-
if (cellNode) {
|
589 |
-
const cellBtn = cellNode.querySelector(`button[mode="install"]`);
|
590 |
-
if (cellBtn) {
|
591 |
-
cellBtn.classList.add("cmm-btn-loading");
|
592 |
-
return true
|
593 |
-
}
|
594 |
-
}
|
595 |
-
}
|
596 |
-
|
597 |
-
async installModels(list, btn) {
|
598 |
-
|
599 |
-
btn.classList.add("cmm-btn-loading");
|
600 |
-
this.showLoading();
|
601 |
-
this.showError("");
|
602 |
-
|
603 |
-
let needRestart = false;
|
604 |
-
let errorMsg = "";
|
605 |
-
|
606 |
-
for (const item of list) {
|
607 |
-
|
608 |
-
this.grid.scrollRowIntoView(item);
|
609 |
-
|
610 |
-
if (!this.focusInstall(item)) {
|
611 |
-
this.grid.onNextUpdated(() => {
|
612 |
-
this.focusInstall(item);
|
613 |
-
});
|
614 |
-
}
|
615 |
-
|
616 |
-
this.showStatus(`Install ${item.name} ...`);
|
617 |
-
|
618 |
-
const data = item.originalData;
|
619 |
-
const res = await fetchData('/model/install', {
|
620 |
-
method: 'POST',
|
621 |
-
headers: { 'Content-Type': 'application/json' },
|
622 |
-
body: JSON.stringify(data)
|
623 |
-
});
|
624 |
-
|
625 |
-
|
626 |
-
if (res.error) {
|
627 |
-
errorMsg = `Install failed: ${item.name} ${res.error.message}`;
|
628 |
-
break;;
|
629 |
-
}
|
630 |
-
|
631 |
-
needRestart = true;
|
632 |
-
|
633 |
-
this.grid.setRowSelected(item, false);
|
634 |
-
|
635 |
-
item.refresh = true;
|
636 |
-
item.selectable = false;
|
637 |
-
this.grid.updateCell(item, "installed");
|
638 |
-
this.grid.updateCell(item, "tg-column-select");
|
639 |
-
|
640 |
-
this.showStatus(`Install ${item.name} successfully`);
|
641 |
-
|
642 |
-
}
|
643 |
-
|
644 |
-
this.hideLoading();
|
645 |
-
btn.classList.remove("cmm-btn-loading");
|
646 |
-
|
647 |
-
if (errorMsg) {
|
648 |
-
this.showError(errorMsg);
|
649 |
-
} else {
|
650 |
-
this.showStatus(`Install ${list.length} models successfully`);
|
651 |
-
}
|
652 |
-
|
653 |
-
if (needRestart) {
|
654 |
-
this.showMessage(`To apply the installed model, please click the 'Refresh' button on the main menu.`, "red")
|
655 |
-
}
|
656 |
-
|
657 |
-
}
|
658 |
-
|
659 |
-
getModelList(models) {
|
660 |
-
|
661 |
-
const typeMap = new Map();
|
662 |
-
const baseMap = new Map();
|
663 |
-
|
664 |
-
models.forEach((item, i) => {
|
665 |
-
const { type, base, name, reference, installed } = item;
|
666 |
-
item.originalData = JSON.parse(JSON.stringify(item));
|
667 |
-
item.size = this.sizeToBytes(item.size);
|
668 |
-
item.hash = md5(name + reference);
|
669 |
-
item.id = i + 1;
|
670 |
-
|
671 |
-
if (installed === "True") {
|
672 |
-
item.selectable = false;
|
673 |
-
}
|
674 |
-
|
675 |
-
typeMap.set(type, type);
|
676 |
-
baseMap.set(base, base);
|
677 |
-
|
678 |
-
});
|
679 |
-
|
680 |
-
const typeList = [];
|
681 |
-
typeMap.forEach(type => {
|
682 |
-
typeList.push({
|
683 |
-
label: type,
|
684 |
-
value: type
|
685 |
-
});
|
686 |
-
});
|
687 |
-
typeList.sort((a,b)=> {
|
688 |
-
const au = a.label.toUpperCase();
|
689 |
-
const bu = b.label.toUpperCase();
|
690 |
-
if (au !== bu) {
|
691 |
-
return au > bu ? 1 : -1;
|
692 |
-
}
|
693 |
-
return 0;
|
694 |
-
});
|
695 |
-
this.typeList = [{
|
696 |
-
label: "All",
|
697 |
-
value: ""
|
698 |
-
}].concat(typeList);
|
699 |
-
|
700 |
-
|
701 |
-
const baseList = [];
|
702 |
-
baseMap.forEach(base => {
|
703 |
-
baseList.push({
|
704 |
-
label: base,
|
705 |
-
value: base
|
706 |
-
});
|
707 |
-
});
|
708 |
-
baseList.sort((a,b)=> {
|
709 |
-
const au = a.label.toUpperCase();
|
710 |
-
const bu = b.label.toUpperCase();
|
711 |
-
if (au !== bu) {
|
712 |
-
return au > bu ? 1 : -1;
|
713 |
-
}
|
714 |
-
return 0;
|
715 |
-
});
|
716 |
-
this.baseList = [{
|
717 |
-
label: "All",
|
718 |
-
value: ""
|
719 |
-
}].concat(baseList);
|
720 |
-
|
721 |
-
return models;
|
722 |
-
}
|
723 |
-
|
724 |
-
// ===========================================================================================
|
725 |
-
|
726 |
-
async loadData() {
|
727 |
-
|
728 |
-
this.showLoading();
|
729 |
-
|
730 |
-
this.showStatus(`Loading external model list ...`);
|
731 |
-
|
732 |
-
const mode = manager_instance.datasrc_combo.value;
|
733 |
-
|
734 |
-
const res = await fetchData(`/externalmodel/getlist?mode=${mode}`);
|
735 |
-
if (res.error) {
|
736 |
-
this.showError("Failed to get external model list.");
|
737 |
-
this.hideLoading();
|
738 |
-
return
|
739 |
-
}
|
740 |
-
|
741 |
-
const { models } = res.data;
|
742 |
-
|
743 |
-
this.modelList = this.getModelList(models);
|
744 |
-
// console.log("models", this.modelList);
|
745 |
-
|
746 |
-
this.updateFilter();
|
747 |
-
|
748 |
-
this.renderGrid();
|
749 |
-
|
750 |
-
this.hideLoading();
|
751 |
-
|
752 |
-
}
|
753 |
-
|
754 |
-
// ===========================================================================================
|
755 |
-
|
756 |
-
formatSize(v) {
|
757 |
-
const base = 1000;
|
758 |
-
const units = ['', 'K', 'M', 'G', 'T', 'P'];
|
759 |
-
const space = '';
|
760 |
-
const postfix = 'B';
|
761 |
-
if (v <= 0) {
|
762 |
-
return `0${space}${postfix}`;
|
763 |
-
}
|
764 |
-
for (let i = 0, l = units.length; i < l; i++) {
|
765 |
-
const min = Math.pow(base, i);
|
766 |
-
const max = Math.pow(base, i + 1);
|
767 |
-
if (v > min && v <= max) {
|
768 |
-
const unit = units[i];
|
769 |
-
if (unit) {
|
770 |
-
const n = v / min;
|
771 |
-
const nl = n.toString().split('.')[0].length;
|
772 |
-
const fl = Math.max(3 - nl, 1);
|
773 |
-
v = n.toFixed(fl);
|
774 |
-
}
|
775 |
-
v = v + space + unit + postfix;
|
776 |
-
break;
|
777 |
-
}
|
778 |
-
}
|
779 |
-
return v;
|
780 |
-
}
|
781 |
-
|
782 |
-
// for size sort
|
783 |
-
sizeToBytes(v) {
|
784 |
-
if (typeof v === "number") {
|
785 |
-
return v;
|
786 |
-
}
|
787 |
-
if (typeof v === "string") {
|
788 |
-
const n = parseFloat(v);
|
789 |
-
const unit = v.replace(/[0-9.B]+/g, "").trim().toUpperCase();
|
790 |
-
if (unit === "K") {
|
791 |
-
return n * 1000;
|
792 |
-
}
|
793 |
-
if (unit === "M") {
|
794 |
-
return n * 1000 * 1000;
|
795 |
-
}
|
796 |
-
if (unit === "G") {
|
797 |
-
return n * 1000 * 1000 * 1000;
|
798 |
-
}
|
799 |
-
if (unit === "T") {
|
800 |
-
return n * 1000 * 1000 * 1000 * 1000;
|
801 |
-
}
|
802 |
-
}
|
803 |
-
return v;
|
804 |
-
}
|
805 |
-
|
806 |
-
showSelection(msg) {
|
807 |
-
this.element.querySelector(".cmm-manager-selection").innerHTML = msg;
|
808 |
-
}
|
809 |
-
|
810 |
-
showError(err) {
|
811 |
-
this.showMessage(err, "red");
|
812 |
-
}
|
813 |
-
|
814 |
-
showMessage(msg, color) {
|
815 |
-
if (color) {
|
816 |
-
msg = `<font color="${color}">${msg}</font>`;
|
817 |
-
}
|
818 |
-
this.element.querySelector(".cmm-manager-message").innerHTML = msg;
|
819 |
-
}
|
820 |
-
|
821 |
-
showStatus(msg, color) {
|
822 |
-
if (color) {
|
823 |
-
msg = `<font color="${color}">${msg}</font>`;
|
824 |
-
}
|
825 |
-
this.element.querySelector(".cmm-manager-status").innerHTML = msg;
|
826 |
-
}
|
827 |
-
|
828 |
-
showLoading() {
|
829 |
-
this.setDisabled(true);
|
830 |
-
if (this.grid) {
|
831 |
-
this.grid.showLoading();
|
832 |
-
this.grid.showMask({
|
833 |
-
opacity: 0.05
|
834 |
-
});
|
835 |
-
}
|
836 |
-
}
|
837 |
-
|
838 |
-
hideLoading() {
|
839 |
-
this.setDisabled(false);
|
840 |
-
if (this.grid) {
|
841 |
-
this.grid.hideLoading();
|
842 |
-
this.grid.hideMask();
|
843 |
-
}
|
844 |
-
}
|
845 |
-
|
846 |
-
setDisabled(disabled) {
|
847 |
-
|
848 |
-
const $close = this.element.querySelector(".cmm-manager-close");
|
849 |
-
|
850 |
-
const list = [
|
851 |
-
".cmm-manager-header input",
|
852 |
-
".cmm-manager-header select",
|
853 |
-
".cmm-manager-footer button",
|
854 |
-
".cmm-manager-selection button"
|
855 |
-
].map(s => {
|
856 |
-
return Array.from(this.element.querySelectorAll(s));
|
857 |
-
})
|
858 |
-
.flat()
|
859 |
-
.filter(it => {
|
860 |
-
return it !== $close;
|
861 |
-
});
|
862 |
-
|
863 |
-
list.forEach($elem => {
|
864 |
-
if (disabled) {
|
865 |
-
$elem.setAttribute("disabled", "disabled");
|
866 |
-
} else {
|
867 |
-
$elem.removeAttribute("disabled");
|
868 |
-
}
|
869 |
-
});
|
870 |
-
|
871 |
-
Array.from(this.element.querySelectorAll(".cmm-btn-loading")).forEach($elem => {
|
872 |
-
$elem.classList.remove("cmm-btn-loading");
|
873 |
-
});
|
874 |
-
|
875 |
-
}
|
876 |
-
|
877 |
-
setKeywords(keywords = "") {
|
878 |
-
this.keywords = keywords;
|
879 |
-
this.element.querySelector(".cmm-manager-keywords").value = keywords;
|
880 |
-
}
|
881 |
-
|
882 |
-
show() {
|
883 |
-
this.element.style.display = "flex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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ComfyUI/custom_nodes/manager-core/js/snapshot.js
DELETED
@@ -1,300 +0,0 @@
|
|
1 |
-
import { app } from "../../scripts/app.js";
|
2 |
-
import { api } from "../../scripts/api.js"
|
3 |
-
import { ComfyDialog, $el } from "../../scripts/ui.js";
|
4 |
-
import { manager_instance, rebootAPI, show_message } from "./common.js";
|
5 |
-
|
6 |
-
|
7 |
-
async function restore_snapshot(target) {
|
8 |
-
if(SnapshotManager.instance) {
|
9 |
-
try {
|
10 |
-
const response = await api.fetchApi(`/snapshot/restore?target=${target}`, { cache: "no-store" });
|
11 |
-
|
12 |
-
if(response.status == 403) {
|
13 |
-
show_message('This action is not allowed with this security level configuration.');
|
14 |
-
return false;
|
15 |
-
}
|
16 |
-
|
17 |
-
if(response.status == 400) {
|
18 |
-
show_message(`Restore snapshot failed: ${target.title} / ${exception}`);
|
19 |
-
}
|
20 |
-
|
21 |
-
app.ui.dialog.close();
|
22 |
-
return true;
|
23 |
-
}
|
24 |
-
catch(exception) {
|
25 |
-
show_message(`Restore snapshot failed: ${target.title} / ${exception}`);
|
26 |
-
return false;
|
27 |
-
}
|
28 |
-
finally {
|
29 |
-
await SnapshotManager.instance.invalidateControl();
|
30 |
-
SnapshotManager.instance.updateMessage("<BR>To apply the snapshot, please <button id='cm-reboot-button2' class='cm-small-button'>RESTART</button> ComfyUI. And refresh browser.", 'cm-reboot-button2');
|
31 |
-
}
|
32 |
-
}
|
33 |
-
}
|
34 |
-
|
35 |
-
async function remove_snapshot(target) {
|
36 |
-
if(SnapshotManager.instance) {
|
37 |
-
try {
|
38 |
-
const response = await api.fetchApi(`/snapshot/remove?target=${target}`, { cache: "no-store" });
|
39 |
-
|
40 |
-
if(response.status == 403) {
|
41 |
-
show_message('This action is not allowed with this security level configuration.');
|
42 |
-
return false;
|
43 |
-
}
|
44 |
-
|
45 |
-
if(response.status == 400) {
|
46 |
-
show_message(`Remove snapshot failed: ${target.title} / ${exception}`);
|
47 |
-
}
|
48 |
-
|
49 |
-
app.ui.dialog.close();
|
50 |
-
return true;
|
51 |
-
}
|
52 |
-
catch(exception) {
|
53 |
-
show_message(`Restore snapshot failed: ${target.title} / ${exception}`);
|
54 |
-
return false;
|
55 |
-
}
|
56 |
-
finally {
|
57 |
-
await SnapshotManager.instance.invalidateControl();
|
58 |
-
}
|
59 |
-
}
|
60 |
-
}
|
61 |
-
|
62 |
-
async function save_current_snapshot() {
|
63 |
-
try {
|
64 |
-
const response = await api.fetchApi('/snapshot/save', { cache: "no-store" });
|
65 |
-
app.ui.dialog.close();
|
66 |
-
return true;
|
67 |
-
}
|
68 |
-
catch(exception) {
|
69 |
-
show_message(`Backup snapshot failed: ${exception}`);
|
70 |
-
return false;
|
71 |
-
}
|
72 |
-
finally {
|
73 |
-
await SnapshotManager.instance.invalidateControl();
|
74 |
-
SnapshotManager.instance.updateMessage("<BR>Current snapshot saved.");
|
75 |
-
}
|
76 |
-
}
|
77 |
-
|
78 |
-
async function getSnapshotList() {
|
79 |
-
const response = await api.fetchApi(`/snapshot/getlist`);
|
80 |
-
const data = await response.json();
|
81 |
-
return data;
|
82 |
-
}
|
83 |
-
|
84 |
-
export class SnapshotManager extends ComfyDialog {
|
85 |
-
static instance = null;
|
86 |
-
|
87 |
-
restore_buttons = [];
|
88 |
-
message_box = null;
|
89 |
-
data = null;
|
90 |
-
|
91 |
-
clear() {
|
92 |
-
this.restore_buttons = [];
|
93 |
-
this.message_box = null;
|
94 |
-
this.data = null;
|
95 |
-
}
|
96 |
-
|
97 |
-
constructor(app, manager_dialog) {
|
98 |
-
super();
|
99 |
-
this.manager_dialog = manager_dialog;
|
100 |
-
this.search_keyword = '';
|
101 |
-
this.element = $el("div.comfy-modal", { parent: document.body }, []);
|
102 |
-
}
|
103 |
-
|
104 |
-
async remove_item() {
|
105 |
-
caller.disableButtons();
|
106 |
-
|
107 |
-
await caller.invalidateControl();
|
108 |
-
}
|
109 |
-
|
110 |
-
createControls() {
|
111 |
-
return [
|
112 |
-
$el("button.cm-small-button", {
|
113 |
-
type: "button",
|
114 |
-
textContent: "Close",
|
115 |
-
onclick: () => { this.close(); }
|
116 |
-
})
|
117 |
-
];
|
118 |
-
}
|
119 |
-
|
120 |
-
startRestore(target) {
|
121 |
-
const self = SnapshotManager.instance;
|
122 |
-
|
123 |
-
self.updateMessage(`<BR><font color="green">Restore snapshot '${target.name}'</font>`);
|
124 |
-
|
125 |
-
for(let i in self.restore_buttons) {
|
126 |
-
self.restore_buttons[i].disabled = true;
|
127 |
-
self.restore_buttons[i].style.backgroundColor = 'gray';
|
128 |
-
}
|
129 |
-
}
|
130 |
-
|
131 |
-
async invalidateControl() {
|
132 |
-
this.clear();
|
133 |
-
this.data = (await getSnapshotList()).items;
|
134 |
-
|
135 |
-
while (this.element.children.length) {
|
136 |
-
this.element.removeChild(this.element.children[0]);
|
137 |
-
}
|
138 |
-
|
139 |
-
await this.createGrid();
|
140 |
-
await this.createBottomControls();
|
141 |
-
}
|
142 |
-
|
143 |
-
updateMessage(msg, btn_id) {
|
144 |
-
this.message_box.innerHTML = msg;
|
145 |
-
if(btn_id) {
|
146 |
-
const rebootButton = document.getElementById(btn_id);
|
147 |
-
const self = this;
|
148 |
-
rebootButton.onclick = function() {
|
149 |
-
if(rebootAPI()) {
|
150 |
-
self.close();
|
151 |
-
self.manager_dialog.close();
|
152 |
-
}
|
153 |
-
};
|
154 |
-
}
|
155 |
-
}
|
156 |
-
|
157 |
-
async createGrid(models_json) {
|
158 |
-
var grid = document.createElement('table');
|
159 |
-
grid.setAttribute('id', 'snapshot-list-grid');
|
160 |
-
|
161 |
-
var thead = document.createElement('thead');
|
162 |
-
var tbody = document.createElement('tbody');
|
163 |
-
|
164 |
-
var headerRow = document.createElement('tr');
|
165 |
-
thead.style.position = "sticky";
|
166 |
-
thead.style.top = "0px";
|
167 |
-
thead.style.borderCollapse = "collapse";
|
168 |
-
thead.style.tableLayout = "fixed";
|
169 |
-
|
170 |
-
var header1 = document.createElement('th');
|
171 |
-
header1.innerHTML = ' ID ';
|
172 |
-
header1.style.width = "20px";
|
173 |
-
var header2 = document.createElement('th');
|
174 |
-
header2.innerHTML = 'Datetime';
|
175 |
-
header2.style.width = "100%";
|
176 |
-
var header_button = document.createElement('th');
|
177 |
-
header_button.innerHTML = 'Action';
|
178 |
-
header_button.style.width = "100px";
|
179 |
-
|
180 |
-
thead.appendChild(headerRow);
|
181 |
-
headerRow.appendChild(header1);
|
182 |
-
headerRow.appendChild(header2);
|
183 |
-
headerRow.appendChild(header_button);
|
184 |
-
|
185 |
-
headerRow.style.backgroundColor = "Black";
|
186 |
-
headerRow.style.color = "White";
|
187 |
-
headerRow.style.textAlign = "center";
|
188 |
-
headerRow.style.width = "100%";
|
189 |
-
headerRow.style.padding = "0";
|
190 |
-
|
191 |
-
grid.appendChild(thead);
|
192 |
-
grid.appendChild(tbody);
|
193 |
-
|
194 |
-
this.grid_rows = {};
|
195 |
-
|
196 |
-
if(this.data)
|
197 |
-
for (var i = 0; i < this.data.length; i++) {
|
198 |
-
const data = this.data[i];
|
199 |
-
var dataRow = document.createElement('tr');
|
200 |
-
var data1 = document.createElement('td');
|
201 |
-
data1.style.textAlign = "center";
|
202 |
-
data1.innerHTML = i+1;
|
203 |
-
var data2 = document.createElement('td');
|
204 |
-
data2.innerHTML = ` ${data}`;
|
205 |
-
var data_button = document.createElement('td');
|
206 |
-
data_button.style.textAlign = "center";
|
207 |
-
|
208 |
-
var restoreBtn = document.createElement('button');
|
209 |
-
restoreBtn.innerHTML = 'Restore';
|
210 |
-
restoreBtn.style.width = "100px";
|
211 |
-
restoreBtn.style.backgroundColor = 'blue';
|
212 |
-
|
213 |
-
restoreBtn.addEventListener('click', function() {
|
214 |
-
restore_snapshot(data);
|
215 |
-
});
|
216 |
-
|
217 |
-
var removeBtn = document.createElement('button');
|
218 |
-
removeBtn.innerHTML = 'Remove';
|
219 |
-
removeBtn.style.width = "100px";
|
220 |
-
removeBtn.style.backgroundColor = 'red';
|
221 |
-
|
222 |
-
removeBtn.addEventListener('click', function() {
|
223 |
-
remove_snapshot(data);
|
224 |
-
});
|
225 |
-
|
226 |
-
data_button.appendChild(restoreBtn);
|
227 |
-
data_button.appendChild(removeBtn);
|
228 |
-
|
229 |
-
dataRow.style.backgroundColor = "var(--bg-color)";
|
230 |
-
dataRow.style.color = "var(--fg-color)";
|
231 |
-
dataRow.style.textAlign = "left";
|
232 |
-
|
233 |
-
dataRow.appendChild(data1);
|
234 |
-
dataRow.appendChild(data2);
|
235 |
-
dataRow.appendChild(data_button);
|
236 |
-
tbody.appendChild(dataRow);
|
237 |
-
|
238 |
-
this.grid_rows[i] = {data:data, control:dataRow};
|
239 |
-
}
|
240 |
-
|
241 |
-
let self = this;
|
242 |
-
const panel = document.createElement('div');
|
243 |
-
panel.style.width = "100%";
|
244 |
-
panel.appendChild(grid);
|
245 |
-
|
246 |
-
function handleResize() {
|
247 |
-
const parentHeight = self.element.clientHeight;
|
248 |
-
const gridHeight = parentHeight - 200;
|
249 |
-
|
250 |
-
grid.style.height = gridHeight + "px";
|
251 |
-
}
|
252 |
-
window.addEventListener("resize", handleResize);
|
253 |
-
|
254 |
-
grid.style.position = "relative";
|
255 |
-
grid.style.display = "inline-block";
|
256 |
-
grid.style.width = "100%";
|
257 |
-
grid.style.height = "100%";
|
258 |
-
grid.style.overflowY = "scroll";
|
259 |
-
this.element.style.height = "85%";
|
260 |
-
this.element.style.width = "80%";
|
261 |
-
this.element.appendChild(panel);
|
262 |
-
|
263 |
-
handleResize();
|
264 |
-
}
|
265 |
-
|
266 |
-
async createBottomControls() {
|
267 |
-
var close_button = document.createElement("button");
|
268 |
-
close_button.className = "cm-small-button";
|
269 |
-
close_button.innerHTML = "Close";
|
270 |
-
close_button.onclick = () => { this.close(); }
|
271 |
-
close_button.style.display = "inline-block";
|
272 |
-
|
273 |
-
var save_button = document.createElement("button");
|
274 |
-
save_button.className = "cm-small-button";
|
275 |
-
save_button.innerHTML = "Save snapshot";
|
276 |
-
save_button.onclick = () => { save_current_snapshot(); }
|
277 |
-
save_button.style.display = "inline-block";
|
278 |
-
save_button.style.horizontalAlign = "right";
|
279 |
-
save_button.style.width = "170px";
|
280 |
-
|
281 |
-
this.message_box = $el('div', {id:'custom-download-message'}, [$el('br'), '']);
|
282 |
-
this.message_box.style.height = '60px';
|
283 |
-
this.message_box.style.verticalAlign = 'middle';
|
284 |
-
|
285 |
-
this.element.appendChild(this.message_box);
|
286 |
-
this.element.appendChild(close_button);
|
287 |
-
this.element.appendChild(save_button);
|
288 |
-
}
|
289 |
-
|
290 |
-
async show() {
|
291 |
-
try {
|
292 |
-
this.invalidateControl();
|
293 |
-
this.element.style.display = "block";
|
294 |
-
this.element.style.zIndex = 10001;
|
295 |
-
}
|
296 |
-
catch(exception) {
|
297 |
-
app.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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ComfyUI/custom_nodes/manager-core/js/turbogrid.esm.js
DELETED
The diff for this file is too large to render.
See raw diff
|
|
ComfyUI/custom_nodes/manager-core/json-checker.py
DELETED
@@ -1,25 +0,0 @@
|
|
1 |
-
import json
|
2 |
-
import argparse
|
3 |
-
|
4 |
-
def check_json_syntax(file_path):
|
5 |
-
try:
|
6 |
-
with open(file_path, 'r', encoding='utf-8') as file:
|
7 |
-
json_str = file.read()
|
8 |
-
json.loads(json_str)
|
9 |
-
print(f"[ OK ] {file_path}")
|
10 |
-
except UnicodeDecodeError as e:
|
11 |
-
print(f"Unicode decode error: {e}")
|
12 |
-
except json.JSONDecodeError as e:
|
13 |
-
print(f"[FAIL] {file_path}\n\n {e}\n")
|
14 |
-
except FileNotFoundError:
|
15 |
-
print(f"[FAIL] {file_path}\n\n File not found\n")
|
16 |
-
|
17 |
-
def main():
|
18 |
-
parser = argparse.ArgumentParser(description="JSON File Syntax Checker")
|
19 |
-
parser.add_argument("file_path", type=str, help="Path to the JSON file for syntax checking")
|
20 |
-
|
21 |
-
args = parser.parse_args()
|
22 |
-
check_json_syntax(args.file_path)
|
23 |
-
|
24 |
-
if __name__ == "__main__":
|
25 |
-
main()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ComfyUI/custom_nodes/manager-core/model-list.json
DELETED
The diff for this file is too large to render.
See raw diff
|
|
ComfyUI/custom_nodes/manager-core/node_db/dev/custom-node-list.json
DELETED
The diff for this file is too large to render.
See raw diff
|
|
ComfyUI/custom_nodes/manager-core/node_db/dev/extension-node-map.json
DELETED
The diff for this file is too large to render.
See raw diff
|
|
ComfyUI/custom_nodes/manager-core/node_db/dev/github-stats.json
DELETED
@@ -1,1327 +0,0 @@
|
|
1 |
-
{
|
2 |
-
"https://github.com/123jimin/ComfyUI-MobileForm": {
|
3 |
-
"stars": 7,
|
4 |
-
"last_update": "2024-08-27 11:02:59",
|
5 |
-
"author_account_age_days": 4908
|
6 |
-
},
|
7 |
-
"https://github.com/17Retoucher/ComfyUI_Fooocus": {
|
8 |
-
"stars": 55,
|
9 |
-
"last_update": "2024-02-24 07:33:29",
|
10 |
-
"author_account_age_days": 313
|
11 |
-
},
|
12 |
-
"https://github.com/A719689614/ComfyUI_AC_FUNV8Beta1": {
|
13 |
-
"stars": 14,
|
14 |
-
"last_update": "2024-03-08 10:11:44",
|
15 |
-
"author_account_age_days": 457
|
16 |
-
},
|
17 |
-
"https://github.com/AICodeFactory/ComfyUI-Viva": {
|
18 |
-
"stars": 2,
|
19 |
-
"last_update": "2024-11-07 07:18:41",
|
20 |
-
"author_account_age_days": 210
|
21 |
-
},
|
22 |
-
"https://github.com/AIFSH/ComfyUI-OpenDIT": {
|
23 |
-
"stars": 0,
|
24 |
-
"last_update": "2024-06-30 09:33:55",
|
25 |
-
"author_account_age_days": 373
|
26 |
-
},
|
27 |
-
"https://github.com/AIFSH/ComfyUI-ViViD": {
|
28 |
-
"stars": 5,
|
29 |
-
"last_update": "2024-06-25 08:16:53",
|
30 |
-
"author_account_age_days": 373
|
31 |
-
},
|
32 |
-
"https://github.com/AIFSH/HivisionIDPhotos-ComfyUI": {
|
33 |
-
"stars": 82,
|
34 |
-
"last_update": "2024-09-16 14:16:06",
|
35 |
-
"author_account_age_days": 373
|
36 |
-
},
|
37 |
-
"https://github.com/AIFSH/IMAGDressing-ComfyUI": {
|
38 |
-
"stars": 57,
|
39 |
-
"last_update": "2024-10-27 00:31:19",
|
40 |
-
"author_account_age_days": 373
|
41 |
-
},
|
42 |
-
"https://github.com/AIFSH/UtilNodes-ComfyUI": {
|
43 |
-
"stars": 2,
|
44 |
-
"last_update": "2024-10-10 11:34:31",
|
45 |
-
"author_account_age_days": 373
|
46 |
-
},
|
47 |
-
"https://github.com/ALatentPlace/ComfyUI_yanc": {
|
48 |
-
"stars": 48,
|
49 |
-
"last_update": "2024-09-19 05:24:38",
|
50 |
-
"author_account_age_days": 1602
|
51 |
-
},
|
52 |
-
"https://github.com/APZmedia/comfyui-textools": {
|
53 |
-
"stars": 4,
|
54 |
-
"last_update": "2024-09-02 09:17:36",
|
55 |
-
"author_account_age_days": 2619
|
56 |
-
},
|
57 |
-
"https://github.com/AlexXi19/ComfyUI-OpenAINode": {
|
58 |
-
"stars": 2,
|
59 |
-
"last_update": "2024-09-20 06:41:59",
|
60 |
-
"author_account_age_days": 1572
|
61 |
-
},
|
62 |
-
"https://github.com/AllenEdgarPoe/ComfyUI-Xorbis-nodes": {
|
63 |
-
"stars": 4,
|
64 |
-
"last_update": "2024-10-17 07:33:52",
|
65 |
-
"author_account_age_days": 2247
|
66 |
-
},
|
67 |
-
"https://github.com/Anze-/ComfyUI_deepDeband": {
|
68 |
-
"stars": 2,
|
69 |
-
"last_update": "2024-11-12 19:13:59",
|
70 |
-
"author_account_age_days": 4096
|
71 |
-
},
|
72 |
-
"https://github.com/AustinMroz/ComfyUI-WorkflowCheckpointing": {
|
73 |
-
"stars": 9,
|
74 |
-
"last_update": "2024-10-17 19:59:40",
|
75 |
-
"author_account_age_days": 4216
|
76 |
-
},
|
77 |
-
"https://github.com/BadCafeCode/execution-inversion-demo-comfyui": {
|
78 |
-
"stars": 49,
|
79 |
-
"last_update": "2024-10-20 05:32:01",
|
80 |
-
"author_account_age_days": 572
|
81 |
-
},
|
82 |
-
"https://github.com/Beinsezii/comfyui-amd-go-fast": {
|
83 |
-
"stars": 18,
|
84 |
-
"last_update": "2024-05-10 00:48:37",
|
85 |
-
"author_account_age_days": 2368
|
86 |
-
},
|
87 |
-
"https://github.com/BetaDoggo/ComfyUI-LogicGates": {
|
88 |
-
"stars": 3,
|
89 |
-
"last_update": "2024-07-21 06:31:25",
|
90 |
-
"author_account_age_days": 940
|
91 |
-
},
|
92 |
-
"https://github.com/BlueDangerX/ComfyUI-BDXNodes": {
|
93 |
-
"stars": 1,
|
94 |
-
"last_update": "2023-12-10 04:01:19",
|
95 |
-
"author_account_age_days": 389
|
96 |
-
},
|
97 |
-
"https://github.com/Brandelan/ComfyUI_bd_customNodes": {
|
98 |
-
"stars": 2,
|
99 |
-
"last_update": "2024-09-08 01:04:38",
|
100 |
-
"author_account_age_days": 4293
|
101 |
-
},
|
102 |
-
"https://github.com/ChrisColeTech/ComfyUI-Get-Random-File": {
|
103 |
-
"stars": 3,
|
104 |
-
"last_update": "2024-09-02 02:30:05",
|
105 |
-
"author_account_age_days": 2554
|
106 |
-
},
|
107 |
-
"https://github.com/Clelstyn/ComfyUI-Inpaint_with_Detailer": {
|
108 |
-
"stars": 2,
|
109 |
-
"last_update": "2024-11-02 12:04:53",
|
110 |
-
"author_account_age_days": 460
|
111 |
-
},
|
112 |
-
"https://github.com/Comfy-Org/ComfyUI_devtools": {
|
113 |
-
"stars": 12,
|
114 |
-
"last_update": "2024-11-07 17:46:08",
|
115 |
-
"author_account_age_days": 217
|
116 |
-
},
|
117 |
-
"https://github.com/ComfyUI-Workflow/ComfyUI-OpenAI": {
|
118 |
-
"stars": 16,
|
119 |
-
"last_update": "2024-10-07 08:25:18",
|
120 |
-
"author_account_age_days": 39
|
121 |
-
},
|
122 |
-
"https://github.com/DeTK/ComfyUI-Switch": {
|
123 |
-
"stars": 0,
|
124 |
-
"last_update": "2024-03-04 11:52:04",
|
125 |
-
"author_account_age_days": 2173
|
126 |
-
},
|
127 |
-
"https://github.com/DoctorDiffusion/ComfyUI-Flashback": {
|
128 |
-
"stars": 0,
|
129 |
-
"last_update": "2024-11-11 01:37:43",
|
130 |
-
"author_account_age_days": 483
|
131 |
-
},
|
132 |
-
"https://github.com/DoctorDiffusion/Doctor-Tools": {
|
133 |
-
"stars": 1,
|
134 |
-
"last_update": "2024-11-12 03:41:25",
|
135 |
-
"author_account_age_days": 483
|
136 |
-
},
|
137 |
-
"https://github.com/DrMWeigand/ComfyUI_LineBreakInserter": {
|
138 |
-
"stars": 0,
|
139 |
-
"last_update": "2024-04-19 11:37:19",
|
140 |
-
"author_account_age_days": 1174
|
141 |
-
},
|
142 |
-
"https://github.com/Elawphant/ComfyUI-MusicGen": {
|
143 |
-
"stars": 5,
|
144 |
-
"last_update": "2024-05-11 13:33:24",
|
145 |
-
"author_account_age_days": 2730
|
146 |
-
},
|
147 |
-
"https://github.com/ExponentialML/ComfyUI_LiveDirector": {
|
148 |
-
"stars": 37,
|
149 |
-
"last_update": "2024-04-09 19:01:49",
|
150 |
-
"author_account_age_days": 1765
|
151 |
-
},
|
152 |
-
"https://github.com/Extraltodeus/Conditioning-token-experiments-for-ComfyUI": {
|
153 |
-
"stars": 14,
|
154 |
-
"last_update": "2024-03-10 01:04:02",
|
155 |
-
"author_account_age_days": 3292
|
156 |
-
},
|
157 |
-
"https://github.com/Fannovel16/ComfyUI-AppIO": {
|
158 |
-
"stars": 1,
|
159 |
-
"last_update": "2024-09-28 14:56:11",
|
160 |
-
"author_account_age_days": 3274
|
161 |
-
},
|
162 |
-
"https://github.com/FoundD-oka/ComfyUI-kisekae-OOTD": {
|
163 |
-
"stars": 0,
|
164 |
-
"last_update": "2024-06-02 06:13:42",
|
165 |
-
"author_account_age_days": 580
|
166 |
-
},
|
167 |
-
"https://github.com/Fucci-Mateo/ComfyUI-Airtable": {
|
168 |
-
"stars": 0,
|
169 |
-
"last_update": "2024-06-25 13:35:18",
|
170 |
-
"author_account_age_days": 1021
|
171 |
-
},
|
172 |
-
"https://github.com/GentlemanHu/ComfyUI-Notifier": {
|
173 |
-
"stars": 3,
|
174 |
-
"last_update": "2024-07-14 15:38:44",
|
175 |
-
"author_account_age_days": 2525
|
176 |
-
},
|
177 |
-
"https://github.com/Grant-CP/ComfyUI-LivePortraitKJ-MPS": {
|
178 |
-
"stars": 12,
|
179 |
-
"last_update": "2024-07-11 22:04:16",
|
180 |
-
"author_account_age_days": 1315
|
181 |
-
},
|
182 |
-
"https://github.com/GrindHouse66/ComfyUI-GH_Tools": {
|
183 |
-
"stars": 0,
|
184 |
-
"last_update": "2024-03-10 13:27:14",
|
185 |
-
"author_account_age_days": 766
|
186 |
-
},
|
187 |
-
"https://github.com/HavocsCall/comfyui_HavocsCall_Custom_Nodes": {
|
188 |
-
"stars": 1,
|
189 |
-
"last_update": "2024-10-09 21:45:33",
|
190 |
-
"author_account_age_days": 2056
|
191 |
-
},
|
192 |
-
"https://github.com/IgPoly/ComfyUI-igTools": {
|
193 |
-
"stars": 1,
|
194 |
-
"last_update": "2024-09-11 08:48:57",
|
195 |
-
"author_account_age_days": 69
|
196 |
-
},
|
197 |
-
"https://github.com/IuvenisSapiens/ComfyUI_MiniCPM-V-2_6-int4": {
|
198 |
-
"stars": 131,
|
199 |
-
"last_update": "2024-09-03 02:02:45",
|
200 |
-
"author_account_age_days": 553
|
201 |
-
},
|
202 |
-
"https://github.com/IvanZhd/comfyui-codeformer": {
|
203 |
-
"stars": 0,
|
204 |
-
"last_update": "2023-12-02 20:51:52",
|
205 |
-
"author_account_age_days": 2720
|
206 |
-
},
|
207 |
-
"https://github.com/Jaxkr/comfyui-terminal-command": {
|
208 |
-
"stars": 1,
|
209 |
-
"last_update": "2023-12-03 10:31:40",
|
210 |
-
"author_account_age_days": 4769
|
211 |
-
},
|
212 |
-
"https://github.com/JayLyu/ComfyUI_BaiKong_Node": {
|
213 |
-
"stars": 9,
|
214 |
-
"last_update": "2024-10-19 04:52:23",
|
215 |
-
"author_account_age_days": 3410
|
216 |
-
},
|
217 |
-
"https://github.com/JichaoLiang/Immortal_comfyUI": {
|
218 |
-
"stars": 3,
|
219 |
-
"last_update": "2024-10-07 03:01:03",
|
220 |
-
"author_account_age_days": 1165
|
221 |
-
},
|
222 |
-
"https://github.com/Jiffies-64/ComfyUI-SaveImagePlus": {
|
223 |
-
"stars": 0,
|
224 |
-
"last_update": "2024-04-01 10:52:59",
|
225 |
-
"author_account_age_days": 1033
|
226 |
-
},
|
227 |
-
"https://github.com/Jordach/comfy-consistency-vae": {
|
228 |
-
"stars": 69,
|
229 |
-
"last_update": "2023-11-06 20:50:40",
|
230 |
-
"author_account_age_days": 4655
|
231 |
-
},
|
232 |
-
"https://github.com/KoreTeknology/ComfyUI-Nai-Production-Nodes-Pack": {
|
233 |
-
"stars": 3,
|
234 |
-
"last_update": "2024-11-10 19:14:04",
|
235 |
-
"author_account_age_days": 3332
|
236 |
-
},
|
237 |
-
"https://github.com/LZpenguin/ComfyUI-Text": {
|
238 |
-
"stars": 23,
|
239 |
-
"last_update": "2024-06-20 13:38:16",
|
240 |
-
"author_account_age_days": 2121
|
241 |
-
},
|
242 |
-
"https://github.com/LarryJane491/ComfyUI-ModelUnloader": {
|
243 |
-
"stars": 2,
|
244 |
-
"last_update": "2024-01-14 08:22:39",
|
245 |
-
"author_account_age_days": 306
|
246 |
-
},
|
247 |
-
"https://github.com/Laser-one/ComfyUI-align-pose": {
|
248 |
-
"stars": 0,
|
249 |
-
"last_update": "2024-11-01 09:34:31",
|
250 |
-
"author_account_age_days": 975
|
251 |
-
},
|
252 |
-
"https://github.com/LevelPixel/ComfyUI-LevelPixel": {
|
253 |
-
"stars": 2,
|
254 |
-
"last_update": "2024-11-13 01:53:31",
|
255 |
-
"author_account_age_days": 124
|
256 |
-
},
|
257 |
-
"https://github.com/Lilien86/Comfyui_Lilien": {
|
258 |
-
"stars": 2,
|
259 |
-
"last_update": "2024-09-03 21:00:49",
|
260 |
-
"author_account_age_days": 636
|
261 |
-
},
|
262 |
-
"https://github.com/Looking-Glass/LKG-ComfyUI": {
|
263 |
-
"stars": 2,
|
264 |
-
"last_update": "2024-10-30 17:02:54",
|
265 |
-
"author_account_age_days": 3127
|
266 |
-
},
|
267 |
-
"https://github.com/LotzF/ComfyUI-Simple-Chat-GPT-completion": {
|
268 |
-
"stars": 0,
|
269 |
-
"last_update": "2024-02-04 21:15:22",
|
270 |
-
"author_account_age_days": 1072
|
271 |
-
},
|
272 |
-
"https://github.com/LykosAI/ComfyUI-Inference-Core-Nodes": {
|
273 |
-
"stars": 27,
|
274 |
-
"last_update": "2024-08-10 16:50:33",
|
275 |
-
"author_account_age_days": 520
|
276 |
-
},
|
277 |
-
"https://github.com/MrAdamBlack/CheckProgress": {
|
278 |
-
"stars": 1,
|
279 |
-
"last_update": "2024-01-10 08:02:18",
|
280 |
-
"author_account_age_days": 2862
|
281 |
-
},
|
282 |
-
"https://github.com/MythicalChu/ComfyUI-APG_ImYourCFGNow": {
|
283 |
-
"stars": 21,
|
284 |
-
"last_update": "2024-11-01 19:51:52",
|
285 |
-
"author_account_age_days": 1636
|
286 |
-
},
|
287 |
-
"https://github.com/NicholasKao1029/comfyui-hook": {
|
288 |
-
"stars": 0,
|
289 |
-
"last_update": "2024-03-07 05:50:56",
|
290 |
-
"author_account_age_days": 2172
|
291 |
-
},
|
292 |
-
"https://github.com/PluMaZero/ComfyUI-SpaceFlower": {
|
293 |
-
"stars": 4,
|
294 |
-
"last_update": "2023-12-09 05:55:15",
|
295 |
-
"author_account_age_days": 1200
|
296 |
-
},
|
297 |
-
"https://github.com/PnthrLeo/comfyUI-image-search": {
|
298 |
-
"stars": 2,
|
299 |
-
"last_update": "2024-11-02 11:41:34",
|
300 |
-
"author_account_age_days": 2693
|
301 |
-
},
|
302 |
-
"https://github.com/Poukpalaova/ComfyUI-FRED-Nodes": {
|
303 |
-
"stars": 3,
|
304 |
-
"last_update": "2024-10-23 14:54:56",
|
305 |
-
"author_account_age_days": 464
|
306 |
-
},
|
307 |
-
"https://github.com/Quasimondo/ComfyUI-QuasimondoNodes": {
|
308 |
-
"stars": 13,
|
309 |
-
"last_update": "2024-07-31 13:01:18",
|
310 |
-
"author_account_age_days": 5417
|
311 |
-
},
|
312 |
-
"https://github.com/SS-snap/ComfyUI-Snap_Processing": {
|
313 |
-
"stars": 56,
|
314 |
-
"last_update": "2024-10-22 07:38:50",
|
315 |
-
"author_account_age_days": 442
|
316 |
-
},
|
317 |
-
"https://github.com/SadaleNet/ComfyUI-Prompt-To-Prompt": {
|
318 |
-
"stars": 22,
|
319 |
-
"last_update": "2024-03-17 04:30:01",
|
320 |
-
"author_account_age_days": 4182
|
321 |
-
},
|
322 |
-
"https://github.com/Sai-ComfyUI/ComfyUI-MS-Nodes": {
|
323 |
-
"stars": 2,
|
324 |
-
"last_update": "2024-02-22 08:34:44",
|
325 |
-
"author_account_age_days": 351
|
326 |
-
},
|
327 |
-
"https://github.com/Sakura-nee/ComfyUI_Save2Discord": {
|
328 |
-
"stars": 1,
|
329 |
-
"last_update": "2024-08-27 19:01:46",
|
330 |
-
"author_account_age_days": 1454
|
331 |
-
},
|
332 |
-
"https://github.com/SeedV/ComfyUI-SeedV-Nodes": {
|
333 |
-
"stars": 2,
|
334 |
-
"last_update": "2024-09-13 04:31:43",
|
335 |
-
"author_account_age_days": 1268
|
336 |
-
},
|
337 |
-
"https://github.com/Shinsplat/ComfyUI-Shinsplat": {
|
338 |
-
"stars": 31,
|
339 |
-
"last_update": "2024-10-28 18:37:11",
|
340 |
-
"author_account_age_days": 1166
|
341 |
-
},
|
342 |
-
"https://github.com/ShmuelRonen/ComfyUI-FreeMemory": {
|
343 |
-
"stars": 20,
|
344 |
-
"last_update": "2024-10-19 17:01:30",
|
345 |
-
"author_account_age_days": 1347
|
346 |
-
},
|
347 |
-
"https://github.com/SirVeggie/comfyui-sv-nodes": {
|
348 |
-
"stars": 5,
|
349 |
-
"last_update": "2024-10-27 04:31:20",
|
350 |
-
"author_account_age_days": 2603
|
351 |
-
},
|
352 |
-
"https://github.com/SoftMeng/ComfyUI-PIL": {
|
353 |
-
"stars": 6,
|
354 |
-
"last_update": "2024-10-13 10:02:17",
|
355 |
-
"author_account_age_days": 3666
|
356 |
-
},
|
357 |
-
"https://github.com/Soppatorsk/comfyui_img_to_ascii": {
|
358 |
-
"stars": 1,
|
359 |
-
"last_update": "2024-09-07 15:39:28",
|
360 |
-
"author_account_age_days": 1282
|
361 |
-
},
|
362 |
-
"https://github.com/SpaceWarpStudio/ComfyUI_Remaker_FaceSwap": {
|
363 |
-
"stars": 0,
|
364 |
-
"last_update": "2024-07-15 11:57:20",
|
365 |
-
"author_account_age_days": 3098
|
366 |
-
},
|
367 |
-
"https://github.com/StartHua/Comfyui_CSDMT_CXH": {
|
368 |
-
"stars": 18,
|
369 |
-
"last_update": "2024-07-11 15:36:03",
|
370 |
-
"author_account_age_days": 2977
|
371 |
-
},
|
372 |
-
"https://github.com/StartHua/Comfyui_CXH_CRM": {
|
373 |
-
"stars": 40,
|
374 |
-
"last_update": "2024-06-06 14:15:14",
|
375 |
-
"author_account_age_days": 2977
|
376 |
-
},
|
377 |
-
"https://github.com/T8star1984/comfyui-purgevram": {
|
378 |
-
"stars": 29,
|
379 |
-
"last_update": "2024-11-01 06:31:44",
|
380 |
-
"author_account_age_days": 256
|
381 |
-
},
|
382 |
-
"https://github.com/TSFSean/ComfyUI-TSFNodes": {
|
383 |
-
"stars": 6,
|
384 |
-
"last_update": "2024-05-18 00:59:06",
|
385 |
-
"author_account_age_days": 3614
|
386 |
-
},
|
387 |
-
"https://github.com/ThisModernDay/ComfyUI-InstructorOllama": {
|
388 |
-
"stars": 7,
|
389 |
-
"last_update": "2024-08-20 00:30:24",
|
390 |
-
"author_account_age_days": 3871
|
391 |
-
},
|
392 |
-
"https://github.com/Video3DGenResearch/comfyui-batch-input-node": {
|
393 |
-
"stars": 1,
|
394 |
-
"last_update": "2024-04-28 15:21:17",
|
395 |
-
"author_account_age_days": 248
|
396 |
-
},
|
397 |
-
"https://github.com/VisionExp/ve_custom_comfyui_nodes": {
|
398 |
-
"stars": 0,
|
399 |
-
"last_update": "2024-07-17 11:51:54",
|
400 |
-
"author_account_age_days": 147
|
401 |
-
},
|
402 |
-
"https://github.com/WSJUSA/Comfyui-StableSR": {
|
403 |
-
"stars": 46,
|
404 |
-
"last_update": "2023-10-18 12:40:30",
|
405 |
-
"author_account_age_days": 1566
|
406 |
-
},
|
407 |
-
"https://github.com/WilliamStanford/ComfyUI-VisualLabs": {
|
408 |
-
"stars": 1,
|
409 |
-
"last_update": "2024-04-16 21:53:02",
|
410 |
-
"author_account_age_days": 1912
|
411 |
-
},
|
412 |
-
"https://github.com/ZHO-ZHO-ZHO/ComfyUI-AuraSR-ZHO": {
|
413 |
-
"stars": 85,
|
414 |
-
"last_update": "2024-07-11 07:33:30",
|
415 |
-
"author_account_age_days": 482
|
416 |
-
},
|
417 |
-
"https://github.com/ZHO-ZHO-ZHO/ComfyUI-Llama-3-2": {
|
418 |
-
"stars": 19,
|
419 |
-
"last_update": "2024-09-26 18:08:01",
|
420 |
-
"author_account_age_days": 482
|
421 |
-
},
|
422 |
-
"https://github.com/ZHO-ZHO-ZHO/ComfyUI-PuLID-ZHO": {
|
423 |
-
"stars": 216,
|
424 |
-
"last_update": "2024-05-22 13:38:23",
|
425 |
-
"author_account_age_days": 482
|
426 |
-
},
|
427 |
-
"https://github.com/ainanoha/etm_comfyui_nodes": {
|
428 |
-
"stars": 1,
|
429 |
-
"last_update": "2024-10-31 05:45:59",
|
430 |
-
"author_account_age_days": 4396
|
431 |
-
},
|
432 |
-
"https://github.com/alexisrolland/ComfyUI-AuraSR": {
|
433 |
-
"stars": 25,
|
434 |
-
"last_update": "2024-10-12 14:14:59",
|
435 |
-
"author_account_age_days": 3428
|
436 |
-
},
|
437 |
-
"https://github.com/alt-key-project/comfyui-dream-video-batches": {
|
438 |
-
"stars": 63,
|
439 |
-
"last_update": "2024-08-14 01:26:20",
|
440 |
-
"author_account_age_days": 802
|
441 |
-
},
|
442 |
-
"https://github.com/aria1th/ComfyUI-SkipCFGSigmas": {
|
443 |
-
"stars": 3,
|
444 |
-
"last_update": "2024-11-02 07:27:30",
|
445 |
-
"author_account_age_days": 2487
|
446 |
-
},
|
447 |
-
"https://github.com/artisanalcomputing/ComfyUI-Custom-Nodes": {
|
448 |
-
"stars": 1,
|
449 |
-
"last_update": "2024-10-13 05:55:33",
|
450 |
-
"author_account_age_days": 2417
|
451 |
-
},
|
452 |
-
"https://github.com/ashishsaini/comfyui-segment-clothing-sleeves": {
|
453 |
-
"stars": 1,
|
454 |
-
"last_update": "2024-09-23 19:09:15",
|
455 |
-
"author_account_age_days": 4091
|
456 |
-
},
|
457 |
-
"https://github.com/attashe/ComfyUI-FluxRegionAttention": {
|
458 |
-
"stars": 69,
|
459 |
-
"last_update": "2024-11-02 22:17:36",
|
460 |
-
"author_account_age_days": 3766
|
461 |
-
},
|
462 |
-
"https://github.com/baicai99/ComfyUI-FrameSkipping": {
|
463 |
-
"stars": 8,
|
464 |
-
"last_update": "2024-08-06 06:10:48",
|
465 |
-
"author_account_age_days": 973
|
466 |
-
},
|
467 |
-
"https://github.com/bananasss00/Comfyui-PyExec": {
|
468 |
-
"stars": 2,
|
469 |
-
"last_update": "2024-10-26 19:46:48",
|
470 |
-
"author_account_age_days": 2676
|
471 |
-
},
|
472 |
-
"https://github.com/beyastard/ComfyUI_BeySoft": {
|
473 |
-
"stars": 0,
|
474 |
-
"last_update": "2024-05-26 22:44:55",
|
475 |
-
"author_account_age_days": 4428
|
476 |
-
},
|
477 |
-
"https://github.com/birnam/ComfyUI-GenData-Pack": {
|
478 |
-
"stars": 0,
|
479 |
-
"last_update": "2024-03-25 01:25:23",
|
480 |
-
"author_account_age_days": 5151
|
481 |
-
},
|
482 |
-
"https://github.com/blib-la/ComfyUI-Captain-Extensions": {
|
483 |
-
"stars": 0,
|
484 |
-
"last_update": "2024-05-17 23:27:25",
|
485 |
-
"author_account_age_days": 415
|
486 |
-
},
|
487 |
-
"https://github.com/blurymind/cozy-fireplace": {
|
488 |
-
"stars": 4,
|
489 |
-
"last_update": "2024-11-08 19:42:20",
|
490 |
-
"author_account_age_days": 3945
|
491 |
-
},
|
492 |
-
"https://github.com/bmad4ever/comfyui_bmad_nodes": {
|
493 |
-
"stars": 60,
|
494 |
-
"last_update": "2024-09-02 19:42:07",
|
495 |
-
"author_account_age_days": 3678
|
496 |
-
},
|
497 |
-
"https://github.com/bruce007lee/comfyui-cleaner": {
|
498 |
-
"stars": 3,
|
499 |
-
"last_update": "2024-04-20 15:36:03",
|
500 |
-
"author_account_age_days": 4654
|
501 |
-
},
|
502 |
-
"https://github.com/bruce007lee/comfyui-tiny-utils": {
|
503 |
-
"stars": 2,
|
504 |
-
"last_update": "2024-08-31 13:34:57",
|
505 |
-
"author_account_age_days": 4654
|
506 |
-
},
|
507 |
-
"https://github.com/brycegoh/comfyui-custom-nodes": {
|
508 |
-
"stars": 0,
|
509 |
-
"last_update": "2024-06-05 09:30:06",
|
510 |
-
"author_account_age_days": 3251
|
511 |
-
},
|
512 |
-
"https://github.com/chaojie/ComfyUI-DynamiCrafter": {
|
513 |
-
"stars": 126,
|
514 |
-
"last_update": "2024-06-14 10:23:59",
|
515 |
-
"author_account_age_days": 4976
|
516 |
-
},
|
517 |
-
"https://github.com/chaojie/ComfyUI-mobvoi-openapi": {
|
518 |
-
"stars": 2,
|
519 |
-
"last_update": "2024-05-29 09:02:52",
|
520 |
-
"author_account_age_days": 4976
|
521 |
-
},
|
522 |
-
"https://github.com/chenbaiyujason/ComfyUI_StepFun": {
|
523 |
-
"stars": 1,
|
524 |
-
"last_update": "2024-11-01 22:54:42",
|
525 |
-
"author_account_age_days": 1877
|
526 |
-
},
|
527 |
-
"https://github.com/chrisdreid/ComfyUI_EnvAutopsyAPI": {
|
528 |
-
"stars": 4,
|
529 |
-
"last_update": "2024-08-29 03:54:28",
|
530 |
-
"author_account_age_days": 3261
|
531 |
-
},
|
532 |
-
"https://github.com/christian-byrne/infinite-zoom-parallax-nodes": {
|
533 |
-
"stars": 5,
|
534 |
-
"last_update": "2024-07-08 15:07:05",
|
535 |
-
"author_account_age_days": 1490
|
536 |
-
},
|
537 |
-
"https://github.com/christian-byrne/python-interpreter-node": {
|
538 |
-
"stars": 42,
|
539 |
-
"last_update": "2024-10-03 06:10:39",
|
540 |
-
"author_account_age_days": 1490
|
541 |
-
},
|
542 |
-
"https://github.com/comfyanonymous/ComfyUI": {
|
543 |
-
"stars": 56414,
|
544 |
-
"last_update": "2024-11-13 12:18:40",
|
545 |
-
"author_account_age_days": 691
|
546 |
-
},
|
547 |
-
"https://github.com/comfyanonymous/ComfyUI_bitsandbytes_NF4": {
|
548 |
-
"stars": 326,
|
549 |
-
"last_update": "2024-08-16 18:06:10",
|
550 |
-
"author_account_age_days": 691
|
551 |
-
},
|
552 |
-
"https://github.com/comfypod/ComfyUI-Comflow": {
|
553 |
-
"stars": 0,
|
554 |
-
"last_update": "2024-06-17 08:44:08",
|
555 |
-
"author_account_age_days": 165
|
556 |
-
},
|
557 |
-
"https://github.com/corbin-hayden13/ComfyUI-Better-Dimensions": {
|
558 |
-
"stars": 7,
|
559 |
-
"last_update": "2024-06-12 17:45:21",
|
560 |
-
"author_account_age_days": 1957
|
561 |
-
},
|
562 |
-
"https://github.com/cubiq/Comfy_Dungeon": {
|
563 |
-
"stars": 229,
|
564 |
-
"last_update": "2024-04-26 11:00:58",
|
565 |
-
"author_account_age_days": 5153
|
566 |
-
},
|
567 |
-
"https://github.com/denislov/Comfyui_AutoSurvey": {
|
568 |
-
"stars": 2,
|
569 |
-
"last_update": "2024-08-03 06:50:57",
|
570 |
-
"author_account_age_days": 2129
|
571 |
-
},
|
572 |
-
"https://github.com/dfl/comfyui-stylegan": {
|
573 |
-
"stars": 0,
|
574 |
-
"last_update": "2024-10-05 17:08:36",
|
575 |
-
"author_account_age_days": 6116
|
576 |
-
},
|
577 |
-
"https://github.com/doucx/ComfyUI_WcpD_Utility_Kit": {
|
578 |
-
"stars": 1,
|
579 |
-
"last_update": "2024-01-06 19:07:45",
|
580 |
-
"author_account_age_days": 2465
|
581 |
-
},
|
582 |
-
"https://github.com/downlifted/ComfyUI_BWiZ_Nodes": {
|
583 |
-
"stars": 2,
|
584 |
-
"last_update": "2024-10-23 01:53:11",
|
585 |
-
"author_account_age_days": 2389
|
586 |
-
},
|
587 |
-
"https://github.com/eigenpunk/ComfyUI-audio": {
|
588 |
-
"stars": 75,
|
589 |
-
"last_update": "2024-03-03 21:14:14",
|
590 |
-
"author_account_age_days": 1067
|
591 |
-
},
|
592 |
-
"https://github.com/ejektaflex/ComfyUI-Ty": {
|
593 |
-
"stars": 0,
|
594 |
-
"last_update": "2024-06-12 16:08:16",
|
595 |
-
"author_account_age_days": 2914
|
596 |
-
},
|
597 |
-
"https://github.com/endman100/ComfyUI-SaveAndLoadPromptCondition": {
|
598 |
-
"stars": 0,
|
599 |
-
"last_update": "2024-07-03 09:35:02",
|
600 |
-
"author_account_age_days": 2615
|
601 |
-
},
|
602 |
-
"https://github.com/endman100/ComfyUI-augmentation": {
|
603 |
-
"stars": 1,
|
604 |
-
"last_update": "2024-07-23 09:06:24",
|
605 |
-
"author_account_age_days": 2615
|
606 |
-
},
|
607 |
-
"https://github.com/ericbeyer/guidance_interval": {
|
608 |
-
"stars": 2,
|
609 |
-
"last_update": "2024-04-16 03:24:01",
|
610 |
-
"author_account_age_days": 2737
|
611 |
-
},
|
612 |
-
"https://github.com/evolox/ComfyUI-GeneraNodes": {
|
613 |
-
"stars": 1,
|
614 |
-
"last_update": "2024-11-13 01:13:44",
|
615 |
-
"author_account_age_days": 426
|
616 |
-
},
|
617 |
-
"https://github.com/fablestudio/ComfyUI-Showrunner-Utils": {
|
618 |
-
"stars": 1,
|
619 |
-
"last_update": "2024-10-09 09:08:33",
|
620 |
-
"author_account_age_days": 2190
|
621 |
-
},
|
622 |
-
"https://github.com/flowtyone/comfyui-flowty-lcm": {
|
623 |
-
"stars": 62,
|
624 |
-
"last_update": "2023-10-23 12:08:55",
|
625 |
-
"author_account_age_days": 416
|
626 |
-
},
|
627 |
-
"https://github.com/flyingdogsoftware/gyre_for_comfyui": {
|
628 |
-
"stars": 2,
|
629 |
-
"last_update": "2024-10-21 22:21:13",
|
630 |
-
"author_account_age_days": 2155
|
631 |
-
},
|
632 |
-
"https://github.com/foglerek/comfyui-cem-tools": {
|
633 |
-
"stars": 1,
|
634 |
-
"last_update": "2024-01-13 23:22:07",
|
635 |
-
"author_account_age_days": 4180
|
636 |
-
},
|
637 |
-
"https://github.com/futureversecom/ComfyUI-JEN": {
|
638 |
-
"stars": 2,
|
639 |
-
"last_update": "2024-08-06 00:24:56",
|
640 |
-
"author_account_age_days": 861
|
641 |
-
},
|
642 |
-
"https://github.com/galoreware/ComfyUI-GaloreNodes": {
|
643 |
-
"stars": 1,
|
644 |
-
"last_update": "2024-10-24 05:47:23",
|
645 |
-
"author_account_age_days": 1567
|
646 |
-
},
|
647 |
-
"https://github.com/gameltb/ComfyUI_paper_playground": {
|
648 |
-
"stars": 11,
|
649 |
-
"last_update": "2024-09-08 14:01:21",
|
650 |
-
"author_account_age_days": 4197
|
651 |
-
},
|
652 |
-
"https://github.com/gameltb/ComfyUI_stable_fast": {
|
653 |
-
"stars": 199,
|
654 |
-
"last_update": "2024-08-04 09:25:33",
|
655 |
-
"author_account_age_days": 4197
|
656 |
-
},
|
657 |
-
"https://github.com/gameltb/io_comfyui": {
|
658 |
-
"stars": 5,
|
659 |
-
"last_update": "2024-04-06 04:40:05",
|
660 |
-
"author_account_age_days": 4197
|
661 |
-
},
|
662 |
-
"https://github.com/gioferreira/ComfyUI-Molde-Utils": {
|
663 |
-
"stars": 1,
|
664 |
-
"last_update": "2024-11-12 20:37:32",
|
665 |
-
"author_account_age_days": 3102
|
666 |
-
},
|
667 |
-
"https://github.com/githubYiheng/comfyui_median_filter": {
|
668 |
-
"stars": 0,
|
669 |
-
"last_update": "2024-07-03 11:38:39",
|
670 |
-
"author_account_age_days": 4045
|
671 |
-
},
|
672 |
-
"https://github.com/go-package-lab/ComfyUI-Tools-Video-Combine": {
|
673 |
-
"stars": 1,
|
674 |
-
"last_update": "2024-09-24 03:54:00",
|
675 |
-
"author_account_age_days": 1526
|
676 |
-
},
|
677 |
-
"https://github.com/hananbeer/node_dev": {
|
678 |
-
"stars": 7,
|
679 |
-
"last_update": "2024-08-19 08:08:39",
|
680 |
-
"author_account_age_days": 1686
|
681 |
-
},
|
682 |
-
"https://github.com/haodman/ComfyUI_Rain": {
|
683 |
-
"stars": 2,
|
684 |
-
"last_update": "2024-09-01 10:41:20",
|
685 |
-
"author_account_age_days": 2282
|
686 |
-
},
|
687 |
-
"https://github.com/haofanwang/ComfyUI-InstantStyle": {
|
688 |
-
"stars": 7,
|
689 |
-
"last_update": "2024-05-23 16:11:13",
|
690 |
-
"author_account_age_days": 3120
|
691 |
-
},
|
692 |
-
"https://github.com/haomole/Comfyui-SadTalker": {
|
693 |
-
"stars": 13,
|
694 |
-
"last_update": "2024-08-05 02:44:26",
|
695 |
-
"author_account_age_days": 443
|
696 |
-
},
|
697 |
-
"https://github.com/hgabha/WWAA-CustomNodes": {
|
698 |
-
"stars": 1,
|
699 |
-
"last_update": "2024-09-22 08:38:16",
|
700 |
-
"author_account_age_days": 297
|
701 |
-
},
|
702 |
-
"https://github.com/horidream/ComfyUI-Horidream": {
|
703 |
-
"stars": 1,
|
704 |
-
"last_update": "2024-09-08 08:57:57",
|
705 |
-
"author_account_age_days": 5186
|
706 |
-
},
|
707 |
-
"https://github.com/hotpizzatactics/ComfyUI-WaterMark-Detector": {
|
708 |
-
"stars": 1,
|
709 |
-
"last_update": "2024-07-23 14:36:35",
|
710 |
-
"author_account_age_days": 119
|
711 |
-
},
|
712 |
-
"https://github.com/houdinii/comfy-magick": {
|
713 |
-
"stars": 4,
|
714 |
-
"last_update": "2024-03-11 06:40:54",
|
715 |
-
"author_account_age_days": 3662
|
716 |
-
},
|
717 |
-
"https://github.com/huangyangke/ComfyUI-Kolors-IpadapterFaceId": {
|
718 |
-
"stars": 1,
|
719 |
-
"last_update": "2024-10-15 09:42:20",
|
720 |
-
"author_account_age_days": 1828
|
721 |
-
},
|
722 |
-
"https://github.com/huizhang0110/ComfyUI_Easy_Nodes_hui": {
|
723 |
-
"stars": 2,
|
724 |
-
"last_update": "2024-02-27 08:22:49",
|
725 |
-
"author_account_age_days": 2597
|
726 |
-
},
|
727 |
-
"https://github.com/hy134300/comfyui-hb-node": {
|
728 |
-
"stars": 0,
|
729 |
-
"last_update": "2024-04-09 09:56:22",
|
730 |
-
"author_account_age_days": 1903
|
731 |
-
},
|
732 |
-
"https://github.com/hy134300/comfyui-hydit": {
|
733 |
-
"stars": 8,
|
734 |
-
"last_update": "2024-06-07 09:52:15",
|
735 |
-
"author_account_age_days": 1903
|
736 |
-
},
|
737 |
-
"https://github.com/ilovejohnwhite/Tracer": {
|
738 |
-
"stars": 1,
|
739 |
-
"last_update": "2024-11-09 22:44:02",
|
740 |
-
"author_account_age_days": 1015
|
741 |
-
},
|
742 |
-
"https://github.com/immersiveexperience/ie-comfyui-color-nodes": {
|
743 |
-
"stars": 2,
|
744 |
-
"last_update": "2024-06-18 10:54:55",
|
745 |
-
"author_account_age_days": 411
|
746 |
-
},
|
747 |
-
"https://github.com/io-club/ComfyUI-LuminaNext": {
|
748 |
-
"stars": 0,
|
749 |
-
"last_update": "2024-09-23 12:02:22",
|
750 |
-
"author_account_age_days": 781
|
751 |
-
},
|
752 |
-
"https://github.com/jgbrblmd/ComfyUI-ComfyFluxSize": {
|
753 |
-
"stars": 1,
|
754 |
-
"last_update": "2024-08-30 06:42:39",
|
755 |
-
"author_account_age_days": 598
|
756 |
-
},
|
757 |
-
"https://github.com/jimmm-ai/TimeUi-a-ComfyUi-Timeline-Node": {
|
758 |
-
"stars": 224,
|
759 |
-
"last_update": "2024-07-04 11:44:03",
|
760 |
-
"author_account_age_days": 162
|
761 |
-
},
|
762 |
-
"https://github.com/jimstudt/ComfyUI-Jims-Nodes": {
|
763 |
-
"stars": 1,
|
764 |
-
"last_update": "2024-10-15 16:56:45",
|
765 |
-
"author_account_age_days": 5089
|
766 |
-
},
|
767 |
-
"https://github.com/jn-jairo/jn_node_suite_comfyui": {
|
768 |
-
"stars": 6,
|
769 |
-
"last_update": "2024-06-08 05:15:33",
|
770 |
-
"author_account_age_days": 4126
|
771 |
-
},
|
772 |
-
"https://github.com/jordancoult/ComfyUI_HelpfulNodes": {
|
773 |
-
"stars": 1,
|
774 |
-
"last_update": "2024-09-29 00:53:48",
|
775 |
-
"author_account_age_days": 2567
|
776 |
-
},
|
777 |
-
"https://github.com/jtscmw01/ComfyUI-DiffBIR": {
|
778 |
-
"stars": 143,
|
779 |
-
"last_update": "2024-05-21 05:28:34",
|
780 |
-
"author_account_age_days": 644
|
781 |
-
},
|
782 |
-
"https://github.com/jtydhr88/ComfyUI-Unique3D": {
|
783 |
-
"stars": 192,
|
784 |
-
"last_update": "2024-10-18 10:37:10",
|
785 |
-
"author_account_age_days": 4895
|
786 |
-
},
|
787 |
-
"https://github.com/kadirnar/ComfyUI-Adapter": {
|
788 |
-
"stars": 3,
|
789 |
-
"last_update": "2024-04-03 12:05:39",
|
790 |
-
"author_account_age_days": 2471
|
791 |
-
},
|
792 |
-
"https://github.com/kadirnar/comfyui_hub": {
|
793 |
-
"stars": 2,
|
794 |
-
"last_update": "2024-03-04 16:25:30",
|
795 |
-
"author_account_age_days": 2471
|
796 |
-
},
|
797 |
-
"https://github.com/kappa54m/ComfyUI_Usability": {
|
798 |
-
"stars": 1,
|
799 |
-
"last_update": "2024-08-08 15:31:47",
|
800 |
-
"author_account_age_days": 1653
|
801 |
-
},
|
802 |
-
"https://github.com/kijai/ComfyUI-CV-VAE": {
|
803 |
-
"stars": 10,
|
804 |
-
"last_update": "2024-06-03 21:46:49",
|
805 |
-
"author_account_age_days": 2325
|
806 |
-
},
|
807 |
-
"https://github.com/kijai/ComfyUI-DeepSeek-VL": {
|
808 |
-
"stars": 31,
|
809 |
-
"last_update": "2024-05-21 16:43:40",
|
810 |
-
"author_account_age_days": 2325
|
811 |
-
},
|
812 |
-
"https://github.com/kijai/ComfyUI-DiffSynthWrapper": {
|
813 |
-
"stars": 58,
|
814 |
-
"last_update": "2024-06-22 00:16:46",
|
815 |
-
"author_account_age_days": 2325
|
816 |
-
},
|
817 |
-
"https://github.com/kijai/ComfyUI-DiffusersSD3Wrapper": {
|
818 |
-
"stars": 9,
|
819 |
-
"last_update": "2024-06-17 13:03:43",
|
820 |
-
"author_account_age_days": 2325
|
821 |
-
},
|
822 |
-
"https://github.com/kijai/ComfyUI-EasyAnimateWrapper": {
|
823 |
-
"stars": 75,
|
824 |
-
"last_update": "2024-08-14 02:20:18",
|
825 |
-
"author_account_age_days": 2325
|
826 |
-
},
|
827 |
-
"https://github.com/kijai/ComfyUI-FollowYourEmojiWrapper": {
|
828 |
-
"stars": 47,
|
829 |
-
"last_update": "2024-07-27 12:50:25",
|
830 |
-
"author_account_age_days": 2325
|
831 |
-
},
|
832 |
-
"https://github.com/kijai/ComfyUI-MochiWrapper": {
|
833 |
-
"stars": 583,
|
834 |
-
"last_update": "2024-11-11 13:54:57",
|
835 |
-
"author_account_age_days": 2325
|
836 |
-
},
|
837 |
-
"https://github.com/kijai/ComfyUI-VEnhancer": {
|
838 |
-
"stars": 59,
|
839 |
-
"last_update": "2024-11-02 00:24:36",
|
840 |
-
"author_account_age_days": 2325
|
841 |
-
},
|
842 |
-
"https://github.com/kk8bit/KayTool": {
|
843 |
-
"stars": 3,
|
844 |
-
"last_update": "2024-11-08 12:51:52",
|
845 |
-
"author_account_age_days": 499
|
846 |
-
},
|
847 |
-
"https://github.com/kxh/ComfyUI-ImageUpscaleWithModelMultipleTimes": {
|
848 |
-
"stars": 1,
|
849 |
-
"last_update": "2024-10-16 13:53:50",
|
850 |
-
"author_account_age_days": 4689
|
851 |
-
},
|
852 |
-
"https://github.com/kxh/ComfyUI-sam2": {
|
853 |
-
"stars": 2,
|
854 |
-
"last_update": "2024-10-10 18:06:11",
|
855 |
-
"author_account_age_days": 4689
|
856 |
-
},
|
857 |
-
"https://github.com/kycg/comfyui-Kwtoolset": {
|
858 |
-
"stars": 1,
|
859 |
-
"last_update": "2024-11-04 21:14:07",
|
860 |
-
"author_account_age_days": 1083
|
861 |
-
},
|
862 |
-
"https://github.com/kylegrover/comfyui-python-cowboy": {
|
863 |
-
"stars": 2,
|
864 |
-
"last_update": "2024-11-04 18:37:04",
|
865 |
-
"author_account_age_days": 2794
|
866 |
-
},
|
867 |
-
"https://github.com/laksjdjf/ssd-1b-comfyui": {
|
868 |
-
"stars": 1,
|
869 |
-
"last_update": "2023-10-27 20:05:06",
|
870 |
-
"author_account_age_days": 2973
|
871 |
-
},
|
872 |
-
"https://github.com/lcolok/ComfyUI-MagicAI": {
|
873 |
-
"stars": 6,
|
874 |
-
"last_update": "2024-11-13 02:47:27",
|
875 |
-
"author_account_age_days": 2556
|
876 |
-
},
|
877 |
-
"https://github.com/leadbreak/comfyui-faceaging": {
|
878 |
-
"stars": 51,
|
879 |
-
"last_update": "2024-10-31 08:25:21",
|
880 |
-
"author_account_age_days": 1515
|
881 |
-
},
|
882 |
-
"https://github.com/leeguandong/ComfyUI_AliControlnetInpainting": {
|
883 |
-
"stars": 3,
|
884 |
-
"last_update": "2024-09-25 10:44:58",
|
885 |
-
"author_account_age_days": 2936
|
886 |
-
},
|
887 |
-
"https://github.com/leoleelxh/ComfyUI-MidjourneyNode-leoleexh": {
|
888 |
-
"stars": 6,
|
889 |
-
"last_update": "2024-08-01 03:37:17",
|
890 |
-
"author_account_age_days": 4217
|
891 |
-
},
|
892 |
-
"https://github.com/lgldlk/ComfyUI-img-tiler": {
|
893 |
-
"stars": 2,
|
894 |
-
"last_update": "2024-10-17 07:56:42",
|
895 |
-
"author_account_age_days": 1832
|
896 |
-
},
|
897 |
-
"https://github.com/lichenhao/Comfyui_Ryota": {
|
898 |
-
"stars": 1,
|
899 |
-
"last_update": "2024-09-07 08:25:54",
|
900 |
-
"author_account_age_days": 4509
|
901 |
-
},
|
902 |
-
"https://github.com/linhusyung/comfyui-Build-and-train-your-network": {
|
903 |
-
"stars": 100,
|
904 |
-
"last_update": "2024-06-26 05:44:43",
|
905 |
-
"author_account_age_days": 820
|
906 |
-
},
|
907 |
-
"https://github.com/logtd/ComfyUI-Fluxtapoz": {
|
908 |
-
"stars": 606,
|
909 |
-
"last_update": "2024-10-26 19:37:51",
|
910 |
-
"author_account_age_days": 264
|
911 |
-
},
|
912 |
-
"https://github.com/logtd/ComfyUI-Veevee": {
|
913 |
-
"stars": 61,
|
914 |
-
"last_update": "2024-08-12 03:04:12",
|
915 |
-
"author_account_age_days": 264
|
916 |
-
},
|
917 |
-
"https://github.com/longgui0318/comfyui-one-more-step": {
|
918 |
-
"stars": 1,
|
919 |
-
"last_update": "2024-05-07 08:40:56",
|
920 |
-
"author_account_age_days": 4307
|
921 |
-
},
|
922 |
-
"https://github.com/lordwedggie/xcpNodes": {
|
923 |
-
"stars": 1,
|
924 |
-
"last_update": "2024-10-19 10:57:08",
|
925 |
-
"author_account_age_days": 695
|
926 |
-
},
|
927 |
-
"https://github.com/ltdrdata/ComfyUI-Workflow-Component": {
|
928 |
-
"stars": 219,
|
929 |
-
"last_update": "2024-07-30 08:08:28",
|
930 |
-
"author_account_age_days": 604
|
931 |
-
},
|
932 |
-
"https://github.com/lu64k/SK-Nodes": {
|
933 |
-
"stars": 1,
|
934 |
-
"last_update": "2024-10-03 03:20:23",
|
935 |
-
"author_account_age_days": 533
|
936 |
-
},
|
937 |
-
"https://github.com/m-ai-studio/mai-prompt-progress": {
|
938 |
-
"stars": 1,
|
939 |
-
"last_update": "2024-10-30 18:25:05",
|
940 |
-
"author_account_age_days": 191
|
941 |
-
},
|
942 |
-
"https://github.com/majorsauce/comfyui_indieTools": {
|
943 |
-
"stars": 0,
|
944 |
-
"last_update": "2024-06-25 08:59:57",
|
945 |
-
"author_account_age_days": 1947
|
946 |
-
},
|
947 |
-
"https://github.com/marcueberall/ComfyUI-BuildPath": {
|
948 |
-
"stars": 0,
|
949 |
-
"last_update": "2024-02-06 07:57:33",
|
950 |
-
"author_account_age_days": 1924
|
951 |
-
},
|
952 |
-
"https://github.com/marduk191/comfyui-marnodes": {
|
953 |
-
"stars": 4,
|
954 |
-
"last_update": "2024-09-11 06:05:49",
|
955 |
-
"author_account_age_days": 4557
|
956 |
-
},
|
957 |
-
"https://github.com/maruhidd/ComfyUI_Transparent-Background": {
|
958 |
-
"stars": 4,
|
959 |
-
"last_update": "2024-06-14 07:02:56",
|
960 |
-
"author_account_age_days": 2397
|
961 |
-
},
|
962 |
-
"https://github.com/mashb1t/comfyui-nodes-mashb1t": {
|
963 |
-
"stars": 0,
|
964 |
-
"last_update": "2024-06-11 15:55:53",
|
965 |
-
"author_account_age_days": 3678
|
966 |
-
},
|
967 |
-
"https://github.com/melMass/ComfyUI-Lygia": {
|
968 |
-
"stars": 0,
|
969 |
-
"last_update": "2024-07-14 09:59:10",
|
970 |
-
"author_account_age_days": 3887
|
971 |
-
},
|
972 |
-
"https://github.com/mfg637/ComfyUI-ScheduledGuider-Ext": {
|
973 |
-
"stars": 2,
|
974 |
-
"last_update": "2024-10-25 17:17:39",
|
975 |
-
"author_account_age_days": 2460
|
976 |
-
},
|
977 |
-
"https://github.com/mikeymcfish/FishTools": {
|
978 |
-
"stars": 21,
|
979 |
-
"last_update": "2024-07-13 20:51:17",
|
980 |
-
"author_account_age_days": 3545
|
981 |
-
},
|
982 |
-
"https://github.com/monate0615/ComfyUI-Affine-Transform": {
|
983 |
-
"stars": 2,
|
984 |
-
"last_update": "2024-10-05 17:42:40",
|
985 |
-
"author_account_age_days": 101
|
986 |
-
},
|
987 |
-
"https://github.com/monate0615/ComfyUI-Simple-Image-Tools": {
|
988 |
-
"stars": 1,
|
989 |
-
"last_update": "2024-10-12 18:29:58",
|
990 |
-
"author_account_age_days": 101
|
991 |
-
},
|
992 |
-
"https://github.com/mut-ex/comfyui-gligengui-node": {
|
993 |
-
"stars": 45,
|
994 |
-
"last_update": "2024-02-28 02:46:05",
|
995 |
-
"author_account_age_days": 3001
|
996 |
-
},
|
997 |
-
"https://github.com/nat-chan/comfyui-exec": {
|
998 |
-
"stars": 2,
|
999 |
-
"last_update": "2024-05-28 11:56:37",
|
1000 |
-
"author_account_age_days": 3135
|
1001 |
-
},
|
1002 |
-
"https://github.com/nat-chan/comfyui-in-memory-transceiver": {
|
1003 |
-
"stars": 1,
|
1004 |
-
"last_update": "2024-05-01 10:03:01",
|
1005 |
-
"author_account_age_days": 3135
|
1006 |
-
},
|
1007 |
-
"https://github.com/nat-chan/comfyui-paint": {
|
1008 |
-
"stars": 2,
|
1009 |
-
"last_update": "2024-06-14 11:01:38",
|
1010 |
-
"author_account_age_days": 3135
|
1011 |
-
},
|
1012 |
-
"https://github.com/neeltheninja/ComfyUI-TempFileDeleter": {
|
1013 |
-
"stars": 1,
|
1014 |
-
"last_update": "2024-10-26 19:25:43",
|
1015 |
-
"author_account_age_days": 2021
|
1016 |
-
},
|
1017 |
-
"https://github.com/neeltheninja/ComfyUI-TextOverlay": {
|
1018 |
-
"stars": 1,
|
1019 |
-
"last_update": "2024-07-31 18:40:19",
|
1020 |
-
"author_account_age_days": 2021
|
1021 |
-
},
|
1022 |
-
"https://github.com/neo0801/my-comfy-node": {
|
1023 |
-
"stars": 1,
|
1024 |
-
"last_update": "2024-09-20 07:49:04",
|
1025 |
-
"author_account_age_days": 3922
|
1026 |
-
},
|
1027 |
-
"https://github.com/netanelben/comfyui-camera2image-customnode": {
|
1028 |
-
"stars": 2,
|
1029 |
-
"last_update": "2024-09-29 15:14:57",
|
1030 |
-
"author_account_age_days": 4024
|
1031 |
-
},
|
1032 |
-
"https://github.com/netanelben/comfyui-image2image-customnode": {
|
1033 |
-
"stars": 2,
|
1034 |
-
"last_update": "2024-09-29 12:50:53",
|
1035 |
-
"author_account_age_days": 4024
|
1036 |
-
},
|
1037 |
-
"https://github.com/netanelben/comfyui-photobooth-customnode": {
|
1038 |
-
"stars": 1,
|
1039 |
-
"last_update": "2024-10-02 08:00:05",
|
1040 |
-
"author_account_age_days": 4024
|
1041 |
-
},
|
1042 |
-
"https://github.com/netanelben/comfyui-text2image-customnode": {
|
1043 |
-
"stars": 2,
|
1044 |
-
"last_update": "2024-09-29 15:19:37",
|
1045 |
-
"author_account_age_days": 4024
|
1046 |
-
},
|
1047 |
-
"https://github.com/neuratech-ai/ComfyUI-MultiGPU": {
|
1048 |
-
"stars": 126,
|
1049 |
-
"last_update": "2024-08-04 16:37:11",
|
1050 |
-
"author_account_age_days": 215
|
1051 |
-
},
|
1052 |
-
"https://github.com/neverbiasu/ComfyUI-ControlNeXt": {
|
1053 |
-
"stars": 4,
|
1054 |
-
"last_update": "2024-08-15 08:15:43",
|
1055 |
-
"author_account_age_days": 1161
|
1056 |
-
},
|
1057 |
-
"https://github.com/nidefawl/ComfyUI-nidefawl": {
|
1058 |
-
"stars": 0,
|
1059 |
-
"last_update": "2024-01-16 18:16:41",
|
1060 |
-
"author_account_age_days": 5010
|
1061 |
-
},
|
1062 |
-
"https://github.com/nikkuexe/ComfyUI-ListDataHelpers": {
|
1063 |
-
"stars": 1,
|
1064 |
-
"last_update": "2024-09-21 16:15:57",
|
1065 |
-
"author_account_age_days": 4691
|
1066 |
-
},
|
1067 |
-
"https://github.com/nkchocoai/ComfyUI-PromptUtilities": {
|
1068 |
-
"stars": 8,
|
1069 |
-
"last_update": "2024-10-19 14:44:42",
|
1070 |
-
"author_account_age_days": 302
|
1071 |
-
},
|
1072 |
-
"https://github.com/norgeous/ComfyUI-UI-Builder": {
|
1073 |
-
"stars": 11,
|
1074 |
-
"last_update": "2024-08-11 22:22:04",
|
1075 |
-
"author_account_age_days": 4172
|
1076 |
-
},
|
1077 |
-
"https://github.com/oshtz/ComfyUI-oshtz-nodes": {
|
1078 |
-
"stars": 1,
|
1079 |
-
"last_update": "2024-11-05 17:56:10",
|
1080 |
-
"author_account_age_days": 568
|
1081 |
-
},
|
1082 |
-
"https://github.com/oyvindg/ComfyUI-TrollSuite": {
|
1083 |
-
"stars": 2,
|
1084 |
-
"last_update": "2024-08-15 10:37:43",
|
1085 |
-
"author_account_age_days": 2472
|
1086 |
-
},
|
1087 |
-
"https://github.com/oztrkoguz/ComfyUI_Kosmos2_BBox_Cutter": {
|
1088 |
-
"stars": 18,
|
1089 |
-
"last_update": "2024-07-25 05:50:01",
|
1090 |
-
"author_account_age_days": 983
|
1091 |
-
},
|
1092 |
-
"https://github.com/pamparamm/ComfyUI-ppm": {
|
1093 |
-
"stars": 76,
|
1094 |
-
"last_update": "2024-10-11 23:51:43",
|
1095 |
-
"author_account_age_days": 2273
|
1096 |
-
},
|
1097 |
-
"https://github.com/paulhoux/Smart-Prompting": {
|
1098 |
-
"stars": 1,
|
1099 |
-
"last_update": "2024-09-20 08:43:53",
|
1100 |
-
"author_account_age_days": 5266
|
1101 |
-
},
|
1102 |
-
"https://github.com/poisenbery/NudeNet-Detector-Provider": {
|
1103 |
-
"stars": 1,
|
1104 |
-
"last_update": "2024-02-26 02:11:27",
|
1105 |
-
"author_account_age_days": 1379
|
1106 |
-
},
|
1107 |
-
"https://github.com/prabinpebam/anyPython": {
|
1108 |
-
"stars": 10,
|
1109 |
-
"last_update": "2024-07-01 04:07:16",
|
1110 |
-
"author_account_age_days": 4385
|
1111 |
-
},
|
1112 |
-
"https://github.com/prismwastaken/prism-comfyui-tools": {
|
1113 |
-
"stars": 0,
|
1114 |
-
"last_update": "2024-03-05 14:34:56",
|
1115 |
-
"author_account_age_days": 299
|
1116 |
-
},
|
1117 |
-
"https://github.com/prodogape/ComfyUI-clip-interrogator": {
|
1118 |
-
"stars": 48,
|
1119 |
-
"last_update": "2024-07-27 18:33:22",
|
1120 |
-
"author_account_age_days": 1172
|
1121 |
-
},
|
1122 |
-
"https://github.com/pzzmyc/comfyui-sd3-simple-simpletuner": {
|
1123 |
-
"stars": 1,
|
1124 |
-
"last_update": "2024-06-19 12:48:18",
|
1125 |
-
"author_account_age_days": 2241
|
1126 |
-
},
|
1127 |
-
"https://github.com/redhottensors/ComfyUI-ODE": {
|
1128 |
-
"stars": 46,
|
1129 |
-
"last_update": "2024-08-01 06:57:05",
|
1130 |
-
"author_account_age_days": 281
|
1131 |
-
},
|
1132 |
-
"https://github.com/romeobuilderotti/ComfyUI-EZ-Pipes": {
|
1133 |
-
"stars": 3,
|
1134 |
-
"last_update": "2023-11-15 22:00:49",
|
1135 |
-
"author_account_age_days": 432
|
1136 |
-
},
|
1137 |
-
"https://github.com/rouxianmantou/comfyui-rxmt-nodes": {
|
1138 |
-
"stars": 1,
|
1139 |
-
"last_update": "2024-10-12 08:04:58",
|
1140 |
-
"author_account_age_days": 3318
|
1141 |
-
},
|
1142 |
-
"https://github.com/ruka-game/rukalib_comfyui": {
|
1143 |
-
"stars": 1,
|
1144 |
-
"last_update": "2024-10-03 23:59:55",
|
1145 |
-
"author_account_age_days": 47
|
1146 |
-
},
|
1147 |
-
"https://github.com/sangeet/testui": {
|
1148 |
-
"stars": 2,
|
1149 |
-
"last_update": "2024-05-15 00:55:17",
|
1150 |
-
"author_account_age_days": 5222
|
1151 |
-
},
|
1152 |
-
"https://github.com/sdfxai/SDFXBridgeForComfyUI": {
|
1153 |
-
"stars": 11,
|
1154 |
-
"last_update": "2024-06-14 10:26:56",
|
1155 |
-
"author_account_age_days": 377
|
1156 |
-
},
|
1157 |
-
"https://github.com/seancheung/comfyui-creative-nodes": {
|
1158 |
-
"stars": 1,
|
1159 |
-
"last_update": "2024-09-13 06:22:45",
|
1160 |
-
"author_account_age_days": 4080
|
1161 |
-
},
|
1162 |
-
"https://github.com/sebord/ComfyUI-LMCQ": {
|
1163 |
-
"stars": 5,
|
1164 |
-
"last_update": "2024-11-11 14:04:59",
|
1165 |
-
"author_account_age_days": 929
|
1166 |
-
},
|
1167 |
-
"https://github.com/shadowcz007/ComfyUI-PuLID-Test": {
|
1168 |
-
"stars": 8,
|
1169 |
-
"last_update": "2024-05-12 14:37:28",
|
1170 |
-
"author_account_age_days": 3457
|
1171 |
-
},
|
1172 |
-
"https://github.com/shadowcz007/Comfyui-EzAudio": {
|
1173 |
-
"stars": 1,
|
1174 |
-
"last_update": "2024-09-22 03:17:40",
|
1175 |
-
"author_account_age_days": 3457
|
1176 |
-
},
|
1177 |
-
"https://github.com/shadowcz007/comfyui-CLIPSeg": {
|
1178 |
-
"stars": 2,
|
1179 |
-
"last_update": "2024-02-08 02:16:24",
|
1180 |
-
"author_account_age_days": 3457
|
1181 |
-
},
|
1182 |
-
"https://github.com/shadowcz007/comfyui-hydit-lowvram": {
|
1183 |
-
"stars": 2,
|
1184 |
-
"last_update": "2024-07-31 10:04:09",
|
1185 |
-
"author_account_age_days": 3457
|
1186 |
-
},
|
1187 |
-
"https://github.com/shadowcz007/comfyui-sd-prompt-mixlab": {
|
1188 |
-
"stars": 15,
|
1189 |
-
"last_update": "2024-05-21 19:47:56",
|
1190 |
-
"author_account_age_days": 3457
|
1191 |
-
},
|
1192 |
-
"https://github.com/shinich39/comfyui-event-handler": {
|
1193 |
-
"stars": 1,
|
1194 |
-
"last_update": "2024-08-23 09:38:35",
|
1195 |
-
"author_account_age_days": 454
|
1196 |
-
},
|
1197 |
-
"https://github.com/shirazdesigner/CLIPTextEncodeAndEnhancev4": {
|
1198 |
-
"stars": 0,
|
1199 |
-
"last_update": "2024-04-27 13:25:08",
|
1200 |
-
"author_account_age_days": 4104
|
1201 |
-
},
|
1202 |
-
"https://github.com/shuanshuan/ComfyUI_CheckPointLoader_Ext": {
|
1203 |
-
"stars": 1,
|
1204 |
-
"last_update": "2024-08-27 02:24:05",
|
1205 |
-
"author_account_age_days": 4260
|
1206 |
-
},
|
1207 |
-
"https://github.com/sofakid/dandy": {
|
1208 |
-
"stars": 44,
|
1209 |
-
"last_update": "2024-05-27 21:46:18",
|
1210 |
-
"author_account_age_days": 4195
|
1211 |
-
},
|
1212 |
-
"https://github.com/sswink/comfyui-lingshang": {
|
1213 |
-
"stars": 0,
|
1214 |
-
"last_update": "2024-11-06 15:04:22",
|
1215 |
-
"author_account_age_days": 2678
|
1216 |
-
},
|
1217 |
-
"https://github.com/stavsap/ComfyUI-React-SDK": {
|
1218 |
-
"stars": 9,
|
1219 |
-
"last_update": "2024-03-17 21:54:21",
|
1220 |
-
"author_account_age_days": 4226
|
1221 |
-
},
|
1222 |
-
"https://github.com/stutya/ComfyUI-Terminal": {
|
1223 |
-
"stars": 0,
|
1224 |
-
"last_update": "2024-02-05 16:47:28",
|
1225 |
-
"author_account_age_days": 3980
|
1226 |
-
},
|
1227 |
-
"https://github.com/sugarkwork/comfyui_psd": {
|
1228 |
-
"stars": 1,
|
1229 |
-
"last_update": "2024-03-26 08:24:56",
|
1230 |
-
"author_account_age_days": 1018
|
1231 |
-
},
|
1232 |
-
"https://github.com/suncat2ps/ComfyUI-SaveImgNextcloud": {
|
1233 |
-
"stars": 1,
|
1234 |
-
"last_update": "2024-11-12 03:30:38",
|
1235 |
-
"author_account_age_days": 4267
|
1236 |
-
},
|
1237 |
-
"https://github.com/talesofai/comfyui-supersave": {
|
1238 |
-
"stars": 1,
|
1239 |
-
"last_update": "2023-12-27 02:05:53",
|
1240 |
-
"author_account_age_days": 698
|
1241 |
-
},
|
1242 |
-
"https://github.com/talon468/ComfyUI-Rpg-Architect": {
|
1243 |
-
"stars": 4,
|
1244 |
-
"last_update": "2024-08-31 14:47:47",
|
1245 |
-
"author_account_age_days": 560
|
1246 |
-
},
|
1247 |
-
"https://github.com/thderoo/ComfyUI-_topfun_s_nodes": {
|
1248 |
-
"stars": 6,
|
1249 |
-
"last_update": "2024-07-03 14:39:28",
|
1250 |
-
"author_account_age_days": 3008
|
1251 |
-
},
|
1252 |
-
"https://github.com/tjorbogarden/my-useful-comfyui-custom-nodes": {
|
1253 |
-
"stars": 0,
|
1254 |
-
"last_update": "2024-03-05 13:31:31",
|
1255 |
-
"author_account_age_days": 255
|
1256 |
-
},
|
1257 |
-
"https://github.com/tom-doerr/dspy_nodes": {
|
1258 |
-
"stars": 180,
|
1259 |
-
"last_update": "2024-08-04 18:55:22",
|
1260 |
-
"author_account_age_days": 2922
|
1261 |
-
},
|
1262 |
-
"https://github.com/tracerstar/comfyui-p5js-node": {
|
1263 |
-
"stars": 32,
|
1264 |
-
"last_update": "2024-07-05 23:47:57",
|
1265 |
-
"author_account_age_days": 5341
|
1266 |
-
},
|
1267 |
-
"https://github.com/tuckerdarby/ComfyUI-TDNodes": {
|
1268 |
-
"stars": 3,
|
1269 |
-
"last_update": "2024-02-19 17:00:55",
|
1270 |
-
"author_account_age_days": 3080
|
1271 |
-
},
|
1272 |
-
"https://github.com/umisetokikaze/comfyui_mergekit": {
|
1273 |
-
"stars": 0,
|
1274 |
-
"last_update": "2024-04-28 07:21:00",
|
1275 |
-
"author_account_age_days": 1965
|
1276 |
-
},
|
1277 |
-
"https://github.com/unanan/ComfyUI-Dist": {
|
1278 |
-
"stars": 5,
|
1279 |
-
"last_update": "2024-02-28 10:03:50",
|
1280 |
-
"author_account_age_days": 3040
|
1281 |
-
},
|
1282 |
-
"https://github.com/void15700/VoidCustomNodes": {
|
1283 |
-
"stars": 1,
|
1284 |
-
"last_update": "2024-10-07 02:23:02",
|
1285 |
-
"author_account_age_days": 147
|
1286 |
-
},
|
1287 |
-
"https://github.com/walterFeng/ComfyUI-Image-Utils": {
|
1288 |
-
"stars": 1,
|
1289 |
-
"last_update": "2024-08-09 11:31:26",
|
1290 |
-
"author_account_age_days": 2918
|
1291 |
-
},
|
1292 |
-
"https://github.com/willblaschko/ComfyUI-Unload-Models": {
|
1293 |
-
"stars": 7,
|
1294 |
-
"last_update": "2024-06-30 10:07:40",
|
1295 |
-
"author_account_age_days": 4734
|
1296 |
-
},
|
1297 |
-
"https://github.com/wilzamguerrero/Comfyui-zZzZz": {
|
1298 |
-
"stars": 3,
|
1299 |
-
"last_update": "2024-10-14 02:08:33",
|
1300 |
-
"author_account_age_days": 830
|
1301 |
-
},
|
1302 |
-
"https://github.com/wormley/comfyui-wormley-nodes": {
|
1303 |
-
"stars": 0,
|
1304 |
-
"last_update": "2023-11-12 19:05:11",
|
1305 |
-
"author_account_age_days": 2615
|
1306 |
-
},
|
1307 |
-
"https://github.com/xiaoyumu/ComfyUI-XYNodes": {
|
1308 |
-
"stars": 1,
|
1309 |
-
"last_update": "2024-11-13 01:43:17",
|
1310 |
-
"author_account_age_days": 4159
|
1311 |
-
},
|
1312 |
-
"https://github.com/yojimbodayne/ComfyUI-Dropbox-API": {
|
1313 |
-
"stars": 1,
|
1314 |
-
"last_update": "2024-08-30 05:29:07",
|
1315 |
-
"author_account_age_days": 92
|
1316 |
-
},
|
1317 |
-
"https://github.com/zhongpei/Comfyui_image2prompt": {
|
1318 |
-
"stars": 300,
|
1319 |
-
"last_update": "2024-05-22 23:19:30",
|
1320 |
-
"author_account_age_days": 3601
|
1321 |
-
},
|
1322 |
-
"https://github.com/zml-ai/comfyui-hydit": {
|
1323 |
-
"stars": 2,
|
1324 |
-
"last_update": "2024-08-07 09:37:09",
|
1325 |
-
"author_account_age_days": 2125
|
1326 |
-
}
|
1327 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ComfyUI/custom_nodes/manager-core/node_db/dev/model-list.json
DELETED
@@ -1,3 +0,0 @@
|
|
1 |
-
{
|
2 |
-
"models": []
|
3 |
-
}
|
|
|
|
|
|
|
|
ComfyUI/custom_nodes/manager-core/node_db/dev/scan.sh
DELETED
@@ -1,3 +0,0 @@
|
|
1 |
-
#!/bin/bash
|
2 |
-
rm ~/.tmp/dev/*.py > /dev/null 2>&1
|
3 |
-
python ../../scanner.py ~/.tmp/dev
|
|
|
|
|
|
|
|
ComfyUI/custom_nodes/manager-core/node_db/forked/custom-node-list.json
DELETED
@@ -1,114 +0,0 @@
|
|
1 |
-
{
|
2 |
-
"custom_nodes": [
|
3 |
-
{
|
4 |
-
"author": "BlenderNeko",
|
5 |
-
"title": "ltdrdata/ComfyUI_TiledKSampler",
|
6 |
-
"reference": "https://github.com/ltdrdata/ComfyUI_TiledKSampler",
|
7 |
-
"files": [
|
8 |
-
"https://github.com/ltdrdata/ComfyUI_TiledKSampler"
|
9 |
-
],
|
10 |
-
"install_type": "git-clone",
|
11 |
-
"description": "PR for [a/https://github.com/BlenderNeko/ComfyUI_TiledKSampler/pull/59](https://github.com/BlenderNeko/ComfyUI_TiledKSampler/pull/59)"
|
12 |
-
},
|
13 |
-
{
|
14 |
-
"author": "leeooo001",
|
15 |
-
"title": "ComfyUI-leo-Hamer",
|
16 |
-
"reference": "https://github.com/leeooo001/ComfyUI-leo-Hamer",
|
17 |
-
"files": [
|
18 |
-
"https://github.com/leeooo001/ComfyUI-leo-Hamer"
|
19 |
-
],
|
20 |
-
"install_type": "git-clone",
|
21 |
-
"description": "Unoffice Hamer-ComfyUI by leo\nNOTE:base on [a/hamer](https://github.com/geopavlakos/hamer)"
|
22 |
-
},
|
23 |
-
{
|
24 |
-
"author": "leeooo001",
|
25 |
-
"title": "ComfyUI-leo-GVHMR",
|
26 |
-
"reference": "https://github.com/leeooo001/ComfyUI-leo-GVHMR",
|
27 |
-
"files": [
|
28 |
-
"https://github.com/leeooo001/ComfyUI-leo-GVHMR"
|
29 |
-
],
|
30 |
-
"install_type": "git-clone",
|
31 |
-
"description": "Unoffice Hamer-ComfyUI by leo\nNOTE:base on [a/GVHMR](https://github.com/zju3dv/GVHMR)"
|
32 |
-
},
|
33 |
-
{
|
34 |
-
"author": "leeooo001",
|
35 |
-
"title": "RealisDance-ComfyUI",
|
36 |
-
"reference": "https://github.com/leeooo001/ComfyUI-leo-RealisDance",
|
37 |
-
"files": [
|
38 |
-
"https://github.com/leeooo001/ComfyUI-leo-RealisDance"
|
39 |
-
],
|
40 |
-
"install_type": "git-clone",
|
41 |
-
"description": "Unoffice RealisDance-ComfyUI by leo\nNOTE:base on [a/RealisDance](https://github.com/damo-cv/RealisDance), modified on [a/RealisDanceComfyui](https://github.com/AIFSH/RealisDance-ComfyUI)"
|
42 |
-
},
|
43 |
-
{
|
44 |
-
"author": "jags111",
|
45 |
-
"title": "NyaamZ/efficiency-nodes-ED",
|
46 |
-
"reference": "https://github.com/NyaamZ/efficiency-nodes-ED",
|
47 |
-
"files": [
|
48 |
-
"https://github.com/NyaamZ/efficiency-nodes-ED"
|
49 |
-
],
|
50 |
-
"install_type": "git-clone",
|
51 |
-
"description": "This forked repo supports efficiency-nodes-comfyui. Additional features."
|
52 |
-
},
|
53 |
-
{
|
54 |
-
"author": "SeaArtLab",
|
55 |
-
"title": "zer0int/ComfyUI-Long-CLIP",
|
56 |
-
"reference": "https://github.com/zer0int/ComfyUI-Long-CLIP",
|
57 |
-
"files": [
|
58 |
-
"https://github.com/zer0int/ComfyUI-Long-CLIP"
|
59 |
-
],
|
60 |
-
"install_type": "git-clone",
|
61 |
-
"description": "This forked repo supports FLUX.1 not only SD1.5, SDXL."
|
62 |
-
},
|
63 |
-
{
|
64 |
-
"author": "meimeilook",
|
65 |
-
"title": "ComfyUI_IPAdapter_plus.old [backward compatbility]",
|
66 |
-
"reference": "https://github.com/meimeilook/ComfyUI_IPAdapter_plus.old",
|
67 |
-
"files": [
|
68 |
-
"https://github.com/meimeilook/ComfyUI_IPAdapter_plus.old"
|
69 |
-
],
|
70 |
-
"install_type": "git-clone",
|
71 |
-
"description": "This repo is created to provide backward compatibility for workflows configured with the old IPAdapter."
|
72 |
-
},
|
73 |
-
{
|
74 |
-
"author": "ZHO-ZHO-ZHO",
|
75 |
-
"title": "Dr.Lt.Data/ComfyUI-YoloWorld-EfficientSAM",
|
76 |
-
"reference": "https://github.com/ltdrdata/ComfyUI-YoloWorld-EfficientSAM",
|
77 |
-
"files": [
|
78 |
-
"https://github.com/ltdrdata/ComfyUI-YoloWorld-EfficientSAM"
|
79 |
-
],
|
80 |
-
"install_type": "git-clone",
|
81 |
-
"description": "This fork includes [a/PR32](https://github.com/ZHO-ZHO-ZHO/ComfyUI-YoloWorld-EfficientSAM/pull/32)"
|
82 |
-
},
|
83 |
-
{
|
84 |
-
"author": "ertu110",
|
85 |
-
"title": "sdxl_prompt_style",
|
86 |
-
"reference": "https://github.com/ertu110/sdxl_prompt_style",
|
87 |
-
"files": [
|
88 |
-
"https://github.com/ertu110/sdxl_prompt_style"
|
89 |
-
],
|
90 |
-
"install_type": "git-clone",
|
91 |
-
"description": "This project is a complete benchmark [a/https://github.com/twri/sdxl_prompt_styler](https://github.com/twri/sdxl_prompt_styler) A large amount of code inside comes from https://github.com/twri/sdxl_prompt_styler Project and [a/https://www.nodecafe.org/package/pythongosssss_ComfyUI-Custom-Scripts](https://www.nodecafe.org/package/pythongosssss_ComfyUI-Custom-Scripts) project\nThe functionality of this project is related to https://github.com/twri/sdxl_prompt_styler Highly overlapping, the only purpose of creating this project is because there are too many styles when selecting, resulting in a long and inconvenient dropdown box. Therefore, To address this issue, this project has added a secondary menu to the style."
|
92 |
-
},
|
93 |
-
{
|
94 |
-
"author": "gustproof",
|
95 |
-
"title": "ComfyUI_IPAdapter_plus_Style_Components",
|
96 |
-
"reference": "https://github.com/gustproof/ComfyUI_IPAdapter_plus_Style_Components",
|
97 |
-
"files": [
|
98 |
-
"https://github.com/gustproof/ComfyUI_IPAdapter_plus_Style_Components"
|
99 |
-
],
|
100 |
-
"install_type": "git-clone",
|
101 |
-
"description": "Style Components is an IP-Adapter model conditioned on anime styles. The style embeddings can either be extracted from images or created manually. This repo currently only supports the SDXL model trained on AutismmixPony."
|
102 |
-
},
|
103 |
-
{
|
104 |
-
"author": "gameltb",
|
105 |
-
"title": "comfyui-stablsr",
|
106 |
-
"reference": "https://github.com/gameltb/Comfyui-StableSR",
|
107 |
-
"files": [
|
108 |
-
"https://github.com/gameltb/Comfyui-StableSR"
|
109 |
-
],
|
110 |
-
"install_type": "git-clone",
|
111 |
-
"description": "This is a development respository for debugging migration of StableSR to ComfyUI\n\nNOTE:Forked from [https://github.com/gameltb/Comfyui-StableSR]\nPut the StableSR [a/webui_786v_139.ckpt](https://huggingface.co/Iceclear/StableSR/resolve/main/webui_768v_139.ckpt) model into Comyfui/models/stablesr/, Put the StableSR [a/stablesr_768v_000139.ckpt](https://huggingface.co/Iceclear/StableSR/resolve/main/stablesr_768v_000139.ckpt) model into Comyfui/models/checkpoints/"
|
112 |
-
}
|
113 |
-
]
|
114 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ComfyUI/custom_nodes/manager-core/node_db/forked/extension-node-map.json
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
{}
|
|
|
|
ComfyUI/custom_nodes/manager-core/node_db/forked/model-list.json
DELETED
@@ -1,3 +0,0 @@
|
|
1 |
-
{
|
2 |
-
"models": []
|
3 |
-
}
|
|
|
|
|
|
|
|
ComfyUI/custom_nodes/manager-core/node_db/forked/scan.sh
DELETED
@@ -1,4 +0,0 @@
|
|
1 |
-
#!/bin/bash
|
2 |
-
source ../../../../venv/bin/activate
|
3 |
-
rm .tmp/*.py > /dev/null
|
4 |
-
python ../../scanner.py
|
|
|
|
|
|
|
|
|
|
ComfyUI/custom_nodes/manager-core/node_db/legacy/alter-list.json
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
{}
|
|
|
|
ComfyUI/custom_nodes/manager-core/node_db/legacy/custom-node-list.json
DELETED
@@ -1,993 +0,0 @@
|
|
1 |
-
{
|
2 |
-
"custom_nodes": [
|
3 |
-
{
|
4 |
-
"author": "#NOTICE_1.13",
|
5 |
-
"title": "NOTICE: This channel is not the default channel.",
|
6 |
-
"reference": "https://github.com/ltdrdata/ComfyUI-Manager",
|
7 |
-
"files": [],
|
8 |
-
"install_type": "git-clone",
|
9 |
-
"description": "If you see this message, your ComfyUI-Manager is outdated.\nLegacy channel provides only the list of the deprecated nodes. If you want to find the complete node list, please go to the Default channel."
|
10 |
-
},
|
11 |
-
|
12 |
-
|
13 |
-
{
|
14 |
-
"author": "thecooltechguy",
|
15 |
-
"title": "ComfyUI-ComfyRun [DEPRECATED/UNSAFE]",
|
16 |
-
"reference": "https://github.com/thecooltechguy/ComfyUI-ComfyRun",
|
17 |
-
"files": [
|
18 |
-
"https://github.com/thecooltechguy/ComfyUI-ComfyRun"
|
19 |
-
],
|
20 |
-
"install_type": "git-clone",
|
21 |
-
"description": "The easiest way to run & share any ComfyUI workflow [a/https://comfyrun.com](https://comfyrun.com)\nNOTE: Vulnerability discovered. Not being managed."
|
22 |
-
},
|
23 |
-
{
|
24 |
-
"author": "Cardoso-topdev",
|
25 |
-
"title": "comfyui_meshanything_v1 [REMOVED]",
|
26 |
-
"reference": "https://github.com/Cardoso-topdev/comfyui_meshanything_v1",
|
27 |
-
"files": [
|
28 |
-
"https://github.com/Cardoso-topdev/comfyui_meshanything_v1"
|
29 |
-
],
|
30 |
-
"install_type": "git-clone",
|
31 |
-
"description": "MeshAnything V2: Artist-Created Mesh Generation With Adjacent Mesh Tokenization"
|
32 |
-
},
|
33 |
-
{
|
34 |
-
"author": "palant",
|
35 |
-
"title": "Extended Save Image for ComfyUI [DEPRECATED]",
|
36 |
-
"reference": "https://github.com/palant/extended-saveimage-comfyui",
|
37 |
-
"files": [
|
38 |
-
"https://github.com/palant/extended-saveimage-comfyui"
|
39 |
-
],
|
40 |
-
"install_type": "git-clone",
|
41 |
-
"description": "This custom node is largely identical to the usual Save Image but allows saving images also in JPEG and WEBP formats, the latter with both lossless and lossy compression. Metadata is embedded in the images as usual, and the resulting images can be used to load a workflow."
|
42 |
-
},
|
43 |
-
{
|
44 |
-
"author": "1038lab",
|
45 |
-
"title": "ComfyUI-GPT2P [REMOVED]",
|
46 |
-
"id": "gpt2p",
|
47 |
-
"reference": "https://github.com/1038lab/ComfyUI-GPT2P",
|
48 |
-
"files": [
|
49 |
-
"https://github.com/1038lab/ComfyUI-GPT2P"
|
50 |
-
],
|
51 |
-
"install_type": "git-clone",
|
52 |
-
"description": "ComfyUI Node - Hugging Face repositories GTP2 Prompt"
|
53 |
-
},
|
54 |
-
{
|
55 |
-
"author": "yushan777",
|
56 |
-
"title": "Y7 Nodes for ComfyUI [REMOVED]",
|
57 |
-
"id": "y7nodes",
|
58 |
-
"reference": "https://github.com/yushan777/ComfyUI-Y7Nodes",
|
59 |
-
"files": [
|
60 |
-
"https://github.com/yushan777/ComfyUI-Y7Nodes"
|
61 |
-
],
|
62 |
-
"install_type": "git-clone",
|
63 |
-
"description": "Nodes:Count_Tokens_(Y7)"
|
64 |
-
},
|
65 |
-
{
|
66 |
-
"author": "city96",
|
67 |
-
"title": "SD-Advanced-Noise [DEPRECATED]",
|
68 |
-
"id": "adv-noise",
|
69 |
-
"reference": "https://github.com/city96/SD-Advanced-Noise",
|
70 |
-
"files": [
|
71 |
-
"https://github.com/city96/SD-Advanced-Noise"
|
72 |
-
],
|
73 |
-
"install_type": "git-clone",
|
74 |
-
"description": "Nodes: LatentGaussianNoise, MathEncode. An experimental custom node that generates latent noise directly by utilizing the linear characteristics of the latent space."
|
75 |
-
},
|
76 |
-
{
|
77 |
-
"author": "shockz0rz",
|
78 |
-
"title": "InterpolateEverything [DEPRECATED]",
|
79 |
-
"id": "interpolate-everything",
|
80 |
-
"reference": "https://github.com/shockz0rz/ComfyUI_InterpolateEverything",
|
81 |
-
"files": [
|
82 |
-
"https://github.com/shockz0rz/ComfyUI_InterpolateEverything"
|
83 |
-
],
|
84 |
-
"install_type": "git-clone",
|
85 |
-
"description": "Nodes: Interpolate Poses, Interpolate Lineart, ... Custom nodes for interpolating between, well, everything in the Stable Diffusion ComfyUI."
|
86 |
-
},
|
87 |
-
{
|
88 |
-
"author": "svdC1",
|
89 |
-
"title": "LoRa Dataset Tools [REMOVED]",
|
90 |
-
"reference": "https://github.com/svdC1/comfy-ui-lora-dataset-tools",
|
91 |
-
"files": [
|
92 |
-
"https://github.com/svdC1/comfy-ui-lora-dataset-tools"
|
93 |
-
],
|
94 |
-
"install_type": "git-clone",
|
95 |
-
"description": "NODES:Directory Loader, Filter Images Without Faces, Detect Faces and Draw Detection Box"
|
96 |
-
},
|
97 |
-
{
|
98 |
-
"author": "MiddleKD",
|
99 |
-
"title": "ComfyUI-default-workflow-setter [REMOVED]",
|
100 |
-
"reference": "https://github.com/MiddleKD/ComfyUI-default-workflow-setter",
|
101 |
-
"files": [
|
102 |
-
"https://github.com/MiddleKD/ComfyUI-default-workflow-setter"
|
103 |
-
],
|
104 |
-
"install_type": "git-clone",
|
105 |
-
"description": "Default workflow setter"
|
106 |
-
},
|
107 |
-
{
|
108 |
-
"author": "Firetheft",
|
109 |
-
"title": "ComfyUI-Flux-Prompt-Tools [REMOVED]",
|
110 |
-
"reference": "https://github.com/Firetheft/ComfyUI-Flux-Prompt-Tools",
|
111 |
-
"files": [
|
112 |
-
"https://github.com/Firetheft/ComfyUI-Flux-Prompt-Tools"
|
113 |
-
],
|
114 |
-
"install_type": "git-clone",
|
115 |
-
"description": "NODES:Flux Prompt Enhance, Flux Prompt Gemini Flash, Flux Prompt Generator, MiniCPM V2.6 Int4"
|
116 |
-
},
|
117 |
-
{
|
118 |
-
"author": "jtydhr88",
|
119 |
-
"title": "ComfyUI Unique3D [DEPRECATED]",
|
120 |
-
"id": "unique3d",
|
121 |
-
"reference": "https://github.com/jtydhr88/ComfyUI-Unique3D",
|
122 |
-
"files": [
|
123 |
-
"https://github.com/jtydhr88/ComfyUI-Unique3D"
|
124 |
-
],
|
125 |
-
"install_type": "git-clone",
|
126 |
-
"description": "ComfyUI Unique3D is custom nodes that running AiuniAI/Unique3D into ComfyUI[w/Please follow readme to install with ComfyUI embedded python.]"
|
127 |
-
},
|
128 |
-
{
|
129 |
-
"author": "mpiquero7164",
|
130 |
-
"title": "SaveImgPrompt [DEPRECATED]",
|
131 |
-
"id": "save-imgprompt",
|
132 |
-
"reference": "https://github.com/mpiquero7164/ComfyUI-SaveImgPrompt",
|
133 |
-
"files": [
|
134 |
-
"https://github.com/mpiquero7164/ComfyUI-SaveImgPrompt"
|
135 |
-
],
|
136 |
-
"install_type": "git-clone",
|
137 |
-
"description": "Save a png or jpeg and option to save prompt/workflow in a text or json file for each image in Comfy + Workflow loading."
|
138 |
-
},
|
139 |
-
{
|
140 |
-
"author": "guoyk93",
|
141 |
-
"title": "y.k.'s ComfyUI node suite [DEPRECATED]",
|
142 |
-
"id": "yks",
|
143 |
-
"reference": "https://github.com/yankeguo-deprecated/yk-node-suite-comfyui",
|
144 |
-
"files": [
|
145 |
-
"https://github.com/yankeguo-deprecated/yk-node-suite-comfyui"
|
146 |
-
],
|
147 |
-
"install_type": "git-clone",
|
148 |
-
"description": "Nodes: YKImagePadForOutpaint, YKMaskToImage"
|
149 |
-
},
|
150 |
-
{
|
151 |
-
"author": "adityathiru",
|
152 |
-
"title": "ComfyUI LLMs [REMOVED]",
|
153 |
-
"reference": "https://github.com/adityathiru/ComfyUI-LLMs",
|
154 |
-
"files": [
|
155 |
-
"https://github.com/adityathiru/ComfyUI-LLMs"
|
156 |
-
],
|
157 |
-
"install_type": "git-clone",
|
158 |
-
"description": "Goal: To enable folks to rapidly build complex workflows with LLMs\nNOTE:☠️ This is experimental and not recommended to use in a production environment (yet!)"
|
159 |
-
},
|
160 |
-
{
|
161 |
-
"author": "DannyStone1999",
|
162 |
-
"title": "ComfyUI-Depth2Mask [REMOVED]",
|
163 |
-
"reference": "https://github.com/DannyStone1999/ComfyUI-Depth2Mask",
|
164 |
-
"files": [
|
165 |
-
"https://github.com/DannyStone1999/ComfyUI-Depth2Mask/raw/main/Depth2Mask.py"
|
166 |
-
],
|
167 |
-
"install_type": "copy",
|
168 |
-
"description": "Nodes:Depth2Mask"
|
169 |
-
},
|
170 |
-
{
|
171 |
-
"author": "syaofox",
|
172 |
-
"title": "ComfyUI_FoxTools [REMOVED]",
|
173 |
-
"reference": "https://github.com/syaofox/ComfyUI_FoxTools",
|
174 |
-
"files": [
|
175 |
-
"https://github.com/syaofox/ComfyUI_FoxTools"
|
176 |
-
],
|
177 |
-
"install_type": "git-clone",
|
178 |
-
"description": "Nodes:BatchImageFromList, Load Face Occlusion Model, Create Face Mask, Simple FaceAlign, Cacul FaceAlign, Gen Blurbord, Face Align, Face Rotate, ImageAdd, LoadImageList, SaveImage Plus, RegTextFind"
|
179 |
-
},
|
180 |
-
{
|
181 |
-
"author": "AIFSH",
|
182 |
-
"title": "SeedVC-ComfyUI [REMOVED]",
|
183 |
-
"reference": "https://github.com/AIFSH/SeedVC-ComfyUI",
|
184 |
-
"files": [
|
185 |
-
"https://github.com/AIFSH/SeedVC-ComfyUI"
|
186 |
-
],
|
187 |
-
"install_type": "git-clone",
|
188 |
-
"description": "a custom node for [a/seed-vc](https://github.com/Plachtaa/seed-vc)"
|
189 |
-
},
|
190 |
-
{
|
191 |
-
"author": "jazhang00",
|
192 |
-
"title": "ComfyUI Node for Slicedit [REMOVED]",
|
193 |
-
"reference": "https://github.com/jazhang00/ComfyUI-Slicedit",
|
194 |
-
"files": [
|
195 |
-
"https://github.com/jazhang00/ComfyUI-Slicedit"
|
196 |
-
],
|
197 |
-
"install_type": "git-clone",
|
198 |
-
"description": "Slicedit main page: [a/https://matankleiner.github.io/slicedit/](https://matankleiner.github.io/slicedit/). Use Slicedit with ComfyUI."
|
199 |
-
},
|
200 |
-
{
|
201 |
-
"author": "rklaffehn",
|
202 |
-
"title": "rk-comfy-nodes [REMOVED]",
|
203 |
-
"id": "rknodes",
|
204 |
-
"reference": "https://github.com/rklaffehn/rk-comfy-nodes",
|
205 |
-
"files": [
|
206 |
-
"https://github.com/rklaffehn/rk-comfy-nodes"
|
207 |
-
],
|
208 |
-
"install_type": "git-clone",
|
209 |
-
"description": "Nodes: RK_CivitAIMetaChecker, RK_CivitAIAddHashes."
|
210 |
-
},
|
211 |
-
{
|
212 |
-
"author": "Extraltodeus",
|
213 |
-
"title": "CLIP-Token-Injection [REMOVED]",
|
214 |
-
"reference": "https://github.com/Extraltodeus/CLIP-Token-Injection",
|
215 |
-
"files": [
|
216 |
-
"https://github.com/Extraltodeus/CLIP-Token-Injection"
|
217 |
-
],
|
218 |
-
"install_type": "git-clone",
|
219 |
-
"description": "These nodes are to edit the text vectors of CLIP models, so to customize how the prompts will be interpreted. You could see it as either customisation, 'one token prompt' up to some limitation and a way to mess with how the text will be interpreted. The edited CLIP can then be saved, or as well the edited tokens themselves. The shared example weights does not contain any image-knowledge but the text vector of the words affected."
|
220 |
-
},
|
221 |
-
{
|
222 |
-
"author": "openart",
|
223 |
-
"title": "openart-comfyui-deploy [REMOVED]",
|
224 |
-
"id": "openart-comfyui-deploy",
|
225 |
-
"reference": "https://github.com/kulsisme/openart-comfyui-deploy",
|
226 |
-
"files": [
|
227 |
-
"https://github.com/kulsisme/openart-comfyui-deploy"
|
228 |
-
],
|
229 |
-
"install_type": "git-clone",
|
230 |
-
"description": "NODES: External Boolean (ComfyUI Deploy), External Checkpoint (ComfyUI Deploy), External Image (ComfyUI Deploy), External Video (ComfyUI Deploy x VHS), OpenArt Text, Image Websocket Output (ComfyDeploy), ..."
|
231 |
-
},
|
232 |
-
{
|
233 |
-
"author": "mittimi",
|
234 |
-
"title": "ComfyUI_mittimiLoadPreset [DEPRECATED]",
|
235 |
-
"id": "comfyui-mittimi-load-preset",
|
236 |
-
"reference": "https://github.com/mittimi/ComfyUI_mittimiLoadPreset",
|
237 |
-
"files": [
|
238 |
-
"https://github.com/mittimi/ComfyUI_mittimiLoadPreset"
|
239 |
-
],
|
240 |
-
"install_type": "git-clone",
|
241 |
-
"description": "The system selects and loads preset."
|
242 |
-
},
|
243 |
-
{
|
244 |
-
"author": "jinljin",
|
245 |
-
"title": "ComfyUI-Talking-Head [REMOVED]",
|
246 |
-
"reference": "https://github.com/jinljin/ComfyUI-ElevenlabsAndDID-Combine",
|
247 |
-
"files": [
|
248 |
-
"https://github.com/jinljin/ComfyUI-ElevenlabsAndDID-Combine"
|
249 |
-
],
|
250 |
-
"install_type": "git-clone",
|
251 |
-
"description": "ComfyUI-Talking-Head"
|
252 |
-
},
|
253 |
-
{
|
254 |
-
"author": "jh-leon-kim",
|
255 |
-
"title": "ComfyUI-JHK-utils [REMOVED]",
|
256 |
-
"id": "jhk",
|
257 |
-
"reference": "https://github.com/jh-leon-kim/ComfyUI-JHK-utils",
|
258 |
-
"files": [
|
259 |
-
"https://github.com/jh-leon-kim/ComfyUI-JHK-utils"
|
260 |
-
],
|
261 |
-
"install_type": "git-clone",
|
262 |
-
"description": "Nodes:JHK_Utils_LoadEmbed, JHK_Utils_string_merge, JHK_Utils_ImageRemoveBackground"
|
263 |
-
},
|
264 |
-
{
|
265 |
-
"author": "ilovejohnwhite",
|
266 |
-
"title": "TatToolkit [REMOVED]",
|
267 |
-
"reference": "https://github.com/ilovejohnwhite/UncleBillyGoncho",
|
268 |
-
"files": [
|
269 |
-
"https://github.com/ilovejohnwhite/UncleBillyGoncho"
|
270 |
-
],
|
271 |
-
"install_type": "git-clone",
|
272 |
-
"description": "Nodes:UWU TTK Preprocessor, Pixel Perfect Resolution, Generation Resolution From Image, Generation Resolution From Latent, Enchance And Resize Hint Images, ..."
|
273 |
-
},
|
274 |
-
{
|
275 |
-
"author": "hzchet",
|
276 |
-
"title": "ComfyUI_QueueGeneration [REMOVED]",
|
277 |
-
"reference": "https://github.com/hzchet/ComfyUI_QueueGeneration",
|
278 |
-
"files": [
|
279 |
-
"https://github.com/hzchet/ComfyUI_QueueGeneration"
|
280 |
-
],
|
281 |
-
"install_type": "git-clone",
|
282 |
-
"description": "NODES:Queue Img2Vid Generation"
|
283 |
-
},
|
284 |
-
{
|
285 |
-
"author": "ader47",
|
286 |
-
"title": "ComfyUI-MeshHamer [REMOVED]",
|
287 |
-
"reference": "https://github.com/ader47/comfyui_meshhamer",
|
288 |
-
"files": [
|
289 |
-
"https://github.com/ader47/comfyui_meshhamer"
|
290 |
-
],
|
291 |
-
"install_type": "git-clone",
|
292 |
-
"description": "Nodes:MeshHamer Hand Refiner. See also: [a/HaMeR: Hand Mesh Recovery](https://github.com/geopavlakos/hamer/tree/main)"
|
293 |
-
},
|
294 |
-
{
|
295 |
-
"author": "SEkINVR",
|
296 |
-
"title": "ComfyUI-Animator",
|
297 |
-
"reference": "https://github.com/SEkINVR/ComfyUI-Animator [REMOVED]",
|
298 |
-
"files": [
|
299 |
-
"https://github.com/SEkINVR/ComfyUI-Animator"
|
300 |
-
],
|
301 |
-
"install_type": "git-clone",
|
302 |
-
"description": "This custom node for ComfyUI provides full-body animation capabilities, including facial rigging, various lighting styles, and green screen output."
|
303 |
-
},
|
304 |
-
{
|
305 |
-
"author": "ZHO-ZHO-ZHO",
|
306 |
-
"title": "ComfyUI-AnyText [NOT MAINTAINED]",
|
307 |
-
"reference": "https://github.com/ZHO-ZHO-ZHO/ComfyUI-AnyText",
|
308 |
-
"files": [
|
309 |
-
"https://github.com/ZHO-ZHO-ZHO/ComfyUI-AnyText"
|
310 |
-
],
|
311 |
-
"install_type": "git-clone",
|
312 |
-
"description": "Unofficial implementation of [a/AnyText](https://github.com/tyxsspa/AnyText/tree/825bcc54687206b15bd7e28ba1a8b095989d58e3) for ComfyUI(EXP)"
|
313 |
-
},
|
314 |
-
{
|
315 |
-
"author": "shinich39",
|
316 |
-
"title": "comfyui-pkg39 [DEPRECATED]",
|
317 |
-
"reference": "https://github.com/shinich39/comfyui-pkg39",
|
318 |
-
"files": [
|
319 |
-
"https://github.com/shinich39/comfyui-pkg39"
|
320 |
-
],
|
321 |
-
"install_type": "git-clone",
|
322 |
-
"description": "This package has created for generate image from generated image and embedded workflow."
|
323 |
-
},
|
324 |
-
{
|
325 |
-
"author": "dnl13",
|
326 |
-
"title": "ComfyUI-dnl13-seg [DEPRECATED]",
|
327 |
-
"reference": "https://github.com/dnl13/ComfyUI-dnl13-seg",
|
328 |
-
"files": [
|
329 |
-
"https://github.com/dnl13/ComfyUI-dnl13-seg"
|
330 |
-
],
|
331 |
-
"install_type": "git-clone",
|
332 |
-
"description": "After discovering @storyicon implementation here of Segment Anything, I realized its potential as a powerful tool for ComfyUI if implemented correctly. I delved into the SAM and Dino models. The following is my own adaptation of sam_hq for ComfyUI."
|
333 |
-
},
|
334 |
-
{
|
335 |
-
"author": "1038lab",
|
336 |
-
"title": "ComfyUI-latentSizeSelector [REMOVED]",
|
337 |
-
"id": "ComfyUI-latentSizeSelector",
|
338 |
-
"reference": "https://github.com/1038lab/ComfyUI_LatentSizeSelector",
|
339 |
-
"files": [
|
340 |
-
"https://github.com/1038lab/ComfyUI_LatentSizeSelector"
|
341 |
-
],
|
342 |
-
"install_type": "git-clone",
|
343 |
-
"description": "You'll get a new node Latent Size Selector, you can pick the x and y sizes from a list."
|
344 |
-
},
|
345 |
-
{
|
346 |
-
"author": "hy134300",
|
347 |
-
"title": "ComfyUI-PhotoMaker-V2 [REMOVED]",
|
348 |
-
"reference": "https://github.com/hy134300/ComfyUI-PhotoMaker-V2",
|
349 |
-
"files": [
|
350 |
-
"https://github.com/hy134300/ComfyUI-PhotoMaker-V2"
|
351 |
-
],
|
352 |
-
"install_type": "git-clone",
|
353 |
-
"description": "Nodes for PhotoMaker-V2"
|
354 |
-
},
|
355 |
-
{
|
356 |
-
"author": "neverbiasu",
|
357 |
-
"title": "ComfyUI ImageCaptioner [REMOVED]",
|
358 |
-
"reference": "https://github.com/neverbiasu/ComfyUI-ImageCaptioner",
|
359 |
-
"files": [
|
360 |
-
"https://github.com/neverbiasu/ComfyUI-ImageCaptioner"
|
361 |
-
],
|
362 |
-
"install_type": "git-clone",
|
363 |
-
"description": "A ComfyUI extension for generating captions for your images. Runs on your own system, no external services used, no filter."
|
364 |
-
},
|
365 |
-
{
|
366 |
-
"author": "mingqizhang",
|
367 |
-
"title": "ComfyUI_InSPyResNet_zmq [REMOVED]",
|
368 |
-
"id": "inspy",
|
369 |
-
"reference": "https://github.com/mingqizhang/ComfyUI_InSPyResNet_zmq",
|
370 |
-
"files": [
|
371 |
-
"https://github.com/mingqizhang/ComfyUI_InSPyResNet_zmq"
|
372 |
-
],
|
373 |
-
"install_type": "git-clone",
|
374 |
-
"description": "Nodes:INSPY removebg ModelLoader, INSPY RMBG"
|
375 |
-
},
|
376 |
-
{
|
377 |
-
"author": "mingqizhang",
|
378 |
-
"title": "ComfyUI_AEMatter_zmq [REMOVED]",
|
379 |
-
"id": "aematter",
|
380 |
-
"reference": "https://github.com/mingqizhang/ComfyUI_AEMatter_zmq",
|
381 |
-
"files": [
|
382 |
-
"https://github.com/mingqizhang/ComfyUI_AEMatter_zmq"
|
383 |
-
],
|
384 |
-
"install_type": "git-clone",
|
385 |
-
"description": "Nodes:AEMatter_ModelLoader, Create_Trimap, AEMatter_Apply, Mask_Transfor, Replace_Background, Gaussian_Filter, Guide_Filter, Improved_Aplha_Composite"
|
386 |
-
},
|
387 |
-
{
|
388 |
-
"author": "bradsec",
|
389 |
-
"title": "ComfyUI_StringTools [REMOVED]",
|
390 |
-
"id": "stringtools",
|
391 |
-
"reference": "https://github.com/bradsec/ComfyUI_StringTools",
|
392 |
-
"files": [
|
393 |
-
"https://github.com/bradsec/ComfyUI_StringTools"
|
394 |
-
],
|
395 |
-
"install_type": "git-clone",
|
396 |
-
"description": "Some simple string tools to modify text and strings in ComfyUI."
|
397 |
-
},
|
398 |
-
{
|
399 |
-
"author": "zmwv823",
|
400 |
-
"title": "ComfyUI-AnyText [DEPRECATED]",
|
401 |
-
"id": "anytext",
|
402 |
-
"reference": "https://github.com/zmwv823/ComfyUI-AnyText",
|
403 |
-
"files": [
|
404 |
-
"https://github.com/zmwv823/ComfyUI-AnyText"
|
405 |
-
],
|
406 |
-
"install_type": "git-clone",
|
407 |
-
"description": "Unofficial Simple And Rough Implementation Of [a/AnyText](https://github.com/tyxsspa/AnyText)"
|
408 |
-
},
|
409 |
-
{
|
410 |
-
"author": "Millyarde",
|
411 |
-
"title": "Pomfy - Photoshop and ComfyUI 2-way sync [REMOVED]",
|
412 |
-
"reference": "https://github.com/Millyarde/Pomfy",
|
413 |
-
"files": [
|
414 |
-
"https://github.com/Millyarde/Pomfy"
|
415 |
-
],
|
416 |
-
"install_type": "git-clone",
|
417 |
-
"description": "Photoshop custom nodes inside of ComfyUi, send and get data via Photoshop UXP plugin for cross platform support"
|
418 |
-
},
|
419 |
-
{
|
420 |
-
"author": "turkyden",
|
421 |
-
"title": "ComfyUI-Sticker [REMOVED]",
|
422 |
-
"reference": "https://github.com/turkyden/ComfyUI-Sticker",
|
423 |
-
"files": [
|
424 |
-
"https://github.com/turkyden/ComfyUI-Sticker"
|
425 |
-
],
|
426 |
-
"install_type": "git-clone",
|
427 |
-
"description": "image to sticker"
|
428 |
-
},
|
429 |
-
{
|
430 |
-
"author": "turkyden",
|
431 |
-
"title": "ComfyUI-Comic [REMOVED]",
|
432 |
-
"id": "comic",
|
433 |
-
"reference": "https://github.com/turkyden/ComfyUI-Comic",
|
434 |
-
"files": [
|
435 |
-
"https://github.com/turkyden/ComfyUI-Comic"
|
436 |
-
],
|
437 |
-
"install_type": "git-clone",
|
438 |
-
"description": "a comfyui plugin for image to comic"
|
439 |
-
},
|
440 |
-
{
|
441 |
-
"author": "turkyden",
|
442 |
-
"title": "ComfyUI-Avatar [REMOVED]",
|
443 |
-
"id": "avatar",
|
444 |
-
"reference": "https://github.com/turkyden/ComfyUI-Avatar",
|
445 |
-
"files": [
|
446 |
-
"https://github.com/turkyden/ComfyUI-Avatar"
|
447 |
-
],
|
448 |
-
"install_type": "git-clone",
|
449 |
-
"description": "a comfyui plugin for image to avatar"
|
450 |
-
},
|
451 |
-
{
|
452 |
-
"author": "bvhari",
|
453 |
-
"title": "LatentToRGB [DEPRECATED]",
|
454 |
-
"id": "latent2rgb",
|
455 |
-
"reference": "https://github.com/bvhari/ComfyUI_LatentToRGB",
|
456 |
-
"files": [
|
457 |
-
"https://github.com/bvhari/ComfyUI_LatentToRGB"
|
458 |
-
],
|
459 |
-
"install_type": "git-clone",
|
460 |
-
"description": "ComfyUI custom node to convert latent to RGB.\nNOTE:This repo has been archived because ComfyUI natively has similar functionality now"
|
461 |
-
},
|
462 |
-
{
|
463 |
-
"author": "Kaharos94",
|
464 |
-
"title": "ComfyUI-Saveaswebp [DEPRECATED]",
|
465 |
-
"id": "save-webp",
|
466 |
-
"reference": "https://github.com/Kaharos94/ComfyUI-Saveaswebp",
|
467 |
-
"files": [
|
468 |
-
"https://github.com/Kaharos94/ComfyUI-Saveaswebp"
|
469 |
-
],
|
470 |
-
"install_type": "git-clone",
|
471 |
-
"description": "Save a picture as Webp file in Comfy + Workflow loading"
|
472 |
-
},
|
473 |
-
{
|
474 |
-
"author": "udi0510",
|
475 |
-
"title": "comfyui-slicer [REMOVED]",
|
476 |
-
"id": "slicer",
|
477 |
-
"reference": "https://github.com/udi0510/comfyui-slicer",
|
478 |
-
"files": [
|
479 |
-
"https://github.com/udi0510/comfyui-slicer"
|
480 |
-
],
|
481 |
-
"install_type": "git-clone",
|
482 |
-
"description": "Nodes:SlicerNode"
|
483 |
-
},
|
484 |
-
{
|
485 |
-
"author": "logtd",
|
486 |
-
"title": "ComfyUI-FLATTEN [REMOVED]",
|
487 |
-
"id": "flatten",
|
488 |
-
"reference": "https://github.com/logtd/ComfyUI-FlattenFlow",
|
489 |
-
"files": [
|
490 |
-
"https://github.com/logtd/ComfyUI-FlattenFlow"
|
491 |
-
],
|
492 |
-
"install_type": "git-clone",
|
493 |
-
"description": "An alternate trajectory processor for ComfyUI-FLATTEN\nNOTE:When using this trajectory type FLATTEN will use roughly 1/4 VRAM and be ~20% faster at the cost of some consistency (especially when injection_steps are low)."
|
494 |
-
},
|
495 |
-
{
|
496 |
-
"author": "MackinationsAi",
|
497 |
-
"title": "ComfyUi_Stuctured-Outputs [REMOVED]",
|
498 |
-
"id": "struct-output",
|
499 |
-
"reference": "https://github.com/MackinationsAi/ComfyUi_Stuctured-Outputs",
|
500 |
-
"files": [
|
501 |
-
"https://github.com/MackinationsAi/ComfyUi_Stuctured-Outputs"
|
502 |
-
],
|
503 |
-
"install_type": "git-clone",
|
504 |
-
"description": "This repository contains a custom node for ComfyUI that allows users to save generative image outputs with custom filenames and folder structures. The filenames are padded to four digits, and the positive and negative prompts are embedded in the image metadata."
|
505 |
-
},
|
506 |
-
{
|
507 |
-
"author": "laksjdjf",
|
508 |
-
"title": "attention-couple-ComfyUI [DEPRECATED]",
|
509 |
-
"id": "attention-couple",
|
510 |
-
"reference": "https://github.com/laksjdjf/attention-couple-ComfyUI",
|
511 |
-
"files": [
|
512 |
-
"https://github.com/laksjdjf/attention-couple-ComfyUI"
|
513 |
-
],
|
514 |
-
"install_type": "git-clone",
|
515 |
-
"description": "Nodes:Attention couple. This is a custom node that manipulates region-specific prompts. While vanilla ComfyUI employs an area specification method based on latent couples, this node divides regions using attention layers within UNet.\nNOTE: This has been integrated with cgem156-ComfyUI."
|
516 |
-
},
|
517 |
-
{
|
518 |
-
"author": "phineas-pta",
|
519 |
-
"title": "comfy-trt-test [DEPRECATED]",
|
520 |
-
"reference": "https://github.com/phineas-pta/comfy-trt-test",
|
521 |
-
"files": [
|
522 |
-
"https://github.com/phineas-pta/comfy-trt-test"
|
523 |
-
],
|
524 |
-
"install_type": "git-clone",
|
525 |
-
"description": "Test project for ComfyUI TensorRT Support.\nNOT WORKING YET.\nnot automatic yet, do not use ComfyUI-Manager to install !!!.\nnot beginner-friendly yet, still intended to technical users\nNOTE: The reason for registration in the Manager is for guidance, and for detailed installation instructions, please visit the repository.\nNOTE: Use 'TensorRT Node for ComfyUI' instead of this."
|
526 |
-
},
|
527 |
-
{
|
528 |
-
"author": "dezi-ai",
|
529 |
-
"title": "ComfyUI Animate LCM [NOT MAINTAINED]",
|
530 |
-
"reference": "https://github.com/dezi-ai/ComfyUI-AnimateLCM",
|
531 |
-
"files": [
|
532 |
-
"https://github.com/dezi-ai/ComfyUI-AnimateLCM"
|
533 |
-
],
|
534 |
-
"install_type": "git-clone",
|
535 |
-
"description": "ComfyUI implementation for [a/AnimateLCM](https://animatelcm.github.io/) [[a/paper](https://arxiv.org/abs/2402.00769)].\b[w/This extension includes a large number of nodes imported from the existing custom nodes, increasing the likelihood of conflicts.]"
|
536 |
-
},
|
537 |
-
{
|
538 |
-
"author": "christian-byrne",
|
539 |
-
"title": "elimination-nodes [REMOVED]",
|
540 |
-
"reference": "https://github.com/christian-byrne/elimination-nodes",
|
541 |
-
"files": [
|
542 |
-
"https://github.com/christian-byrne/elimination-nodes"
|
543 |
-
],
|
544 |
-
"install_type": "git-clone",
|
545 |
-
"description": "Nodes:Paste Cutout on Base Image"
|
546 |
-
},
|
547 |
-
{
|
548 |
-
"author": "Levy1417",
|
549 |
-
"title": "Universal-Data-Processing-Kit [UNSAFE] [REMOVED]",
|
550 |
-
"reference": "https://github.com/Levy1417/Universal-Data-Processing-Kit",
|
551 |
-
"files": [
|
552 |
-
"https://github.com/Levy1417/Universal-Data-Processing-Kit"
|
553 |
-
],
|
554 |
-
"install_type": "git-clone",
|
555 |
-
"description": "Nodes:DPK - Any Eval, DPK - Extract Array, DPK - Run External Program, DPK - Any Literals, DPK - Set Node States, DPK - Realtime Text Preview, DPK - Dynamic Action, DPK - Object To Json, DPK - Json To Object\n[w/This extension includes the ability to execute arbitrary code and programs.]"
|
556 |
-
},
|
557 |
-
{
|
558 |
-
"author": "liusida",
|
559 |
-
"title": "ComfyUI-Sida-Remove-Image [UNSAFE] [REMOVED]",
|
560 |
-
"reference": "https://github.com/liusida/ComfyUI-Sida-Remove-Image",
|
561 |
-
"files": [
|
562 |
-
"https://github.com/liusida/ComfyUI-Sida-Remove-Image"
|
563 |
-
],
|
564 |
-
"install_type": "git-clone",
|
565 |
-
"description": "Nodes: LoadImageWithPrivacy, RemoveImage.[w/This extension is not secure because it provides the capability to delete files from arbitrary paths.]"
|
566 |
-
},
|
567 |
-
{
|
568 |
-
"author": "88IO",
|
569 |
-
"title": "ComfyUI Image Reordering Plugins [REMOVED]",
|
570 |
-
"reference": "https://github.com/88IO/ComfyUI-ImageReorder",
|
571 |
-
"files": [
|
572 |
-
"https://github.com/88IO/ComfyUI-ImageReorder"
|
573 |
-
],
|
574 |
-
"install_type": "git-clone",
|
575 |
-
"description": "A custom node reorder multiple image frames based on indexes or curves."
|
576 |
-
},
|
577 |
-
{
|
578 |
-
"author": "jtydhr88",
|
579 |
-
"title": "ComfyUI-InstantMesh [DEPRECATED]",
|
580 |
-
"id": "instant-mesh",
|
581 |
-
"reference": "https://github.com/jtydhr88/ComfyUI-InstantMesh",
|
582 |
-
"files": [
|
583 |
-
"https://github.com/jtydhr88/ComfyUI-InstantMesh"
|
584 |
-
],
|
585 |
-
"install_type": "git-clone",
|
586 |
-
"description": "ComfyUI InstantMesh is custom nodes that running TencentARC/InstantMesh into ComfyUI, this extension depends on ComfyUI-3D-Pack. Please refer to Readme carefully to install.\nNOTE: This repo is archived due to ComfyUI-3D-Pack supports InstantMesh, please check 3D-Pack directly if you need it"
|
587 |
-
},
|
588 |
-
{
|
589 |
-
"author": "biegert",
|
590 |
-
"title": "CLIPSeg [NOT MAINTAINED]",
|
591 |
-
"id": "clipseg",
|
592 |
-
"reference": "https://github.com/biegert/ComfyUI-CLIPSeg",
|
593 |
-
"files": [
|
594 |
-
"https://github.com/biegert/ComfyUI-CLIPSeg/raw/main/custom_nodes/clipseg.py"
|
595 |
-
],
|
596 |
-
"install_type": "copy",
|
597 |
-
"description": "The CLIPSeg node generates a binary mask for a given input image and text prompt."
|
598 |
-
},
|
599 |
-
{
|
600 |
-
"author": "tankucc1no",
|
601 |
-
"title": "ComfyUI-Dragdiffusion [REMOVED]",
|
602 |
-
"id": "dragdiffusion",
|
603 |
-
"reference": "https://github.com/tankucc1no/ComfyUI-Dragdiffusion",
|
604 |
-
"files": [
|
605 |
-
"https://github.com/tankucc1no/ComfyUI-Dragdiffusion"
|
606 |
-
],
|
607 |
-
"install_type": "git-clone",
|
608 |
-
"description": "Implementation of [a/Dragdiffusion](https://github.com/Yujun-Shi/DragDiffusion) in ComfyUI."
|
609 |
-
},
|
610 |
-
{
|
611 |
-
"author": "wibur0620",
|
612 |
-
"title": "ComfyUI Ollama (wibur) [REMOVED]",
|
613 |
-
"id": "ollama-wibur",
|
614 |
-
"reference": "https://github.com/wibur0620/comfyui-ollama-wibur",
|
615 |
-
"files": [
|
616 |
-
"https://github.com/wibur0620/comfyui-ollama-wibur"
|
617 |
-
],
|
618 |
-
"install_type": "git-clone",
|
619 |
-
"description": "Custom ComfyUI Nodes for interacting with [a/Ollama](https://ollama.com/) using the ollama python client.\nIntegrate the power of LLMs into ComfyUI workflows easily or just experiment with GPT.\nNOTE: To use this properly, you would need a running Ollama server reachable from the host that is running ComfyUI."
|
620 |
-
},
|
621 |
-
{
|
622 |
-
"author": "IKHOR",
|
623 |
-
"title": "ikhor-nodes [REMOVED]",
|
624 |
-
"reference": "https://github.com/IKHOR/ComfyUI-IKHOR-Jam-Nodes",
|
625 |
-
"files": [
|
626 |
-
"https://github.com/IKHOR/ComfyUI-IKHOR-Jam-Nodes"
|
627 |
-
],
|
628 |
-
"install_type": "git-clone",
|
629 |
-
"description": "Nodes:LoadFromS3, LoadBatchFromS3, SaveToS3, SaveBatchToS3"
|
630 |
-
},
|
631 |
-
{
|
632 |
-
"author": "kijai",
|
633 |
-
"title": "ComfyUI wrapper nodes for IC-light [DEPRECATED]",
|
634 |
-
"reference": "https://github.com/kijai/ComfyUI-IC-Light-Wrapper",
|
635 |
-
"files": [
|
636 |
-
"https://github.com/kijai/ComfyUI-IC-Light-Wrapper"
|
637 |
-
],
|
638 |
-
"install_type": "git-clone",
|
639 |
-
"description": "Stopped. Original repo: [a/https://github.com/lllyasviel/IC-Light](https://github.com/lllyasviel/IC-Light)"
|
640 |
-
},
|
641 |
-
{
|
642 |
-
"author": "thedyze",
|
643 |
-
"title": "Save Image Extended for ComfyUI",
|
644 |
-
"reference": "https://github.com/thedyze/save-image-extended-comfyui",
|
645 |
-
"files": [
|
646 |
-
"https://github.com/thedyze/save-image-extended-comfyui"
|
647 |
-
],
|
648 |
-
"install_type": "git-clone",
|
649 |
-
"description": "Customize the information saved in file- and folder names. Use the values of sampler parameters as part of file or folder names. Save your positive & negative prompt as entries in a JSON (text) file, in each folder.\n[w/This custom node has not been maintained for a long time. Please use an alternative node from the default channel.]"
|
650 |
-
},
|
651 |
-
{
|
652 |
-
"author": "ExponentialML",
|
653 |
-
"title": "ComfyUI_ELLA [DEPRECATED]",
|
654 |
-
"reference": "https://github.com/ExponentialML/ComfyUI_ELLA",
|
655 |
-
"files": [
|
656 |
-
"https://github.com/ExponentialML/ComfyUI_ELLA"
|
657 |
-
],
|
658 |
-
"install_type": "git-clone",
|
659 |
-
"description": "ComfyUI Implementaion of ELLA: Equip Diffusion Models with LLM for Enhanced Semantic Alignment.[w/Officially implemented here: [a/https://github.com/TencentQQGYLab/ComfyUI-ELLA](https://github.com/TencentQQGYLab/ComfyUI-ELLA)]"
|
660 |
-
},
|
661 |
-
{
|
662 |
-
"author": "shinich39",
|
663 |
-
"title": "comfyui-text-pipe-39 [DEPRECATED]",
|
664 |
-
"reference": "https://github.com/shinich39/comfyui-text-pipe-39",
|
665 |
-
"files": [
|
666 |
-
"https://github.com/shinich39/comfyui-text-pipe-39"
|
667 |
-
],
|
668 |
-
"install_type": "git-clone",
|
669 |
-
"description": "Modify text by condition."
|
670 |
-
},
|
671 |
-
{
|
672 |
-
"author": "Big Idea Technology",
|
673 |
-
"title": "Image Text Overlay Node for ComfyUI [DEPRECATED]",
|
674 |
-
"reference": "https://github.com/Big-Idea-Technology/ComfyUI_Image_Text_Overlay",
|
675 |
-
"files": [
|
676 |
-
"https://github.com/Big-Idea-Technology/ComfyUI_Image_Text_Overlay"
|
677 |
-
],
|
678 |
-
"install_type": "git-clone",
|
679 |
-
"description": "Please note that the ImageTextOverlay project is no longer supported and has been moved to a new repository. For ongoing developments, contributions, and issues, please refer to the new repository at: [a/https://github.com/Big-Idea-Technology/ComfyUI-Book-Tools](https://github.com/Big-Idea-Technology/ComfyUI-Book-Tools)"
|
680 |
-
},
|
681 |
-
{
|
682 |
-
"author": "mlinmg",
|
683 |
-
"title": "LaMa Preprocessor [DEPRECATED]",
|
684 |
-
"reference": "https://github.com/mlinmg/ComfyUI-LaMA-Preprocessor",
|
685 |
-
"files": [
|
686 |
-
"https://github.com/mlinmg/ComfyUI-LaMA-Preprocessor"
|
687 |
-
],
|
688 |
-
"install_type": "git-clone",
|
689 |
-
"description": "A LaMa prerocessor for ComfyUI. This preprocessor finally enable users to generate coherent inpaint and outpaint prompt-free. The best results are given on landscapes, not so much in drawings/animation."
|
690 |
-
},
|
691 |
-
{
|
692 |
-
"author": "CapsAdmin",
|
693 |
-
"title": "ComfyUI-Euler-Smea-Dyn-Sampler [DEPRECATED]",
|
694 |
-
"reference": "https://github.com/CapsAdmin/ComfyUI-Euler-Smea-Dyn-Sampler",
|
695 |
-
"files": [
|
696 |
-
"https://github.com/CapsAdmin/ComfyUI-Euler-Smea-Dyn-Sampler"
|
697 |
-
],
|
698 |
-
"install_type": "git-clone",
|
699 |
-
"description": "Just a comfyui version of [a/Euler Smea Dyn Sampler](https://github.com/Koishi-Star/Euler-Smea-Dyn-Sampler). It adds the sampler directly to existing samplers."
|
700 |
-
},
|
701 |
-
{
|
702 |
-
"author": "BlakeOne",
|
703 |
-
"title": "ComfyUI FastImageListToImageBatch [REMOVED]",
|
704 |
-
"reference": "https://github.com/BlakeOne/ComfyUI-FastImageListToImageBatch",
|
705 |
-
"files": [
|
706 |
-
"https://github.com/BlakeOne/ComfyUI-FastImageListToImageBatch"
|
707 |
-
],
|
708 |
-
"install_type": "git-clone",
|
709 |
-
"description": "Quickly convert a list of images to a batch of images. All images must be the same size. Great for long videos."
|
710 |
-
},
|
711 |
-
{
|
712 |
-
"author": "ggpid",
|
713 |
-
"title": "idpark_custom_node [REMOVED]",
|
714 |
-
"reference": "https://github.com/ggpid/idpark_custom_node",
|
715 |
-
"files": [
|
716 |
-
"https://github.com/ggpid/idpark_custom_node"
|
717 |
-
],
|
718 |
-
"install_type": "git-clone",
|
719 |
-
"description": "Nodes:Load Image from S3, Save Image to S3, Generate SAM, Generate FastSAM, Cut by Mask fixed"
|
720 |
-
},
|
721 |
-
{
|
722 |
-
"author": "Davemane42",
|
723 |
-
"title": "Visual Area Conditioning / Latent composition [DEPRECATED]",
|
724 |
-
"reference": "https://github.com/Davemane42/ComfyUI_Dave_CustomNode",
|
725 |
-
"files": [
|
726 |
-
"https://github.com/Davemane42/ComfyUI_Dave_CustomNode"
|
727 |
-
],
|
728 |
-
"install_type": "git-clone",
|
729 |
-
"description": "This tool provides custom nodes that allow visualization and configuration of area conditioning and latent composite."
|
730 |
-
},
|
731 |
-
{
|
732 |
-
"author": "laksjdjf",
|
733 |
-
"title": "LoRA-Merger-ComfyUI [DEPRECATED]",
|
734 |
-
"reference": "https://github.com/laksjdjf/LoRA-Merger-ComfyUI",
|
735 |
-
"files": [
|
736 |
-
"https://github.com/laksjdjf/LoRA-Merger-ComfyUI"
|
737 |
-
],
|
738 |
-
"install_type": "git-clone",
|
739 |
-
"description": "Nodes:Load LoRA Weight Only, Load LoRA from Weight, Merge LoRA, Save LoRA. This extension provides nodes for merging LoRA."
|
740 |
-
},
|
741 |
-
{
|
742 |
-
"author": "kinfolk0117",
|
743 |
-
"title": "TiledIPAdapter [DEPRECATED]",
|
744 |
-
"reference": "https://github.com/kinfolk0117/ComfyUI_TiledIPAdapter",
|
745 |
-
"files": [
|
746 |
-
"https://github.com/kinfolk0117/ComfyUI_TiledIPAdapter"
|
747 |
-
],
|
748 |
-
"install_type": "git-clone",
|
749 |
-
"description": "Proof of concent on how to use IPAdapter to control tiled upscaling. NOTE: You need to have 'ComfyUI_IPAdapter_plus' installed."
|
750 |
-
},
|
751 |
-
{
|
752 |
-
"author": "XINZHANG-ops",
|
753 |
-
"title": "comfyui-xin-nodes [REMOVED]",
|
754 |
-
"reference": "https://github.com/XINZHANG-ops/comfyui-xin-nodes",
|
755 |
-
"files": [
|
756 |
-
"https://github.com/XINZHANG-ops/comfyui-xin-nodes"
|
757 |
-
],
|
758 |
-
"install_type": "git-clone",
|
759 |
-
"description": "Nodes:ImageSizeClassifer, RandomInt, ShowValue"
|
760 |
-
},
|
761 |
-
{
|
762 |
-
"author": "ssitu",
|
763 |
-
"title": "NestedNodeBuilder [DEPRECATED]",
|
764 |
-
"reference": "https://github.com/ssitu/ComfyUI_NestedNodeBuilder",
|
765 |
-
"files": [
|
766 |
-
"https://github.com/ssitu/ComfyUI_NestedNodeBuilder"
|
767 |
-
],
|
768 |
-
"install_type": "git-clone",
|
769 |
-
"description": "This extension provides the ability to combine multiple nodes into a single node.\nNOTE:An identical feature now exists in ComfyUI. Additionally, this extension is largely broken with the recent versions of the codebase, so please use the built-in feature for group nodes."
|
770 |
-
},
|
771 |
-
{
|
772 |
-
"author": "ccvv804",
|
773 |
-
"title": "ComfyUI StableCascade using diffusers for Low VRAM [DEPRECATED]",
|
774 |
-
"reference": "https://github.com/ccvv804/ComfyUI-DiffusersStableCascade-LowVRAM",
|
775 |
-
"files": [
|
776 |
-
"https://github.com/ccvv804/ComfyUI-DiffusersStableCascade-LowVRAM"
|
777 |
-
],
|
778 |
-
"install_type": "git-clone",
|
779 |
-
"description": "Works with RTX 4070ti 12GB.\nSimple quick wrapper for [a/https://huggingface.co/stabilityai/stable-cascade](https://huggingface.co/stabilityai/stable-cascade)\nComfy is going to implement this properly soon, this repo is just for quick testing for the impatient!"
|
780 |
-
},
|
781 |
-
{
|
782 |
-
"author": "kijai",
|
783 |
-
"title": "ComfyUI StableCascade using diffusers [DEPRECATED]",
|
784 |
-
"reference": "https://github.com/kijai/ComfyUI-DiffusersStableCascade",
|
785 |
-
"files": [
|
786 |
-
"https://github.com/kijai/ComfyUI-DiffusersStableCascade"
|
787 |
-
],
|
788 |
-
"install_type": "git-clone",
|
789 |
-
"description": "Simple quick wrapper for [a/https://huggingface.co/stabilityai/stable-cascade](https://huggingface.co/stabilityai/stable-cascade)\nComfy is going to implement this properly soon, this repo is just for quick testing for the impatient!"
|
790 |
-
},
|
791 |
-
{
|
792 |
-
"author": "solarpush",
|
793 |
-
"title": "comfyui_sendimage_node [REMOVED]",
|
794 |
-
"reference": "https://github.com/solarpush/comfyui_sendimage_node",
|
795 |
-
"files": [
|
796 |
-
"https://github.com/solarpush/comfyui_sendimage_node"
|
797 |
-
],
|
798 |
-
"install_type": "git-clone",
|
799 |
-
"description": "Send images to the pod."
|
800 |
-
},
|
801 |
-
{
|
802 |
-
"author": "azazeal04",
|
803 |
-
"title": "ComfyUI-Styles",
|
804 |
-
"reference": "https://github.com/azazeal04/ComfyUI-Styles",
|
805 |
-
"files": [
|
806 |
-
"https://github.com/azazeal04/ComfyUI-Styles"
|
807 |
-
],
|
808 |
-
"install_type": "git-clone",
|
809 |
-
"description": "Nodes:Anime_Styler, Fantasy_Styler, Gothic_Styler, Line_Art_Styler, Movie_Poster_Styler, Punk_Styler, Travel_Poster_Styler. This extension offers 8 art style nodes, each of which includes approximately 50 individual style variations.\n\nNOTE: Due to the dynamic nature of node name definitions, ComfyUI-Manager cannot recognize the node list from this extension. The Missing nodes and Badge features are not available for this extension.\nNOTE: This extension is removed. Users who were previously using this node should install ComfyUI-styles-all instead."
|
810 |
-
},
|
811 |
-
{
|
812 |
-
"author": "hnmr293",
|
813 |
-
"title": "ComfyUI-nodes-hnmr",
|
814 |
-
"reference": "https://github.com/hnmr293/ComfyUI-nodes-hnmr",
|
815 |
-
"files": [
|
816 |
-
"https://github.com/hnmr293/ComfyUI-nodes-hnmr"
|
817 |
-
],
|
818 |
-
"install_type": "git-clone",
|
819 |
-
"description": "Provide various custom nodes for Latent, Sampling, Model, Loader, Image, Text"
|
820 |
-
},
|
821 |
-
{
|
822 |
-
"author": "bvhari",
|
823 |
-
"title": "ComfyUI_PerpNeg [WIP]",
|
824 |
-
"reference": "https://github.com/bvhari/ComfyUI_PerpNeg",
|
825 |
-
"files": [
|
826 |
-
"https://github.com/bvhari/ComfyUI_PerpNeg"
|
827 |
-
],
|
828 |
-
"install_type": "git-clone",
|
829 |
-
"description": "Nodes: KSampler (Advanced + Perp-Neg). Implementation of [a/Perp-Neg](https://perp-neg.github.io/)\nIncludes Tonemap and CFG Rescale optionsComfyUI custom node to convert latent to RGB.[w/WARNING: Experimental code, might have incompatibilities and edge cases.]\nNOTE: In the latest version of ComfyUI, this extension is included as built-in."
|
830 |
-
},
|
831 |
-
{
|
832 |
-
"author": "laksjdjf",
|
833 |
-
"title": "IPAdapter-ComfyUI",
|
834 |
-
"reference": "https://github.com/laksjdjf/IPAdapter-ComfyUI",
|
835 |
-
"files": [
|
836 |
-
"https://github.com/laksjdjf/IPAdapter-ComfyUI"
|
837 |
-
],
|
838 |
-
"install_type": "git-clone",
|
839 |
-
"description": "This custom nodes provides loader of the IP-Adapter model.[w/NOTE: To use this extension node, you need to download the [a/ip-adapter_sd15.bin](https://huggingface.co/h94/IP-Adapter/resolve/main/models/ip-adapter_sd15.bin) file and place it in the %%**custom_nodes/IPAdapter-ComfyUI/models**%% directory. Additionally, you need to download the 'Clip vision model' from the 'Install models' menu as well.]\nNOTE: Use ComfyUI_IPAdapter_plus instead of this."
|
840 |
-
},
|
841 |
-
{
|
842 |
-
"author": "RockOfFire",
|
843 |
-
"title": "CR Animation Nodes",
|
844 |
-
"reference": "https://github.com/RockOfFire/CR_Animation_Nodes",
|
845 |
-
"files": [
|
846 |
-
"https://github.com/RockOfFire/CR_Animation_Nodes"
|
847 |
-
],
|
848 |
-
"install_type": "git-clone",
|
849 |
-
"description": "A comprehensive suite of nodes to enhance your animations. These nodes include some features similar to Deforum, and also some new ideas.<BR>NOTE: This node is merged into Comfyroll Custom Nodes."
|
850 |
-
},
|
851 |
-
{
|
852 |
-
"author": "tkoenig89",
|
853 |
-
"title": "Load Image with metadata",
|
854 |
-
"reference": "https://github.com/tkoenig89/ComfyUI_Load_Image_With_Metadata",
|
855 |
-
"files": [
|
856 |
-
"https://github.com/tkoenig89/ComfyUI_Load_Image_With_Metadata"
|
857 |
-
],
|
858 |
-
"install_type": "git-clone",
|
859 |
-
"description": "A custom node for comfy ui to read generation data from images (prompt, seed, size...). This could be used when upscaling generated images to use the original prompt and seed."
|
860 |
-
},
|
861 |
-
{
|
862 |
-
"author": "LucianoCirino",
|
863 |
-
"title": "Efficiency Nodes for ComfyUI [LEGACY]",
|
864 |
-
"reference": "https://github.com/LucianoCirino/efficiency-nodes-comfyui",
|
865 |
-
"files": [
|
866 |
-
"https://github.com/LucianoCirino/efficiency-nodes-comfyui"
|
867 |
-
],
|
868 |
-
"install_type": "git-clone",
|
869 |
-
"description": "A collection of ComfyUI custom nodes to help streamline workflows and reduce total node count.<BR>NOTE: This repository is the original repository but is no longer maintained. Please use the forked version by jags."
|
870 |
-
},
|
871 |
-
{
|
872 |
-
"author": "GeLi1989",
|
873 |
-
"title": "roop nodes for ComfyUI",
|
874 |
-
"reference": "https://github.com/GeLi1989/GK-beifen-ComfyUI_roop",
|
875 |
-
"files": [
|
876 |
-
"https://github.com/GeLi1989/GK-beifen-ComfyUI_roop"
|
877 |
-
],
|
878 |
-
"install_type": "git-clone",
|
879 |
-
"description": "ComfyUI nodes for the roop A1111 webui script. NOTE: Need to download <a href='https://github.com/SumDeusVitae/FaceSwap_v01/raw/main/inswapper_128.onnx' target='blank'/>model</a> to use this node. NOTE: This is removed."
|
880 |
-
},
|
881 |
-
{
|
882 |
-
"author": "ProDALOR",
|
883 |
-
"title": "comfyui_u2net",
|
884 |
-
"reference": "https://github.com/ProDALOR/comfyui_u2net",
|
885 |
-
"files": [
|
886 |
-
"https://github.com/ProDALOR/comfyui_u2net"
|
887 |
-
],
|
888 |
-
"install_type": "git-clone",
|
889 |
-
"description": "Nodes: Load U2Net model, U2Net segmentation, To mask, Segmentation to mask, U2NetBaseNormalization, U2NetMaxNormalization. NOTE: This is removed."
|
890 |
-
},
|
891 |
-
{
|
892 |
-
"author": "FizzleDorf",
|
893 |
-
"title": "AIT",
|
894 |
-
"reference": "https://github.com/FizzleDorf/AIT",
|
895 |
-
"files": [
|
896 |
-
"https://github.com/FizzleDorf/AIT"
|
897 |
-
],
|
898 |
-
"install_type": "git-clone",
|
899 |
-
"description": "Nodes: Load AITemplate, Load AITemplate (ControlNet), VAE Decode (AITemplate), VAE Encode (AITemplate), VAE Encode (AITemplate, Inpaint). Experimental usage of AITemplate. NOTE: This is deprecated extension. Use <b>ComfyUI-AIT</b> instead of this."
|
900 |
-
},
|
901 |
-
{
|
902 |
-
"author": "chenbaiyujason",
|
903 |
-
"title": "sc-node-comfyui",
|
904 |
-
"reference": "https://github.com/chenbaiyujason/sc-node-comfyui",
|
905 |
-
"files": [
|
906 |
-
"https://github.com/chenbaiyujason/sc-node-comfyui"
|
907 |
-
],
|
908 |
-
"install_type": "git-clone",
|
909 |
-
"description": "Nodes for GPT interaction and text manipulation"
|
910 |
-
},
|
911 |
-
{
|
912 |
-
"author": "asd417",
|
913 |
-
"title": "CheckpointTomeLoader",
|
914 |
-
"reference": "https://github.com/asd417/tomeSD_for_Comfy",
|
915 |
-
"files": [
|
916 |
-
"https://github.com/ltdrdata/ComfyUI-tomeSD-installer"
|
917 |
-
],
|
918 |
-
"install_type": "git-clone",
|
919 |
-
"description": "tomeSD(https://github.com/dbolya/tomesd) applied to ComfyUI stable diffusion UI using custom node. <B>Note:In vanilla ComfyUI, the TomePatchModel node is provided as a built-in feature.</B>"
|
920 |
-
},
|
921 |
-
{
|
922 |
-
"author": "gamert",
|
923 |
-
"title": "ComfyUI_tagger",
|
924 |
-
"reference": "https://github.com/gamert/ComfyUI_tagger",
|
925 |
-
"pip": ["gradio"],
|
926 |
-
"files": [
|
927 |
-
"https://github.com/gamert/ComfyUI_tagger"
|
928 |
-
],
|
929 |
-
"install_type": "git-clone",
|
930 |
-
"description": "Nodes: CLIPTextEncodeTaggerDD, ImageTaggerDD. <p style='background-color: black; color: red;'>WARNING: Installing the current version is causing an issue where ComfyUI fails to start.</p>"
|
931 |
-
},
|
932 |
-
{
|
933 |
-
"author": "Fannovel16",
|
934 |
-
"title": "ControlNet Preprocessors",
|
935 |
-
"reference": "https://github.com/Fannovel16/comfy_controlnet_preprocessors",
|
936 |
-
"files": [
|
937 |
-
"https://github.com/Fannovel16/comfy_controlnet_preprocessors"
|
938 |
-
],
|
939 |
-
"install_type": "git-clone",
|
940 |
-
"description": "ControlNet Preprocessors. (To use this extension, you need to download the required model file from <B>Install Models</B>)<BR> <p style='background-color: black; color: red;'>NOTE: Please uninstall this custom node and instead install 'ComfyUI's ControlNet Auxiliary Preprocessors' from the default channel.<BR>To use nodes belonging to <B>controlnet v1</b> such as <B>Canny_Edge_Preprocessor, MIDAS_Depth_Map_Preprocessor, Uniformer_SemSegPreprocessor, etc.</B>, you need to copy the <font color='white'>config.yaml.example</font> file to <font color='white'>config.yaml</font> and change <font color='white'>skip_v1: True</font> to <font color='white'>skip_v1: False</font>.</p>"
|
941 |
-
},
|
942 |
-
{
|
943 |
-
"author": "comfyanonymous",
|
944 |
-
"title": "ComfyUI_experiments/sampler_tonemap",
|
945 |
-
"reference": "https://github.com/comfyanonymous/ComfyUI_experiments",
|
946 |
-
"files": [
|
947 |
-
"https://github.com/comfyanonymous/ComfyUI_experiments/raw/master/sampler_tonemap.py"
|
948 |
-
],
|
949 |
-
"install_type": "copy",
|
950 |
-
"description": "ModelSamplerTonemapNoiseTest a node that makes the sampler use a simple tonemapping algorithm to tonemap the noise. It will let you use higher CFG without breaking the image. To using higher CFG lower the multiplier value. Similar to Dynamic Thresholding extension of A1111. "
|
951 |
-
},
|
952 |
-
{
|
953 |
-
"author": "comfyanonymous",
|
954 |
-
"title": "ComfyUI_experiments/sampler_rescalecfg",
|
955 |
-
"reference": "https://github.com/comfyanonymous/ComfyUI_experiments",
|
956 |
-
"files": [
|
957 |
-
"https://github.com/comfyanonymous/ComfyUI_experiments/raw/master/sampler_rescalecfg.py"
|
958 |
-
],
|
959 |
-
"install_type": "copy",
|
960 |
-
"description": "RescaleClassifierFreeGuidance improves the problem of images being degraded by high CFG.To using higher CFG lower the multiplier value. Similar to Dynamic Thresholding extension of A1111. (<a href='https://arxiv.org/abs/2305.08891'/>reference paper</a>)<p style='background-color: black; color: red;'>It is recommended to use the integrated custom nodes in the default channel for update support rather than installing individual nodes.</p>"
|
961 |
-
},
|
962 |
-
{
|
963 |
-
"author": "comfyanonymous",
|
964 |
-
"title": "ComfyUI_experiments/advanced_model_merging",
|
965 |
-
"reference": "https://github.com/comfyanonymous/ComfyUI_experiments",
|
966 |
-
"files": [
|
967 |
-
"https://github.com/comfyanonymous/ComfyUI_experiments/raw/master/advanced_model_merging.py"
|
968 |
-
],
|
969 |
-
"install_type": "copy",
|
970 |
-
"description": "This provides a detailed model merge feature based on block weight. ModelMergeBlock, in vanilla ComfyUI, allows for adjusting the ratios of input/middle/output layers, but this node provides ratio adjustments for all blocks within each layer.<p style='background-color: black; color: red;'>It is recommended to use the integrated custom nodes in the default channel for update support rather than installing individual nodes.</p>"
|
971 |
-
},
|
972 |
-
{
|
973 |
-
"author": "comfyanonymous",
|
974 |
-
"title": "ComfyUI_experiments/sdxl_model_merging",
|
975 |
-
"reference": "https://github.com/comfyanonymous/ComfyUI_experiments",
|
976 |
-
"files": [
|
977 |
-
"https://github.com/comfyanonymous/ComfyUI_experiments/raw/master/sdxl_model_merging.py"
|
978 |
-
],
|
979 |
-
"install_type": "copy",
|
980 |
-
"description": "These nodes provide the capability to merge SDXL base models.<p style='background-color: black; color: red;'>It is recommended to use the integrated custom nodes in the default channel for update support rather than installing individual nodes.</p>"
|
981 |
-
},
|
982 |
-
{
|
983 |
-
"author": "comfyanonymous",
|
984 |
-
"title": "ComfyUI_experiments/reference_only",
|
985 |
-
"reference": "https://github.com/comfyanonymous/ComfyUI_experiments",
|
986 |
-
"files": [
|
987 |
-
"https://github.com/comfyanonymous/ComfyUI_experiments/raw/master/reference_only.py"
|
988 |
-
],
|
989 |
-
"install_type": "copy",
|
990 |
-
"description": "This node provides functionality corresponding to Reference only in Controlnet.<p style='background-color: black; color: red;'>It is recommended to use the integrated custom nodes in the default channel for update support rather than installing individual nodes.</p>"
|
991 |
-
}
|
992 |
-
]
|
993 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ComfyUI/custom_nodes/manager-core/node_db/legacy/extension-node-map.json
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
{}
|
|
|
|
ComfyUI/custom_nodes/manager-core/node_db/legacy/model-list.json
DELETED
@@ -1,3 +0,0 @@
|
|
1 |
-
{
|
2 |
-
"models": []
|
3 |
-
}
|
|
|
|
|
|
|
|
ComfyUI/custom_nodes/manager-core/node_db/new/alter-list.json
DELETED
@@ -1,4 +0,0 @@
|
|
1 |
-
{
|
2 |
-
"items": [
|
3 |
-
]
|
4 |
-
}
|
|
|
|
|
|
|
|
|
|