Skip to content

Commit 049645d

Browse files
author
Lincoln Stein
committed
updated LICENSE files and added information about watermarking
1 parent 6a3a776 commit 049645d

File tree

7 files changed

+351
-61
lines changed

7 files changed

+351
-61
lines changed
File renamed without changes.

LICENSE-SDXL.txt

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

docs/features/CONFIGURATION.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ InvokeAI:
6565
esrgan: true
6666
internet_available: true
6767
log_tokenization: false
68-
nsfw_checker: false
6968
patchmatch: true
7069
restore: true
7170
...
@@ -138,7 +137,7 @@ command-line options by giving the `--help` argument:
138137
(.venv) > invokeai-web --help
139138
usage: InvokeAI [-h] [--host HOST] [--port PORT] [--allow_origins [ALLOW_ORIGINS ...]] [--allow_credentials | --no-allow_credentials] [--allow_methods [ALLOW_METHODS ...]]
140139
[--allow_headers [ALLOW_HEADERS ...]] [--esrgan | --no-esrgan] [--internet_available | --no-internet_available] [--log_tokenization | --no-log_tokenization]
141-
[--nsfw_checker | --no-nsfw_checker] [--invisible_watermark | --no-invisible_watermark] [--patchmatch | --no-patchmatch] [--restore | --no-restore]
140+
[--patchmatch | --no-patchmatch] [--restore | --no-restore]
142141
[--always_use_cpu | --no-always_use_cpu] [--free_gpu_mem | --no-free_gpu_mem] [--max_loaded_models MAX_LOADED_MODELS] [--max_cache_size MAX_CACHE_SIZE]
143142
[--max_vram_cache_size MAX_VRAM_CACHE_SIZE] [--gpu_mem_reserved GPU_MEM_RESERVED] [--precision {auto,float16,float32,autocast}]
144143
[--sequential_guidance | --no-sequential_guidance] [--xformers_enabled | --no-xformers_enabled] [--tiled_decode | --no-tiled_decode] [--root ROOT]
@@ -175,8 +174,6 @@ These configuration settings allow you to enable and disable various InvokeAI fe
175174
| `esrgan` | `true` | Activate the ESRGAN upscaling options|
176175
| `internet_available` | `true` | When a resource is not available locally, try to fetch it via the internet |
177176
| `log_tokenization` | `false` | Before each text2image generation, print a color-coded representation of the prompt to the console; this can help understand why a prompt is not working as expected |
178-
| `nsfw_checker` | `true` | Activate the NSFW checker to blur out risque images |
179-
| `invisible_watermark` | `true` | Write an invisible watermark 'InvokeAI' into generated images for use by AI image detectors |
180177
| `patchmatch` | `true` | Activate the "patchmatch" algorithm for improved inpainting |
181178
| `restore` | `true` | Activate the facial restoration features (DEPRECATED; restoration features will be removed in 3.0.0) |
182179

0 commit comments

Comments
 (0)