miladsolo commited on
Commit
de9f266
·
1 Parent(s): 678562f
html/card-no-preview.png ADDED
html/extra-networks-card.html ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <div class='card' style={style} onclick={card_clicked}>
2
+ {metadata_button}
3
+
4
+ <div class='actions'>
5
+ <div class='additional'>
6
+ <ul>
7
+ <a href="#" title="replace preview image with currently selected in gallery" onclick={save_card_preview}>replace preview</a>
8
+ </ul>
9
+ <span style="display:none" class='search_term'>{search_term}</span>
10
+ </div>
11
+ <span class='name'>{name}</span>
12
+ <span class='description'>{description}</span>
13
+ </div>
14
+ </div>
15
+
html/extra-networks-no-cards.html ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ <div class='nocards'>
2
+ <h1>Nothing here. Add some content to the following directories:</h1>
3
+
4
+ <ul>
5
+ {dirs}
6
+ </ul>
7
+ </div>
8
+
html/footer.html ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <div>
2
+ <a href="/docs">API</a>
3
+  • 
4
+ <a href="https://github.com/AUTOMATIC1111/stable-diffusion-webui">Github</a>
5
+  • 
6
+ <a href="https://gradio.app">Gradio</a>
7
+  • 
8
+ <a href="/" onclick="javascript:gradioApp().getElementById('settings_restart_gradio').click(); return false">Reload UI</a>
9
+ </div>
10
+ <br />
11
+ <div class="versions">
12
+ {versions}
13
+ </div>
html/image-update.svg ADDED
html/licenses.html ADDED
@@ -0,0 +1,664 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <style>
2
+ #licenses h2 {font-size: 1.2em; font-weight: bold; margin-bottom: 0.2em;}
3
+ #licenses small {font-size: 0.95em; opacity: 0.85;}
4
+ #licenses pre { margin: 1em 0 2em 0;}
5
+ </style>
6
+
7
+ <h2><a href="https://github.com/sczhou/CodeFormer/blob/master/LICENSE">CodeFormer</a></h2>
8
+ <small>Parts of CodeFormer code had to be copied to be compatible with GFPGAN.</small>
9
+ <pre>
10
+ S-Lab License 1.0
11
+
12
+ Copyright 2022 S-Lab
13
+
14
+ Redistribution and use for non-commercial purpose in source and
15
+ binary forms, with or without modification, are permitted provided
16
+ that the following conditions are met:
17
+
18
+ 1. Redistributions of source code must retain the above copyright
19
+ notice, this list of conditions and the following disclaimer.
20
+
21
+ 2. Redistributions in binary form must reproduce the above copyright
22
+ notice, this list of conditions and the following disclaimer in
23
+ the documentation and/or other materials provided with the
24
+ distribution.
25
+
26
+ 3. Neither the name of the copyright holder nor the names of its
27
+ contributors may be used to endorse or promote products derived
28
+ from this software without specific prior written permission.
29
+
30
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
31
+ "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
32
+ LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
33
+ A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
34
+ HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
35
+ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
36
+ LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
37
+ DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
38
+ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
39
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
40
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
41
+
42
+ In the event that redistribution and/or use for commercial purpose in
43
+ source or binary forms, with or without modification is required,
44
+ please contact the contributor(s) of the work.
45
+ </pre>
46
+
47
+
48
+ <h2><a href="https://github.com/victorca25/iNNfer/blob/main/LICENSE">ESRGAN</a></h2>
49
+ <small>Code for architecture and reading models copied.</small>
50
+ <pre>
51
+ MIT License
52
+
53
+ Copyright (c) 2021 victorca25
54
+
55
+ Permission is hereby granted, free of charge, to any person obtaining a copy
56
+ of this software and associated documentation files (the "Software"), to deal
57
+ in the Software without restriction, including without limitation the rights
58
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
59
+ copies of the Software, and to permit persons to whom the Software is
60
+ furnished to do so, subject to the following conditions:
61
+
62
+ The above copyright notice and this permission notice shall be included in all
63
+ copies or substantial portions of the Software.
64
+
65
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
66
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
67
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
68
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
69
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
70
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
71
+ SOFTWARE.
72
+ </pre>
73
+
74
+ <h2><a href="https://github.com/xinntao/Real-ESRGAN/blob/master/LICENSE">Real-ESRGAN</a></h2>
75
+ <small>Some code is copied to support ESRGAN models.</small>
76
+ <pre>
77
+ BSD 3-Clause License
78
+
79
+ Copyright (c) 2021, Xintao Wang
80
+ All rights reserved.
81
+
82
+ Redistribution and use in source and binary forms, with or without
83
+ modification, are permitted provided that the following conditions are met:
84
+
85
+ 1. Redistributions of source code must retain the above copyright notice, this
86
+ list of conditions and the following disclaimer.
87
+
88
+ 2. Redistributions in binary form must reproduce the above copyright notice,
89
+ this list of conditions and the following disclaimer in the documentation
90
+ and/or other materials provided with the distribution.
91
+
92
+ 3. Neither the name of the copyright holder nor the names of its
93
+ contributors may be used to endorse or promote products derived from
94
+ this software without specific prior written permission.
95
+
96
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
97
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
98
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
99
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
100
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
101
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
102
+ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
103
+ CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
104
+ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
105
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
106
+ </pre>
107
+
108
+ <h2><a href="https://github.com/invoke-ai/InvokeAI/blob/main/LICENSE">InvokeAI</a></h2>
109
+ <small>Some code for compatibility with OSX is taken from lstein's repository.</small>
110
+ <pre>
111
+ MIT License
112
+
113
+ Copyright (c) 2022 InvokeAI Team
114
+
115
+ Permission is hereby granted, free of charge, to any person obtaining a copy
116
+ of this software and associated documentation files (the "Software"), to deal
117
+ in the Software without restriction, including without limitation the rights
118
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
119
+ copies of the Software, and to permit persons to whom the Software is
120
+ furnished to do so, subject to the following conditions:
121
+
122
+ The above copyright notice and this permission notice shall be included in all
123
+ copies or substantial portions of the Software.
124
+
125
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
126
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
127
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
128
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
129
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
130
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
131
+ SOFTWARE.
132
+ </pre>
133
+
134
+ <h2><a href="https://github.com/Hafiidz/latent-diffusion/blob/main/LICENSE">LDSR</a></h2>
135
+ <small>Code added by contirubtors, most likely copied from this repository.</small>
136
+ <pre>
137
+ MIT License
138
+
139
+ Copyright (c) 2022 Machine Vision and Learning Group, LMU Munich
140
+
141
+ Permission is hereby granted, free of charge, to any person obtaining a copy
142
+ of this software and associated documentation files (the "Software"), to deal
143
+ in the Software without restriction, including without limitation the rights
144
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
145
+ copies of the Software, and to permit persons to whom the Software is
146
+ furnished to do so, subject to the following conditions:
147
+
148
+ The above copyright notice and this permission notice shall be included in all
149
+ copies or substantial portions of the Software.
150
+
151
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
152
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
153
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
154
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
155
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
156
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
157
+ SOFTWARE.
158
+ </pre>
159
+
160
+ <h2><a href="https://github.com/pharmapsychotic/clip-interrogator/blob/main/LICENSE">CLIP Interrogator</a></h2>
161
+ <small>Some small amounts of code borrowed and reworked.</small>
162
+ <pre>
163
+ MIT License
164
+
165
+ Copyright (c) 2022 pharmapsychotic
166
+
167
+ Permission is hereby granted, free of charge, to any person obtaining a copy
168
+ of this software and associated documentation files (the "Software"), to deal
169
+ in the Software without restriction, including without limitation the rights
170
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
171
+ copies of the Software, and to permit persons to whom the Software is
172
+ furnished to do so, subject to the following conditions:
173
+
174
+ The above copyright notice and this permission notice shall be included in all
175
+ copies or substantial portions of the Software.
176
+
177
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
178
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
179
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
180
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
181
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
182
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
183
+ SOFTWARE.
184
+ </pre>
185
+
186
+ <h2><a href="https://github.com/JingyunLiang/SwinIR/blob/main/LICENSE">SwinIR</a></h2>
187
+ <small>Code added by contributors, most likely copied from this repository.</small>
188
+
189
+ <pre>
190
+ Apache License
191
+ Version 2.0, January 2004
192
+ http://www.apache.org/licenses/
193
+
194
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
195
+
196
+ 1. Definitions.
197
+
198
+ "License" shall mean the terms and conditions for use, reproduction,
199
+ and distribution as defined by Sections 1 through 9 of this document.
200
+
201
+ "Licensor" shall mean the copyright owner or entity authorized by
202
+ the copyright owner that is granting the License.
203
+
204
+ "Legal Entity" shall mean the union of the acting entity and all
205
+ other entities that control, are controlled by, or are under common
206
+ control with that entity. For the purposes of this definition,
207
+ "control" means (i) the power, direct or indirect, to cause the
208
+ direction or management of such entity, whether by contract or
209
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
210
+ outstanding shares, or (iii) beneficial ownership of such entity.
211
+
212
+ "You" (or "Your") shall mean an individual or Legal Entity
213
+ exercising permissions granted by this License.
214
+
215
+ "Source" form shall mean the preferred form for making modifications,
216
+ including but not limited to software source code, documentation
217
+ source, and configuration files.
218
+
219
+ "Object" form shall mean any form resulting from mechanical
220
+ transformation or translation of a Source form, including but
221
+ not limited to compiled object code, generated documentation,
222
+ and conversions to other media types.
223
+
224
+ "Work" shall mean the work of authorship, whether in Source or
225
+ Object form, made available under the License, as indicated by a
226
+ copyright notice that is included in or attached to the work
227
+ (an example is provided in the Appendix below).
228
+
229
+ "Derivative Works" shall mean any work, whether in Source or Object
230
+ form, that is based on (or derived from) the Work and for which the
231
+ editorial revisions, annotations, elaborations, or other modifications
232
+ represent, as a whole, an original work of authorship. For the purposes
233
+ of this License, Derivative Works shall not include works that remain
234
+ separable from, or merely link (or bind by name) to the interfaces of,
235
+ the Work and Derivative Works thereof.
236
+
237
+ "Contribution" shall mean any work of authorship, including
238
+ the original version of the Work and any modifications or additions
239
+ to that Work or Derivative Works thereof, that is intentionally
240
+ submitted to Licensor for inclusion in the Work by the copyright owner
241
+ or by an individual or Legal Entity authorized to submit on behalf of
242
+ the copyright owner. For the purposes of this definition, "submitted"
243
+ means any form of electronic, verbal, or written communication sent
244
+ to the Licensor or its representatives, including but not limited to
245
+ communication on electronic mailing lists, source code control systems,
246
+ and issue tracking systems that are managed by, or on behalf of, the
247
+ Licensor for the purpose of discussing and improving the Work, but
248
+ excluding communication that is conspicuously marked or otherwise
249
+ designated in writing by the copyright owner as "Not a Contribution."
250
+
251
+ "Contributor" shall mean Licensor and any individual or Legal Entity
252
+ on behalf of whom a Contribution has been received by Licensor and
253
+ subsequently incorporated within the Work.
254
+
255
+ 2. Grant of Copyright License. Subject to the terms and conditions of
256
+ this License, each Contributor hereby grants to You a perpetual,
257
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
258
+ copyright license to reproduce, prepare Derivative Works of,
259
+ publicly display, publicly perform, sublicense, and distribute the
260
+ Work and such Derivative Works in Source or Object form.
261
+
262
+ 3. Grant of Patent License. Subject to the terms and conditions of
263
+ this License, each Contributor hereby grants to You a perpetual,
264
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
265
+ (except as stated in this section) patent license to make, have made,
266
+ use, offer to sell, sell, import, and otherwise transfer the Work,
267
+ where such license applies only to those patent claims licensable
268
+ by such Contributor that are necessarily infringed by their
269
+ Contribution(s) alone or by combination of their Contribution(s)
270
+ with the Work to which such Contribution(s) was submitted. If You
271
+ institute patent litigation against any entity (including a
272
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
273
+ or a Contribution incorporated within the Work constitutes direct
274
+ or contributory patent infringement, then any patent licenses
275
+ granted to You under this License for that Work shall terminate
276
+ as of the date such litigation is filed.
277
+
278
+ 4. Redistribution. You may reproduce and distribute copies of the
279
+ Work or Derivative Works thereof in any medium, with or without
280
+ modifications, and in Source or Object form, provided that You
281
+ meet the following conditions:
282
+
283
+ (a) You must give any other recipients of the Work or
284
+ Derivative Works a copy of this License; and
285
+
286
+ (b) You must cause any modified files to carry prominent notices
287
+ stating that You changed the files; and
288
+
289
+ (c) You must retain, in the Source form of any Derivative Works
290
+ that You distribute, all copyright, patent, trademark, and
291
+ attribution notices from the Source form of the Work,
292
+ excluding those notices that do not pertain to any part of
293
+ the Derivative Works; and
294
+
295
+ (d) If the Work includes a "NOTICE" text file as part of its
296
+ distribution, then any Derivative Works that You distribute must
297
+ include a readable copy of the attribution notices contained
298
+ within such NOTICE file, excluding those notices that do not
299
+ pertain to any part of the Derivative Works, in at least one
300
+ of the following places: within a NOTICE text file distributed
301
+ as part of the Derivative Works; within the Source form or
302
+ documentation, if provided along with the Derivative Works; or,
303
+ within a display generated by the Derivative Works, if and
304
+ wherever such third-party notices normally appear. The contents
305
+ of the NOTICE file are for informational purposes only and
306
+ do not modify the License. You may add Your own attribution
307
+ notices within Derivative Works that You distribute, alongside
308
+ or as an addendum to the NOTICE text from the Work, provided
309
+ that such additional attribution notices cannot be construed
310
+ as modifying the License.
311
+
312
+ You may add Your own copyright statement to Your modifications and
313
+ may provide additional or different license terms and conditions
314
+ for use, reproduction, or distribution of Your modifications, or
315
+ for any such Derivative Works as a whole, provided Your use,
316
+ reproduction, and distribution of the Work otherwise complies with
317
+ the conditions stated in this License.
318
+
319
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
320
+ any Contribution intentionally submitted for inclusion in the Work
321
+ by You to the Licensor shall be under the terms and conditions of
322
+ this License, without any additional terms or conditions.
323
+ Notwithstanding the above, nothing herein shall supersede or modify
324
+ the terms of any separate license agreement you may have executed
325
+ with Licensor regarding such Contributions.
326
+
327
+ 6. Trademarks. This License does not grant permission to use the trade
328
+ names, trademarks, service marks, or product names of the Licensor,
329
+ except as required for reasonable and customary use in describing the
330
+ origin of the Work and reproducing the content of the NOTICE file.
331
+
332
+ 7. Disclaimer of Warranty. Unless required by applicable law or
333
+ agreed to in writing, Licensor provides the Work (and each
334
+ Contributor provides its Contributions) on an "AS IS" BASIS,
335
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
336
+ implied, including, without limitation, any warranties or conditions
337
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
338
+ PARTICULAR PURPOSE. You are solely responsible for determining the
339
+ appropriateness of using or redistributing the Work and assume any
340
+ risks associated with Your exercise of permissions under this License.
341
+
342
+ 8. Limitation of Liability. In no event and under no legal theory,
343
+ whether in tort (including negligence), contract, or otherwise,
344
+ unless required by applicable law (such as deliberate and grossly
345
+ negligent acts) or agreed to in writing, shall any Contributor be
346
+ liable to You for damages, including any direct, indirect, special,
347
+ incidental, or consequential damages of any character arising as a
348
+ result of this License or out of the use or inability to use the
349
+ Work (including but not limited to damages for loss of goodwill,
350
+ work stoppage, computer failure or malfunction, or any and all
351
+ other commercial damages or losses), even if such Contributor
352
+ has been advised of the possibility of such damages.
353
+
354
+ 9. Accepting Warranty or Additional Liability. While redistributing
355
+ the Work or Derivative Works thereof, You may choose to offer,
356
+ and charge a fee for, acceptance of support, warranty, indemnity,
357
+ or other liability obligations and/or rights consistent with this
358
+ License. However, in accepting such obligations, You may act only
359
+ on Your own behalf and on Your sole responsibility, not on behalf
360
+ of any other Contributor, and only if You agree to indemnify,
361
+ defend, and hold each Contributor harmless for any liability
362
+ incurred by, or claims asserted against, such Contributor by reason
363
+ of your accepting any such warranty or additional liability.
364
+
365
+ END OF TERMS AND CONDITIONS
366
+
367
+ APPENDIX: How to apply the Apache License to your work.
368
+
369
+ To apply the Apache License to your work, attach the following
370
+ boilerplate notice, with the fields enclosed by brackets "[]"
371
+ replaced with your own identifying information. (Don't include
372
+ the brackets!) The text should be enclosed in the appropriate
373
+ comment syntax for the file format. We also recommend that a
374
+ file or class name and description of purpose be included on the
375
+ same "printed page" as the copyright notice for easier
376
+ identification within third-party archives.
377
+
378
+ Copyright [2021] [SwinIR Authors]
379
+
380
+ Licensed under the Apache License, Version 2.0 (the "License");
381
+ you may not use this file except in compliance with the License.
382
+ You may obtain a copy of the License at
383
+
384
+ http://www.apache.org/licenses/LICENSE-2.0
385
+
386
+ Unless required by applicable law or agreed to in writing, software
387
+ distributed under the License is distributed on an "AS IS" BASIS,
388
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
389
+ See the License for the specific language governing permissions and
390
+ limitations under the License.
391
+ </pre>
392
+
393
+ <h2><a href="https://github.com/AminRezaei0x443/memory-efficient-attention/blob/main/LICENSE">Memory Efficient Attention</a></h2>
394
+ <small>The sub-quadratic cross attention optimization uses modified code from the Memory Efficient Attention package that Alex Birch optimized for 3D tensors. This license is updated to reflect that.</small>
395
+ <pre>
396
+ MIT License
397
+
398
+ Copyright (c) 2023 Alex Birch
399
+ Copyright (c) 2023 Amin Rezaei
400
+
401
+ Permission is hereby granted, free of charge, to any person obtaining a copy
402
+ of this software and associated documentation files (the "Software"), to deal
403
+ in the Software without restriction, including without limitation the rights
404
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
405
+ copies of the Software, and to permit persons to whom the Software is
406
+ furnished to do so, subject to the following conditions:
407
+
408
+ The above copyright notice and this permission notice shall be included in all
409
+ copies or substantial portions of the Software.
410
+
411
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
412
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
413
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
414
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
415
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
416
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
417
+ SOFTWARE.
418
+ </pre>
419
+
420
+ <h2><a href="https://github.com/huggingface/diffusers/blob/c7da8fd23359a22d0df2741688b5b4f33c26df21/LICENSE">Scaled Dot Product Attention</a></h2>
421
+ <small>Some small amounts of code borrowed and reworked.</small>
422
+ <pre>
423
+ Copyright 2023 The HuggingFace Team. All rights reserved.
424
+
425
+ Licensed under the Apache License, Version 2.0 (the "License");
426
+ you may not use this file except in compliance with the License.
427
+ You may obtain a copy of the License at
428
+
429
+ http://www.apache.org/licenses/LICENSE-2.0
430
+
431
+ Unless required by applicable law or agreed to in writing, software
432
+ distributed under the License is distributed on an "AS IS" BASIS,
433
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
434
+ See the License for the specific language governing permissions and
435
+ limitations under the License.
436
+
437
+ Apache License
438
+ Version 2.0, January 2004
439
+ http://www.apache.org/licenses/
440
+
441
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
442
+
443
+ 1. Definitions.
444
+
445
+ "License" shall mean the terms and conditions for use, reproduction,
446
+ and distribution as defined by Sections 1 through 9 of this document.
447
+
448
+ "Licensor" shall mean the copyright owner or entity authorized by
449
+ the copyright owner that is granting the License.
450
+
451
+ "Legal Entity" shall mean the union of the acting entity and all
452
+ other entities that control, are controlled by, or are under common
453
+ control with that entity. For the purposes of this definition,
454
+ "control" means (i) the power, direct or indirect, to cause the
455
+ direction or management of such entity, whether by contract or
456
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
457
+ outstanding shares, or (iii) beneficial ownership of such entity.
458
+
459
+ "You" (or "Your") shall mean an individual or Legal Entity
460
+ exercising permissions granted by this License.
461
+
462
+ "Source" form shall mean the preferred form for making modifications,
463
+ including but not limited to software source code, documentation
464
+ source, and configuration files.
465
+
466
+ "Object" form shall mean any form resulting from mechanical
467
+ transformation or translation of a Source form, including but
468
+ not limited to compiled object code, generated documentation,
469
+ and conversions to other media types.
470
+
471
+ "Work" shall mean the work of authorship, whether in Source or
472
+ Object form, made available under the License, as indicated by a
473
+ copyright notice that is included in or attached to the work
474
+ (an example is provided in the Appendix below).
475
+
476
+ "Derivative Works" shall mean any work, whether in Source or Object
477
+ form, that is based on (or derived from) the Work and for which the
478
+ editorial revisions, annotations, elaborations, or other modifications
479
+ represent, as a whole, an original work of authorship. For the purposes
480
+ of this License, Derivative Works shall not include works that remain
481
+ separable from, or merely link (or bind by name) to the interfaces of,
482
+ the Work and Derivative Works thereof.
483
+
484
+ "Contribution" shall mean any work of authorship, including
485
+ the original version of the Work and any modifications or additions
486
+ to that Work or Derivative Works thereof, that is intentionally
487
+ submitted to Licensor for inclusion in the Work by the copyright owner
488
+ or by an individual or Legal Entity authorized to submit on behalf of
489
+ the copyright owner. For the purposes of this definition, "submitted"
490
+ means any form of electronic, verbal, or written communication sent
491
+ to the Licensor or its representatives, including but not limited to
492
+ communication on electronic mailing lists, source code control systems,
493
+ and issue tracking systems that are managed by, or on behalf of, the
494
+ Licensor for the purpose of discussing and improving the Work, but
495
+ excluding communication that is conspicuously marked or otherwise
496
+ designated in writing by the copyright owner as "Not a Contribution."
497
+
498
+ "Contributor" shall mean Licensor and any individual or Legal Entity
499
+ on behalf of whom a Contribution has been received by Licensor and
500
+ subsequently incorporated within the Work.
501
+
502
+ 2. Grant of Copyright License. Subject to the terms and conditions of
503
+ this License, each Contributor hereby grants to You a perpetual,
504
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
505
+ copyright license to reproduce, prepare Derivative Works of,
506
+ publicly display, publicly perform, sublicense, and distribute the
507
+ Work and such Derivative Works in Source or Object form.
508
+
509
+ 3. Grant of Patent License. Subject to the terms and conditions of
510
+ this License, each Contributor hereby grants to You a perpetual,
511
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
512
+ (except as stated in this section) patent license to make, have made,
513
+ use, offer to sell, sell, import, and otherwise transfer the Work,
514
+ where such license applies only to those patent claims licensable
515
+ by such Contributor that are necessarily infringed by their
516
+ Contribution(s) alone or by combination of their Contribution(s)
517
+ with the Work to which such Contribution(s) was submitted. If You
518
+ institute patent litigation against any entity (including a
519
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
520
+ or a Contribution incorporated within the Work constitutes direct
521
+ or contributory patent infringement, then any patent licenses
522
+ granted to You under this License for that Work shall terminate
523
+ as of the date such litigation is filed.
524
+
525
+ 4. Redistribution. You may reproduce and distribute copies of the
526
+ Work or Derivative Works thereof in any medium, with or without
527
+ modifications, and in Source or Object form, provided that You
528
+ meet the following conditions:
529
+
530
+ (a) You must give any other recipients of the Work or
531
+ Derivative Works a copy of this License; and
532
+
533
+ (b) You must cause any modified files to carry prominent notices
534
+ stating that You changed the files; and
535
+
536
+ (c) You must retain, in the Source form of any Derivative Works
537
+ that You distribute, all copyright, patent, trademark, and
538
+ attribution notices from the Source form of the Work,
539
+ excluding those notices that do not pertain to any part of
540
+ the Derivative Works; and
541
+
542
+ (d) If the Work includes a "NOTICE" text file as part of its
543
+ distribution, then any Derivative Works that You distribute must
544
+ include a readable copy of the attribution notices contained
545
+ within such NOTICE file, excluding those notices that do not
546
+ pertain to any part of the Derivative Works, in at least one
547
+ of the following places: within a NOTICE text file distributed
548
+ as part of the Derivative Works; within the Source form or
549
+ documentation, if provided along with the Derivative Works; or,
550
+ within a display generated by the Derivative Works, if and
551
+ wherever such third-party notices normally appear. The contents
552
+ of the NOTICE file are for informational purposes only and
553
+ do not modify the License. You may add Your own attribution
554
+ notices within Derivative Works that You distribute, alongside
555
+ or as an addendum to the NOTICE text from the Work, provided
556
+ that such additional attribution notices cannot be construed
557
+ as modifying the License.
558
+
559
+ You may add Your own copyright statement to Your modifications and
560
+ may provide additional or different license terms and conditions
561
+ for use, reproduction, or distribution of Your modifications, or
562
+ for any such Derivative Works as a whole, provided Your use,
563
+ reproduction, and distribution of the Work otherwise complies with
564
+ the conditions stated in this License.
565
+
566
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
567
+ any Contribution intentionally submitted for inclusion in the Work
568
+ by You to the Licensor shall be under the terms and conditions of
569
+ this License, without any additional terms or conditions.
570
+ Notwithstanding the above, nothing herein shall supersede or modify
571
+ the terms of any separate license agreement you may have executed
572
+ with Licensor regarding such Contributions.
573
+
574
+ 6. Trademarks. This License does not grant permission to use the trade
575
+ names, trademarks, service marks, or product names of the Licensor,
576
+ except as required for reasonable and customary use in describing the
577
+ origin of the Work and reproducing the content of the NOTICE file.
578
+
579
+ 7. Disclaimer of Warranty. Unless required by applicable law or
580
+ agreed to in writing, Licensor provides the Work (and each
581
+ Contributor provides its Contributions) on an "AS IS" BASIS,
582
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
583
+ implied, including, without limitation, any warranties or conditions
584
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
585
+ PARTICULAR PURPOSE. You are solely responsible for determining the
586
+ appropriateness of using or redistributing the Work and assume any
587
+ risks associated with Your exercise of permissions under this License.
588
+
589
+ 8. Limitation of Liability. In no event and under no legal theory,
590
+ whether in tort (including negligence), contract, or otherwise,
591
+ unless required by applicable law (such as deliberate and grossly
592
+ negligent acts) or agreed to in writing, shall any Contributor be
593
+ liable to You for damages, including any direct, indirect, special,
594
+ incidental, or consequential damages of any character arising as a
595
+ result of this License or out of the use or inability to use the
596
+ Work (including but not limited to damages for loss of goodwill,
597
+ work stoppage, computer failure or malfunction, or any and all
598
+ other commercial damages or losses), even if such Contributor
599
+ has been advised of the possibility of such damages.
600
+
601
+ 9. Accepting Warranty or Additional Liability. While redistributing
602
+ the Work or Derivative Works thereof, You may choose to offer,
603
+ and charge a fee for, acceptance of support, warranty, indemnity,
604
+ or other liability obligations and/or rights consistent with this
605
+ License. However, in accepting such obligations, You may act only
606
+ on Your own behalf and on Your sole responsibility, not on behalf
607
+ of any other Contributor, and only if You agree to indemnify,
608
+ defend, and hold each Contributor harmless for any liability
609
+ incurred by, or claims asserted against, such Contributor by reason
610
+ of your accepting any such warranty or additional liability.
611
+
612
+ END OF TERMS AND CONDITIONS
613
+
614
+ APPENDIX: How to apply the Apache License to your work.
615
+
616
+ To apply the Apache License to your work, attach the following
617
+ boilerplate notice, with the fields enclosed by brackets "[]"
618
+ replaced with your own identifying information. (Don't include
619
+ the brackets!) The text should be enclosed in the appropriate
620
+ comment syntax for the file format. We also recommend that a
621
+ file or class name and description of purpose be included on the
622
+ same "printed page" as the copyright notice for easier
623
+ identification within third-party archives.
624
+
625
+ Copyright [yyyy] [name of copyright owner]
626
+
627
+ Licensed under the Apache License, Version 2.0 (the "License");
628
+ you may not use this file except in compliance with the License.
629
+ You may obtain a copy of the License at
630
+
631
+ http://www.apache.org/licenses/LICENSE-2.0
632
+
633
+ Unless required by applicable law or agreed to in writing, software
634
+ distributed under the License is distributed on an "AS IS" BASIS,
635
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
636
+ See the License for the specific language governing permissions and
637
+ limitations under the License.
638
+ </pre>
639
+
640
+ <h2><a href="https://github.com/explosion/curated-transformers/blob/main/LICENSE">Curated transformers</a></h2>
641
+ <small>The MPS workaround for nn.Linear on macOS 13.2.X is based on the MPS workaround for nn.Linear created by danieldk for Curated transformers</small>
642
+ <pre>
643
+ The MIT License (MIT)
644
+
645
+ Copyright (C) 2021 ExplosionAI GmbH
646
+
647
+ Permission is hereby granted, free of charge, to any person obtaining a copy
648
+ of this software and associated documentation files (the "Software"), to deal
649
+ in the Software without restriction, including without limitation the rights
650
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
651
+ copies of the Software, and to permit persons to whom the Software is
652
+ furnished to do so, subject to the following conditions:
653
+
654
+ The above copyright notice and this permission notice shall be included in
655
+ all copies or substantial portions of the Software.
656
+
657
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
658
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
659
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
660
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
661
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
662
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
663
+ THE SOFTWARE.
664
+ </pre>