Upload folder using huggingface_hub
Browse files- LICENSE +674 -0
- README.md +1 -1
- app.py +1 -5
- chain_injectors/anima_controlnet_lllite_injector.py +48 -0
- comfy_integration/setup.py +8 -0
- core/pipelines/sd_image_pipeline.py +40 -19
- core/pipelines/workflow_recipes/_partials/conditioning/anima.yaml +4 -0
- requirements.txt +6 -6
- ui/events.py +194 -17
- ui/layout.py +9 -6
- ui/shared/hires_fix_ui.py +2 -1
- ui/shared/img2img_ui.py +2 -1
- ui/shared/inpaint_ui.py +2 -1
- ui/shared/outpaint_ui.py +2 -1
- ui/shared/txt2img_ui.py +2 -1
- ui/shared/ui_components.py +68 -3
- utils/app_utils.py +0 -69
- yaml/anima_controlnet_lllite_models.yaml +13 -0
- yaml/file_list.yaml +136 -8
- yaml/image_gen_features.yaml +1 -0
- yaml/injectors.yaml +4 -1
- yaml/model_list.yaml +296 -3
LICENSE
ADDED
|
@@ -0,0 +1,674 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
GNU GENERAL PUBLIC LICENSE
|
| 2 |
+
Version 3, 29 June 2007
|
| 3 |
+
|
| 4 |
+
Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
|
| 5 |
+
Everyone is permitted to copy and distribute verbatim copies
|
| 6 |
+
of this license document, but changing it is not allowed.
|
| 7 |
+
|
| 8 |
+
Preamble
|
| 9 |
+
|
| 10 |
+
The GNU General Public License is a free, copyleft license for
|
| 11 |
+
software and other kinds of works.
|
| 12 |
+
|
| 13 |
+
The licenses for most software and other practical works are designed
|
| 14 |
+
to take away your freedom to share and change the works. By contrast,
|
| 15 |
+
the GNU General Public License is intended to guarantee your freedom to
|
| 16 |
+
share and change all versions of a program--to make sure it remains free
|
| 17 |
+
software for all its users. We, the Free Software Foundation, use the
|
| 18 |
+
GNU General Public License for most of our software; it applies also to
|
| 19 |
+
any other work released this way by its authors. You can apply it to
|
| 20 |
+
your programs, too.
|
| 21 |
+
|
| 22 |
+
When we speak of free software, we are referring to freedom, not
|
| 23 |
+
price. Our General Public Licenses are designed to make sure that you
|
| 24 |
+
have the freedom to distribute copies of free software (and charge for
|
| 25 |
+
them if you wish), that you receive source code or can get it if you
|
| 26 |
+
want it, that you can change the software or use pieces of it in new
|
| 27 |
+
free programs, and that you know you can do these things.
|
| 28 |
+
|
| 29 |
+
To protect your rights, we need to prevent others from denying you
|
| 30 |
+
these rights or asking you to surrender the rights. Therefore, you have
|
| 31 |
+
certain responsibilities if you distribute copies of the software, or if
|
| 32 |
+
you modify it: responsibilities to respect the freedom of others.
|
| 33 |
+
|
| 34 |
+
For example, if you distribute copies of such a program, whether
|
| 35 |
+
gratis or for a fee, you must pass on to the recipients the same
|
| 36 |
+
freedoms that you received. You must make sure that they, too, receive
|
| 37 |
+
or can get the source code. And you must show them these terms so they
|
| 38 |
+
know their rights.
|
| 39 |
+
|
| 40 |
+
Developers that use the GNU GPL protect your rights with two steps:
|
| 41 |
+
(1) assert copyright on the software, and (2) offer you this License
|
| 42 |
+
giving you legal permission to copy, distribute and/or modify it.
|
| 43 |
+
|
| 44 |
+
For the developers' and authors' protection, the GPL clearly explains
|
| 45 |
+
that there is no warranty for this free software. For both users' and
|
| 46 |
+
authors' sake, the GPL requires that modified versions be marked as
|
| 47 |
+
changed, so that their problems will not be attributed erroneously to
|
| 48 |
+
authors of previous versions.
|
| 49 |
+
|
| 50 |
+
Some devices are designed to deny users access to install or run
|
| 51 |
+
modified versions of the software inside them, although the manufacturer
|
| 52 |
+
can do so. This is fundamentally incompatible with the aim of
|
| 53 |
+
protecting users' freedom to change the software. The systematic
|
| 54 |
+
pattern of such abuse occurs in the area of products for individuals to
|
| 55 |
+
use, which is precisely where it is most unacceptable. Therefore, we
|
| 56 |
+
have designed this version of the GPL to prohibit the practice for those
|
| 57 |
+
products. If such problems arise substantially in other domains, we
|
| 58 |
+
stand ready to extend this provision to those domains in future versions
|
| 59 |
+
of the GPL, as needed to protect the freedom of users.
|
| 60 |
+
|
| 61 |
+
Finally, every program is threatened constantly by software patents.
|
| 62 |
+
States should not allow patents to restrict development and use of
|
| 63 |
+
software on general-purpose computers, but in those that do, we wish to
|
| 64 |
+
avoid the special danger that patents applied to a free program could
|
| 65 |
+
make it effectively proprietary. To prevent this, the GPL assures that
|
| 66 |
+
patents cannot be used to render the program non-free.
|
| 67 |
+
|
| 68 |
+
The precise terms and conditions for copying, distribution and
|
| 69 |
+
modification follow.
|
| 70 |
+
|
| 71 |
+
TERMS AND CONDITIONS
|
| 72 |
+
|
| 73 |
+
0. Definitions.
|
| 74 |
+
|
| 75 |
+
"This License" refers to version 3 of the GNU General Public License.
|
| 76 |
+
|
| 77 |
+
"Copyright" also means copyright-like laws that apply to other kinds of
|
| 78 |
+
works, such as semiconductor masks.
|
| 79 |
+
|
| 80 |
+
"The Program" refers to any copyrightable work licensed under this
|
| 81 |
+
License. Each licensee is addressed as "you". "Licensees" and
|
| 82 |
+
"recipients" may be individuals or organizations.
|
| 83 |
+
|
| 84 |
+
To "modify" a work means to copy from or adapt all or part of the work
|
| 85 |
+
in a fashion requiring copyright permission, other than the making of an
|
| 86 |
+
exact copy. The resulting work is called a "modified version" of the
|
| 87 |
+
earlier work or a work "based on" the earlier work.
|
| 88 |
+
|
| 89 |
+
A "covered work" means either the unmodified Program or a work based
|
| 90 |
+
on the Program.
|
| 91 |
+
|
| 92 |
+
To "propagate" a work means to do anything with it that, without
|
| 93 |
+
permission, would make you directly or secondarily liable for
|
| 94 |
+
infringement under applicable copyright law, except executing it on a
|
| 95 |
+
computer or modifying a private copy. Propagation includes copying,
|
| 96 |
+
distribution (with or without modification), making available to the
|
| 97 |
+
public, and in some countries other activities as well.
|
| 98 |
+
|
| 99 |
+
To "convey" a work means any kind of propagation that enables other
|
| 100 |
+
parties to make or receive copies. Mere interaction with a user through
|
| 101 |
+
a computer network, with no transfer of a copy, is not conveying.
|
| 102 |
+
|
| 103 |
+
An interactive user interface displays "Appropriate Legal Notices"
|
| 104 |
+
to the extent that it includes a convenient and prominently visible
|
| 105 |
+
feature that (1) displays an appropriate copyright notice, and (2)
|
| 106 |
+
tells the user that there is no warranty for the work (except to the
|
| 107 |
+
extent that warranties are provided), that licensees may convey the
|
| 108 |
+
work under this License, and how to view a copy of this License. If
|
| 109 |
+
the interface presents a list of user commands or options, such as a
|
| 110 |
+
menu, a prominent item in the list meets this criterion.
|
| 111 |
+
|
| 112 |
+
1. Source Code.
|
| 113 |
+
|
| 114 |
+
The "source code" for a work means the preferred form of the work
|
| 115 |
+
for making modifications to it. "Object code" means any non-source
|
| 116 |
+
form of a work.
|
| 117 |
+
|
| 118 |
+
A "Standard Interface" means an interface that either is an official
|
| 119 |
+
standard defined by a recognized standards body, or, in the case of
|
| 120 |
+
interfaces specified for a particular programming language, one that
|
| 121 |
+
is widely used among developers working in that language.
|
| 122 |
+
|
| 123 |
+
The "System Libraries" of an executable work include anything, other
|
| 124 |
+
than the work as a whole, that (a) is included in the normal form of
|
| 125 |
+
packaging a Major Component, but which is not part of that Major
|
| 126 |
+
Component, and (b) serves only to enable use of the work with that
|
| 127 |
+
Major Component, or to implement a Standard Interface for which an
|
| 128 |
+
implementation is available to the public in source code form. A
|
| 129 |
+
"Major Component", in this context, means a major essential component
|
| 130 |
+
(kernel, window system, and so on) of the specific operating system
|
| 131 |
+
(if any) on which the executable work runs, or a compiler used to
|
| 132 |
+
produce the work, or an object code interpreter used to run it.
|
| 133 |
+
|
| 134 |
+
The "Corresponding Source" for a work in object code form means all
|
| 135 |
+
the source code needed to generate, install, and (for an executable
|
| 136 |
+
work) run the object code and to modify the work, including scripts to
|
| 137 |
+
control those activities. However, it does not include the work's
|
| 138 |
+
System Libraries, or general-purpose tools or generally available free
|
| 139 |
+
programs which are used unmodified in performing those activities but
|
| 140 |
+
which are not part of the work. For example, Corresponding Source
|
| 141 |
+
includes interface definition files associated with source files for
|
| 142 |
+
the work, and the source code for shared libraries and dynamically
|
| 143 |
+
linked subprograms that the work is specifically designed to require,
|
| 144 |
+
such as by intimate data communication or control flow between those
|
| 145 |
+
subprograms and other parts of the work.
|
| 146 |
+
|
| 147 |
+
The Corresponding Source need not include anything that users
|
| 148 |
+
can regenerate automatically from other parts of the Corresponding
|
| 149 |
+
Source.
|
| 150 |
+
|
| 151 |
+
The Corresponding Source for a work in source code form is that
|
| 152 |
+
same work.
|
| 153 |
+
|
| 154 |
+
2. Basic Permissions.
|
| 155 |
+
|
| 156 |
+
All rights granted under this License are granted for the term of
|
| 157 |
+
copyright on the Program, and are irrevocable provided the stated
|
| 158 |
+
conditions are met. This License explicitly affirms your unlimited
|
| 159 |
+
permission to run the unmodified Program. The output from running a
|
| 160 |
+
covered work is covered by this License only if the output, given its
|
| 161 |
+
content, constitutes a covered work. This License acknowledges your
|
| 162 |
+
rights of fair use or other equivalent, as provided by copyright law.
|
| 163 |
+
|
| 164 |
+
You may make, run and propagate covered works that you do not
|
| 165 |
+
convey, without conditions so long as your license otherwise remains
|
| 166 |
+
in force. You may convey covered works to others for the sole purpose
|
| 167 |
+
of having them make modifications exclusively for you, or provide you
|
| 168 |
+
with facilities for running those works, provided that you comply with
|
| 169 |
+
the terms of this License in conveying all material for which you do
|
| 170 |
+
not control copyright. Those thus making or running the covered works
|
| 171 |
+
for you must do so exclusively on your behalf, under your direction
|
| 172 |
+
and control, on terms that prohibit them from making any copies of
|
| 173 |
+
your copyrighted material outside their relationship with you.
|
| 174 |
+
|
| 175 |
+
Conveying under any other circumstances is permitted solely under
|
| 176 |
+
the conditions stated below. Sublicensing is not allowed; section 10
|
| 177 |
+
makes it unnecessary.
|
| 178 |
+
|
| 179 |
+
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
|
| 180 |
+
|
| 181 |
+
No covered work shall be deemed part of an effective technological
|
| 182 |
+
measure under any applicable law fulfilling obligations under article
|
| 183 |
+
11 of the WIPO copyright treaty adopted on 20 December 1996, or
|
| 184 |
+
similar laws prohibiting or restricting circumvention of such
|
| 185 |
+
measures.
|
| 186 |
+
|
| 187 |
+
When you convey a covered work, you waive any legal power to forbid
|
| 188 |
+
circumvention of technological measures to the extent such circumvention
|
| 189 |
+
is effected by exercising rights under this License with respect to
|
| 190 |
+
the covered work, and you disclaim any intention to limit operation or
|
| 191 |
+
modification of the work as a means of enforcing, against the work's
|
| 192 |
+
users, your or third parties' legal rights to forbid circumvention of
|
| 193 |
+
technological measures.
|
| 194 |
+
|
| 195 |
+
4. Conveying Verbatim Copies.
|
| 196 |
+
|
| 197 |
+
You may convey verbatim copies of the Program's source code as you
|
| 198 |
+
receive it, in any medium, provided that you conspicuously and
|
| 199 |
+
appropriately publish on each copy an appropriate copyright notice;
|
| 200 |
+
keep intact all notices stating that this License and any
|
| 201 |
+
non-permissive terms added in accord with section 7 apply to the code;
|
| 202 |
+
keep intact all notices of the absence of any warranty; and give all
|
| 203 |
+
recipients a copy of this License along with the Program.
|
| 204 |
+
|
| 205 |
+
You may charge any price or no price for each copy that you convey,
|
| 206 |
+
and you may offer support or warranty protection for a fee.
|
| 207 |
+
|
| 208 |
+
5. Conveying Modified Source Versions.
|
| 209 |
+
|
| 210 |
+
You may convey a work based on the Program, or the modifications to
|
| 211 |
+
produce it from the Program, in the form of source code under the
|
| 212 |
+
terms of section 4, provided that you also meet all of these conditions:
|
| 213 |
+
|
| 214 |
+
a) The work must carry prominent notices stating that you modified
|
| 215 |
+
it, and giving a relevant date.
|
| 216 |
+
|
| 217 |
+
b) The work must carry prominent notices stating that it is
|
| 218 |
+
released under this License and any conditions added under section
|
| 219 |
+
7. This requirement modifies the requirement in section 4 to
|
| 220 |
+
"keep intact all notices".
|
| 221 |
+
|
| 222 |
+
c) You must license the entire work, as a whole, under this
|
| 223 |
+
License to anyone who comes into possession of a copy. This
|
| 224 |
+
License will therefore apply, along with any applicable section 7
|
| 225 |
+
additional terms, to the whole of the work, and all its parts,
|
| 226 |
+
regardless of how they are packaged. This License gives no
|
| 227 |
+
permission to license the work in any other way, but it does not
|
| 228 |
+
invalidate such permission if you have separately received it.
|
| 229 |
+
|
| 230 |
+
d) If the work has interactive user interfaces, each must display
|
| 231 |
+
Appropriate Legal Notices; however, if the Program has interactive
|
| 232 |
+
interfaces that do not display Appropriate Legal Notices, your
|
| 233 |
+
work need not make them do so.
|
| 234 |
+
|
| 235 |
+
A compilation of a covered work with other separate and independent
|
| 236 |
+
works, which are not by their nature extensions of the covered work,
|
| 237 |
+
and which are not combined with it such as to form a larger program,
|
| 238 |
+
in or on a volume of a storage or distribution medium, is called an
|
| 239 |
+
"aggregate" if the compilation and its resulting copyright are not
|
| 240 |
+
used to limit the access or legal rights of the compilation's users
|
| 241 |
+
beyond what the individual works permit. Inclusion of a covered work
|
| 242 |
+
in an aggregate does not cause this License to apply to the other
|
| 243 |
+
parts of the aggregate.
|
| 244 |
+
|
| 245 |
+
6. Conveying Non-Source Forms.
|
| 246 |
+
|
| 247 |
+
You may convey a covered work in object code form under the terms
|
| 248 |
+
of sections 4 and 5, provided that you also convey the
|
| 249 |
+
machine-readable Corresponding Source under the terms of this License,
|
| 250 |
+
in one of these ways:
|
| 251 |
+
|
| 252 |
+
a) Convey the object code in, or embodied in, a physical product
|
| 253 |
+
(including a physical distribution medium), accompanied by the
|
| 254 |
+
Corresponding Source fixed on a durable physical medium
|
| 255 |
+
customarily used for software interchange.
|
| 256 |
+
|
| 257 |
+
b) Convey the object code in, or embodied in, a physical product
|
| 258 |
+
(including a physical distribution medium), accompanied by a
|
| 259 |
+
written offer, valid for at least three years and valid for as
|
| 260 |
+
long as you offer spare parts or customer support for that product
|
| 261 |
+
model, to give anyone who possesses the object code either (1) a
|
| 262 |
+
copy of the Corresponding Source for all the software in the
|
| 263 |
+
product that is covered by this License, on a durable physical
|
| 264 |
+
medium customarily used for software interchange, for a price no
|
| 265 |
+
more than your reasonable cost of physically performing this
|
| 266 |
+
conveying of source, or (2) access to copy the
|
| 267 |
+
Corresponding Source from a network server at no charge.
|
| 268 |
+
|
| 269 |
+
c) Convey individual copies of the object code with a copy of the
|
| 270 |
+
written offer to provide the Corresponding Source. This
|
| 271 |
+
alternative is allowed only occasionally and noncommercially, and
|
| 272 |
+
only if you received the object code with such an offer, in accord
|
| 273 |
+
with subsection 6b.
|
| 274 |
+
|
| 275 |
+
d) Convey the object code by offering access from a designated
|
| 276 |
+
place (gratis or for a charge), and offer equivalent access to the
|
| 277 |
+
Corresponding Source in the same way through the same place at no
|
| 278 |
+
further charge. You need not require recipients to copy the
|
| 279 |
+
Corresponding Source along with the object code. If the place to
|
| 280 |
+
copy the object code is a network server, the Corresponding Source
|
| 281 |
+
may be on a different server (operated by you or a third party)
|
| 282 |
+
that supports equivalent copying facilities, provided you maintain
|
| 283 |
+
clear directions next to the object code saying where to find the
|
| 284 |
+
Corresponding Source. Regardless of what server hosts the
|
| 285 |
+
Corresponding Source, you remain obligated to ensure that it is
|
| 286 |
+
available for as long as needed to satisfy these requirements.
|
| 287 |
+
|
| 288 |
+
e) Convey the object code using peer-to-peer transmission, provided
|
| 289 |
+
you inform other peers where the object code and Corresponding
|
| 290 |
+
Source of the work are being offered to the general public at no
|
| 291 |
+
charge under subsection 6d.
|
| 292 |
+
|
| 293 |
+
A separable portion of the object code, whose source code is excluded
|
| 294 |
+
from the Corresponding Source as a System Library, need not be
|
| 295 |
+
included in conveying the object code work.
|
| 296 |
+
|
| 297 |
+
A "User Product" is either (1) a "consumer product", which means any
|
| 298 |
+
tangible personal property which is normally used for personal, family,
|
| 299 |
+
or household purposes, or (2) anything designed or sold for incorporation
|
| 300 |
+
into a dwelling. In determining whether a product is a consumer product,
|
| 301 |
+
doubtful cases shall be resolved in favor of coverage. For a particular
|
| 302 |
+
product received by a particular user, "normally used" refers to a
|
| 303 |
+
typical or common use of that class of product, regardless of the status
|
| 304 |
+
of the particular user or of the way in which the particular user
|
| 305 |
+
actually uses, or expects or is expected to use, the product. A product
|
| 306 |
+
is a consumer product regardless of whether the product has substantial
|
| 307 |
+
commercial, industrial or non-consumer uses, unless such uses represent
|
| 308 |
+
the only significant mode of use of the product.
|
| 309 |
+
|
| 310 |
+
"Installation Information" for a User Product means any methods,
|
| 311 |
+
procedures, authorization keys, or other information required to install
|
| 312 |
+
and execute modified versions of a covered work in that User Product from
|
| 313 |
+
a modified version of its Corresponding Source. The information must
|
| 314 |
+
suffice to ensure that the continued functioning of the modified object
|
| 315 |
+
code is in no case prevented or interfered with solely because
|
| 316 |
+
modification has been made.
|
| 317 |
+
|
| 318 |
+
If you convey an object code work under this section in, or with, or
|
| 319 |
+
specifically for use in, a User Product, and the conveying occurs as
|
| 320 |
+
part of a transaction in which the right of possession and use of the
|
| 321 |
+
User Product is transferred to the recipient in perpetuity or for a
|
| 322 |
+
fixed term (regardless of how the transaction is characterized), the
|
| 323 |
+
Corresponding Source conveyed under this section must be accompanied
|
| 324 |
+
by the Installation Information. But this requirement does not apply
|
| 325 |
+
if neither you nor any third party retains the ability to install
|
| 326 |
+
modified object code on the User Product (for example, the work has
|
| 327 |
+
been installed in ROM).
|
| 328 |
+
|
| 329 |
+
The requirement to provide Installation Information does not include a
|
| 330 |
+
requirement to continue to provide support service, warranty, or updates
|
| 331 |
+
for a work that has been modified or installed by the recipient, or for
|
| 332 |
+
the User Product in which it has been modified or installed. Access to a
|
| 333 |
+
network may be denied when the modification itself materially and
|
| 334 |
+
adversely affects the operation of the network or violates the rules and
|
| 335 |
+
protocols for communication across the network.
|
| 336 |
+
|
| 337 |
+
Corresponding Source conveyed, and Installation Information provided,
|
| 338 |
+
in accord with this section must be in a format that is publicly
|
| 339 |
+
documented (and with an implementation available to the public in
|
| 340 |
+
source code form), and must require no special password or key for
|
| 341 |
+
unpacking, reading or copying.
|
| 342 |
+
|
| 343 |
+
7. Additional Terms.
|
| 344 |
+
|
| 345 |
+
"Additional permissions" are terms that supplement the terms of this
|
| 346 |
+
License by making exceptions from one or more of its conditions.
|
| 347 |
+
Additional permissions that are applicable to the entire Program shall
|
| 348 |
+
be treated as though they were included in this License, to the extent
|
| 349 |
+
that they are valid under applicable law. If additional permissions
|
| 350 |
+
apply only to part of the Program, that part may be used separately
|
| 351 |
+
under those permissions, but the entire Program remains governed by
|
| 352 |
+
this License without regard to the additional permissions.
|
| 353 |
+
|
| 354 |
+
When you convey a copy of a covered work, you may at your option
|
| 355 |
+
remove any additional permissions from that copy, or from any part of
|
| 356 |
+
it. (Additional permissions may be written to require their own
|
| 357 |
+
removal in certain cases when you modify the work.) You may place
|
| 358 |
+
additional permissions on material, added by you to a covered work,
|
| 359 |
+
for which you have or can give appropriate copyright permission.
|
| 360 |
+
|
| 361 |
+
Notwithstanding any other provision of this License, for material you
|
| 362 |
+
add to a covered work, you may (if authorized by the copyright holders of
|
| 363 |
+
that material) supplement the terms of this License with terms:
|
| 364 |
+
|
| 365 |
+
a) Disclaiming warranty or limiting liability differently from the
|
| 366 |
+
terms of sections 15 and 16 of this License; or
|
| 367 |
+
|
| 368 |
+
b) Requiring preservation of specified reasonable legal notices or
|
| 369 |
+
author attributions in that material or in the Appropriate Legal
|
| 370 |
+
Notices displayed by works containing it; or
|
| 371 |
+
|
| 372 |
+
c) Prohibiting misrepresentation of the origin of that material, or
|
| 373 |
+
requiring that modified versions of such material be marked in
|
| 374 |
+
reasonable ways as different from the original version; or
|
| 375 |
+
|
| 376 |
+
d) Limiting the use for publicity purposes of names of licensors or
|
| 377 |
+
authors of the material; or
|
| 378 |
+
|
| 379 |
+
e) Declining to grant rights under trademark law for use of some
|
| 380 |
+
trade names, trademarks, or service marks; or
|
| 381 |
+
|
| 382 |
+
f) Requiring indemnification of licensors and authors of that
|
| 383 |
+
material by anyone who conveys the material (or modified versions of
|
| 384 |
+
it) with contractual assumptions of liability to the recipient, for
|
| 385 |
+
any liability that these contractual assumptions directly impose on
|
| 386 |
+
those licensors and authors.
|
| 387 |
+
|
| 388 |
+
All other non-permissive additional terms are considered "further
|
| 389 |
+
restrictions" within the meaning of section 10. If the Program as you
|
| 390 |
+
received it, or any part of it, contains a notice stating that it is
|
| 391 |
+
governed by this License along with a term that is a further
|
| 392 |
+
restriction, you may remove that term. If a license document contains
|
| 393 |
+
a further restriction but permits relicensing or conveying under this
|
| 394 |
+
License, you may add to a covered work material governed by the terms
|
| 395 |
+
of that license document, provided that the further restriction does
|
| 396 |
+
not survive such relicensing or conveying.
|
| 397 |
+
|
| 398 |
+
If you add terms to a covered work in accord with this section, you
|
| 399 |
+
must place, in the relevant source files, a statement of the
|
| 400 |
+
additional terms that apply to those files, or a notice indicating
|
| 401 |
+
where to find the applicable terms.
|
| 402 |
+
|
| 403 |
+
Additional terms, permissive or non-permissive, may be stated in the
|
| 404 |
+
form of a separately written license, or stated as exceptions;
|
| 405 |
+
the above requirements apply either way.
|
| 406 |
+
|
| 407 |
+
8. Termination.
|
| 408 |
+
|
| 409 |
+
You may not propagate or modify a covered work except as expressly
|
| 410 |
+
provided under this License. Any attempt otherwise to propagate or
|
| 411 |
+
modify it is void, and will automatically terminate your rights under
|
| 412 |
+
this License (including any patent licenses granted under the third
|
| 413 |
+
paragraph of section 11).
|
| 414 |
+
|
| 415 |
+
However, if you cease all violation of this License, then your
|
| 416 |
+
license from a particular copyright holder is reinstated (a)
|
| 417 |
+
provisionally, unless and until the copyright holder explicitly and
|
| 418 |
+
finally terminates your license, and (b) permanently, if the copyright
|
| 419 |
+
holder fails to notify you of the violation by some reasonable means
|
| 420 |
+
prior to 60 days after the cessation.
|
| 421 |
+
|
| 422 |
+
Moreover, your license from a particular copyright holder is
|
| 423 |
+
reinstated permanently if the copyright holder notifies you of the
|
| 424 |
+
violation by some reasonable means, this is the first time you have
|
| 425 |
+
received notice of violation of this License (for any work) from that
|
| 426 |
+
copyright holder, and you cure the violation prior to 30 days after
|
| 427 |
+
your receipt of the notice.
|
| 428 |
+
|
| 429 |
+
Termination of your rights under this section does not terminate the
|
| 430 |
+
licenses of parties who have received copies or rights from you under
|
| 431 |
+
this License. If your rights have been terminated and not permanently
|
| 432 |
+
reinstated, you do not qualify to receive new licenses for the same
|
| 433 |
+
material under section 10.
|
| 434 |
+
|
| 435 |
+
9. Acceptance Not Required for Having Copies.
|
| 436 |
+
|
| 437 |
+
You are not required to accept this License in order to receive or
|
| 438 |
+
run a copy of the Program. Ancillary propagation of a covered work
|
| 439 |
+
occurring solely as a consequence of using peer-to-peer transmission
|
| 440 |
+
to receive a copy likewise does not require acceptance. However,
|
| 441 |
+
nothing other than this License grants you permission to propagate or
|
| 442 |
+
modify any covered work. These actions infringe copyright if you do
|
| 443 |
+
not accept this License. Therefore, by modifying or propagating a
|
| 444 |
+
covered work, you indicate your acceptance of this License to do so.
|
| 445 |
+
|
| 446 |
+
10. Automatic Licensing of Downstream Recipients.
|
| 447 |
+
|
| 448 |
+
Each time you convey a covered work, the recipient automatically
|
| 449 |
+
receives a license from the original licensors, to run, modify and
|
| 450 |
+
propagate that work, subject to this License. You are not responsible
|
| 451 |
+
for enforcing compliance by third parties with this License.
|
| 452 |
+
|
| 453 |
+
An "entity transaction" is a transaction transferring control of an
|
| 454 |
+
organization, or substantially all assets of one, or subdividing an
|
| 455 |
+
organization, or merging organizations. If propagation of a covered
|
| 456 |
+
work results from an entity transaction, each party to that
|
| 457 |
+
transaction who receives a copy of the work also receives whatever
|
| 458 |
+
licenses to the work the party's predecessor in interest had or could
|
| 459 |
+
give under the previous paragraph, plus a right to possession of the
|
| 460 |
+
Corresponding Source of the work from the predecessor in interest, if
|
| 461 |
+
the predecessor has it or can get it with reasonable efforts.
|
| 462 |
+
|
| 463 |
+
You may not impose any further restrictions on the exercise of the
|
| 464 |
+
rights granted or affirmed under this License. For example, you may
|
| 465 |
+
not impose a license fee, royalty, or other charge for exercise of
|
| 466 |
+
rights granted under this License, and you may not initiate litigation
|
| 467 |
+
(including a cross-claim or counterclaim in a lawsuit) alleging that
|
| 468 |
+
any patent claim is infringed by making, using, selling, offering for
|
| 469 |
+
sale, or importing the Program or any portion of it.
|
| 470 |
+
|
| 471 |
+
11. Patents.
|
| 472 |
+
|
| 473 |
+
A "contributor" is a copyright holder who authorizes use under this
|
| 474 |
+
License of the Program or a work on which the Program is based. The
|
| 475 |
+
work thus licensed is called the contributor's "contributor version".
|
| 476 |
+
|
| 477 |
+
A contributor's "essential patent claims" are all patent claims
|
| 478 |
+
owned or controlled by the contributor, whether already acquired or
|
| 479 |
+
hereafter acquired, that would be infringed by some manner, permitted
|
| 480 |
+
by this License, of making, using, or selling its contributor version,
|
| 481 |
+
but do not include claims that would be infringed only as a
|
| 482 |
+
consequence of further modification of the contributor version. For
|
| 483 |
+
purposes of this definition, "control" includes the right to grant
|
| 484 |
+
patent sublicenses in a manner consistent with the requirements of
|
| 485 |
+
this License.
|
| 486 |
+
|
| 487 |
+
Each contributor grants you a non-exclusive, worldwide, royalty-free
|
| 488 |
+
patent license under the contributor's essential patent claims, to
|
| 489 |
+
make, use, sell, offer for sale, import and otherwise run, modify and
|
| 490 |
+
propagate the contents of its contributor version.
|
| 491 |
+
|
| 492 |
+
In the following three paragraphs, a "patent license" is any express
|
| 493 |
+
agreement or commitment, however denominated, not to enforce a patent
|
| 494 |
+
(such as an express permission to practice a patent or covenant not to
|
| 495 |
+
sue for patent infringement). To "grant" such a patent license to a
|
| 496 |
+
party means to make such an agreement or commitment not to enforce a
|
| 497 |
+
patent against the party.
|
| 498 |
+
|
| 499 |
+
If you convey a covered work, knowingly relying on a patent license,
|
| 500 |
+
and the Corresponding Source of the work is not available for anyone
|
| 501 |
+
to copy, free of charge and under the terms of this License, through a
|
| 502 |
+
publicly available network server or other readily accessible means,
|
| 503 |
+
then you must either (1) cause the Corresponding Source to be so
|
| 504 |
+
available, or (2) arrange to deprive yourself of the benefit of the
|
| 505 |
+
patent license for this particular work, or (3) arrange, in a manner
|
| 506 |
+
consistent with the requirements of this License, to extend the patent
|
| 507 |
+
license to downstream recipients. "Knowingly relying" means you have
|
| 508 |
+
actual knowledge that, but for the patent license, your conveying the
|
| 509 |
+
covered work in a country, or your recipient's use of the covered work
|
| 510 |
+
in a country, would infringe one or more identifiable patents in that
|
| 511 |
+
country that you have reason to believe are valid.
|
| 512 |
+
|
| 513 |
+
If, pursuant to or in connection with a single transaction or
|
| 514 |
+
arrangement, you convey, or propagate by procuring conveyance of, a
|
| 515 |
+
covered work, and grant a patent license to some of the parties
|
| 516 |
+
receiving the covered work authorizing them to use, propagate, modify
|
| 517 |
+
or convey a specific copy of the covered work, then the patent license
|
| 518 |
+
you grant is automatically extended to all recipients of the covered
|
| 519 |
+
work and works based on it.
|
| 520 |
+
|
| 521 |
+
A patent license is "discriminatory" if it does not include within
|
| 522 |
+
the scope of its coverage, prohibits the exercise of, or is
|
| 523 |
+
conditioned on the non-exercise of one or more of the rights that are
|
| 524 |
+
specifically granted under this License. You may not convey a covered
|
| 525 |
+
work if you are a party to an arrangement with a third party that is
|
| 526 |
+
in the business of distributing software, under which you make payment
|
| 527 |
+
to the third party based on the extent of your activity of conveying
|
| 528 |
+
the work, and under which the third party grants, to any of the
|
| 529 |
+
parties who would receive the covered work from you, a discriminatory
|
| 530 |
+
patent license (a) in connection with copies of the covered work
|
| 531 |
+
conveyed by you (or copies made from those copies), or (b) primarily
|
| 532 |
+
for and in connection with specific products or compilations that
|
| 533 |
+
contain the covered work, unless you entered into that arrangement,
|
| 534 |
+
or that patent license was granted, prior to 28 March 2007.
|
| 535 |
+
|
| 536 |
+
Nothing in this License shall be construed as excluding or limiting
|
| 537 |
+
any implied license or other defenses to infringement that may
|
| 538 |
+
otherwise be available to you under applicable patent law.
|
| 539 |
+
|
| 540 |
+
12. No Surrender of Others' Freedom.
|
| 541 |
+
|
| 542 |
+
If conditions are imposed on you (whether by court order, agreement or
|
| 543 |
+
otherwise) that contradict the conditions of this License, they do not
|
| 544 |
+
excuse you from the conditions of this License. If you cannot convey a
|
| 545 |
+
covered work so as to satisfy simultaneously your obligations under this
|
| 546 |
+
License and any other pertinent obligations, then as a consequence you may
|
| 547 |
+
not convey it at all. For example, if you agree to terms that obligate you
|
| 548 |
+
to collect a royalty for further conveying from those to whom you convey
|
| 549 |
+
the Program, the only way you could satisfy both those terms and this
|
| 550 |
+
License would be to refrain entirely from conveying the Program.
|
| 551 |
+
|
| 552 |
+
13. Use with the GNU Affero General Public License.
|
| 553 |
+
|
| 554 |
+
Notwithstanding any other provision of this License, you have
|
| 555 |
+
permission to link or combine any covered work with a work licensed
|
| 556 |
+
under version 3 of the GNU Affero General Public License into a single
|
| 557 |
+
combined work, and to convey the resulting work. The terms of this
|
| 558 |
+
License will continue to apply to the part which is the covered work,
|
| 559 |
+
but the special requirements of the GNU Affero General Public License,
|
| 560 |
+
section 13, concerning interaction through a network will apply to the
|
| 561 |
+
combination as such.
|
| 562 |
+
|
| 563 |
+
14. Revised Versions of this License.
|
| 564 |
+
|
| 565 |
+
The Free Software Foundation may publish revised and/or new versions of
|
| 566 |
+
the GNU General Public License from time to time. Such new versions will
|
| 567 |
+
be similar in spirit to the present version, but may differ in detail to
|
| 568 |
+
address new problems or concerns.
|
| 569 |
+
|
| 570 |
+
Each version is given a distinguishing version number. If the
|
| 571 |
+
Program specifies that a certain numbered version of the GNU General
|
| 572 |
+
Public License "or any later version" applies to it, you have the
|
| 573 |
+
option of following the terms and conditions either of that numbered
|
| 574 |
+
version or of any later version published by the Free Software
|
| 575 |
+
Foundation. If the Program does not specify a version number of the
|
| 576 |
+
GNU General Public License, you may choose any version ever published
|
| 577 |
+
by the Free Software Foundation.
|
| 578 |
+
|
| 579 |
+
If the Program specifies that a proxy can decide which future
|
| 580 |
+
versions of the GNU General Public License can be used, that proxy's
|
| 581 |
+
public statement of acceptance of a version permanently authorizes you
|
| 582 |
+
to choose that version for the Program.
|
| 583 |
+
|
| 584 |
+
Later license versions may give you additional or different
|
| 585 |
+
permissions. However, no additional obligations are imposed on any
|
| 586 |
+
author or copyright holder as a result of your choosing to follow a
|
| 587 |
+
later version.
|
| 588 |
+
|
| 589 |
+
15. Disclaimer of Warranty.
|
| 590 |
+
|
| 591 |
+
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
|
| 592 |
+
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
|
| 593 |
+
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
|
| 594 |
+
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
|
| 595 |
+
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
| 596 |
+
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
|
| 597 |
+
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
|
| 598 |
+
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
|
| 599 |
+
|
| 600 |
+
16. Limitation of Liability.
|
| 601 |
+
|
| 602 |
+
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
| 603 |
+
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
|
| 604 |
+
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
|
| 605 |
+
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
|
| 606 |
+
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
|
| 607 |
+
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
|
| 608 |
+
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
|
| 609 |
+
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
|
| 610 |
+
SUCH DAMAGES.
|
| 611 |
+
|
| 612 |
+
17. Interpretation of Sections 15 and 16.
|
| 613 |
+
|
| 614 |
+
If the disclaimer of warranty and limitation of liability provided
|
| 615 |
+
above cannot be given local legal effect according to their terms,
|
| 616 |
+
reviewing courts shall apply local law that most closely approximates
|
| 617 |
+
an absolute waiver of all civil liability in connection with the
|
| 618 |
+
Program, unless a warranty or assumption of liability accompanies a
|
| 619 |
+
copy of the Program in return for a fee.
|
| 620 |
+
|
| 621 |
+
END OF TERMS AND CONDITIONS
|
| 622 |
+
|
| 623 |
+
How to Apply These Terms to Your New Programs
|
| 624 |
+
|
| 625 |
+
If you develop a new program, and you want it to be of the greatest
|
| 626 |
+
possible use to the public, the best way to achieve this is to make it
|
| 627 |
+
free software which everyone can redistribute and change under these terms.
|
| 628 |
+
|
| 629 |
+
To do so, attach the following notices to the program. It is safest
|
| 630 |
+
to attach them to the start of each source file to most effectively
|
| 631 |
+
state the exclusion of warranty; and each file should have at least
|
| 632 |
+
the "copyright" line and a pointer to where the full notice is found.
|
| 633 |
+
|
| 634 |
+
<one line to give the program's name and a brief idea of what it does.>
|
| 635 |
+
Copyright (C) <year> <name of author>
|
| 636 |
+
|
| 637 |
+
This program is free software: you can redistribute it and/or modify
|
| 638 |
+
it under the terms of the GNU General Public License as published by
|
| 639 |
+
the Free Software Foundation, either version 3 of the License, or
|
| 640 |
+
(at your option) any later version.
|
| 641 |
+
|
| 642 |
+
This program is distributed in the hope that it will be useful,
|
| 643 |
+
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
| 644 |
+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
| 645 |
+
GNU General Public License for more details.
|
| 646 |
+
|
| 647 |
+
You should have received a copy of the GNU General Public License
|
| 648 |
+
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
| 649 |
+
|
| 650 |
+
Also add information on how to contact you by electronic and paper mail.
|
| 651 |
+
|
| 652 |
+
If the program does terminal interaction, make it output a short
|
| 653 |
+
notice like this when it starts in an interactive mode:
|
| 654 |
+
|
| 655 |
+
<program> Copyright (C) <year> <name of author>
|
| 656 |
+
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
|
| 657 |
+
This is free software, and you are welcome to redistribute it
|
| 658 |
+
under certain conditions; type `show c' for details.
|
| 659 |
+
|
| 660 |
+
The hypothetical commands `show w' and `show c' should show the appropriate
|
| 661 |
+
parts of the General Public License. Of course, your program's commands
|
| 662 |
+
might be different; for a GUI interface, you would use an "about box".
|
| 663 |
+
|
| 664 |
+
You should also get your employer (if you work as a programmer) or school,
|
| 665 |
+
if any, to sign a "copyright disclaimer" for the program, if necessary.
|
| 666 |
+
For more information on this, and how to apply and follow the GNU GPL, see
|
| 667 |
+
<https://www.gnu.org/licenses/>.
|
| 668 |
+
|
| 669 |
+
The GNU General Public License does not permit incorporating your program
|
| 670 |
+
into proprietary programs. If your program is a subroutine library, you
|
| 671 |
+
may consider it more useful to permit linking proprietary applications with
|
| 672 |
+
the library. If this is what you want to do, use the GNU Lesser General
|
| 673 |
+
Public License instead of this License. But first, please read
|
| 674 |
+
<https://www.gnu.org/licenses/why-not-lgpl.html>.
|
README.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
---
|
| 2 |
-
title:
|
| 3 |
emoji: 🖼
|
| 4 |
colorFrom: purple
|
| 5 |
colorTo: red
|
|
|
|
| 1 |
---
|
| 2 |
+
title: ImageGen5
|
| 3 |
emoji: 🖼
|
| 4 |
colorFrom: purple
|
| 5 |
colorTo: red
|
app.py
CHANGED
|
@@ -46,11 +46,9 @@ def dummy_gpu_for_startup():
|
|
| 46 |
|
| 47 |
|
| 48 |
def main():
|
| 49 |
-
from utils.app_utils import print_welcome_message
|
| 50 |
from scripts import build_sage_attention
|
| 51 |
from comfy_integration import setup as setup_comfyui
|
| 52 |
-
|
| 53 |
-
print_welcome_message()
|
| 54 |
|
| 55 |
print("--- [Setup] Attempting to build and install SageAttention... ---")
|
| 56 |
try:
|
|
@@ -75,8 +73,6 @@ def main():
|
|
| 75 |
except Exception as e:
|
| 76 |
print(f"--- [GPU Startup] ⚠️ Warning: Startup check failed: {e} ---")
|
| 77 |
|
| 78 |
-
from utils.app_utils import load_ipadapter_presets
|
| 79 |
-
|
| 80 |
print("--- Starting Application Setup ---")
|
| 81 |
|
| 82 |
print("--- Loading IPAdapter presets ---")
|
|
|
|
| 46 |
|
| 47 |
|
| 48 |
def main():
|
|
|
|
| 49 |
from scripts import build_sage_attention
|
| 50 |
from comfy_integration import setup as setup_comfyui
|
| 51 |
+
from utils.app_utils import load_ipadapter_presets
|
|
|
|
| 52 |
|
| 53 |
print("--- [Setup] Attempting to build and install SageAttention... ---")
|
| 54 |
try:
|
|
|
|
| 73 |
except Exception as e:
|
| 74 |
print(f"--- [GPU Startup] ⚠️ Warning: Startup check failed: {e} ---")
|
| 75 |
|
|
|
|
|
|
|
| 76 |
print("--- Starting Application Setup ---")
|
| 77 |
|
| 78 |
print("--- Loading IPAdapter presets ---")
|
chain_injectors/anima_controlnet_lllite_injector.py
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
def inject(assembler, chain_definition, chain_items):
|
| 2 |
+
if not chain_items:
|
| 3 |
+
return
|
| 4 |
+
|
| 5 |
+
ksampler_name = chain_definition.get('ksampler_node', 'ksampler')
|
| 6 |
+
if ksampler_name not in assembler.node_map:
|
| 7 |
+
print(f"Warning: KSampler node '{ksampler_name}' not found for Anima LLLite chain. Skipping.")
|
| 8 |
+
return
|
| 9 |
+
|
| 10 |
+
ksampler_id = assembler.node_map[ksampler_name]
|
| 11 |
+
|
| 12 |
+
if 'model' not in assembler.workflow[ksampler_id]['inputs']:
|
| 13 |
+
print(f"Warning: KSampler node '{ksampler_name}' is missing 'model' input. Skipping.")
|
| 14 |
+
return
|
| 15 |
+
|
| 16 |
+
current_model_connection = assembler.workflow[ksampler_id]['inputs']['model']
|
| 17 |
+
|
| 18 |
+
for item_data in chain_items:
|
| 19 |
+
image_loader_id = assembler._get_unique_id()
|
| 20 |
+
image_loader_node = assembler._get_node_template("LoadImage")
|
| 21 |
+
image_loader_node['inputs']['image'] = item_data['image']
|
| 22 |
+
assembler.workflow[image_loader_id] = image_loader_node
|
| 23 |
+
|
| 24 |
+
image_scaler_id = assembler._get_unique_id()
|
| 25 |
+
image_scaler_node = assembler._get_node_template("ImageScaleToTotalPixels")
|
| 26 |
+
image_scaler_node['inputs']['image'] = [image_loader_id, 0]
|
| 27 |
+
image_scaler_node['inputs']['upscale_method'] = 'nearest-exact'
|
| 28 |
+
image_scaler_node['inputs']['megapixels'] = 1.0
|
| 29 |
+
assembler.workflow[image_scaler_id] = image_scaler_node
|
| 30 |
+
|
| 31 |
+
apply_cn_id = assembler._get_unique_id()
|
| 32 |
+
apply_cn_node = assembler._get_node_template("AnimaLLLiteApply")
|
| 33 |
+
|
| 34 |
+
apply_cn_node['inputs']['lllite_name'] = item_data['control_net_name']
|
| 35 |
+
apply_cn_node['inputs']['strength'] = item_data['strength']
|
| 36 |
+
apply_cn_node['inputs']['start_percent'] = item_data.get('start_percent', 0.0)
|
| 37 |
+
apply_cn_node['inputs']['end_percent'] = item_data.get('end_percent', 1.0)
|
| 38 |
+
|
| 39 |
+
apply_cn_node['inputs']['model'] = current_model_connection
|
| 40 |
+
apply_cn_node['inputs']['image'] = [image_scaler_id, 0]
|
| 41 |
+
|
| 42 |
+
assembler.workflow[apply_cn_id] = apply_cn_node
|
| 43 |
+
|
| 44 |
+
current_model_connection = [apply_cn_id, 0]
|
| 45 |
+
|
| 46 |
+
assembler.workflow[ksampler_id]['inputs']['model'] = current_model_connection
|
| 47 |
+
|
| 48 |
+
print(f"Anima LLLite injector applied. KSampler model input re-routed through {len(chain_items)} LLLite(s).")
|
comfy_integration/setup.py
CHANGED
|
@@ -74,6 +74,14 @@ def initialize_comfyui():
|
|
| 74 |
else:
|
| 75 |
print("✅ ComfyUI-Newbie-Nodes extension already exists.")
|
| 76 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 77 |
print(f"✅ Current working directory is: {os.getcwd()}")
|
| 78 |
|
| 79 |
import comfy.model_management
|
|
|
|
| 74 |
else:
|
| 75 |
print("✅ ComfyUI-Newbie-Nodes extension already exists.")
|
| 76 |
|
| 77 |
+
# 5. ComfyUI-Anima-LLLite
|
| 78 |
+
anima_controlnet_lllite_nodes_path = os.path.join(APP_DIR, "custom_nodes", "ComfyUI-Anima-LLLite")
|
| 79 |
+
if not os.path.exists(anima_controlnet_lllite_nodes_path):
|
| 80 |
+
os.system(f"git clone https://github.com/kohya-ss/ComfyUI-Anima-LLLite.git {anima_controlnet_lllite_nodes_path}")
|
| 81 |
+
print("✅ ComfyUI-Anima-LLLite extension cloned.")
|
| 82 |
+
else:
|
| 83 |
+
print("✅ ComfyUI-Anima-LLLite extension already exists.")
|
| 84 |
+
|
| 85 |
print(f"✅ Current working directory is: {os.getcwd()}")
|
| 86 |
|
| 87 |
import comfy.model_management
|
core/pipelines/sd_image_pipeline.py
CHANGED
|
@@ -198,13 +198,14 @@ class SdImagePipeline(BasePipeline):
|
|
| 198 |
|
| 199 |
if task_type == 'img2img':
|
| 200 |
input_image_pil = ui_inputs.get('img2img_image')
|
| 201 |
-
if input_image_pil:
|
| 202 |
-
|
| 203 |
-
|
| 204 |
-
|
| 205 |
-
|
| 206 |
-
|
| 207 |
-
|
|
|
|
| 208 |
|
| 209 |
elif task_type == 'inpaint':
|
| 210 |
inpaint_dict = ui_inputs.get('inpaint_image_dict')
|
|
@@ -231,22 +232,24 @@ class SdImagePipeline(BasePipeline):
|
|
| 231 |
|
| 232 |
elif task_type == 'outpaint':
|
| 233 |
input_image_pil = ui_inputs.get('outpaint_image')
|
| 234 |
-
if input_image_pil:
|
| 235 |
-
|
| 236 |
-
|
| 237 |
-
|
| 238 |
-
|
|
|
|
| 239 |
|
| 240 |
ui_inputs['megapixels'] = 0.25
|
| 241 |
ui_inputs['grow_mask_by'] = ui_inputs.get('feathering', 10)
|
| 242 |
|
| 243 |
elif task_type == 'hires_fix':
|
| 244 |
input_image_pil = ui_inputs.get('hires_image')
|
| 245 |
-
if input_image_pil:
|
| 246 |
-
|
| 247 |
-
|
| 248 |
-
|
| 249 |
-
|
|
|
|
| 250 |
|
| 251 |
embedding_data = ui_inputs.get('embedding_data', [])
|
| 252 |
embedding_filenames = []
|
|
@@ -287,7 +290,24 @@ class SdImagePipeline(BasePipeline):
|
|
| 287 |
"image": os.path.basename(cn_temp_path), "strength": cn_strengths[i],
|
| 288 |
"start_percent": 0.0, "end_percent": 1.0, "control_net_name": cn_filepaths[i]
|
| 289 |
})
|
| 290 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 291 |
diffsynth_controlnet_data = ui_inputs.get('diffsynth_controlnet_data', [])
|
| 292 |
active_diffsynth_controlnets = []
|
| 293 |
if diffsynth_controlnet_data:
|
|
@@ -482,7 +502,8 @@ class SdImagePipeline(BasePipeline):
|
|
| 482 |
"vae_name": ui_inputs.get('vae_name'),
|
| 483 |
"guidance": ui_inputs.get('guidance', 3.5),
|
| 484 |
"lora_chain": active_loras_for_gpu,
|
| 485 |
-
"controlnet_chain": active_controlnets,
|
|
|
|
| 486 |
"diffsynth_controlnet_chain": active_diffsynth_controlnets,
|
| 487 |
"ipadapter_chain": active_ipadapters,
|
| 488 |
"flux1_ipadapter_chain": active_flux1_ipadapters,
|
|
|
|
| 198 |
|
| 199 |
if task_type == 'img2img':
|
| 200 |
input_image_pil = ui_inputs.get('img2img_image')
|
| 201 |
+
if not input_image_pil:
|
| 202 |
+
raise gr.Error("Please upload an image for Image-to-Image.")
|
| 203 |
+
temp_file_path = os.path.join(INPUT_DIR, f"temp_input_{random.randint(1000, 9999)}.png")
|
| 204 |
+
input_image_pil.save(temp_file_path, "PNG")
|
| 205 |
+
ui_inputs['input_image'] = os.path.basename(temp_file_path)
|
| 206 |
+
temp_files_to_clean.append(temp_file_path)
|
| 207 |
+
ui_inputs['width'] = input_image_pil.width
|
| 208 |
+
ui_inputs['height'] = input_image_pil.height
|
| 209 |
|
| 210 |
elif task_type == 'inpaint':
|
| 211 |
inpaint_dict = ui_inputs.get('inpaint_image_dict')
|
|
|
|
| 232 |
|
| 233 |
elif task_type == 'outpaint':
|
| 234 |
input_image_pil = ui_inputs.get('outpaint_image')
|
| 235 |
+
if not input_image_pil:
|
| 236 |
+
raise gr.Error("Please upload an image for Outpainting.")
|
| 237 |
+
temp_file_path = os.path.join(INPUT_DIR, f"temp_input_{random.randint(1000, 9999)}.png")
|
| 238 |
+
input_image_pil.save(temp_file_path, "PNG")
|
| 239 |
+
ui_inputs['input_image'] = os.path.basename(temp_file_path)
|
| 240 |
+
temp_files_to_clean.append(temp_file_path)
|
| 241 |
|
| 242 |
ui_inputs['megapixels'] = 0.25
|
| 243 |
ui_inputs['grow_mask_by'] = ui_inputs.get('feathering', 10)
|
| 244 |
|
| 245 |
elif task_type == 'hires_fix':
|
| 246 |
input_image_pil = ui_inputs.get('hires_image')
|
| 247 |
+
if not input_image_pil:
|
| 248 |
+
raise gr.Error("Please upload an image for Hires Fix.")
|
| 249 |
+
temp_file_path = os.path.join(INPUT_DIR, f"temp_input_{random.randint(1000, 9999)}.png")
|
| 250 |
+
input_image_pil.save(temp_file_path, "PNG")
|
| 251 |
+
ui_inputs['input_image'] = os.path.basename(temp_file_path)
|
| 252 |
+
temp_files_to_clean.append(temp_file_path)
|
| 253 |
|
| 254 |
embedding_data = ui_inputs.get('embedding_data', [])
|
| 255 |
embedding_filenames = []
|
|
|
|
| 290 |
"image": os.path.basename(cn_temp_path), "strength": cn_strengths[i],
|
| 291 |
"start_percent": 0.0, "end_percent": 1.0, "control_net_name": cn_filepaths[i]
|
| 292 |
})
|
| 293 |
+
|
| 294 |
+
anima_controlnet_lllite_data = ui_inputs.get('anima_controlnet_lllite_data', [])
|
| 295 |
+
active_anima_controlnets = []
|
| 296 |
+
if anima_controlnet_lllite_data:
|
| 297 |
+
(cn_images, _, _, cn_strengths, cn_filepaths, cn_starts, cn_ends) = [anima_controlnet_lllite_data[i::7] for i in range(7)]
|
| 298 |
+
for i in range(len(cn_images)):
|
| 299 |
+
if cn_images[i] and cn_strengths[i] > 0 and cn_filepaths[i] and cn_filepaths[i] != "None":
|
| 300 |
+
from utils.app_utils import _ensure_model_downloaded
|
| 301 |
+
_ensure_model_downloaded(cn_filepaths[i], progress)
|
| 302 |
+
if not os.path.exists(INPUT_DIR): os.makedirs(INPUT_DIR)
|
| 303 |
+
cn_temp_path = os.path.join(INPUT_DIR, f"temp_anima_cn_{i}_{random.randint(1000, 9999)}.png")
|
| 304 |
+
cn_images[i].save(cn_temp_path, "PNG")
|
| 305 |
+
temp_files_to_clean.append(cn_temp_path)
|
| 306 |
+
active_anima_controlnets.append({
|
| 307 |
+
"image": os.path.basename(cn_temp_path), "strength": cn_strengths[i],
|
| 308 |
+
"start_percent": cn_starts[i], "end_percent": cn_ends[i], "control_net_name": cn_filepaths[i]
|
| 309 |
+
})
|
| 310 |
+
|
| 311 |
diffsynth_controlnet_data = ui_inputs.get('diffsynth_controlnet_data', [])
|
| 312 |
active_diffsynth_controlnets = []
|
| 313 |
if diffsynth_controlnet_data:
|
|
|
|
| 502 |
"vae_name": ui_inputs.get('vae_name'),
|
| 503 |
"guidance": ui_inputs.get('guidance', 3.5),
|
| 504 |
"lora_chain": active_loras_for_gpu,
|
| 505 |
+
"controlnet_chain": active_controlnets if not active_anima_controlnets else [],
|
| 506 |
+
"anima_controlnet_lllite_chain": active_anima_controlnets,
|
| 507 |
"diffsynth_controlnet_chain": active_diffsynth_controlnets,
|
| 508 |
"ipadapter_chain": active_ipadapters,
|
| 509 |
"flux1_ipadapter_chain": active_flux1_ipadapters,
|
core/pipelines/workflow_recipes/_partials/conditioning/anima.yaml
CHANGED
|
@@ -43,6 +43,10 @@ dynamic_lora_chains:
|
|
| 43 |
"model": ["ksampler:model"]
|
| 44 |
"clip": ["pos_prompt:clip", "neg_prompt:clip"]
|
| 45 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 46 |
dynamic_conditioning_chains:
|
| 47 |
conditioning_chain:
|
| 48 |
ksampler_node: "ksampler"
|
|
|
|
| 43 |
"model": ["ksampler:model"]
|
| 44 |
"clip": ["pos_prompt:clip", "neg_prompt:clip"]
|
| 45 |
|
| 46 |
+
dynamic_anima_controlnet_lllite_chains:
|
| 47 |
+
anima_controlnet_lllite_chain:
|
| 48 |
+
ksampler_node: "ksampler"
|
| 49 |
+
|
| 50 |
dynamic_conditioning_chains:
|
| 51 |
conditioning_chain:
|
| 52 |
ksampler_node: "ksampler"
|
requirements.txt
CHANGED
|
@@ -1,10 +1,10 @@
|
|
| 1 |
-
comfyui-frontend-package==1.
|
| 2 |
-
comfyui-workflow-templates==0.9.
|
| 3 |
-
comfyui-embedded-docs==0.
|
| 4 |
-
torch
|
| 5 |
torchsde
|
| 6 |
-
torchvision
|
| 7 |
-
torchaudio
|
| 8 |
numpy>=1.25.0
|
| 9 |
einops
|
| 10 |
transformers>=4.50.3
|
|
|
|
| 1 |
+
comfyui-frontend-package==1.43.18
|
| 2 |
+
comfyui-workflow-templates==0.9.77
|
| 3 |
+
comfyui-embedded-docs==0.5.0
|
| 4 |
+
torch
|
| 5 |
torchsde
|
| 6 |
+
torchvision
|
| 7 |
+
torchaudio
|
| 8 |
numpy>=1.25.0
|
| 9 |
einops
|
| 10 |
transformers>=4.50.3
|
ui/events.py
CHANGED
|
@@ -51,6 +51,38 @@ def get_cn_defaults(arch_val):
|
|
| 51 |
|
| 52 |
return all_types, default_type, series_choices, default_series, filepath
|
| 53 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 54 |
@lru_cache(maxsize=1)
|
| 55 |
def load_diffsynth_controlnet_config():
|
| 56 |
_PROJECT_ROOT = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
|
|
@@ -247,8 +279,8 @@ def attach_event_handlers(ui_components, demo):
|
|
| 247 |
del_button = ui_components[f'delete_controlnet_button_{prefix}']
|
| 248 |
accordion = ui_components[f'controlnet_accordion_{prefix}']
|
| 249 |
|
| 250 |
-
|
| 251 |
-
actual_arch_comp =
|
| 252 |
|
| 253 |
def add_cn_row(c):
|
| 254 |
c += 1
|
|
@@ -277,11 +309,13 @@ def attach_event_handlers(ui_components, demo):
|
|
| 277 |
add_button.click(fn=add_cn_row, inputs=[count_state], outputs=add_outputs, show_progress=False)
|
| 278 |
del_button.click(fn=del_cn_row, inputs=[count_state], outputs=del_outputs, show_progress=False)
|
| 279 |
|
| 280 |
-
def on_cn_type_change(selected_type,
|
|
|
|
|
|
|
| 281 |
cn_full_config = load_controlnet_config()
|
| 282 |
|
| 283 |
architectures_dict = ARCHITECTURES_CONFIG.get('architectures', {})
|
| 284 |
-
controlnet_key = architectures_dict.get(
|
| 285 |
|
| 286 |
cn_config = cn_full_config.get(controlnet_key, [])
|
| 287 |
series_choices = []
|
|
@@ -299,11 +333,13 @@ def attach_event_handlers(ui_components, demo):
|
|
| 299 |
break
|
| 300 |
return gr.update(choices=series_choices, value=default_series), filepath
|
| 301 |
|
| 302 |
-
def on_cn_series_change(selected_series, selected_type,
|
|
|
|
|
|
|
| 303 |
cn_full_config = load_controlnet_config()
|
| 304 |
|
| 305 |
architectures_dict = ARCHITECTURES_CONFIG.get('architectures', {})
|
| 306 |
-
controlnet_key = architectures_dict.get(
|
| 307 |
|
| 308 |
cn_config = cn_full_config.get(controlnet_key, [])
|
| 309 |
filepath = "None"
|
|
@@ -338,6 +374,98 @@ def attach_event_handlers(ui_components, demo):
|
|
| 338 |
show_progress=False
|
| 339 |
)
|
| 340 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 341 |
def create_diffsynth_controlnet_event_handlers(prefix):
|
| 342 |
cn_rows = ui_components.get(f'diffsynth_controlnet_rows_{prefix}')
|
| 343 |
if not cn_rows: return
|
|
@@ -352,8 +480,8 @@ def attach_event_handlers(ui_components, demo):
|
|
| 352 |
del_button = ui_components[f'delete_diffsynth_controlnet_button_{prefix}']
|
| 353 |
accordion = ui_components[f'diffsynth_controlnet_accordion_{prefix}']
|
| 354 |
|
| 355 |
-
|
| 356 |
-
actual_arch_comp =
|
| 357 |
|
| 358 |
def add_cn_row(c):
|
| 359 |
c += 1
|
|
@@ -382,11 +510,13 @@ def attach_event_handlers(ui_components, demo):
|
|
| 382 |
add_button.click(fn=add_cn_row, inputs=[count_state], outputs=add_outputs, show_progress=False)
|
| 383 |
del_button.click(fn=del_cn_row, inputs=[count_state], outputs=del_outputs, show_progress=False)
|
| 384 |
|
| 385 |
-
def on_cn_type_change(selected_type,
|
|
|
|
|
|
|
| 386 |
cn_full_config = load_diffsynth_controlnet_config()
|
| 387 |
|
| 388 |
architectures_dict = ARCHITECTURES_CONFIG.get('architectures', {})
|
| 389 |
-
controlnet_key = architectures_dict.get(
|
| 390 |
|
| 391 |
cn_config = cn_full_config.get(controlnet_key, [])
|
| 392 |
series_choices = []
|
|
@@ -404,11 +534,13 @@ def attach_event_handlers(ui_components, demo):
|
|
| 404 |
break
|
| 405 |
return gr.update(choices=series_choices, value=default_series), filepath
|
| 406 |
|
| 407 |
-
def on_cn_series_change(selected_series, selected_type,
|
|
|
|
|
|
|
| 408 |
cn_full_config = load_diffsynth_controlnet_config()
|
| 409 |
|
| 410 |
architectures_dict = ARCHITECTURES_CONFIG.get('architectures', {})
|
| 411 |
-
controlnet_key = architectures_dict.get(
|
| 412 |
|
| 413 |
cn_config = cn_full_config.get(controlnet_key, [])
|
| 414 |
filepath = "None"
|
|
@@ -711,6 +843,7 @@ def attach_event_handlers(ui_components, demo):
|
|
| 711 |
|
| 712 |
lora_data_components = ui_components.get(f'all_lora_components_flat_{prefix}', [])
|
| 713 |
controlnet_data_components = ui_components.get(f'all_controlnet_components_flat_{prefix}', [])
|
|
|
|
| 714 |
diffsynth_controlnet_data_components = ui_components.get(f'all_diffsynth_controlnet_components_flat_{prefix}', [])
|
| 715 |
ipadapter_data_components = ui_components.get(f'all_ipadapter_components_flat_{prefix}', [])
|
| 716 |
sd3_ipadapter_data_components = ui_components.get(f'all_sd3_ipadapter_components_flat_{prefix}', [])
|
|
@@ -727,7 +860,7 @@ def attach_event_handlers(ui_components, demo):
|
|
| 727 |
input_keys = list(run_inputs_map.keys())
|
| 728 |
input_list_flat = [v for v in run_inputs_map.values() if v is not None]
|
| 729 |
all_chains = [
|
| 730 |
-
lora_data_components, controlnet_data_components, diffsynth_controlnet_data_components, ipadapter_data_components,
|
| 731 |
sd3_ipadapter_data_components, flux1_ipadapter_data_components, style_data_components,
|
| 732 |
embedding_data_components, conditioning_data_components, reference_latent_data_components
|
| 733 |
]
|
|
@@ -748,6 +881,7 @@ def attach_event_handlers(ui_components, demo):
|
|
| 748 |
|
| 749 |
assign_chain_data('lora_data', lora_data_components)
|
| 750 |
assign_chain_data('controlnet_data', controlnet_data_components)
|
|
|
|
| 751 |
assign_chain_data('diffsynth_controlnet_data', diffsynth_controlnet_data_components)
|
| 752 |
assign_chain_data('ipadapter_data', ipadapter_data_components)
|
| 753 |
assign_chain_data('sd3_ipadapter_chain', sd3_ipadapter_data_components)
|
|
@@ -768,7 +902,7 @@ def attach_event_handlers(ui_components, demo):
|
|
| 768 |
outputs=[res_gal]
|
| 769 |
)
|
| 770 |
|
| 771 |
-
def make_update_fn(m_comp, cat_comp, cs_comp, ar_comp, width_comp, height_comp, cn_types, cn_series, cn_filepaths, diffsynth_cn_types, diffsynth_cn_series, diffsynth_cn_filepaths, ipa_preset, lora_acc, cn_acc, diffsynth_cn_acc, ipa_acc, sd3_ipa_acc, flux1_ipa_acc, style_acc, embed_acc, cond_acc, ref_latent_acc, guidance_comp, prompt_comp, neg_prompt_comp, steps_comp, cfg_comp, sampler_comp, scheduler_comp):
|
| 772 |
def update_fn(*args):
|
| 773 |
arch = args[0]
|
| 774 |
category = args[1]
|
|
@@ -810,6 +944,7 @@ def attach_event_handlers(ui_components, demo):
|
|
| 810 |
|
| 811 |
if lora_acc: updates[lora_acc] = gr.update(visible=('lora' in enabled_chains))
|
| 812 |
if cn_acc: updates[cn_acc] = gr.update(visible=('controlnet' in enabled_chains))
|
|
|
|
| 813 |
if diffsynth_cn_acc: updates[diffsynth_cn_acc] = gr.update(visible=('controlnet_model_patch' in enabled_chains))
|
| 814 |
if ipa_acc: updates[ipa_acc] = gr.update(visible=('ipadapter' in enabled_chains))
|
| 815 |
if flux1_ipa_acc: updates[flux1_ipa_acc] = gr.update(visible=('flux1_ipadapter' in enabled_chains))
|
|
@@ -844,6 +979,14 @@ def attach_event_handlers(ui_components, demo):
|
|
| 844 |
updates[s_comp] = gr.update(choices=series_choices, value=default_series)
|
| 845 |
for f_comp in cn_filepaths:
|
| 846 |
updates[f_comp] = filepath
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 847 |
|
| 848 |
diffsynth_all_types, diffsynth_default_type, diffsynth_series_choices, diffsynth_default_series, diffsynth_filepath = get_diffsynth_cn_defaults(controlnet_key)
|
| 849 |
for t_comp in diffsynth_cn_types:
|
|
@@ -873,7 +1016,7 @@ def attach_event_handlers(ui_components, demo):
|
|
| 873 |
return updates
|
| 874 |
return update_fn
|
| 875 |
|
| 876 |
-
def make_model_change_fn(cat_comp_ref, cs_comp, ar_comp, width_comp, height_comp, cn_types, cn_series, cn_filepaths, diffsynth_cn_types, diffsynth_cn_series, diffsynth_cn_filepaths, arch_comp_ref, ipa_preset, lora_acc, cn_acc, diffsynth_cn_acc, ipa_acc, sd3_ipa_acc, flux1_ipa_acc, style_acc, embed_acc, cond_acc, ref_latent_acc, guidance_comp, prompt_comp, neg_prompt_comp, steps_comp, cfg_comp, sampler_comp, scheduler_comp):
|
| 877 |
def change_fn(*args):
|
| 878 |
model_name = args[0]
|
| 879 |
idx = 1
|
|
@@ -919,6 +1062,7 @@ def attach_event_handlers(ui_components, demo):
|
|
| 919 |
|
| 920 |
if lora_acc: updates[lora_acc] = gr.update(visible=('lora' in enabled_chains))
|
| 921 |
if cn_acc: updates[cn_acc] = gr.update(visible=('controlnet' in enabled_chains))
|
|
|
|
| 922 |
if diffsynth_cn_acc: updates[diffsynth_cn_acc] = gr.update(visible=('controlnet_model_patch' in enabled_chains))
|
| 923 |
if ipa_acc: updates[ipa_acc] = gr.update(visible=('ipadapter' in enabled_chains))
|
| 924 |
if flux1_ipa_acc: updates[flux1_ipa_acc] = gr.update(visible=('flux1_ipadapter' in enabled_chains))
|
|
@@ -953,6 +1097,14 @@ def attach_event_handlers(ui_components, demo):
|
|
| 953 |
updates[s_comp] = gr.update(choices=series_choices, value=default_series)
|
| 954 |
for f_comp in cn_filepaths:
|
| 955 |
updates[f_comp] = filepath
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 956 |
|
| 957 |
diffsynth_all_types, diffsynth_default_type, diffsynth_series_choices, diffsynth_default_series, diffsynth_filepath = get_diffsynth_cn_defaults(controlnet_key)
|
| 958 |
for t_comp in diffsynth_cn_types:
|
|
@@ -1001,12 +1153,17 @@ def attach_event_handlers(ui_components, demo):
|
|
| 1001 |
cn_series_list = ui_components.get(f'controlnet_series_{prefix}', [])
|
| 1002 |
cn_filepaths_list = ui_components.get(f'controlnet_filepaths_{prefix}', [])
|
| 1003 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1004 |
diffsynth_cn_types_list = ui_components.get(f'diffsynth_controlnet_types_{prefix}', [])
|
| 1005 |
diffsynth_cn_series_list = ui_components.get(f'diffsynth_controlnet_series_{prefix}', [])
|
| 1006 |
diffsynth_cn_filepaths_list = ui_components.get(f'diffsynth_controlnet_filepaths_{prefix}', [])
|
| 1007 |
|
| 1008 |
lora_accordion = ui_components.get(f'lora_accordion_{prefix}')
|
| 1009 |
cn_accordion = ui_components.get(f'controlnet_accordion_{prefix}')
|
|
|
|
| 1010 |
diffsynth_cn_accordion = ui_components.get(f'diffsynth_controlnet_accordion_{prefix}')
|
| 1011 |
ipa_accordion = ui_components.get(f'ipadapter_accordion_{prefix}')
|
| 1012 |
sd3_ipa_accordion = ui_components.get(f'sd3_ipadapter_accordion_{prefix}')
|
|
@@ -1034,9 +1191,11 @@ def attach_event_handlers(ui_components, demo):
|
|
| 1034 |
if guidance_comp: outputs.append(guidance_comp)
|
| 1035 |
if aspect_ratio_comp: outputs.append(aspect_ratio_comp)
|
| 1036 |
outputs.extend(cn_types_list + cn_series_list + cn_filepaths_list)
|
|
|
|
| 1037 |
outputs.extend(diffsynth_cn_types_list + diffsynth_cn_series_list + diffsynth_cn_filepaths_list)
|
| 1038 |
if lora_accordion: outputs.append(lora_accordion)
|
| 1039 |
if cn_accordion: outputs.append(cn_accordion)
|
|
|
|
| 1040 |
if diffsynth_cn_accordion: outputs.append(diffsynth_cn_accordion)
|
| 1041 |
if ipa_accordion: outputs.append(ipa_accordion)
|
| 1042 |
if sd3_ipa_accordion: outputs.append(sd3_ipa_accordion)
|
|
@@ -1052,8 +1211,9 @@ def attach_event_handlers(ui_components, demo):
|
|
| 1052 |
update_fn = make_update_fn(
|
| 1053 |
model_comp, cat_comp, clip_skip_comp, aspect_ratio_comp, width_comp, height_comp,
|
| 1054 |
cn_types_list, cn_series_list, cn_filepaths_list,
|
|
|
|
| 1055 |
diffsynth_cn_types_list, diffsynth_cn_series_list, diffsynth_cn_filepaths_list,
|
| 1056 |
-
ipa_preset_list, lora_accordion, cn_accordion, diffsynth_cn_accordion, ipa_accordion, sd3_ipa_accordion, flux1_ipa_accordion, style_accordion, embedding_accordion, conditioning_accordion,
|
| 1057 |
ref_latent_accordion, guidance_comp, prompt_comp, neg_prompt_comp, steps_comp, cfg_comp, sampler_comp, scheduler_comp
|
| 1058 |
)
|
| 1059 |
inputs = [arch_comp, cat_comp]
|
|
@@ -1070,9 +1230,11 @@ def attach_event_handlers(ui_components, demo):
|
|
| 1070 |
if guidance_comp: outputs2.append(guidance_comp)
|
| 1071 |
if aspect_ratio_comp: outputs2.append(aspect_ratio_comp)
|
| 1072 |
outputs2.extend(cn_types_list + cn_series_list + cn_filepaths_list)
|
|
|
|
| 1073 |
outputs2.extend(diffsynth_cn_types_list + diffsynth_cn_series_list + diffsynth_cn_filepaths_list)
|
| 1074 |
if lora_accordion: outputs2.append(lora_accordion)
|
| 1075 |
if cn_accordion: outputs2.append(cn_accordion)
|
|
|
|
| 1076 |
if diffsynth_cn_accordion: outputs2.append(diffsynth_cn_accordion)
|
| 1077 |
if ipa_accordion: outputs2.append(ipa_accordion)
|
| 1078 |
if sd3_ipa_accordion: outputs2.append(sd3_ipa_accordion)
|
|
@@ -1093,14 +1255,16 @@ def attach_event_handlers(ui_components, demo):
|
|
| 1093 |
change_fn = make_model_change_fn(
|
| 1094 |
cat_comp, clip_skip_comp, aspect_ratio_comp, width_comp, height_comp,
|
| 1095 |
cn_types_list, cn_series_list, cn_filepaths_list,
|
|
|
|
| 1096 |
diffsynth_cn_types_list, diffsynth_cn_series_list, diffsynth_cn_filepaths_list,
|
| 1097 |
-
arch_comp, ipa_preset_list, lora_accordion, cn_accordion, diffsynth_cn_accordion, ipa_accordion, sd3_ipa_accordion, flux1_ipa_accordion, style_accordion, embedding_accordion, conditioning_accordion,
|
| 1098 |
ref_latent_accordion, guidance_comp, prompt_comp, neg_prompt_comp, steps_comp, cfg_comp, sampler_comp, scheduler_comp
|
| 1099 |
)
|
| 1100 |
model_comp.change(fn=change_fn, inputs=inputs2, outputs=outputs2)
|
| 1101 |
|
| 1102 |
create_lora_event_handlers(prefix)
|
| 1103 |
create_controlnet_event_handlers(prefix)
|
|
|
|
| 1104 |
create_diffsynth_controlnet_event_handlers(prefix)
|
| 1105 |
create_ipadapter_event_handlers(prefix)
|
| 1106 |
create_embedding_event_handlers(prefix)
|
|
@@ -1159,6 +1323,7 @@ def attach_event_handlers(ui_components, demo):
|
|
| 1159 |
controlnet_key = architectures_dict.get(default_m_type, {}).get("controlnet_key", default_m_type)
|
| 1160 |
|
| 1161 |
all_types, default_type, series_choices, default_series, filepath = get_cn_defaults(controlnet_key)
|
|
|
|
| 1162 |
diffsynth_all_types, diffsynth_default_type, diffsynth_series_choices, diffsynth_default_series, diffsynth_filepath = get_diffsynth_cn_defaults(controlnet_key)
|
| 1163 |
|
| 1164 |
updates = {}
|
|
@@ -1170,6 +1335,14 @@ def attach_event_handlers(ui_components, demo):
|
|
| 1170 |
updates[series_dd] = gr.update(choices=series_choices, value=default_series)
|
| 1171 |
for filepath_state in ui_components[f'controlnet_filepaths_{prefix}']:
|
| 1172 |
updates[filepath_state] = filepath
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1173 |
|
| 1174 |
if f'diffsynth_controlnet_types_{prefix}' in ui_components:
|
| 1175 |
for type_dd in ui_components[f'diffsynth_controlnet_types_{prefix}']:
|
|
@@ -1224,6 +1397,10 @@ def attach_event_handlers(ui_components, demo):
|
|
| 1224 |
all_load_outputs.extend(ui_components[f'controlnet_types_{prefix}'])
|
| 1225 |
all_load_outputs.extend(ui_components[f'controlnet_series_{prefix}'])
|
| 1226 |
all_load_outputs.extend(ui_components[f'controlnet_filepaths_{prefix}'])
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1227 |
if f'diffsynth_controlnet_types_{prefix}' in ui_components:
|
| 1228 |
all_load_outputs.extend(ui_components[f'diffsynth_controlnet_types_{prefix}'])
|
| 1229 |
all_load_outputs.extend(ui_components[f'diffsynth_controlnet_series_{prefix}'])
|
|
|
|
| 51 |
|
| 52 |
return all_types, default_type, series_choices, default_series, filepath
|
| 53 |
|
| 54 |
+
@lru_cache(maxsize=1)
|
| 55 |
+
def load_anima_controlnet_lllite_config():
|
| 56 |
+
_PROJECT_ROOT = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
|
| 57 |
+
_CN_MODEL_LIST_PATH = os.path.join(_PROJECT_ROOT, 'yaml', 'anima_controlnet_lllite_models.yaml')
|
| 58 |
+
try:
|
| 59 |
+
print("--- Loading anima_controlnet_lllite_models.yaml ---")
|
| 60 |
+
with open(_CN_MODEL_LIST_PATH, 'r', encoding='utf-8') as f:
|
| 61 |
+
config = yaml.safe_load(f)
|
| 62 |
+
print("--- ✅ anima_controlnet_lllite_models.yaml loaded successfully ---")
|
| 63 |
+
return config.get("Anima_ControlNet_Lllite", [])
|
| 64 |
+
except Exception as e:
|
| 65 |
+
print(f"Error loading anima_controlnet_lllite_models.yaml: {e}")
|
| 66 |
+
return []
|
| 67 |
+
|
| 68 |
+
def get_anima_cn_defaults():
|
| 69 |
+
cn_config = load_anima_controlnet_lllite_config()
|
| 70 |
+
if not cn_config:
|
| 71 |
+
return [], None, [], None, "None"
|
| 72 |
+
all_types = sorted(list(set(t for model in cn_config for t in model.get("Type", []))))
|
| 73 |
+
default_type = all_types[0] if all_types else None
|
| 74 |
+
series_choices = []
|
| 75 |
+
if default_type:
|
| 76 |
+
series_choices = sorted(list(set(model.get("Series", "Default") for model in cn_config if default_type in model.get("Type", []))))
|
| 77 |
+
default_series = series_choices[0] if series_choices else None
|
| 78 |
+
filepath = "None"
|
| 79 |
+
if default_series and default_type:
|
| 80 |
+
for model in cn_config:
|
| 81 |
+
if model.get("Series") == default_series and default_type in model.get("Type", []):
|
| 82 |
+
filepath = model.get("Filepath")
|
| 83 |
+
break
|
| 84 |
+
return all_types, default_type, series_choices, default_series, filepath
|
| 85 |
+
|
| 86 |
@lru_cache(maxsize=1)
|
| 87 |
def load_diffsynth_controlnet_config():
|
| 88 |
_PROJECT_ROOT = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
|
|
|
|
| 279 |
del_button = ui_components[f'delete_controlnet_button_{prefix}']
|
| 280 |
accordion = ui_components[f'controlnet_accordion_{prefix}']
|
| 281 |
|
| 282 |
+
base_model_comp = ui_components.get(f'base_model_{prefix}')
|
| 283 |
+
actual_arch_comp = base_model_comp if base_model_comp else gr.State("SDXL")
|
| 284 |
|
| 285 |
def add_cn_row(c):
|
| 286 |
c += 1
|
|
|
|
| 309 |
add_button.click(fn=add_cn_row, inputs=[count_state], outputs=add_outputs, show_progress=False)
|
| 310 |
del_button.click(fn=del_cn_row, inputs=[count_state], outputs=del_outputs, show_progress=False)
|
| 311 |
|
| 312 |
+
def on_cn_type_change(selected_type, model_name):
|
| 313 |
+
from core.settings import MODEL_TYPE_MAP
|
| 314 |
+
m_type = MODEL_TYPE_MAP.get(model_name, "SDXL") if model_name else "SDXL"
|
| 315 |
cn_full_config = load_controlnet_config()
|
| 316 |
|
| 317 |
architectures_dict = ARCHITECTURES_CONFIG.get('architectures', {})
|
| 318 |
+
controlnet_key = architectures_dict.get(m_type, {}).get("controlnet_key", m_type)
|
| 319 |
|
| 320 |
cn_config = cn_full_config.get(controlnet_key, [])
|
| 321 |
series_choices = []
|
|
|
|
| 333 |
break
|
| 334 |
return gr.update(choices=series_choices, value=default_series), filepath
|
| 335 |
|
| 336 |
+
def on_cn_series_change(selected_series, selected_type, model_name):
|
| 337 |
+
from core.settings import MODEL_TYPE_MAP
|
| 338 |
+
m_type = MODEL_TYPE_MAP.get(model_name, "SDXL") if model_name else "SDXL"
|
| 339 |
cn_full_config = load_controlnet_config()
|
| 340 |
|
| 341 |
architectures_dict = ARCHITECTURES_CONFIG.get('architectures', {})
|
| 342 |
+
controlnet_key = architectures_dict.get(m_type, {}).get("controlnet_key", m_type)
|
| 343 |
|
| 344 |
cn_config = cn_full_config.get(controlnet_key, [])
|
| 345 |
filepath = "None"
|
|
|
|
| 374 |
show_progress=False
|
| 375 |
)
|
| 376 |
|
| 377 |
+
def create_anima_controlnet_lllite_event_handlers(prefix):
|
| 378 |
+
cn_rows = ui_components.get(f'anima_controlnet_lllite_rows_{prefix}')
|
| 379 |
+
if not cn_rows: return
|
| 380 |
+
cn_types = ui_components[f'anima_controlnet_lllite_types_{prefix}']
|
| 381 |
+
cn_series = ui_components[f'anima_controlnet_lllite_series_{prefix}']
|
| 382 |
+
cn_filepaths = ui_components[f'anima_controlnet_lllite_filepaths_{prefix}']
|
| 383 |
+
cn_images = ui_components[f'anima_controlnet_lllite_images_{prefix}']
|
| 384 |
+
cn_strengths = ui_components[f'anima_controlnet_lllite_strengths_{prefix}']
|
| 385 |
+
|
| 386 |
+
count_state = ui_components[f'anima_controlnet_lllite_count_state_{prefix}']
|
| 387 |
+
add_button = ui_components[f'add_anima_controlnet_lllite_button_{prefix}']
|
| 388 |
+
del_button = ui_components[f'delete_anima_controlnet_lllite_button_{prefix}']
|
| 389 |
+
accordion = ui_components[f'anima_controlnet_lllite_accordion_{prefix}']
|
| 390 |
+
|
| 391 |
+
def add_cn_row(c):
|
| 392 |
+
c += 1
|
| 393 |
+
updates = {
|
| 394 |
+
count_state: c,
|
| 395 |
+
cn_rows[c-1]: gr.update(visible=True),
|
| 396 |
+
add_button: gr.update(visible=c < MAX_CONTROLNETS),
|
| 397 |
+
del_button: gr.update(visible=True)
|
| 398 |
+
}
|
| 399 |
+
return updates
|
| 400 |
+
|
| 401 |
+
def del_cn_row(c):
|
| 402 |
+
c -= 1
|
| 403 |
+
updates = {
|
| 404 |
+
count_state: c,
|
| 405 |
+
cn_rows[c]: gr.update(visible=False),
|
| 406 |
+
cn_images[c]: None,
|
| 407 |
+
cn_strengths[c]: 1.0,
|
| 408 |
+
add_button: gr.update(visible=True),
|
| 409 |
+
del_button: gr.update(visible=c > 0)
|
| 410 |
+
}
|
| 411 |
+
return updates
|
| 412 |
+
|
| 413 |
+
add_outputs = [count_state, add_button, del_button] + cn_rows
|
| 414 |
+
del_outputs = [count_state, add_button, del_button] + cn_rows + cn_images + cn_strengths
|
| 415 |
+
add_button.click(fn=add_cn_row, inputs=[count_state], outputs=add_outputs, show_progress=False)
|
| 416 |
+
del_button.click(fn=del_cn_row, inputs=[count_state], outputs=del_outputs, show_progress=False)
|
| 417 |
+
|
| 418 |
+
def on_cn_type_change(selected_type):
|
| 419 |
+
cn_config = load_anima_controlnet_lllite_config()
|
| 420 |
+
series_choices = []
|
| 421 |
+
if selected_type:
|
| 422 |
+
series_choices = sorted(list(set(
|
| 423 |
+
model.get("Series", "Default") for model in cn_config
|
| 424 |
+
if selected_type in model.get("Type", [])
|
| 425 |
+
)))
|
| 426 |
+
default_series = series_choices[0] if series_choices else None
|
| 427 |
+
filepath = "None"
|
| 428 |
+
if default_series:
|
| 429 |
+
for model in cn_config:
|
| 430 |
+
if model.get("Series") == default_series and selected_type in model.get("Type", []):
|
| 431 |
+
filepath = model.get("Filepath")
|
| 432 |
+
break
|
| 433 |
+
return gr.update(choices=series_choices, value=default_series), filepath
|
| 434 |
+
|
| 435 |
+
def on_cn_series_change(selected_series, selected_type):
|
| 436 |
+
cn_config = load_anima_controlnet_lllite_config()
|
| 437 |
+
filepath = "None"
|
| 438 |
+
if selected_series and selected_type:
|
| 439 |
+
for model in cn_config:
|
| 440 |
+
if model.get("Series") == selected_series and selected_type in model.get("Type", []):
|
| 441 |
+
filepath = model.get("Filepath")
|
| 442 |
+
break
|
| 443 |
+
return filepath
|
| 444 |
+
|
| 445 |
+
for i in range(MAX_CONTROLNETS):
|
| 446 |
+
cn_types[i].change(
|
| 447 |
+
fn=on_cn_type_change,
|
| 448 |
+
inputs=[cn_types[i]],
|
| 449 |
+
outputs=[cn_series[i], cn_filepaths[i]],
|
| 450 |
+
show_progress=False
|
| 451 |
+
)
|
| 452 |
+
cn_series[i].change(
|
| 453 |
+
fn=on_cn_series_change,
|
| 454 |
+
inputs=[cn_series[i], cn_types[i]],
|
| 455 |
+
outputs=[cn_filepaths[i]],
|
| 456 |
+
show_progress=False
|
| 457 |
+
)
|
| 458 |
+
|
| 459 |
+
def on_accordion_expand(*images):
|
| 460 |
+
return [gr.update() for _ in images]
|
| 461 |
+
|
| 462 |
+
accordion.expand(
|
| 463 |
+
fn=on_accordion_expand,
|
| 464 |
+
inputs=cn_images,
|
| 465 |
+
outputs=cn_images,
|
| 466 |
+
show_progress=False
|
| 467 |
+
)
|
| 468 |
+
|
| 469 |
def create_diffsynth_controlnet_event_handlers(prefix):
|
| 470 |
cn_rows = ui_components.get(f'diffsynth_controlnet_rows_{prefix}')
|
| 471 |
if not cn_rows: return
|
|
|
|
| 480 |
del_button = ui_components[f'delete_diffsynth_controlnet_button_{prefix}']
|
| 481 |
accordion = ui_components[f'diffsynth_controlnet_accordion_{prefix}']
|
| 482 |
|
| 483 |
+
base_model_comp = ui_components.get(f'base_model_{prefix}')
|
| 484 |
+
actual_arch_comp = base_model_comp if base_model_comp else gr.State("SDXL")
|
| 485 |
|
| 486 |
def add_cn_row(c):
|
| 487 |
c += 1
|
|
|
|
| 510 |
add_button.click(fn=add_cn_row, inputs=[count_state], outputs=add_outputs, show_progress=False)
|
| 511 |
del_button.click(fn=del_cn_row, inputs=[count_state], outputs=del_outputs, show_progress=False)
|
| 512 |
|
| 513 |
+
def on_cn_type_change(selected_type, model_name):
|
| 514 |
+
from core.settings import MODEL_TYPE_MAP
|
| 515 |
+
m_type = MODEL_TYPE_MAP.get(model_name, "SDXL") if model_name else "SDXL"
|
| 516 |
cn_full_config = load_diffsynth_controlnet_config()
|
| 517 |
|
| 518 |
architectures_dict = ARCHITECTURES_CONFIG.get('architectures', {})
|
| 519 |
+
controlnet_key = architectures_dict.get(m_type, {}).get("controlnet_key", m_type)
|
| 520 |
|
| 521 |
cn_config = cn_full_config.get(controlnet_key, [])
|
| 522 |
series_choices = []
|
|
|
|
| 534 |
break
|
| 535 |
return gr.update(choices=series_choices, value=default_series), filepath
|
| 536 |
|
| 537 |
+
def on_cn_series_change(selected_series, selected_type, model_name):
|
| 538 |
+
from core.settings import MODEL_TYPE_MAP
|
| 539 |
+
m_type = MODEL_TYPE_MAP.get(model_name, "SDXL") if model_name else "SDXL"
|
| 540 |
cn_full_config = load_diffsynth_controlnet_config()
|
| 541 |
|
| 542 |
architectures_dict = ARCHITECTURES_CONFIG.get('architectures', {})
|
| 543 |
+
controlnet_key = architectures_dict.get(m_type, {}).get("controlnet_key", m_type)
|
| 544 |
|
| 545 |
cn_config = cn_full_config.get(controlnet_key, [])
|
| 546 |
filepath = "None"
|
|
|
|
| 843 |
|
| 844 |
lora_data_components = ui_components.get(f'all_lora_components_flat_{prefix}', [])
|
| 845 |
controlnet_data_components = ui_components.get(f'all_controlnet_components_flat_{prefix}', [])
|
| 846 |
+
anima_controlnet_lllite_data_components = ui_components.get(f'all_anima_controlnet_lllite_components_flat_{prefix}', [])
|
| 847 |
diffsynth_controlnet_data_components = ui_components.get(f'all_diffsynth_controlnet_components_flat_{prefix}', [])
|
| 848 |
ipadapter_data_components = ui_components.get(f'all_ipadapter_components_flat_{prefix}', [])
|
| 849 |
sd3_ipadapter_data_components = ui_components.get(f'all_sd3_ipadapter_components_flat_{prefix}', [])
|
|
|
|
| 860 |
input_keys = list(run_inputs_map.keys())
|
| 861 |
input_list_flat = [v for v in run_inputs_map.values() if v is not None]
|
| 862 |
all_chains = [
|
| 863 |
+
lora_data_components, controlnet_data_components, anima_controlnet_lllite_data_components, diffsynth_controlnet_data_components, ipadapter_data_components,
|
| 864 |
sd3_ipadapter_data_components, flux1_ipadapter_data_components, style_data_components,
|
| 865 |
embedding_data_components, conditioning_data_components, reference_latent_data_components
|
| 866 |
]
|
|
|
|
| 881 |
|
| 882 |
assign_chain_data('lora_data', lora_data_components)
|
| 883 |
assign_chain_data('controlnet_data', controlnet_data_components)
|
| 884 |
+
assign_chain_data('anima_controlnet_lllite_data', anima_controlnet_lllite_data_components)
|
| 885 |
assign_chain_data('diffsynth_controlnet_data', diffsynth_controlnet_data_components)
|
| 886 |
assign_chain_data('ipadapter_data', ipadapter_data_components)
|
| 887 |
assign_chain_data('sd3_ipadapter_chain', sd3_ipadapter_data_components)
|
|
|
|
| 902 |
outputs=[res_gal]
|
| 903 |
)
|
| 904 |
|
| 905 |
+
def make_update_fn(m_comp, cat_comp, cs_comp, ar_comp, width_comp, height_comp, cn_types, cn_series, cn_filepaths, anima_cn_types, anima_cn_series, anima_cn_filepaths, diffsynth_cn_types, diffsynth_cn_series, diffsynth_cn_filepaths, ipa_preset, lora_acc, cn_acc, anima_cn_acc, diffsynth_cn_acc, ipa_acc, sd3_ipa_acc, flux1_ipa_acc, style_acc, embed_acc, cond_acc, ref_latent_acc, guidance_comp, prompt_comp, neg_prompt_comp, steps_comp, cfg_comp, sampler_comp, scheduler_comp):
|
| 906 |
def update_fn(*args):
|
| 907 |
arch = args[0]
|
| 908 |
category = args[1]
|
|
|
|
| 944 |
|
| 945 |
if lora_acc: updates[lora_acc] = gr.update(visible=('lora' in enabled_chains))
|
| 946 |
if cn_acc: updates[cn_acc] = gr.update(visible=('controlnet' in enabled_chains))
|
| 947 |
+
if anima_cn_acc: updates[anima_cn_acc] = gr.update(visible=('anima_controlnet_lllite' in enabled_chains))
|
| 948 |
if diffsynth_cn_acc: updates[diffsynth_cn_acc] = gr.update(visible=('controlnet_model_patch' in enabled_chains))
|
| 949 |
if ipa_acc: updates[ipa_acc] = gr.update(visible=('ipadapter' in enabled_chains))
|
| 950 |
if flux1_ipa_acc: updates[flux1_ipa_acc] = gr.update(visible=('flux1_ipadapter' in enabled_chains))
|
|
|
|
| 979 |
updates[s_comp] = gr.update(choices=series_choices, value=default_series)
|
| 980 |
for f_comp in cn_filepaths:
|
| 981 |
updates[f_comp] = filepath
|
| 982 |
+
|
| 983 |
+
anima_all_types, anima_default_type, anima_series_choices, anima_default_series, anima_filepath = get_anima_cn_defaults()
|
| 984 |
+
for t_comp in anima_cn_types:
|
| 985 |
+
updates[t_comp] = gr.update(choices=anima_all_types, value=anima_default_type)
|
| 986 |
+
for s_comp in anima_cn_series:
|
| 987 |
+
updates[s_comp] = gr.update(choices=anima_series_choices, value=anima_default_series)
|
| 988 |
+
for f_comp in anima_cn_filepaths:
|
| 989 |
+
updates[f_comp] = anima_filepath
|
| 990 |
|
| 991 |
diffsynth_all_types, diffsynth_default_type, diffsynth_series_choices, diffsynth_default_series, diffsynth_filepath = get_diffsynth_cn_defaults(controlnet_key)
|
| 992 |
for t_comp in diffsynth_cn_types:
|
|
|
|
| 1016 |
return updates
|
| 1017 |
return update_fn
|
| 1018 |
|
| 1019 |
+
def make_model_change_fn(cat_comp_ref, cs_comp, ar_comp, width_comp, height_comp, cn_types, cn_series, cn_filepaths, anima_cn_types, anima_cn_series, anima_cn_filepaths, diffsynth_cn_types, diffsynth_cn_series, diffsynth_cn_filepaths, arch_comp_ref, ipa_preset, lora_acc, cn_acc, anima_cn_acc, diffsynth_cn_acc, ipa_acc, sd3_ipa_acc, flux1_ipa_acc, style_acc, embed_acc, cond_acc, ref_latent_acc, guidance_comp, prompt_comp, neg_prompt_comp, steps_comp, cfg_comp, sampler_comp, scheduler_comp):
|
| 1020 |
def change_fn(*args):
|
| 1021 |
model_name = args[0]
|
| 1022 |
idx = 1
|
|
|
|
| 1062 |
|
| 1063 |
if lora_acc: updates[lora_acc] = gr.update(visible=('lora' in enabled_chains))
|
| 1064 |
if cn_acc: updates[cn_acc] = gr.update(visible=('controlnet' in enabled_chains))
|
| 1065 |
+
if anima_cn_acc: updates[anima_cn_acc] = gr.update(visible=('anima_controlnet_lllite' in enabled_chains))
|
| 1066 |
if diffsynth_cn_acc: updates[diffsynth_cn_acc] = gr.update(visible=('controlnet_model_patch' in enabled_chains))
|
| 1067 |
if ipa_acc: updates[ipa_acc] = gr.update(visible=('ipadapter' in enabled_chains))
|
| 1068 |
if flux1_ipa_acc: updates[flux1_ipa_acc] = gr.update(visible=('flux1_ipadapter' in enabled_chains))
|
|
|
|
| 1097 |
updates[s_comp] = gr.update(choices=series_choices, value=default_series)
|
| 1098 |
for f_comp in cn_filepaths:
|
| 1099 |
updates[f_comp] = filepath
|
| 1100 |
+
|
| 1101 |
+
anima_all_types, anima_default_type, anima_series_choices, anima_default_series, anima_filepath = get_anima_cn_defaults()
|
| 1102 |
+
for t_comp in anima_cn_types:
|
| 1103 |
+
updates[t_comp] = gr.update(choices=anima_all_types, value=anima_default_type)
|
| 1104 |
+
for s_comp in anima_cn_series:
|
| 1105 |
+
updates[s_comp] = gr.update(choices=anima_series_choices, value=anima_default_series)
|
| 1106 |
+
for f_comp in anima_cn_filepaths:
|
| 1107 |
+
updates[f_comp] = anima_filepath
|
| 1108 |
|
| 1109 |
diffsynth_all_types, diffsynth_default_type, diffsynth_series_choices, diffsynth_default_series, diffsynth_filepath = get_diffsynth_cn_defaults(controlnet_key)
|
| 1110 |
for t_comp in diffsynth_cn_types:
|
|
|
|
| 1153 |
cn_series_list = ui_components.get(f'controlnet_series_{prefix}', [])
|
| 1154 |
cn_filepaths_list = ui_components.get(f'controlnet_filepaths_{prefix}', [])
|
| 1155 |
|
| 1156 |
+
anima_cn_types_list = ui_components.get(f'anima_controlnet_lllite_types_{prefix}', [])
|
| 1157 |
+
anima_cn_series_list = ui_components.get(f'anima_controlnet_lllite_series_{prefix}', [])
|
| 1158 |
+
anima_cn_filepaths_list = ui_components.get(f'anima_controlnet_lllite_filepaths_{prefix}', [])
|
| 1159 |
+
|
| 1160 |
diffsynth_cn_types_list = ui_components.get(f'diffsynth_controlnet_types_{prefix}', [])
|
| 1161 |
diffsynth_cn_series_list = ui_components.get(f'diffsynth_controlnet_series_{prefix}', [])
|
| 1162 |
diffsynth_cn_filepaths_list = ui_components.get(f'diffsynth_controlnet_filepaths_{prefix}', [])
|
| 1163 |
|
| 1164 |
lora_accordion = ui_components.get(f'lora_accordion_{prefix}')
|
| 1165 |
cn_accordion = ui_components.get(f'controlnet_accordion_{prefix}')
|
| 1166 |
+
anima_cn_accordion = ui_components.get(f'anima_controlnet_lllite_accordion_{prefix}')
|
| 1167 |
diffsynth_cn_accordion = ui_components.get(f'diffsynth_controlnet_accordion_{prefix}')
|
| 1168 |
ipa_accordion = ui_components.get(f'ipadapter_accordion_{prefix}')
|
| 1169 |
sd3_ipa_accordion = ui_components.get(f'sd3_ipadapter_accordion_{prefix}')
|
|
|
|
| 1191 |
if guidance_comp: outputs.append(guidance_comp)
|
| 1192 |
if aspect_ratio_comp: outputs.append(aspect_ratio_comp)
|
| 1193 |
outputs.extend(cn_types_list + cn_series_list + cn_filepaths_list)
|
| 1194 |
+
outputs.extend(anima_cn_types_list + anima_cn_series_list + anima_cn_filepaths_list)
|
| 1195 |
outputs.extend(diffsynth_cn_types_list + diffsynth_cn_series_list + diffsynth_cn_filepaths_list)
|
| 1196 |
if lora_accordion: outputs.append(lora_accordion)
|
| 1197 |
if cn_accordion: outputs.append(cn_accordion)
|
| 1198 |
+
if anima_cn_accordion: outputs.append(anima_cn_accordion)
|
| 1199 |
if diffsynth_cn_accordion: outputs.append(diffsynth_cn_accordion)
|
| 1200 |
if ipa_accordion: outputs.append(ipa_accordion)
|
| 1201 |
if sd3_ipa_accordion: outputs.append(sd3_ipa_accordion)
|
|
|
|
| 1211 |
update_fn = make_update_fn(
|
| 1212 |
model_comp, cat_comp, clip_skip_comp, aspect_ratio_comp, width_comp, height_comp,
|
| 1213 |
cn_types_list, cn_series_list, cn_filepaths_list,
|
| 1214 |
+
anima_cn_types_list, anima_cn_series_list, anima_cn_filepaths_list,
|
| 1215 |
diffsynth_cn_types_list, diffsynth_cn_series_list, diffsynth_cn_filepaths_list,
|
| 1216 |
+
ipa_preset_list, lora_accordion, cn_accordion, anima_cn_accordion, diffsynth_cn_accordion, ipa_accordion, sd3_ipa_accordion, flux1_ipa_accordion, style_accordion, embedding_accordion, conditioning_accordion,
|
| 1217 |
ref_latent_accordion, guidance_comp, prompt_comp, neg_prompt_comp, steps_comp, cfg_comp, sampler_comp, scheduler_comp
|
| 1218 |
)
|
| 1219 |
inputs = [arch_comp, cat_comp]
|
|
|
|
| 1230 |
if guidance_comp: outputs2.append(guidance_comp)
|
| 1231 |
if aspect_ratio_comp: outputs2.append(aspect_ratio_comp)
|
| 1232 |
outputs2.extend(cn_types_list + cn_series_list + cn_filepaths_list)
|
| 1233 |
+
outputs2.extend(anima_cn_types_list + anima_cn_series_list + anima_cn_filepaths_list)
|
| 1234 |
outputs2.extend(diffsynth_cn_types_list + diffsynth_cn_series_list + diffsynth_cn_filepaths_list)
|
| 1235 |
if lora_accordion: outputs2.append(lora_accordion)
|
| 1236 |
if cn_accordion: outputs2.append(cn_accordion)
|
| 1237 |
+
if anima_cn_accordion: outputs2.append(anima_cn_accordion)
|
| 1238 |
if diffsynth_cn_accordion: outputs2.append(diffsynth_cn_accordion)
|
| 1239 |
if ipa_accordion: outputs2.append(ipa_accordion)
|
| 1240 |
if sd3_ipa_accordion: outputs2.append(sd3_ipa_accordion)
|
|
|
|
| 1255 |
change_fn = make_model_change_fn(
|
| 1256 |
cat_comp, clip_skip_comp, aspect_ratio_comp, width_comp, height_comp,
|
| 1257 |
cn_types_list, cn_series_list, cn_filepaths_list,
|
| 1258 |
+
anima_cn_types_list, anima_cn_series_list, anima_cn_filepaths_list,
|
| 1259 |
diffsynth_cn_types_list, diffsynth_cn_series_list, diffsynth_cn_filepaths_list,
|
| 1260 |
+
arch_comp, ipa_preset_list, lora_accordion, cn_accordion, anima_cn_accordion, diffsynth_cn_accordion, ipa_accordion, sd3_ipa_accordion, flux1_ipa_accordion, style_accordion, embedding_accordion, conditioning_accordion,
|
| 1261 |
ref_latent_accordion, guidance_comp, prompt_comp, neg_prompt_comp, steps_comp, cfg_comp, sampler_comp, scheduler_comp
|
| 1262 |
)
|
| 1263 |
model_comp.change(fn=change_fn, inputs=inputs2, outputs=outputs2)
|
| 1264 |
|
| 1265 |
create_lora_event_handlers(prefix)
|
| 1266 |
create_controlnet_event_handlers(prefix)
|
| 1267 |
+
create_anima_controlnet_lllite_event_handlers(prefix)
|
| 1268 |
create_diffsynth_controlnet_event_handlers(prefix)
|
| 1269 |
create_ipadapter_event_handlers(prefix)
|
| 1270 |
create_embedding_event_handlers(prefix)
|
|
|
|
| 1323 |
controlnet_key = architectures_dict.get(default_m_type, {}).get("controlnet_key", default_m_type)
|
| 1324 |
|
| 1325 |
all_types, default_type, series_choices, default_series, filepath = get_cn_defaults(controlnet_key)
|
| 1326 |
+
anima_all_types, anima_default_type, anima_series_choices, anima_default_series, anima_filepath = get_anima_cn_defaults()
|
| 1327 |
diffsynth_all_types, diffsynth_default_type, diffsynth_series_choices, diffsynth_default_series, diffsynth_filepath = get_diffsynth_cn_defaults(controlnet_key)
|
| 1328 |
|
| 1329 |
updates = {}
|
|
|
|
| 1335 |
updates[series_dd] = gr.update(choices=series_choices, value=default_series)
|
| 1336 |
for filepath_state in ui_components[f'controlnet_filepaths_{prefix}']:
|
| 1337 |
updates[filepath_state] = filepath
|
| 1338 |
+
|
| 1339 |
+
if f'anima_controlnet_lllite_types_{prefix}' in ui_components:
|
| 1340 |
+
for type_dd in ui_components[f'anima_controlnet_lllite_types_{prefix}']:
|
| 1341 |
+
updates[type_dd] = gr.update(choices=anima_all_types, value=anima_default_type)
|
| 1342 |
+
for series_dd in ui_components[f'anima_controlnet_lllite_series_{prefix}']:
|
| 1343 |
+
updates[series_dd] = gr.update(choices=anima_series_choices, value=anima_default_series)
|
| 1344 |
+
for filepath_state in ui_components[f'anima_controlnet_lllite_filepaths_{prefix}']:
|
| 1345 |
+
updates[filepath_state] = anima_filepath
|
| 1346 |
|
| 1347 |
if f'diffsynth_controlnet_types_{prefix}' in ui_components:
|
| 1348 |
for type_dd in ui_components[f'diffsynth_controlnet_types_{prefix}']:
|
|
|
|
| 1397 |
all_load_outputs.extend(ui_components[f'controlnet_types_{prefix}'])
|
| 1398 |
all_load_outputs.extend(ui_components[f'controlnet_series_{prefix}'])
|
| 1399 |
all_load_outputs.extend(ui_components[f'controlnet_filepaths_{prefix}'])
|
| 1400 |
+
if f'anima_controlnet_lllite_types_{prefix}' in ui_components:
|
| 1401 |
+
all_load_outputs.extend(ui_components[f'anima_controlnet_lllite_types_{prefix}'])
|
| 1402 |
+
all_load_outputs.extend(ui_components[f'anima_controlnet_lllite_series_{prefix}'])
|
| 1403 |
+
all_load_outputs.extend(ui_components[f'anima_controlnet_lllite_filepaths_{prefix}'])
|
| 1404 |
if f'diffsynth_controlnet_types_{prefix}' in ui_components:
|
| 1405 |
all_load_outputs.extend(ui_components[f'diffsynth_controlnet_types_{prefix}'])
|
| 1406 |
all_load_outputs.extend(ui_components[f'diffsynth_controlnet_series_{prefix}'])
|
ui/layout.py
CHANGED
|
@@ -10,14 +10,17 @@ def build_ui(event_handler_function):
|
|
| 10 |
ui_components = {}
|
| 11 |
|
| 12 |
with gr.Blocks() as demo:
|
| 13 |
-
gr.Markdown("# ImageGen
|
| 14 |
gr.Markdown(
|
| 15 |
"This demo is a streamlined version of the [Comfy web UI](https://github.com/RioShiina47/comfy-webui)'s [ImageGen](https://huggingface.co/spaces/RioShiina/ImageGen) functionality. "
|
| 16 |
-
"Other
|
| 17 |
-
"[
|
| 18 |
-
"[
|
| 19 |
-
"[
|
| 20 |
-
"[
|
|
|
|
|
|
|
|
|
|
| 21 |
)
|
| 22 |
with gr.Tabs(elem_id="tabs_container") as tabs:
|
| 23 |
with gr.TabItem("Txt2Img", id=0):
|
|
|
|
| 10 |
ui_components = {}
|
| 11 |
|
| 12 |
with gr.Blocks() as demo:
|
| 13 |
+
gr.Markdown("# ImageGen")
|
| 14 |
gr.Markdown(
|
| 15 |
"This demo is a streamlined version of the [Comfy web UI](https://github.com/RioShiina47/comfy-webui)'s [ImageGen](https://huggingface.co/spaces/RioShiina/ImageGen) functionality. "
|
| 16 |
+
"Other spaces: [ImageGen1](https://huggingface.co/spaces/RioShiina/ImageGen1), "
|
| 17 |
+
"[ImageGen2](https://huggingface.co/spaces/RioShiina/ImageGen2), "
|
| 18 |
+
"[ImageGen3](https://huggingface.co/spaces/RioShiina/ImageGen3), "
|
| 19 |
+
"[ImageGen4](https://huggingface.co/spaces/RioShiina/ImageGen4), "
|
| 20 |
+
"[ImageGen5](https://huggingface.co/spaces/RioShiina/ImageGen5), "
|
| 21 |
+
"[ImageGen6](https://huggingface.co/spaces/RioShiina/ImageGen6), "
|
| 22 |
+
"[ImageGen7](https://huggingface.co/spaces/RioShiina/ImageGen7), "
|
| 23 |
+
"[ImageGen8](https://huggingface.co/spaces/RioShiina/ImageGen8)"
|
| 24 |
)
|
| 25 |
with gr.Tabs(elem_id="tabs_container") as tabs:
|
| 26 |
with gr.TabItem("Txt2Img", id=0):
|
ui/shared/hires_fix_ui.py
CHANGED
|
@@ -3,7 +3,7 @@ from core.settings import MODEL_MAP_CHECKPOINT
|
|
| 3 |
from comfy_integration.nodes import SAMPLER_CHOICES, SCHEDULER_CHOICES
|
| 4 |
from .ui_components import (
|
| 5 |
create_lora_settings_ui,
|
| 6 |
-
create_controlnet_ui, create_ipadapter_ui, create_embedding_ui,
|
| 7 |
create_conditioning_ui, create_vae_override_ui,
|
| 8 |
create_model_architecture_filter_ui, create_category_filter_ui,
|
| 9 |
create_sd3_ipadapter_ui, create_flux1_ipadapter_ui, create_style_ui,
|
|
@@ -74,6 +74,7 @@ def create_ui():
|
|
| 74 |
|
| 75 |
components.update(create_lora_settings_ui(prefix))
|
| 76 |
components.update(create_controlnet_ui(prefix))
|
|
|
|
| 77 |
components.update(create_ipadapter_ui(prefix))
|
| 78 |
components.update(create_flux1_ipadapter_ui(prefix))
|
| 79 |
components.update(create_sd3_ipadapter_ui(prefix))
|
|
|
|
| 3 |
from comfy_integration.nodes import SAMPLER_CHOICES, SCHEDULER_CHOICES
|
| 4 |
from .ui_components import (
|
| 5 |
create_lora_settings_ui,
|
| 6 |
+
create_controlnet_ui, create_anima_controlnet_lllite_ui, create_ipadapter_ui, create_embedding_ui,
|
| 7 |
create_conditioning_ui, create_vae_override_ui,
|
| 8 |
create_model_architecture_filter_ui, create_category_filter_ui,
|
| 9 |
create_sd3_ipadapter_ui, create_flux1_ipadapter_ui, create_style_ui,
|
|
|
|
| 74 |
|
| 75 |
components.update(create_lora_settings_ui(prefix))
|
| 76 |
components.update(create_controlnet_ui(prefix))
|
| 77 |
+
components.update(create_anima_controlnet_lllite_ui(prefix))
|
| 78 |
components.update(create_ipadapter_ui(prefix))
|
| 79 |
components.update(create_flux1_ipadapter_ui(prefix))
|
| 80 |
components.update(create_sd3_ipadapter_ui(prefix))
|
ui/shared/img2img_ui.py
CHANGED
|
@@ -3,7 +3,7 @@ from core.settings import MODEL_MAP_CHECKPOINT
|
|
| 3 |
from comfy_integration.nodes import SAMPLER_CHOICES, SCHEDULER_CHOICES
|
| 4 |
from .ui_components import (
|
| 5 |
create_lora_settings_ui,
|
| 6 |
-
create_controlnet_ui, create_diffsynth_controlnet_ui, create_ipadapter_ui, create_embedding_ui,
|
| 7 |
create_conditioning_ui, create_vae_override_ui,
|
| 8 |
create_model_architecture_filter_ui, create_category_filter_ui,
|
| 9 |
create_sd3_ipadapter_ui, create_flux1_ipadapter_ui, create_style_ui,
|
|
@@ -55,6 +55,7 @@ def create_ui():
|
|
| 55 |
|
| 56 |
components.update(create_lora_settings_ui(prefix))
|
| 57 |
components.update(create_controlnet_ui(prefix))
|
|
|
|
| 58 |
components.update(create_diffsynth_controlnet_ui(prefix))
|
| 59 |
components.update(create_ipadapter_ui(prefix))
|
| 60 |
components.update(create_flux1_ipadapter_ui(prefix))
|
|
|
|
| 3 |
from comfy_integration.nodes import SAMPLER_CHOICES, SCHEDULER_CHOICES
|
| 4 |
from .ui_components import (
|
| 5 |
create_lora_settings_ui,
|
| 6 |
+
create_controlnet_ui, create_anima_controlnet_lllite_ui, create_diffsynth_controlnet_ui, create_ipadapter_ui, create_embedding_ui,
|
| 7 |
create_conditioning_ui, create_vae_override_ui,
|
| 8 |
create_model_architecture_filter_ui, create_category_filter_ui,
|
| 9 |
create_sd3_ipadapter_ui, create_flux1_ipadapter_ui, create_style_ui,
|
|
|
|
| 55 |
|
| 56 |
components.update(create_lora_settings_ui(prefix))
|
| 57 |
components.update(create_controlnet_ui(prefix))
|
| 58 |
+
components.update(create_anima_controlnet_lllite_ui(prefix))
|
| 59 |
components.update(create_diffsynth_controlnet_ui(prefix))
|
| 60 |
components.update(create_ipadapter_ui(prefix))
|
| 61 |
components.update(create_flux1_ipadapter_ui(prefix))
|
ui/shared/inpaint_ui.py
CHANGED
|
@@ -2,7 +2,7 @@ import gradio as gr
|
|
| 2 |
from core.settings import MODEL_MAP_CHECKPOINT
|
| 3 |
from .ui_components import (
|
| 4 |
create_base_parameter_ui, create_lora_settings_ui,
|
| 5 |
-
create_controlnet_ui, create_diffsynth_controlnet_ui, create_ipadapter_ui, create_embedding_ui,
|
| 6 |
create_conditioning_ui, create_vae_override_ui,
|
| 7 |
create_model_architecture_filter_ui, create_category_filter_ui,
|
| 8 |
create_sd3_ipadapter_ui, create_flux1_ipadapter_ui, create_style_ui,
|
|
@@ -87,6 +87,7 @@ def create_ui():
|
|
| 87 |
|
| 88 |
components.update(create_lora_settings_ui(prefix))
|
| 89 |
components.update(create_controlnet_ui(prefix))
|
|
|
|
| 90 |
components.update(create_diffsynth_controlnet_ui(prefix))
|
| 91 |
components.update(create_ipadapter_ui(prefix))
|
| 92 |
components.update(create_flux1_ipadapter_ui(prefix))
|
|
|
|
| 2 |
from core.settings import MODEL_MAP_CHECKPOINT
|
| 3 |
from .ui_components import (
|
| 4 |
create_base_parameter_ui, create_lora_settings_ui,
|
| 5 |
+
create_controlnet_ui, create_anima_controlnet_lllite_ui, create_diffsynth_controlnet_ui, create_ipadapter_ui, create_embedding_ui,
|
| 6 |
create_conditioning_ui, create_vae_override_ui,
|
| 7 |
create_model_architecture_filter_ui, create_category_filter_ui,
|
| 8 |
create_sd3_ipadapter_ui, create_flux1_ipadapter_ui, create_style_ui,
|
|
|
|
| 87 |
|
| 88 |
components.update(create_lora_settings_ui(prefix))
|
| 89 |
components.update(create_controlnet_ui(prefix))
|
| 90 |
+
components.update(create_anima_controlnet_lllite_ui(prefix))
|
| 91 |
components.update(create_diffsynth_controlnet_ui(prefix))
|
| 92 |
components.update(create_ipadapter_ui(prefix))
|
| 93 |
components.update(create_flux1_ipadapter_ui(prefix))
|
ui/shared/outpaint_ui.py
CHANGED
|
@@ -3,7 +3,7 @@ from core.settings import MODEL_MAP_CHECKPOINT
|
|
| 3 |
from comfy_integration.nodes import SAMPLER_CHOICES, SCHEDULER_CHOICES
|
| 4 |
from .ui_components import (
|
| 5 |
create_lora_settings_ui,
|
| 6 |
-
create_controlnet_ui, create_diffsynth_controlnet_ui, create_ipadapter_ui, create_embedding_ui,
|
| 7 |
create_conditioning_ui, create_vae_override_ui,
|
| 8 |
create_model_architecture_filter_ui, create_category_filter_ui,
|
| 9 |
create_sd3_ipadapter_ui, create_flux1_ipadapter_ui, create_style_ui,
|
|
@@ -70,6 +70,7 @@ def create_ui():
|
|
| 70 |
|
| 71 |
components.update(create_lora_settings_ui(prefix))
|
| 72 |
components.update(create_controlnet_ui(prefix))
|
|
|
|
| 73 |
components.update(create_diffsynth_controlnet_ui(prefix))
|
| 74 |
components.update(create_ipadapter_ui(prefix))
|
| 75 |
components.update(create_flux1_ipadapter_ui(prefix))
|
|
|
|
| 3 |
from comfy_integration.nodes import SAMPLER_CHOICES, SCHEDULER_CHOICES
|
| 4 |
from .ui_components import (
|
| 5 |
create_lora_settings_ui,
|
| 6 |
+
create_controlnet_ui, create_anima_controlnet_lllite_ui, create_diffsynth_controlnet_ui, create_ipadapter_ui, create_embedding_ui,
|
| 7 |
create_conditioning_ui, create_vae_override_ui,
|
| 8 |
create_model_architecture_filter_ui, create_category_filter_ui,
|
| 9 |
create_sd3_ipadapter_ui, create_flux1_ipadapter_ui, create_style_ui,
|
|
|
|
| 70 |
|
| 71 |
components.update(create_lora_settings_ui(prefix))
|
| 72 |
components.update(create_controlnet_ui(prefix))
|
| 73 |
+
components.update(create_anima_controlnet_lllite_ui(prefix))
|
| 74 |
components.update(create_diffsynth_controlnet_ui(prefix))
|
| 75 |
components.update(create_ipadapter_ui(prefix))
|
| 76 |
components.update(create_flux1_ipadapter_ui(prefix))
|
ui/shared/txt2img_ui.py
CHANGED
|
@@ -2,7 +2,7 @@ import gradio as gr
|
|
| 2 |
from core.settings import MODEL_MAP_CHECKPOINT
|
| 3 |
from .ui_components import (
|
| 4 |
create_base_parameter_ui, create_lora_settings_ui,
|
| 5 |
-
create_controlnet_ui, create_diffsynth_controlnet_ui, create_ipadapter_ui, create_embedding_ui,
|
| 6 |
create_conditioning_ui, create_vae_override_ui,
|
| 7 |
create_model_architecture_filter_ui, create_category_filter_ui,
|
| 8 |
create_sd3_ipadapter_ui, create_flux1_ipadapter_ui, create_style_ui,
|
|
@@ -42,6 +42,7 @@ def create_ui():
|
|
| 42 |
|
| 43 |
components.update(create_lora_settings_ui(prefix))
|
| 44 |
components.update(create_controlnet_ui(prefix))
|
|
|
|
| 45 |
components.update(create_diffsynth_controlnet_ui(prefix))
|
| 46 |
components.update(create_ipadapter_ui(prefix))
|
| 47 |
components.update(create_flux1_ipadapter_ui(prefix))
|
|
|
|
| 2 |
from core.settings import MODEL_MAP_CHECKPOINT
|
| 3 |
from .ui_components import (
|
| 4 |
create_base_parameter_ui, create_lora_settings_ui,
|
| 5 |
+
create_controlnet_ui, create_anima_controlnet_lllite_ui, create_diffsynth_controlnet_ui, create_ipadapter_ui, create_embedding_ui,
|
| 6 |
create_conditioning_ui, create_vae_override_ui,
|
| 7 |
create_model_architecture_filter_ui, create_category_filter_ui,
|
| 8 |
create_sd3_ipadapter_ui, create_flux1_ipadapter_ui, create_style_ui,
|
|
|
|
| 42 |
|
| 43 |
components.update(create_lora_settings_ui(prefix))
|
| 44 |
components.update(create_controlnet_ui(prefix))
|
| 45 |
+
components.update(create_anima_controlnet_lllite_ui(prefix))
|
| 46 |
components.update(create_diffsynth_controlnet_ui(prefix))
|
| 47 |
components.update(create_ipadapter_ui(prefix))
|
| 48 |
components.update(create_flux1_ipadapter_ui(prefix))
|
ui/shared/ui_components.py
CHANGED
|
@@ -3,11 +3,13 @@ from comfy_integration.nodes import SAMPLER_CHOICES, SCHEDULER_CHOICES
|
|
| 3 |
from core.settings import (
|
| 4 |
MAX_LORAS, LORA_SOURCE_CHOICES, MAX_EMBEDDINGS, MAX_CONDITIONINGS,
|
| 5 |
MAX_CONTROLNETS, MAX_IPADAPTERS, RESOLUTION_MAP, ARCHITECTURES_CONFIG,
|
| 6 |
-
MODEL_MAP_CHECKPOINT, MODEL_TYPE_MAP, FEATURES_CONFIG, ARCH_CATEGORIES_MAP
|
|
|
|
| 7 |
)
|
| 8 |
import yaml
|
| 9 |
import os
|
| 10 |
from functools import lru_cache
|
|
|
|
| 11 |
|
| 12 |
default_model_name = list(MODEL_MAP_CHECKPOINT.keys())[0] if MODEL_MAP_CHECKPOINT else None
|
| 13 |
default_m_type = MODEL_TYPE_MAP.get(default_model_name, "SDXL") if default_model_name else "SDXL"
|
|
@@ -51,7 +53,7 @@ def create_model_architecture_filter_ui(prefix):
|
|
| 51 |
choices=choices,
|
| 52 |
value="ALL",
|
| 53 |
interactive=True,
|
| 54 |
-
visible=
|
| 55 |
)
|
| 56 |
return components
|
| 57 |
|
|
@@ -186,6 +188,54 @@ def create_controlnet_ui(prefix: str, max_units=MAX_CONTROLNETS):
|
|
| 186 |
|
| 187 |
return components
|
| 188 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 189 |
def create_diffsynth_controlnet_ui(prefix: str, max_units=MAX_CONTROLNETS):
|
| 190 |
components = {}
|
| 191 |
key = lambda name: f"{name}_{prefix}"
|
|
@@ -237,7 +287,7 @@ def create_ipadapter_ui(prefix: str, max_units=MAX_IPADAPTERS):
|
|
| 237 |
|
| 238 |
with gr.Accordion("IPAdapter Settings", open=False, visible=('ipadapter' in default_enabled_chains)) as accordion:
|
| 239 |
components[key('ipadapter_accordion')] = accordion
|
| 240 |
-
gr.Markdown("
|
| 241 |
|
| 242 |
with gr.Row():
|
| 243 |
components[key('ipadapter_final_preset')] = gr.Dropdown(
|
|
@@ -306,6 +356,7 @@ def create_flux1_ipadapter_ui(prefix: str, max_units=MAX_IPADAPTERS):
|
|
| 306 |
|
| 307 |
with gr.Accordion("IPAdapter Settings (FLUX.1)", open=False, visible=('flux1_ipadapter' in default_enabled_chains)) as accordion:
|
| 308 |
components[key('flux1_ipadapter_accordion')] = accordion
|
|
|
|
| 309 |
|
| 310 |
ipa_rows, images, weights, start_percents, end_percents = [], [], [], [], []
|
| 311 |
components.update({
|
|
@@ -343,6 +394,7 @@ def create_sd3_ipadapter_ui(prefix: str, max_units=MAX_IPADAPTERS):
|
|
| 343 |
|
| 344 |
with gr.Accordion("IPAdapter Settings (SD3)", open=False, visible=('sd3_ipadapter' in default_enabled_chains)) as accordion:
|
| 345 |
components[key('sd3_ipadapter_accordion')] = accordion
|
|
|
|
| 346 |
|
| 347 |
ipa_rows, images, weights, start_percents, end_percents = [], [], [], [], []
|
| 348 |
components.update({
|
|
@@ -484,6 +536,13 @@ def create_conditioning_ui(prefix: str):
|
|
| 484 |
|
| 485 |
return components
|
| 486 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 487 |
def create_vae_override_ui(prefix: str):
|
| 488 |
components = {}
|
| 489 |
key = lambda name: f"{name}_{prefix}"
|
|
@@ -515,6 +574,12 @@ def create_vae_override_ui(prefix: str):
|
|
| 515 |
components[key('vae_upload_button')] = upload_btn
|
| 516 |
components[key('vae_file')] = gr.State(None)
|
| 517 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 518 |
return components
|
| 519 |
|
| 520 |
def create_reference_latent_ui(prefix: str, max_units=10):
|
|
|
|
| 3 |
from core.settings import (
|
| 4 |
MAX_LORAS, LORA_SOURCE_CHOICES, MAX_EMBEDDINGS, MAX_CONDITIONINGS,
|
| 5 |
MAX_CONTROLNETS, MAX_IPADAPTERS, RESOLUTION_MAP, ARCHITECTURES_CONFIG,
|
| 6 |
+
MODEL_MAP_CHECKPOINT, MODEL_TYPE_MAP, FEATURES_CONFIG, ARCH_CATEGORIES_MAP,
|
| 7 |
+
VAE_DIR
|
| 8 |
)
|
| 9 |
import yaml
|
| 10 |
import os
|
| 11 |
from functools import lru_cache
|
| 12 |
+
from utils.app_utils import save_uploaded_file_with_hash
|
| 13 |
|
| 14 |
default_model_name = list(MODEL_MAP_CHECKPOINT.keys())[0] if MODEL_MAP_CHECKPOINT else None
|
| 15 |
default_m_type = MODEL_TYPE_MAP.get(default_model_name, "SDXL") if default_model_name else "SDXL"
|
|
|
|
| 53 |
choices=choices,
|
| 54 |
value="ALL",
|
| 55 |
interactive=True,
|
| 56 |
+
visible=True
|
| 57 |
)
|
| 58 |
return components
|
| 59 |
|
|
|
|
| 188 |
|
| 189 |
return components
|
| 190 |
|
| 191 |
+
def create_anima_controlnet_lllite_ui(prefix: str, max_units=MAX_CONTROLNETS):
|
| 192 |
+
components = {}
|
| 193 |
+
key = lambda name: f"{name}_{prefix}"
|
| 194 |
+
|
| 195 |
+
with gr.Accordion("Anima ControlNet Lllite Settings", open=False, visible=('anima_controlnet_lllite' in default_enabled_chains)) as accordion:
|
| 196 |
+
components[key('anima_controlnet_lllite_accordion')] = accordion
|
| 197 |
+
gr.Markdown("💡 **Tip:** Processed using the [kohya-ss/ComfyUI-Anima-LLLite](https://github.com/kohya-ss/ComfyUI-Anima-LLLite) node.")
|
| 198 |
+
|
| 199 |
+
cn_rows, images, series, types, strengths, filepaths, start_percents, end_percents = [], [], [], [], [], [], [], []
|
| 200 |
+
components.update({
|
| 201 |
+
key('anima_controlnet_lllite_rows'): cn_rows,
|
| 202 |
+
key('anima_controlnet_lllite_images'): images,
|
| 203 |
+
key('anima_controlnet_lllite_series'): series,
|
| 204 |
+
key('anima_controlnet_lllite_types'): types,
|
| 205 |
+
key('anima_controlnet_lllite_strengths'): strengths,
|
| 206 |
+
key('anima_controlnet_lllite_filepaths'): filepaths,
|
| 207 |
+
key('anima_controlnet_lllite_start_percents'): start_percents,
|
| 208 |
+
key('anima_controlnet_lllite_end_percents'): end_percents
|
| 209 |
+
})
|
| 210 |
+
|
| 211 |
+
for i in range(max_units):
|
| 212 |
+
with gr.Row(visible=(i < 1)) as row:
|
| 213 |
+
with gr.Column(scale=1):
|
| 214 |
+
images.append(gr.Image(label=f"Control Image {i+1}", type="pil", sources=["upload"], height=256))
|
| 215 |
+
with gr.Column(scale=2):
|
| 216 |
+
types.append(gr.Dropdown(label="Type", choices=[], interactive=True, allow_custom_value=True))
|
| 217 |
+
series.append(gr.Dropdown(label="Series", choices=[], interactive=True, allow_custom_value=True))
|
| 218 |
+
strengths.append(gr.Slider(label="Strength", minimum=0.0, maximum=2.0, step=0.05, value=1.0, interactive=True))
|
| 219 |
+
with gr.Row(visible=False):
|
| 220 |
+
start_percents.append(gr.State(0.0))
|
| 221 |
+
end_percents.append(gr.State(1.0))
|
| 222 |
+
filepaths.append(gr.State(None))
|
| 223 |
+
cn_rows.append(row)
|
| 224 |
+
|
| 225 |
+
with gr.Row():
|
| 226 |
+
components[key('add_anima_controlnet_lllite_button')] = gr.Button("✚ Add Lllite")
|
| 227 |
+
components[key('delete_anima_controlnet_lllite_button')] = gr.Button("➖ Delete Lllite", visible=False)
|
| 228 |
+
components[key('anima_controlnet_lllite_count_state')] = gr.State(1)
|
| 229 |
+
|
| 230 |
+
all_cn_components_flat = []
|
| 231 |
+
for i in range(max_units):
|
| 232 |
+
all_cn_components_flat.extend([
|
| 233 |
+
images[i], types[i], series[i], strengths[i], filepaths[i], start_percents[i], end_percents[i]
|
| 234 |
+
])
|
| 235 |
+
components[key('all_anima_controlnet_lllite_components_flat')] = all_cn_components_flat
|
| 236 |
+
|
| 237 |
+
return components
|
| 238 |
+
|
| 239 |
def create_diffsynth_controlnet_ui(prefix: str, max_units=MAX_CONTROLNETS):
|
| 240 |
components = {}
|
| 241 |
key = lambda name: f"{name}_{prefix}"
|
|
|
|
| 287 |
|
| 288 |
with gr.Accordion("IPAdapter Settings", open=False, visible=('ipadapter' in default_enabled_chains)) as accordion:
|
| 289 |
components[key('ipadapter_accordion')] = accordion
|
| 290 |
+
gr.Markdown("💡 **Tip:** Processed using the [cubiq/ComfyUI_IPAdapter_plus](https://github.com/cubiq/ComfyUI_IPAdapter_plus) node.")
|
| 291 |
|
| 292 |
with gr.Row():
|
| 293 |
components[key('ipadapter_final_preset')] = gr.Dropdown(
|
|
|
|
| 356 |
|
| 357 |
with gr.Accordion("IPAdapter Settings (FLUX.1)", open=False, visible=('flux1_ipadapter' in default_enabled_chains)) as accordion:
|
| 358 |
components[key('flux1_ipadapter_accordion')] = accordion
|
| 359 |
+
gr.Markdown("💡 **Tip:** Processed using the [Shakker-Labs/ComfyUI-IPAdapter-Flux](https://github.com/Shakker-Labs/ComfyUI-IPAdapter-Flux) node.")
|
| 360 |
|
| 361 |
ipa_rows, images, weights, start_percents, end_percents = [], [], [], [], []
|
| 362 |
components.update({
|
|
|
|
| 394 |
|
| 395 |
with gr.Accordion("IPAdapter Settings (SD3)", open=False, visible=('sd3_ipadapter' in default_enabled_chains)) as accordion:
|
| 396 |
components[key('sd3_ipadapter_accordion')] = accordion
|
| 397 |
+
gr.Markdown("💡 **Tip:** Processed using the [Slickytail/ComfyUI-InstantX-IPAdapter-SD3](https://github.com/Slickytail/ComfyUI-InstantX-IPAdapter-SD3) node.")
|
| 398 |
|
| 399 |
ipa_rows, images, weights, start_percents, end_percents = [], [], [], [], []
|
| 400 |
components.update({
|
|
|
|
| 536 |
|
| 537 |
return components
|
| 538 |
|
| 539 |
+
def on_vae_upload(file_obj):
|
| 540 |
+
if not file_obj:
|
| 541 |
+
return gr.update(), gr.update(), None
|
| 542 |
+
|
| 543 |
+
hashed_filename = save_uploaded_file_with_hash(file_obj, VAE_DIR)
|
| 544 |
+
return hashed_filename, "File", file_obj
|
| 545 |
+
|
| 546 |
def create_vae_override_ui(prefix: str):
|
| 547 |
components = {}
|
| 548 |
key = lambda name: f"{name}_{prefix}"
|
|
|
|
| 574 |
components[key('vae_upload_button')] = upload_btn
|
| 575 |
components[key('vae_file')] = gr.State(None)
|
| 576 |
|
| 577 |
+
upload_btn.upload(
|
| 578 |
+
fn=on_vae_upload,
|
| 579 |
+
inputs=[upload_btn],
|
| 580 |
+
outputs=[components[key('vae_id')], components[key('vae_source')], components[key('vae_file')]]
|
| 581 |
+
)
|
| 582 |
+
|
| 583 |
return components
|
| 584 |
|
| 585 |
def create_reference_latent_ui(prefix: str, max_units=10):
|
utils/app_utils.py
CHANGED
|
@@ -15,7 +15,6 @@ import yaml
|
|
| 15 |
|
| 16 |
from core.settings import *
|
| 17 |
|
| 18 |
-
DISK_LIMIT_GB = 120
|
| 19 |
MODELS_ROOT_DIR = "ComfyUI/models"
|
| 20 |
|
| 21 |
IPADAPTER_PRESETS = None
|
|
@@ -89,54 +88,6 @@ def get_directory_size(path: str) -> int:
|
|
| 89 |
print(f"Warning: Could not access {path} to calculate size: {e}")
|
| 90 |
return total_size
|
| 91 |
|
| 92 |
-
def enforce_disk_limit():
|
| 93 |
-
disk_limit_bytes = DISK_LIMIT_GB * (1024 ** 3)
|
| 94 |
-
cache_dir = hf_constants.HF_HUB_CACHE
|
| 95 |
-
|
| 96 |
-
if not os.path.exists(cache_dir):
|
| 97 |
-
return
|
| 98 |
-
|
| 99 |
-
print(f"--- [Storage Manager] Checking disk usage in '{cache_dir}' (Limit: {DISK_LIMIT_GB} GB) ---")
|
| 100 |
-
|
| 101 |
-
try:
|
| 102 |
-
all_files = []
|
| 103 |
-
current_size_bytes = 0
|
| 104 |
-
for dirpath, _, filenames in os.walk(cache_dir):
|
| 105 |
-
for f in filenames:
|
| 106 |
-
if f.endswith(".incomplete") or f.endswith(".lock"):
|
| 107 |
-
continue
|
| 108 |
-
file_path = os.path.join(dirpath, f)
|
| 109 |
-
if os.path.isfile(file_path) and not os.path.islink(file_path):
|
| 110 |
-
try:
|
| 111 |
-
file_size = os.path.getsize(file_path)
|
| 112 |
-
creation_time = os.path.getctime(file_path)
|
| 113 |
-
all_files.append((creation_time, file_path, file_size))
|
| 114 |
-
current_size_bytes += file_size
|
| 115 |
-
except OSError:
|
| 116 |
-
continue
|
| 117 |
-
|
| 118 |
-
print(f"--- [Storage Manager] Current usage: {bytes_to_gb(current_size_bytes)} GB ---")
|
| 119 |
-
|
| 120 |
-
if current_size_bytes > disk_limit_bytes:
|
| 121 |
-
print(f"--- [Storage Manager] Usage exceeds limit. Starting cleanup... ---")
|
| 122 |
-
all_files.sort(key=lambda x: x[0])
|
| 123 |
-
|
| 124 |
-
while current_size_bytes > disk_limit_bytes and all_files:
|
| 125 |
-
oldest_file_time, oldest_file_path, oldest_file_size = all_files.pop(0)
|
| 126 |
-
try:
|
| 127 |
-
os.remove(oldest_file_path)
|
| 128 |
-
current_size_bytes -= oldest_file_size
|
| 129 |
-
print(f"--- [Storage Manager] Deleted oldest file: {os.path.basename(oldest_file_path)} ({bytes_to_gb(oldest_file_size)} GB freed) ---")
|
| 130 |
-
except OSError as e:
|
| 131 |
-
print(f"--- [Storage Manager] Error deleting file {oldest_file_path}: {e} ---")
|
| 132 |
-
|
| 133 |
-
print(f"--- [Storage Manager] Cleanup finished. New usage: {bytes_to_gb(current_size_bytes)} GB ---")
|
| 134 |
-
else:
|
| 135 |
-
print("--- [Storage Manager] Disk usage is within the limit. No action needed. ---")
|
| 136 |
-
|
| 137 |
-
except Exception as e:
|
| 138 |
-
print(f"--- [Storage Manager] An unexpected error occurred: {e} ---")
|
| 139 |
-
|
| 140 |
def get_value_at_index(obj: Union[Sequence, Mapping], index: int) -> Any:
|
| 141 |
try:
|
| 142 |
return obj[index]
|
|
@@ -188,8 +139,6 @@ def get_civitai_file_info(version_id: str) -> dict | None:
|
|
| 188 |
return None
|
| 189 |
|
| 190 |
def download_file(url: str, save_path: str, api_key: str = None, progress=None, desc: str = "") -> str:
|
| 191 |
-
enforce_disk_limit()
|
| 192 |
-
|
| 193 |
if os.path.exists(save_path):
|
| 194 |
return f"File already exists: {os.path.basename(save_path)}"
|
| 195 |
|
|
@@ -526,24 +475,6 @@ def ensure_sd3_ipadapter_models_downloaded(progress):
|
|
| 526 |
print(f"Warning: Failed to load or download sd3 ipadapter models: {e}")
|
| 527 |
|
| 528 |
|
| 529 |
-
def print_welcome_message():
|
| 530 |
-
author_name = "RioShiina"
|
| 531 |
-
project_url = "https://huggingface.co/RioShiina"
|
| 532 |
-
border = "=" * 72
|
| 533 |
-
|
| 534 |
-
message = (
|
| 535 |
-
f"\n{border}\n\n"
|
| 536 |
-
f" Thank you for using this project!\n\n"
|
| 537 |
-
f" **Author:** {author_name}\n"
|
| 538 |
-
f" **Find more from the author:** {project_url}\n\n"
|
| 539 |
-
f" This project is open-source under the GNU General Public License v3.0 (GPL-3.0).\n"
|
| 540 |
-
f" As it's built upon GPL-3.0 components (like ComfyUI), any modifications you\n"
|
| 541 |
-
f" distribute must also be open-sourced under the same license.\n\n"
|
| 542 |
-
f" Your respect for the principles of free software is greatly appreciated!\n\n"
|
| 543 |
-
f"{border}\n"
|
| 544 |
-
)
|
| 545 |
-
|
| 546 |
-
print(message)
|
| 547 |
|
| 548 |
def get_model_generation_defaults(model_display_name: str, model_type: str, defaults_config: dict):
|
| 549 |
final_defaults = {
|
|
|
|
| 15 |
|
| 16 |
from core.settings import *
|
| 17 |
|
|
|
|
| 18 |
MODELS_ROOT_DIR = "ComfyUI/models"
|
| 19 |
|
| 20 |
IPADAPTER_PRESETS = None
|
|
|
|
| 88 |
print(f"Warning: Could not access {path} to calculate size: {e}")
|
| 89 |
return total_size
|
| 90 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 91 |
def get_value_at_index(obj: Union[Sequence, Mapping], index: int) -> Any:
|
| 92 |
try:
|
| 93 |
return obj[index]
|
|
|
|
| 139 |
return None
|
| 140 |
|
| 141 |
def download_file(url: str, save_path: str, api_key: str = None, progress=None, desc: str = "") -> str:
|
|
|
|
|
|
|
| 142 |
if os.path.exists(save_path):
|
| 143 |
return f"File already exists: {os.path.basename(save_path)}"
|
| 144 |
|
|
|
|
| 475 |
print(f"Warning: Failed to load or download sd3 ipadapter models: {e}")
|
| 476 |
|
| 477 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 478 |
|
| 479 |
def get_model_generation_defaults(model_display_name: str, model_type: str, defaults_config: dict):
|
| 480 |
final_defaults = {
|
yaml/anima_controlnet_lllite_models.yaml
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Anima_ControlNet_Lllite:
|
| 2 |
+
- Filepath: "anima-lllite-lineart-1.safetensors"
|
| 3 |
+
Series: "kohya-ss"
|
| 4 |
+
Type: ["Lineart"]
|
| 5 |
+
- Filepath: "anima-lllite-depth-1.safetensors"
|
| 6 |
+
Series: "kohya-ss"
|
| 7 |
+
Type: ["Depth"]
|
| 8 |
+
- Filepath: "anima-lllite-pose-1.safetensors"
|
| 9 |
+
Series: "kohya-ss"
|
| 10 |
+
Type: ["Pose"]
|
| 11 |
+
- Filepath: "anima-lllite-scribble-1.safetensors"
|
| 12 |
+
Series: "kohya-ss"
|
| 13 |
+
Type: ["Scribble"]
|
yaml/file_list.yaml
CHANGED
|
@@ -48,17 +48,14 @@ file:
|
|
| 48 |
source: hf
|
| 49 |
repo_id: "bluepen5805/illustrious_pencil-XL"
|
| 50 |
repository_file_path: "illustrious_pencil-XL-v5.0.0.safetensors"
|
| 51 |
-
- filename: "
|
| 52 |
source: hf
|
| 53 |
-
repo_id: "
|
| 54 |
-
repository_file_path: "
|
| 55 |
- filename: "novaAnimeXL_ilV160.safetensors"
|
| 56 |
source: hf
|
| 57 |
repo_id: "Yevrey921/novaAnimeXL_ilV160"
|
| 58 |
repository_file_path: "novaAnimeXL_ilV160.safetensors"
|
| 59 |
-
- filename: "Illustrious-XL-v2.0.safetensors"
|
| 60 |
-
source: hf
|
| 61 |
-
repo_id: "OnomaAIResearch/Illustrious-XL-v2.0"
|
| 62 |
- filename: "Illustrious-XL-v2.0.safetensors"
|
| 63 |
source: hf
|
| 64 |
repo_id: "OnomaAIResearch/Illustrious-XL-v2.0"
|
|
@@ -140,6 +137,23 @@ file:
|
|
| 140 |
repo_id: "Comfy-Org/sigclip_vision_384"
|
| 141 |
repository_file_path: "sigclip_vision_patch14_384.safetensors"
|
| 142 |
controlnet:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 143 |
# SD3.5
|
| 144 |
- filename: "sd3.5_large_controlnet_blur.safetensors"
|
| 145 |
source: "hf"
|
|
@@ -208,6 +222,116 @@ file:
|
|
| 208 |
source: "hf"
|
| 209 |
repo_id: "xinsir/anime-painter"
|
| 210 |
repository_file_path: "diffusion_pytorch_model.safetensors"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 211 |
# SD1.5
|
| 212 |
- filename: "control_v11e_sd15_ip2p_fp16.safetensors"
|
| 213 |
source: "hf"
|
|
@@ -281,10 +405,14 @@ file:
|
|
| 281 |
repo_id: "black-forest-labs/FLUX.2-klein-base-9b-fp8"
|
| 282 |
repository_file_path: "flux-2-klein-base-9b-fp8.safetensors"
|
| 283 |
# Anima
|
| 284 |
-
- filename: "
|
|
|
|
|
|
|
|
|
|
|
|
|
| 285 |
source: "hf"
|
| 286 |
repo_id: "circlestone-labs/Anima"
|
| 287 |
-
repository_file_path: "split_files/diffusion_models/anima-
|
| 288 |
- filename: "AnimaYume_tuned_v04.safetensors"
|
| 289 |
source: "hf"
|
| 290 |
repo_id: "duongve/AnimaYume"
|
|
|
|
| 48 |
source: hf
|
| 49 |
repo_id: "bluepen5805/illustrious_pencil-XL"
|
| 50 |
repository_file_path: "illustrious_pencil-XL-v5.0.0.safetensors"
|
| 51 |
+
- filename: "hassakuXLIllustrious_v30.safetensors"
|
| 52 |
source: hf
|
| 53 |
+
repo_id: "misri/hassakuXLIllustrious_v30"
|
| 54 |
+
repository_file_path: "hassakuXLIllustrious_v30.safetensors"
|
| 55 |
- filename: "novaAnimeXL_ilV160.safetensors"
|
| 56 |
source: hf
|
| 57 |
repo_id: "Yevrey921/novaAnimeXL_ilV160"
|
| 58 |
repository_file_path: "novaAnimeXL_ilV160.safetensors"
|
|
|
|
|
|
|
|
|
|
| 59 |
- filename: "Illustrious-XL-v2.0.safetensors"
|
| 60 |
source: hf
|
| 61 |
repo_id: "OnomaAIResearch/Illustrious-XL-v2.0"
|
|
|
|
| 137 |
repo_id: "Comfy-Org/sigclip_vision_384"
|
| 138 |
repository_file_path: "sigclip_vision_patch14_384.safetensors"
|
| 139 |
controlnet:
|
| 140 |
+
# Anima
|
| 141 |
+
- filename: "anima-lllite-lineart-1.safetensors"
|
| 142 |
+
source: "hf"
|
| 143 |
+
repo_id: "kohya-ss/Anima-LLLite"
|
| 144 |
+
repository_file_path: "anima-lllite-lineart-1.safetensors"
|
| 145 |
+
- filename: "anima-lllite-depth-1.safetensors"
|
| 146 |
+
source: "hf"
|
| 147 |
+
repo_id: "kohya-ss/Anima-LLLite"
|
| 148 |
+
repository_file_path: "anima-lllite-depth-1.safetensors"
|
| 149 |
+
- filename: "anima-lllite-pose-1.safetensors"
|
| 150 |
+
source: "hf"
|
| 151 |
+
repo_id: "kohya-ss/Anima-LLLite"
|
| 152 |
+
repository_file_path: "anima-lllite-pose-1.safetensors"
|
| 153 |
+
- filename: "anima-lllite-scribble-1.safetensors"
|
| 154 |
+
source: "hf"
|
| 155 |
+
repo_id: "kohya-ss/Anima-LLLite"
|
| 156 |
+
repository_file_path: "anima-lllite-scribble-1.safetensors"
|
| 157 |
# SD3.5
|
| 158 |
- filename: "sd3.5_large_controlnet_blur.safetensors"
|
| 159 |
source: "hf"
|
|
|
|
| 222 |
source: "hf"
|
| 223 |
repo_id: "xinsir/anime-painter"
|
| 224 |
repository_file_path: "diffusion_pytorch_model.safetensors"
|
| 225 |
+
# SDXL - NoobAI
|
| 226 |
+
- filename: "noob_sdxl_controlnet_canny.fp16.safetensors"
|
| 227 |
+
source: "hf"
|
| 228 |
+
repo_id: "Eugeoter/noob-sdxl-controlnet-canny"
|
| 229 |
+
repository_file_path: "noob_sdxl_controlnet_canny.fp16.safetensors"
|
| 230 |
+
- filename: "noob_sdxl_controlnet_depth.fp16.safetensors"
|
| 231 |
+
source: "hf"
|
| 232 |
+
repo_id: "Eugeoter/noob-sdxl-controlnet-depth"
|
| 233 |
+
repository_file_path: "diffusion_pytorch_model.fp16.safetensors"
|
| 234 |
+
- filename: "noob-sdxl-controlnet-lineart_anime.fp16.safetensors"
|
| 235 |
+
source: "hf"
|
| 236 |
+
repo_id: "Eugeoter/noob-sdxl-controlnet-lineart_anime"
|
| 237 |
+
repository_file_path: "diffusion_pytorch_model.fp16.safetensors"
|
| 238 |
+
- filename: "noob-sdxl-controlnet-lineart_realistic.fp16.safetensors"
|
| 239 |
+
source: "hf"
|
| 240 |
+
repo_id: "Eugeoter/noob-sdxl-controlnet-lineart_realistic"
|
| 241 |
+
repository_file_path: "diffusion_pytorch_model.fp16.safetensors"
|
| 242 |
+
- filename: "noob-sdxl-controlnet-manga_line.fp16.safetensors"
|
| 243 |
+
source: "hf"
|
| 244 |
+
repo_id: "Eugeoter/noob-sdxl-controlnet-manga_line"
|
| 245 |
+
repository_file_path: "diffusion_pytorch_model.fp16.safetensors"
|
| 246 |
+
- filename: "noob-sdxl-controlnet-normal.fp16.safetensors"
|
| 247 |
+
source: "hf"
|
| 248 |
+
repo_id: "Eugeoter/noob-sdxl-controlnet-normal"
|
| 249 |
+
repository_file_path: "diffusion_pytorch_model.fp16.safetensors"
|
| 250 |
+
- filename: "noob-sdxl-controlnet-softedge_hed.fp16.safetensors"
|
| 251 |
+
source: "hf"
|
| 252 |
+
repo_id: "Eugeoter/noob-sdxl-controlnet-softedge_hed"
|
| 253 |
+
repository_file_path: "diffusion_pytorch_model.fp16.safetensors"
|
| 254 |
+
- filename: "noob-sdxl-controlnet-tile.fp16.safetensors"
|
| 255 |
+
source: "hf"
|
| 256 |
+
repo_id: "Eugeoter/noob-sdxl-controlnet-tile"
|
| 257 |
+
repository_file_path: "diffusion_pytorch_model.fp16.safetensors"
|
| 258 |
+
- filename: "NoobAI_Inpainting_ControlNet.safetensors"
|
| 259 |
+
source: "hf"
|
| 260 |
+
repo_id: "Wenaka/NoobAI_XL_Inpainting_ControlNet_Full"
|
| 261 |
+
repository_file_path: "NoobAI_Inpainting_ControlNet.safetensors"
|
| 262 |
+
- filename: "noob_openpose_pre.safetensors"
|
| 263 |
+
source: "hf"
|
| 264 |
+
repo_id: "Laxhar/noob_openpose"
|
| 265 |
+
repository_file_path: "openpose_pre.safetensors"
|
| 266 |
+
- filename: "noobaiXLControlnet_epsBlur.safetensors"
|
| 267 |
+
source: "civitai"
|
| 268 |
+
model_version_id: "1731092"
|
| 269 |
+
- filename: "noobaiXLControlnet_epsDepthMidasV11.safetensors"
|
| 270 |
+
source: "hf"
|
| 271 |
+
repo_id: "licyk/sd_control_collection"
|
| 272 |
+
repository_file_path: "noobaiXLControlnet_epsDepthMidasV11.safetensors"
|
| 273 |
+
- filename: "noobaiXLControlnet_epsNormalMidas.safetensors"
|
| 274 |
+
source: "hf"
|
| 275 |
+
repo_id: "licyk/sd_control_collection"
|
| 276 |
+
repository_file_path: "noobaiXLControlnet_epsNormalMidas.safetensors"
|
| 277 |
+
- filename: "noobaiXLControlnet_epsScribbleHed.safetensors"
|
| 278 |
+
source: "hf"
|
| 279 |
+
repo_id: "licyk/sd_control_collection"
|
| 280 |
+
repository_file_path: "noobaiXLControlnet_epsScribbleHed.safetensors"
|
| 281 |
+
- filename: "noobaiXLControlnet_epsScribblePidinet.safetensors"
|
| 282 |
+
source: "hf"
|
| 283 |
+
repo_id: "licyk/sd_control_collection"
|
| 284 |
+
repository_file_path: "noobaiXLControlnet_epsScribblePidinet.safetensors"
|
| 285 |
+
- filename: "noobaiXLControlnet_epsDepthMidas.safetensors"
|
| 286 |
+
source: "hf"
|
| 287 |
+
repo_id: "licyk/sd_control_collection"
|
| 288 |
+
repository_file_path: "noobaiXLControlnet_epsDepthMidas.safetensors"
|
| 289 |
+
- filename: "noobaiXLControlnet_openposeModel.safetensors"
|
| 290 |
+
source: "hf"
|
| 291 |
+
repo_id: "licyk/sd_control_collection"
|
| 292 |
+
repository_file_path: "noobaiXLControlnet_openposeModel.safetensors"
|
| 293 |
+
# SDXL - Illustrious-XL-v0.1
|
| 294 |
+
- filename: "illustriousXLv0.1_Canny_fp16.safetensors"
|
| 295 |
+
source: "hf"
|
| 296 |
+
repo_id: "MIC-Lab/illustriousXLv0.1_controlnet"
|
| 297 |
+
repository_file_path: "illustriousXLv0.1_Canny_fp16.safetensors"
|
| 298 |
+
- filename: "illustriousXLv0.1_Lineart_fp16.safetensors"
|
| 299 |
+
source: "hf"
|
| 300 |
+
repo_id: "MIC-Lab/illustriousXLv0.1_controlnet"
|
| 301 |
+
repository_file_path: "illustriousXLv0.1_Lineart_fp16.safetensors"
|
| 302 |
+
- filename: "illustriousXLv0.1_Softedge_fp16.safetensors"
|
| 303 |
+
source: "hf"
|
| 304 |
+
repo_id: "MIC-Lab/illustriousXLv0.1_controlnet"
|
| 305 |
+
repository_file_path: "illustriousXLv0.1_Softedge_fp16.safetensors"
|
| 306 |
+
- filename: "illustriousXLv0.1_Tile_fp16.safetensors"
|
| 307 |
+
source: "hf"
|
| 308 |
+
repo_id: "MIC-Lab/illustriousXLv0.1_controlnet"
|
| 309 |
+
repository_file_path: "illustriousXLv0.1_Tile_fp16.safetensors"
|
| 310 |
+
- filename: "illustriousXLv0.1_depth_midas_fp16.safetensors"
|
| 311 |
+
source: "hf"
|
| 312 |
+
repo_id: "MIC-Lab/illustriousXLv0.1_controlnet"
|
| 313 |
+
repository_file_path: "illustriousXLv0.1_depth_midas_fp16.safetensors"
|
| 314 |
+
- filename: "illustriousXLv0.1_inpainting_fp16.safetensors"
|
| 315 |
+
source: "hf"
|
| 316 |
+
repo_id: "MIC-Lab/illustriousXLv0.1_controlnet"
|
| 317 |
+
repository_file_path: "illustriousXLv0.1_inpainting_fp16.safetensors"
|
| 318 |
+
# SDXL - Illustrious-XL-v1.1
|
| 319 |
+
- filename: "illustriousXLv1.1_canny_fp16.safetensors"
|
| 320 |
+
source: "hf"
|
| 321 |
+
repo_id: "MIC-Lab/illustriousXLv1.1_controlnet"
|
| 322 |
+
repository_file_path: "illustriousXLv1.1_canny_fp16.safetensors"
|
| 323 |
+
- filename: "illustriousXLv1.1_depth_midas_fp16.safetensors"
|
| 324 |
+
source: "hf"
|
| 325 |
+
repo_id: "MIC-Lab/illustriousXLv1.1_controlnet"
|
| 326 |
+
repository_file_path: "illustriousXLv1.1_depth_midas_fp16.safetensors"
|
| 327 |
+
- filename: "illustriousXLv1.1_inpainting_fp16.safetensors"
|
| 328 |
+
source: "hf"
|
| 329 |
+
repo_id: "MIC-Lab/illustriousXLv1.1_controlnet"
|
| 330 |
+
repository_file_path: "illustriousXLv1.1_inpainting_fp16.safetensors"
|
| 331 |
+
- filename: "illustriousXLv1.1_tile_fp16.safetensors"
|
| 332 |
+
source: "hf"
|
| 333 |
+
repo_id: "MIC-Lab/illustriousXLv1.1_controlnet"
|
| 334 |
+
repository_file_path: "illustriousXLv1.1_tile_fp16.safetensors"
|
| 335 |
# SD1.5
|
| 336 |
- filename: "control_v11e_sd15_ip2p_fp16.safetensors"
|
| 337 |
source: "hf"
|
|
|
|
| 405 |
repo_id: "black-forest-labs/FLUX.2-klein-base-9b-fp8"
|
| 406 |
repository_file_path: "flux-2-klein-base-9b-fp8.safetensors"
|
| 407 |
# Anima
|
| 408 |
+
- filename: "waiANIMA_v10.safetensors"
|
| 409 |
+
source: "hf"
|
| 410 |
+
repo_id: "diffusionmodels1254ani/waiANIMA"
|
| 411 |
+
repository_file_path: "waiANIMA_v10.safetensors"
|
| 412 |
+
- filename: "anima-base-v1.0.safetensors"
|
| 413 |
source: "hf"
|
| 414 |
repo_id: "circlestone-labs/Anima"
|
| 415 |
+
repository_file_path: "split_files/diffusion_models/anima-base-v1.0.safetensors"
|
| 416 |
- filename: "AnimaYume_tuned_v04.safetensors"
|
| 417 |
source: "hf"
|
| 418 |
repo_id: "duongve/AnimaYume"
|
yaml/image_gen_features.yaml
CHANGED
|
@@ -44,6 +44,7 @@ longcat-image:
|
|
| 44 |
anima:
|
| 45 |
enabled_chains:
|
| 46 |
- lora
|
|
|
|
| 47 |
- conditioning
|
| 48 |
|
| 49 |
newbie-image:
|
|
|
|
| 44 |
anima:
|
| 45 |
enabled_chains:
|
| 46 |
- lora
|
| 47 |
+
- anima_controlnet_lllite
|
| 48 |
- conditioning
|
| 49 |
|
| 50 |
newbie-image:
|
yaml/injectors.yaml
CHANGED
|
@@ -7,6 +7,8 @@ injector_definitions:
|
|
| 7 |
module: "chain_injectors.newbie_lora_injector"
|
| 8 |
dynamic_controlnet_chains:
|
| 9 |
module: "chain_injectors.controlnet_injector"
|
|
|
|
|
|
|
| 10 |
dynamic_diffsynth_controlnet_chains:
|
| 11 |
module: "chain_injectors.diffsynth_controlnet_injector"
|
| 12 |
dynamic_ipadapter_chains:
|
|
@@ -33,4 +35,5 @@ injector_order:
|
|
| 33 |
- dynamic_style_chains
|
| 34 |
- dynamic_conditioning_chains
|
| 35 |
- dynamic_reference_latent_chains
|
| 36 |
-
- dynamic_controlnet_chains
|
|
|
|
|
|
| 7 |
module: "chain_injectors.newbie_lora_injector"
|
| 8 |
dynamic_controlnet_chains:
|
| 9 |
module: "chain_injectors.controlnet_injector"
|
| 10 |
+
dynamic_anima_controlnet_lllite_chains:
|
| 11 |
+
module: "chain_injectors.anima_controlnet_lllite_injector"
|
| 12 |
dynamic_diffsynth_controlnet_chains:
|
| 13 |
module: "chain_injectors.diffsynth_controlnet_injector"
|
| 14 |
dynamic_ipadapter_chains:
|
|
|
|
| 35 |
- dynamic_style_chains
|
| 36 |
- dynamic_conditioning_chains
|
| 37 |
- dynamic_reference_latent_chains
|
| 38 |
+
- dynamic_controlnet_chains
|
| 39 |
+
- dynamic_anima_controlnet_lllite_chains
|
yaml/model_list.yaml
CHANGED
|
@@ -1,14 +1,307 @@
|
|
| 1 |
Checkpoint:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
Anima:
|
| 3 |
latent_type: latent
|
| 4 |
models:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 5 |
- display_name: "duongve/AnimaYume-v0.4"
|
| 6 |
components:
|
| 7 |
unet: "AnimaYume_tuned_v04.safetensors"
|
| 8 |
vae: "qwen_image_vae.safetensors"
|
| 9 |
clip: "qwen_3_06b_base.safetensors"
|
| 10 |
-
- display_name: "circlestone-labs/Anima-
|
| 11 |
components:
|
| 12 |
-
unet: "anima-
|
| 13 |
vae: "qwen_image_vae.safetensors"
|
| 14 |
-
clip: "qwen_3_06b_base.safetensors"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
Checkpoint:
|
| 2 |
+
FLUX.2-KV:
|
| 3 |
+
latent_type: flux2_latent
|
| 4 |
+
models:
|
| 5 |
+
- display_name: "black-forest-labs/FLUX.2-klein-9B-KV"
|
| 6 |
+
components:
|
| 7 |
+
unet: "flux-2-klein-9b-kv-fp8.safetensors"
|
| 8 |
+
clip: "qwen_3_8b_fp8mixed.safetensors"
|
| 9 |
+
vae: "flux2-vae.safetensors"
|
| 10 |
+
FLUX.2:
|
| 11 |
+
latent_type: flux2_latent
|
| 12 |
+
models:
|
| 13 |
+
- display_name: "black-forest-labs/FLUX.2-klein-4B"
|
| 14 |
+
components:
|
| 15 |
+
unet: "flux-2-klein-4b-fp8.safetensors"
|
| 16 |
+
clip: "qwen_3_4b.safetensors"
|
| 17 |
+
vae: "flux2-vae.safetensors"
|
| 18 |
+
- display_name: "black-forest-labs/FLUX.2-klein-9B"
|
| 19 |
+
components:
|
| 20 |
+
unet: "flux-2-klein-9b-fp8.safetensors"
|
| 21 |
+
clip: "qwen_3_8b_fp8mixed.safetensors"
|
| 22 |
+
vae: "flux2-vae.safetensors"
|
| 23 |
+
- display_name: "black-forest-labs/FLUX.2-klein-base-4B"
|
| 24 |
+
components:
|
| 25 |
+
unet: "flux-2-klein-base-4b-fp8.safetensors"
|
| 26 |
+
clip: "qwen_3_4b.safetensors"
|
| 27 |
+
vae: "flux2-vae.safetensors"
|
| 28 |
+
- display_name: "black-forest-labs/FLUX.2-klein-base-9B"
|
| 29 |
+
components:
|
| 30 |
+
unet: "flux-2-klein-base-9b-fp8.safetensors"
|
| 31 |
+
clip: "qwen_3_8b_fp8mixed.safetensors"
|
| 32 |
+
vae: "flux2-vae.safetensors"
|
| 33 |
+
- display_name: "black-forest-labs/FLUX.2-dev (Need to set ZeroGPU Duration to 120)"
|
| 34 |
+
components:
|
| 35 |
+
unet: "flux2_dev_fp8mixed.safetensors"
|
| 36 |
+
clip: "mistral_3_small_flux2_fp8.safetensors"
|
| 37 |
+
vae: "flux2-vae.safetensors"
|
| 38 |
+
ERNIE-Image:
|
| 39 |
+
latent_type: flux2_latent
|
| 40 |
+
models:
|
| 41 |
+
- display_name: "baidu/ERNIE-Image"
|
| 42 |
+
components:
|
| 43 |
+
unet: "ernie-image.safetensors"
|
| 44 |
+
vae: "flux2-vae.safetensors"
|
| 45 |
+
clip: "ministral-3-3b.safetensors"
|
| 46 |
+
- display_name: "baidu/ERNIE-Image-Turbo"
|
| 47 |
+
components:
|
| 48 |
+
unet: "ernie-image-turbo.safetensors"
|
| 49 |
+
vae: "flux2-vae.safetensors"
|
| 50 |
+
clip: "ministral-3-3b.safetensors"
|
| 51 |
+
Z-Image:
|
| 52 |
+
latent_type: sd3_latent
|
| 53 |
+
models:
|
| 54 |
+
- display_name: "Tongyi-MAI/Z Image Turbo"
|
| 55 |
+
components:
|
| 56 |
+
unet: "z_image_turbo_bf16.safetensors"
|
| 57 |
+
vae: "ae.safetensors"
|
| 58 |
+
clip: "qwen_3_4b_fp8_mixed.safetensors"
|
| 59 |
+
- display_name: "Tongyi-MAI/Z Image"
|
| 60 |
+
components:
|
| 61 |
+
unet: "z_image_bf16.safetensors"
|
| 62 |
+
vae: "ae.safetensors"
|
| 63 |
+
clip: "qwen_3_4b_fp8_mixed.safetensors"
|
| 64 |
+
Qwen-Image:
|
| 65 |
+
latent_type: sd3_latent
|
| 66 |
+
models:
|
| 67 |
+
- display_name: "Qwen/Qwen-Image-2512 + Lightning-4steps-V1.0 LoRA"
|
| 68 |
+
components:
|
| 69 |
+
unet: "qwen_image_2512_fp8_e4m3fn.safetensors"
|
| 70 |
+
vae: "qwen_image_vae.safetensors"
|
| 71 |
+
clip: "qwen_2.5_vl_7b_fp8_scaled.safetensors"
|
| 72 |
+
lora: "Qwen-Image-2512-Lightning-4steps-V1.0-bf16.safetensors"
|
| 73 |
+
- display_name: "Qwen/Qwen-Image + Lightning-4steps-V1.0 LoRA"
|
| 74 |
+
components:
|
| 75 |
+
unet: "qwen_image_fp8_e4m3fn.safetensors"
|
| 76 |
+
vae: "qwen_image_vae.safetensors"
|
| 77 |
+
clip: "qwen_2.5_vl_7b_fp8_scaled.safetensors"
|
| 78 |
+
lora: "Qwen-Image-fp8-e4m3fn-Lightning-4steps-V1.0-bf16.safetensors"
|
| 79 |
+
LongCat-Image:
|
| 80 |
+
latent_type: sd3_latent
|
| 81 |
+
models:
|
| 82 |
+
- display_name: "meituan-longcat/LongCat-Image"
|
| 83 |
+
components:
|
| 84 |
+
unet: "longcat_image_bf16.safetensors"
|
| 85 |
+
vae: "ae.safetensors"
|
| 86 |
+
clip: "qwen_2.5_vl_7b_fp8_scaled.safetensors"
|
| 87 |
Anima:
|
| 88 |
latent_type: latent
|
| 89 |
models:
|
| 90 |
+
- display_name: "WAI0731/waiANIMA-v1.0"
|
| 91 |
+
components:
|
| 92 |
+
unet: "waiANIMA_v10.safetensors"
|
| 93 |
+
vae: "qwen_image_vae.safetensors"
|
| 94 |
+
clip: "qwen_3_06b_base.safetensors"
|
| 95 |
- display_name: "duongve/AnimaYume-v0.4"
|
| 96 |
components:
|
| 97 |
unet: "AnimaYume_tuned_v04.safetensors"
|
| 98 |
vae: "qwen_image_vae.safetensors"
|
| 99 |
clip: "qwen_3_06b_base.safetensors"
|
| 100 |
+
- display_name: "circlestone-labs/Anima-base-v1.0"
|
| 101 |
components:
|
| 102 |
+
unet: "anima-base-v1.0.safetensors"
|
| 103 |
vae: "qwen_image_vae.safetensors"
|
| 104 |
+
clip: "qwen_3_06b_base.safetensors"
|
| 105 |
+
NewBie-Image:
|
| 106 |
+
latent_type: sd3_latent
|
| 107 |
+
models:
|
| 108 |
+
- display_name: "NewBie-AI/NewBie-image-Exp0.1"
|
| 109 |
+
components:
|
| 110 |
+
unet: "NewBie-Image-Exp0.1-bf16.safetensors"
|
| 111 |
+
vae: "ae.safetensors"
|
| 112 |
+
clip1: "gemma_3_4b_it_bf16.safetensors"
|
| 113 |
+
clip2: "jina_clip_v2_bf16.safetensors"
|
| 114 |
+
Ovis-Image:
|
| 115 |
+
latent_type: sd3_latent
|
| 116 |
+
models:
|
| 117 |
+
- display_name: "AIDC-AI/Ovis-Image"
|
| 118 |
+
components:
|
| 119 |
+
unet: "ovis_image_bf16.safetensors"
|
| 120 |
+
vae: "ae.safetensors"
|
| 121 |
+
clip: "ovis_2.5.safetensors"
|
| 122 |
+
HunyuanImage:
|
| 123 |
+
latent_type: hunyuan_latent
|
| 124 |
+
models:
|
| 125 |
+
- display_name: "HunyuanImage-2.1"
|
| 126 |
+
components:
|
| 127 |
+
unet: "hunyuanimage2.1_fp8_e4m3fn.safetensors"
|
| 128 |
+
vae: "hunyuan_image_2.1_vae_fp16.safetensors"
|
| 129 |
+
clip1: "qwen_2.5_vl_7b_fp8_scaled.safetensors"
|
| 130 |
+
clip2: "byt5_small_glyphxl_fp16.safetensors"
|
| 131 |
+
- display_name: "HunyuanImage-2.1-Distilled"
|
| 132 |
+
components:
|
| 133 |
+
unet: "hunyuanimage2.1_distilled_fp8_e4m3fn.safetensors"
|
| 134 |
+
vae: "hunyuan_image_2.1_vae_fp16.safetensors"
|
| 135 |
+
clip1: "qwen_2.5_vl_7b_fp8_scaled.safetensors"
|
| 136 |
+
clip2: "byt5_small_glyphxl_fp16.safetensors"
|
| 137 |
+
Chroma1-Radiance:
|
| 138 |
+
latent_type: chroma_radiance_latent
|
| 139 |
+
models:
|
| 140 |
+
- display_name: "lodestones/Chroma1-Radiance-x0"
|
| 141 |
+
components:
|
| 142 |
+
unet: "Chroma1-Radiance-x0-fp8mixed_fullmm-20260104.safetensors"
|
| 143 |
+
vae: "pixel_space"
|
| 144 |
+
clip: "t5xxl_fp8_e4m3fn_scaled.safetensors"
|
| 145 |
+
Chroma1:
|
| 146 |
+
latent_type: sd3_latent
|
| 147 |
+
models:
|
| 148 |
+
- display_name: "lodestones/Chroma1-HD"
|
| 149 |
+
components:
|
| 150 |
+
unet: "Chroma1-HD_float8_e4m3fn_scaled_learned_topk8_svd.safetensors"
|
| 151 |
+
vae: "ae.safetensors"
|
| 152 |
+
clip: "t5xxl_fp8_e4m3fn_scaled.safetensors"
|
| 153 |
+
- display_name: "lodestones/Chroma1-HD-Flash"
|
| 154 |
+
components:
|
| 155 |
+
unet: "Chroma1-HD-Flash_float8_e4m3fn_scaled_learned_topk8_svd.safetensors"
|
| 156 |
+
vae: "ae.safetensors"
|
| 157 |
+
clip: "t5xxl_fp8_e4m3fn_scaled.safetensors"
|
| 158 |
+
OmniGen2:
|
| 159 |
+
latent_type: sd3_latent
|
| 160 |
+
models:
|
| 161 |
+
- display_name: "OmniGen2"
|
| 162 |
+
components:
|
| 163 |
+
unet: "omnigen2_fp16.safetensors"
|
| 164 |
+
vae: "ae.safetensors"
|
| 165 |
+
clip: "qwen_2.5_vl_fp16.safetensors"
|
| 166 |
+
Lumina:
|
| 167 |
+
latent_type: sd3_latent
|
| 168 |
+
models:
|
| 169 |
+
- display_name: "Alpha-VLLM/Lumina-Image-2.0"
|
| 170 |
+
path: "lumina_2.safetensors"
|
| 171 |
+
HiDream:
|
| 172 |
+
latent_type: sd3_latent
|
| 173 |
+
models:
|
| 174 |
+
- display_name: "HiDream_i1_Dev"
|
| 175 |
+
components:
|
| 176 |
+
unet: "hidream_i1_dev_fp8.safetensors"
|
| 177 |
+
vae: "ae.safetensors"
|
| 178 |
+
clip1: "clip_l_hidream.safetensors"
|
| 179 |
+
clip2: "clip_g_hidream.safetensors"
|
| 180 |
+
clip3: "t5xxl_fp8_e4m3fn_scaled.safetensors"
|
| 181 |
+
clip4: "llama_3.1_8b_instruct_fp8_scaled.safetensors"
|
| 182 |
+
- display_name: "HiDream_i1_Full"
|
| 183 |
+
components:
|
| 184 |
+
unet: "hidream_i1_full_fp8.safetensors"
|
| 185 |
+
vae: "ae.safetensors"
|
| 186 |
+
clip1: "clip_l_hidream.safetensors"
|
| 187 |
+
clip2: "clip_g_hidream.safetensors"
|
| 188 |
+
clip3: "t5xxl_fp8_e4m3fn_scaled.safetensors"
|
| 189 |
+
clip4: "llama_3.1_8b_instruct_fp8_scaled.safetensors"
|
| 190 |
+
- display_name: "HiDream_i1_Fast"
|
| 191 |
+
components:
|
| 192 |
+
unet: "hidream_i1_fast_fp8.safetensors"
|
| 193 |
+
vae: "ae.safetensors"
|
| 194 |
+
clip1: "clip_l_hidream.safetensors"
|
| 195 |
+
clip2: "clip_g_hidream.safetensors"
|
| 196 |
+
clip3: "t5xxl_fp8_e4m3fn_scaled.safetensors"
|
| 197 |
+
clip4: "llama_3.1_8b_instruct_fp8_scaled.safetensors"
|
| 198 |
+
FLUX.1:
|
| 199 |
+
latent_type: sd3_latent
|
| 200 |
+
models:
|
| 201 |
+
- display_name: "flux1-dev"
|
| 202 |
+
components:
|
| 203 |
+
unet: "flux1-dev-fp8-e4m3fn.safetensors"
|
| 204 |
+
vae: "ae.safetensors"
|
| 205 |
+
clip1: "clip_l.safetensors"
|
| 206 |
+
clip2: "t5xxl_fp8_e4m3fn_scaled.safetensors"
|
| 207 |
+
- display_name: "flux1-schnell"
|
| 208 |
+
components:
|
| 209 |
+
unet: "flux1-schnell-fp8-e4m3fn.safetensors"
|
| 210 |
+
vae: "ae.safetensors"
|
| 211 |
+
clip1: "clip_l.safetensors"
|
| 212 |
+
clip2: "t5xxl_fp8_e4m3fn_scaled.safetensors"
|
| 213 |
+
- display_name: "flux1-krea-dev"
|
| 214 |
+
components:
|
| 215 |
+
unet: "flux1-krea-dev_fp8_scaled.safetensors"
|
| 216 |
+
vae: "ae.safetensors"
|
| 217 |
+
clip1: "clip_l.safetensors"
|
| 218 |
+
clip2: "t5xxl_fp8_e4m3fn_scaled.safetensors"
|
| 219 |
+
SD3.5:
|
| 220 |
+
latent_type: sd3_latent
|
| 221 |
+
models:
|
| 222 |
+
- display_name: "StabilityAI/SD3.5-Large"
|
| 223 |
+
path: "sd3.5_large_fp8_scaled.safetensors"
|
| 224 |
+
- display_name: "StabilityAI/SD3.5-Medium"
|
| 225 |
+
path: "sd3.5_medium_incl_clips_t5xxlfp8scaled.safetensors"
|
| 226 |
+
SDXL:
|
| 227 |
+
latent_type: latent
|
| 228 |
+
models:
|
| 229 |
+
# NoobAI
|
| 230 |
+
- display_name: "Laxhar/noobai-XL-Vpred-1.0"
|
| 231 |
+
path: "NoobAI-XL-Vpred-v1.0.safetensors"
|
| 232 |
+
category: "NoobAI"
|
| 233 |
+
- display_name: "Laxhar/noobai-XL-1.1"
|
| 234 |
+
path: "NoobAI-XL-v1.1.safetensors"
|
| 235 |
+
category: "NoobAI"
|
| 236 |
+
- display_name: "bluepen5805/noob_v_pencil-XL-3.0.0"
|
| 237 |
+
path: "noob_v_pencil-XL-v3.0.0.safetensors"
|
| 238 |
+
category: "NoobAI"
|
| 239 |
+
- display_name: "RedRayz/hikari_noob_v-pred_1.2.4"
|
| 240 |
+
path: "Hikari_Noob_v-pred_1.2.4.safetensors"
|
| 241 |
+
category: "NoobAI"
|
| 242 |
+
- display_name: "ChenkinNoob/ChenkinNoob-XL-V0.5"
|
| 243 |
+
path: "ChenkinNoob-XL-V0.5.safetensors"
|
| 244 |
+
category: "NoobAI"
|
| 245 |
+
# Illustrious
|
| 246 |
+
- display_name: "WAI0731/wai-illustrious-sdxl-v170"
|
| 247 |
+
path: "waiIllustriousSDXL_v170.safetensors"
|
| 248 |
+
category: "Illustrious"
|
| 249 |
+
- display_name: "blue_pen5805/mellow_pencil-XL-v1.0.0"
|
| 250 |
+
path: "mellow_pencil-XL-v1.0.0.safetensors"
|
| 251 |
+
category: "Illustrious"
|
| 252 |
+
- display_name: "blue_pen5805/illustrious_pencil-XL-v5.0.0"
|
| 253 |
+
path: "illustrious_pencil-XL-v5.0.0.safetensors"
|
| 254 |
+
category: "Illustrious"
|
| 255 |
+
- display_name: "Ikena/hassaku-xl-illustrious-v3.0"
|
| 256 |
+
path: "hassakuXLIllustrious_v30.safetensors"
|
| 257 |
+
category: "Illustrious"
|
| 258 |
+
- display_name: "Crody/Nova-Anime-XL-v16.0"
|
| 259 |
+
path: "novaAnimeXL_ilV160.safetensors"
|
| 260 |
+
category: "Illustrious"
|
| 261 |
+
- display_name: "OnomaAIResearch/Illustrious-XL-v2.0"
|
| 262 |
+
path: "Illustrious-XL-v2.0.safetensors"
|
| 263 |
+
category: "Illustrious"
|
| 264 |
+
- display_name: "OnomaAIResearch/Illustrious-XL-v1.1"
|
| 265 |
+
path: "Illustrious-XL-v1.1.safetensors"
|
| 266 |
+
category: "Illustrious"
|
| 267 |
+
- display_name: "OnomaAIResearch/Illustrious-XL-v1.0"
|
| 268 |
+
path: "Illustrious-XL-v1.0.safetensors"
|
| 269 |
+
category: "Illustrious"
|
| 270 |
+
- display_name: "aria1th261/Illustrious-XL-v0.1"
|
| 271 |
+
path: "illustriousXL_v01.safetensors"
|
| 272 |
+
category: "Illustrious"
|
| 273 |
+
# SDXL-Animate
|
| 274 |
+
- display_name: "CagliostroLab/Animagine XL 4.0"
|
| 275 |
+
path: "animagine-xl-4.0.safetensors"
|
| 276 |
+
category: "Animate"
|
| 277 |
+
- display_name: "CagliostroLab/Animagine XL 3.1"
|
| 278 |
+
path: "animagine-xl-3.1.safetensors"
|
| 279 |
+
category: "Animate"
|
| 280 |
+
- display_name: "blue_pen5805/4nima_pencil-XL v1.0.1"
|
| 281 |
+
path: "4nima_pencil-XL-v1.0.1.safetensors"
|
| 282 |
+
category: "Animate"
|
| 283 |
+
- display_name: "blue_pen5805/anima_pencil-XL v5.0.0"
|
| 284 |
+
path: "anima_pencil-XL-v5.0.0.safetensors"
|
| 285 |
+
category: "Animate"
|
| 286 |
+
- display_name: "blue_pen5805/blue_pencil-XL v7.0.0"
|
| 287 |
+
path: "blue_pencil-XL-v7.0.0.safetensors"
|
| 288 |
+
category: "Animate"
|
| 289 |
+
# SDXL-Pony
|
| 290 |
+
- display_name: "PurpleSmartAI/Pony Diffusion V6 XL"
|
| 291 |
+
path: "ponyDiffusionV6XL_v6StartWithThisOne.safetensors"
|
| 292 |
+
category: "Pony"
|
| 293 |
+
- display_name: "blue_pen5805/pony_pencil-XL v2.0.0"
|
| 294 |
+
path: "pony_pencil-XL-v2.0.0.safetensors"
|
| 295 |
+
category: "Pony"
|
| 296 |
+
- display_name: "Cyberdelia/CyberRealistic Pony v14.0"
|
| 297 |
+
path: "CyberRealisticPony_V14.0.safetensors"
|
| 298 |
+
category: "Pony"
|
| 299 |
+
# SDXL-Base
|
| 300 |
+
- display_name: "stabilityai/stable-diffusion-xl-base-1.0"
|
| 301 |
+
path: "sd_xl_base_1.0.safetensors"
|
| 302 |
+
category: "Base"
|
| 303 |
+
SD1.5:
|
| 304 |
+
latent_type: latent
|
| 305 |
+
models:
|
| 306 |
+
- display_name: "stable-diffusion-v1-5/stable-diffusion-v1-5"
|
| 307 |
+
path: "v1-5-pruned-emaonly.safetensors"
|