Paper99 commited on
Commit
1a6c643
1 Parent(s): 79466ef

Update download link

Browse files
Files changed (2) hide show
  1. LICENSE +177 -0
  2. app.py +1 -1
LICENSE CHANGED
@@ -63,3 +63,180 @@ You may add Your own copyright statement to Your modifications and may provide a
63
  9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability.
64
 
65
  END OF TERMS AND CONDITIONS
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
63
  9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability.
64
 
65
  END OF TERMS AND CONDITIONS
66
+
67
+ SDXL unstable YamerMix checkpoints follow the LICENSE with:
68
+ Copyright (c) 2023 Stability AI CreativeML Open RAIL++-M License dated July 26, 2023
69
+
70
+ Section I: PREAMBLE Multimodal generative models are being widely adopted and used, and
71
+ have the potential to transform the way artists, among other individuals, conceive and
72
+ benefit from AI or ML technologies as a tool for content creation. Notwithstanding the
73
+ current and potential benefits that these artifacts can bring to society at large, there
74
+ are also concerns about potential misuses of them, either due to their technical
75
+ limitations or ethical considerations. In short, this license strives for both the open
76
+ and responsible downstream use of the accompanying model. When it comes to the open
77
+ character, we took inspiration from open source permissive licenses regarding the grant
78
+ of IP rights. Referring to the downstream responsible use, we added use-based
79
+ restrictions not permitting the use of the model in very specific scenarios, in order
80
+ for the licensor to be able to enforce the license in case potential misuses of the
81
+ Model may occur. At the same time, we strive to promote open and responsible research on
82
+ generative models for art and content generation. Even though downstream derivative
83
+ versions of the model could be released under different licensing terms, the latter will
84
+ always have to include - at minimum - the same use-based restrictions as the ones in the
85
+ original license (this license). We believe in the intersection between open and
86
+ responsible AI development; thus, this agreement aims to strike a balance between both
87
+ in order to enable responsible open-science in the field of AI. This CreativeML Open
88
+ RAIL++-M License governs the use of the model (and its derivatives) and is informed by
89
+ the model card associated with the model. NOW THEREFORE, You and Licensor agree as
90
+ follows: Definitions "License" means the terms and conditions for use, reproduction, and
91
+ Distribution as defined in this document. "Data" means a collection of information
92
+ and/or content extracted from the dataset used with the Model, including to train,
93
+ pretrain, or otherwise evaluate the Model. The Data is not licensed under this License.
94
+ "Output" means the results of operating a Model as embodied in informational content
95
+ resulting therefrom. "Model" means any accompanying machine-learning based assemblies
96
+ (including checkpoints), consisting of learnt weights, parameters (including optimizer
97
+ states), corresponding to the model architecture as embodied in the Complementary
98
+ Material, that have been trained or tuned, in whole or in part on the Data, using the
99
+ Complementary Material. "Derivatives of the Model" means all modifications to the Model,
100
+ works based on the Model, or any other model which is created or initialized by transfer
101
+ of patterns of the weights, parameters, activations or output of the Model, to the other
102
+ model, in order to cause the other model to perform similarly to the Model, including -
103
+ but not limited to - distillation methods entailing the use of intermediate data
104
+ representations or methods based on the generation of synthetic data by the Model for
105
+ training the other model. "Complementary Material" means the accompanying source code
106
+ and scripts used to define, run, load, benchmark or evaluate the Model, and used to
107
+ prepare data for training or evaluation, if any. This includes any accompanying
108
+ documentation, tutorials, examples, etc, if any. "Distribution" means any transmission,
109
+ reproduction, publication or other sharing of the Model or Derivatives of the Model to a
110
+ third party, including providing the Model as a hosted service made available by
111
+ electronic or other remote means - e.g. API-based or web access. "Licensor" means the
112
+ copyright owner or entity authorized by the copyright owner that is granting the
113
+ License, including the persons or entities that may have rights in the Model and/or
114
+ distributing the Model. "You" (or "Your") means an individual or Legal Entity exercising
115
+ permissions granted by this License and/or making use of the Model for whichever purpose
116
+ and in any field of use, including usage of the Model in an end-use application - e.g.
117
+ chatbot, translator, image generator. "Third Parties" means individuals or legal
118
+ entities that are not under common control with Licensor or You. "Contribution" means
119
+ any work of authorship, including the original version of the Model and any
120
+ modifications or additions to that Model or Derivatives of the Model thereof, that is
121
+ intentionally submitted to Licensor for inclusion in the Model by the copyright owner or
122
+ by an individual or Legal Entity authorized to submit on behalf of the copyright owner.
123
+ For the purposes of this definition, "submitted" means any form of electronic, verbal,
124
+ or written communication sent to the Licensor or its representatives, including but not
125
+ limited to communication on electronic mailing lists, source code control systems, and
126
+ issue tracking systems that are managed by, or on behalf of, the Licensor for the
127
+ purpose of discussing and improving the Model, but excluding communication that is
128
+ conspicuously marked or otherwise designated in writing by the copyright owner as "Not a
129
+ Contribution." "Contributor" means Licensor and any individual or Legal Entity on behalf
130
+ of whom a Contribution has been received by Licensor and subsequently incorporated
131
+ within the Model.
132
+
133
+ Section II: INTELLECTUAL PROPERTY RIGHTS Both copyright and patent grants apply to the
134
+ Model, Derivatives of the Model and Complementary Material. The Model and Derivatives of
135
+ the Model are subject to additional terms as described in
136
+
137
+ Section III. Grant of Copyright License. Subject to the terms and conditions of this
138
+ License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive,
139
+ no-charge, royalty-free, irrevocable copyright license to reproduce, prepare, publicly
140
+ display, publicly perform, sublicense, and distribute the Complementary Material, the
141
+ Model, and Derivatives of the Model. Grant of Patent License. Subject to the terms and
142
+ conditions of this License and where and as applicable, each Contributor hereby grants
143
+ to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable
144
+ (except as stated in this paragraph) patent license to make, have made, use, offer to
145
+ sell, sell, import, and otherwise transfer the Model and the Complementary Material,
146
+ where such license applies only to those patent claims licensable by such Contributor
147
+ that are necessarily infringed by their Contribution(s) alone or by combination of their
148
+ Contribution(s) with the Model to which such Contribution(s) was submitted. If You
149
+ institute patent litigation against any entity (including a cross-claim or counterclaim
150
+ in a lawsuit) alleging that the Model and/or Complementary Material or a Contribution
151
+ incorporated within the Model and/or Complementary Material constitutes direct or
152
+ contributory patent infringement, then any patent licenses granted to You under this
153
+ License for the Model and/or Work shall terminate as of the date such litigation is
154
+ asserted or filed. Section III: CONDITIONS OF USAGE, DISTRIBUTION AND REDISTRIBUTION
155
+ Distribution and Redistribution. You may host for Third Party remote access purposes
156
+ (e.g. software-as-a-service), reproduce and distribute copies of the Model or
157
+ Derivatives of the Model thereof in any medium, with or without modifications, provided
158
+ that You meet the following conditions: Use-based restrictions as referenced in
159
+ paragraph 5 MUST be included as an enforceable provision by You in any type of legal
160
+ agreement (e.g. a license) governing the use and/or distribution of the Model or
161
+ Derivatives of the Model, and You shall give notice to subsequent users You Distribute
162
+ to, that the Model or Derivatives of the Model are subject to paragraph 5. This
163
+ provision does not apply to the use of Complementary Material. You must give any Third
164
+ Party recipients of the Model or Derivatives of the Model a copy of this License; You
165
+ must cause any modified files to carry prominent notices stating that You changed the
166
+ files; You must retain all copyright, patent, trademark, and attribution notices
167
+ excluding those notices that do not pertain to any part of the Model, Derivatives of the
168
+ Model. You may add Your own copyright statement to Your modifications and may provide
169
+ additional or different license terms and conditions - respecting paragraph 4.a. - for
170
+ use, reproduction, or Distribution of Your modifications, or for any such Derivatives of
171
+ the Model as a whole, provided Your use, reproduction, and Distribution of the Model
172
+ otherwise complies with the conditions stated in this License. Use-based restrictions.
173
+ The restrictions set forth in Attachment A are considered Use-based restrictions.
174
+ Therefore You cannot use the Model and the Derivatives of the Model for the specified
175
+ restricted uses. You may use the Model subject to this License, including only for
176
+ lawful purposes and in accordance with the License. Use may include creating any content
177
+ with, finetuning, updating, running, training, evaluating and/or reparametrizing the
178
+ Model. You shall require all of Your users who use the Model or a Derivative of the
179
+ Model to comply with the terms of this paragraph (paragraph 5). The Output You Generate.
180
+ Except as set forth herein, Licensor claims no rights in the Output You generate using
181
+ the Model. You are accountable for the Output you generate and its subsequent uses. No
182
+ use of the output can contravene any provision as stated in the License.
183
+
184
+ Section IV: OTHER PROVISIONS Updates and Runtime Restrictions. To the maximum extent
185
+ permitted by law, Licensor reserves the right to restrict (remotely or otherwise) usage
186
+ of the Model in violation of this License. Trademarks and related. Nothing in this
187
+ License permits You to make use of Licensors’ trademarks, trade names, logos or to
188
+ otherwise suggest endorsement or misrepresent the relationship between the parties; and
189
+ any rights not expressly granted herein are reserved by the Licensors. Disclaimer of
190
+ Warranty. Unless required by applicable law or agreed to in writing, Licensor provides
191
+ the Model and the Complementary Material (and each Contributor provides its
192
+ Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
193
+ express or implied, including, without limitation, any warranties or conditions of
194
+ TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are
195
+ solely responsible for determining the appropriateness of using or redistributing the
196
+ Model, Derivatives of the Model, and the Complementary Material and assume any risks
197
+ associated with Your exercise of permissions under this License. Limitation of
198
+ Liability. In no event and under no legal theory, whether in tort (including
199
+ negligence), contract, or otherwise, unless required by applicable law (such as
200
+ deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be
201
+ liable to You for damages, including any direct, indirect, special, incidental, or
202
+ consequential damages of any character arising as a result of this License or out of the
203
+ use or inability to use the Model and the Complementary Material (including but not
204
+ limited to damages for loss of goodwill, work stoppage, computer failure or malfunction,
205
+ or any and all other commercial damages or losses), even if such Contributor has been
206
+ advised of the possibility of such damages. Accepting Warranty or Additional Liability.
207
+ While redistributing the Model, Derivatives of the Model and the Complementary Material
208
+ thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty,
209
+ indemnity, or other liability obligations and/or rights consistent with this License.
210
+ However, in accepting such obligations, You may act only on Your own behalf and on Your
211
+ sole responsibility, not on behalf of any other Contributor, and only if You agree to
212
+ indemnify, defend, and hold each Contributor harmless for any liability incurred by, or
213
+ claims asserted against, such Contributor by reason of your accepting any such warranty
214
+ or additional liability. If any provision of this License is held to be invalid, illegal
215
+ or unenforceable, the remaining provisions shall be unaffected thereby and remain valid
216
+ as if such provision had not been set forth herein.
217
+
218
+ END OF TERMS AND CONDITIONS
219
+
220
+ Attachment A Use Restrictions
221
+ You agree not to use the Model or Derivatives of the Model:
222
+ In any way that violates any applicable national, federal, state, local or
223
+ international law or regulation; For the purpose of exploiting, harming or attempting to
224
+ exploit or harm minors in any way; To generate or disseminate verifiably false
225
+ information and/or content with the purpose of harming others; To generate or
226
+ disseminate personal identifiable information that can be used to harm an individual; To
227
+ defame, disparage or otherwise harass others; For fully automated decision making that
228
+ adversely impacts an individual’s legal rights or otherwise creates or modifies a
229
+ binding, enforceable obligation; For any use intended to or which has the effect of
230
+ discriminating against or harming individuals or groups based on online or offline
231
+ social behavior or known or predicted personal or personality characteristics; To
232
+ exploit any of the vulnerabilities of a specific group of persons based on their age,
233
+ social, physical or mental characteristics, in order to materially distort the behavior
234
+ of a person pertaining to that group in a manner that causes or is likely to cause that
235
+ person or another person physical or psychological harm; For any use intended to or
236
+ which has the effect of discriminating against individuals or groups based on legally
237
+ protected characteristics or categories; To provide medical advice and medical results
238
+ interpretation; To generate or disseminate information for the purpose to be used for
239
+ administration of justice, law enforcement, immigration or asylum processes, such as
240
+ predicting an individual will commit fraud/crime commitment (e.g. by text profiling,
241
+ drawing causal relationships between assertions made in documents, indiscriminate and
242
+ arbitrarily-targeted use).
app.py CHANGED
@@ -19,7 +19,7 @@ os.makedirs(civitai_model_path, exist_ok=True)
19
  base_model_name = "sdxlUnstableDiffusers_v11.safetensors"
20
  base_model_path = os.path.join(civitai_model_path, base_model_name)
21
  if not os.path.exists(base_model_path):
22
- os.system(f'wget https://civitai.com/api/download/models/276923 -O {base_model_path}')
23
 
24
  lora_model_name = "xl_more_art-full.safetensors"
25
  lora_path = os.path.join(civitai_model_path, lora_model_name)
 
19
  base_model_name = "sdxlUnstableDiffusers_v11.safetensors"
20
  base_model_path = os.path.join(civitai_model_path, base_model_name)
21
  if not os.path.exists(base_model_path):
22
+ base_model_path = hf_hub_download(repo_id="Paper99/sdxlUnstableDiffusers_v11", filename="sdxlUnstableDiffusers_v11.safetensors", repo_type="model")
23
 
24
  lora_model_name = "xl_more_art-full.safetensors"
25
  lora_path = os.path.join(civitai_model_path, lora_model_name)