InvokeAI 2.2.4.5__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (157) hide show
  1. invokeai-2.2.4.5/LICENSE +21 -0
  2. invokeai-2.2.4.5/LICENSE-ModelWeights.txt +294 -0
  3. invokeai-2.2.4.5/PKG-INFO +255 -0
  4. invokeai-2.2.4.5/README.md +195 -0
  5. invokeai-2.2.4.5/assets/caution.png +0 -0
  6. invokeai-2.2.4.5/backend/__init__.py +0 -0
  7. invokeai-2.2.4.5/backend/invoke_ai_web_server.py +1724 -0
  8. invokeai-2.2.4.5/backend/modules/__init__.py +0 -0
  9. invokeai-2.2.4.5/backend/modules/create_cmd_parser.py +55 -0
  10. invokeai-2.2.4.5/backend/modules/get_canvas_generation_mode.py +117 -0
  11. invokeai-2.2.4.5/backend/modules/parameters.py +71 -0
  12. invokeai-2.2.4.5/backend/modules/parse_seed_weights.py +47 -0
  13. invokeai-2.2.4.5/configs/INITIAL_MODELS.yaml +80 -0
  14. invokeai-2.2.4.5/configs/models.yaml.example +29 -0
  15. invokeai-2.2.4.5/configs/sd-concepts.txt +803 -0
  16. invokeai-2.2.4.5/configs/stable-diffusion/v1-finetune.yaml +110 -0
  17. invokeai-2.2.4.5/configs/stable-diffusion/v1-finetune_style.yaml +103 -0
  18. invokeai-2.2.4.5/configs/stable-diffusion/v1-inference.yaml +79 -0
  19. invokeai-2.2.4.5/configs/stable-diffusion/v1-inpainting-inference.yaml +79 -0
  20. invokeai-2.2.4.5/configs/stable-diffusion/v1-m1-finetune.yaml +110 -0
  21. invokeai-2.2.4.5/docs/assets/invoke-web-server-1.png +0 -0
  22. invokeai-2.2.4.5/docs/assets/invoke_ai_banner.png +0 -0
  23. invokeai-2.2.4.5/frontend/dist/assets/Inter-Bold.790c108b.ttf +0 -0
  24. invokeai-2.2.4.5/frontend/dist/assets/Inter.b9a8e5e2.ttf +0 -0
  25. invokeai-2.2.4.5/frontend/dist/assets/favicon.0d253ced.ico +0 -0
  26. invokeai-2.2.4.5/frontend/dist/assets/index-legacy-b741077f.js +48 -0
  27. invokeai-2.2.4.5/frontend/dist/assets/index.0dadf5d0.css +1 -0
  28. invokeai-2.2.4.5/frontend/dist/assets/index.21ff81eb.js +625 -0
  29. invokeai-2.2.4.5/frontend/dist/assets/logo.13003d72.png +0 -0
  30. invokeai-2.2.4.5/frontend/dist/assets/polyfills-legacy-dde3a68a.js +4 -0
  31. invokeai-2.2.4.5/frontend/dist/assets/polyfills.1ff60148.js +1 -0
  32. invokeai-2.2.4.5/frontend/dist/index.html +23 -0
  33. invokeai-2.2.4.5/invokeai.egg-info/PKG-INFO +255 -0
  34. invokeai-2.2.4.5/invokeai.egg-info/SOURCES.txt +156 -0
  35. invokeai-2.2.4.5/invokeai.egg-info/dependency_links.txt +1 -0
  36. invokeai-2.2.4.5/invokeai.egg-info/entry_points.txt +4 -0
  37. invokeai-2.2.4.5/invokeai.egg-info/requires.txt +40 -0
  38. invokeai-2.2.4.5/invokeai.egg-info/top_level.txt +6 -0
  39. invokeai-2.2.4.5/invokeai.egg-info/zip-safe +1 -0
  40. invokeai-2.2.4.5/ldm/__init__.py +0 -0
  41. invokeai-2.2.4.5/ldm/data/__init__.py +0 -0
  42. invokeai-2.2.4.5/ldm/data/base.py +31 -0
  43. invokeai-2.2.4.5/ldm/data/imagenet.py +466 -0
  44. invokeai-2.2.4.5/ldm/data/lsun.py +126 -0
  45. invokeai-2.2.4.5/ldm/data/personalized.py +202 -0
  46. invokeai-2.2.4.5/ldm/data/personalized_style.py +169 -0
  47. invokeai-2.2.4.5/ldm/generate.py +1159 -0
  48. invokeai-2.2.4.5/ldm/invoke/CLI.py +960 -0
  49. invokeai-2.2.4.5/ldm/invoke/__init__.py +3 -0
  50. invokeai-2.2.4.5/ldm/invoke/args.py +1257 -0
  51. invokeai-2.2.4.5/ldm/invoke/concepts_lib.py +169 -0
  52. invokeai-2.2.4.5/ldm/invoke/conditioning.py +289 -0
  53. invokeai-2.2.4.5/ldm/invoke/devices.py +27 -0
  54. invokeai-2.2.4.5/ldm/invoke/generator/__init__.py +4 -0
  55. invokeai-2.2.4.5/ldm/invoke/generator/base.py +335 -0
  56. invokeai-2.2.4.5/ldm/invoke/generator/embiggen.py +501 -0
  57. invokeai-2.2.4.5/ldm/invoke/generator/img2img.py +97 -0
  58. invokeai-2.2.4.5/ldm/invoke/generator/inpaint.py +358 -0
  59. invokeai-2.2.4.5/ldm/invoke/generator/omnibus.py +175 -0
  60. invokeai-2.2.4.5/ldm/invoke/generator/txt2img.py +88 -0
  61. invokeai-2.2.4.5/ldm/invoke/generator/txt2img2img.py +182 -0
  62. invokeai-2.2.4.5/ldm/invoke/globals.py +31 -0
  63. invokeai-2.2.4.5/ldm/invoke/image_util.py +70 -0
  64. invokeai-2.2.4.5/ldm/invoke/log.py +66 -0
  65. invokeai-2.2.4.5/ldm/invoke/model_cache.py +449 -0
  66. invokeai-2.2.4.5/ldm/invoke/patchmatch.py +44 -0
  67. invokeai-2.2.4.5/ldm/invoke/pngwriter.py +113 -0
  68. invokeai-2.2.4.5/ldm/invoke/prompt_parser.py +655 -0
  69. invokeai-2.2.4.5/ldm/invoke/readline.py +442 -0
  70. invokeai-2.2.4.5/ldm/invoke/restoration/__init__.py +4 -0
  71. invokeai-2.2.4.5/ldm/invoke/restoration/base.py +38 -0
  72. invokeai-2.2.4.5/ldm/invoke/restoration/codeformer.py +103 -0
  73. invokeai-2.2.4.5/ldm/invoke/restoration/codeformer_arch.py +276 -0
  74. invokeai-2.2.4.5/ldm/invoke/restoration/gfpgan.py +84 -0
  75. invokeai-2.2.4.5/ldm/invoke/restoration/outcrop.py +108 -0
  76. invokeai-2.2.4.5/ldm/invoke/restoration/outpaint.py +92 -0
  77. invokeai-2.2.4.5/ldm/invoke/restoration/realesrgan.py +90 -0
  78. invokeai-2.2.4.5/ldm/invoke/restoration/vqgan_arch.py +435 -0
  79. invokeai-2.2.4.5/ldm/invoke/seamless.py +30 -0
  80. invokeai-2.2.4.5/ldm/invoke/server.py +282 -0
  81. invokeai-2.2.4.5/ldm/invoke/server_legacy.py +246 -0
  82. invokeai-2.2.4.5/ldm/invoke/txt2mask.py +136 -0
  83. invokeai-2.2.4.5/ldm/lr_scheduler.py +143 -0
  84. invokeai-2.2.4.5/ldm/models/__init__.py +0 -0
  85. invokeai-2.2.4.5/ldm/models/autoencoder.py +596 -0
  86. invokeai-2.2.4.5/ldm/models/diffusion/__init__.py +0 -0
  87. invokeai-2.2.4.5/ldm/models/diffusion/classifier.py +355 -0
  88. invokeai-2.2.4.5/ldm/models/diffusion/cross_attention_control.py +443 -0
  89. invokeai-2.2.4.5/ldm/models/diffusion/cross_attention_map_saving.py +95 -0
  90. invokeai-2.2.4.5/ldm/models/diffusion/ddim.py +111 -0
  91. invokeai-2.2.4.5/ldm/models/diffusion/ddpm.py +2263 -0
  92. invokeai-2.2.4.5/ldm/models/diffusion/ksampler.py +312 -0
  93. invokeai-2.2.4.5/ldm/models/diffusion/plms.py +146 -0
  94. invokeai-2.2.4.5/ldm/models/diffusion/sampler.py +450 -0
  95. invokeai-2.2.4.5/ldm/models/diffusion/shared_invokeai_diffusion.py +244 -0
  96. invokeai-2.2.4.5/ldm/modules/__init__.py +0 -0
  97. invokeai-2.2.4.5/ldm/modules/attention.py +274 -0
  98. invokeai-2.2.4.5/ldm/modules/diffusionmodules/__init__.py +0 -0
  99. invokeai-2.2.4.5/ldm/modules/diffusionmodules/model.py +894 -0
  100. invokeai-2.2.4.5/ldm/modules/diffusionmodules/openaimodel.py +1036 -0
  101. invokeai-2.2.4.5/ldm/modules/diffusionmodules/util.py +314 -0
  102. invokeai-2.2.4.5/ldm/modules/distributions/__init__.py +0 -0
  103. invokeai-2.2.4.5/ldm/modules/distributions/distributions.py +104 -0
  104. invokeai-2.2.4.5/ldm/modules/ema.py +88 -0
  105. invokeai-2.2.4.5/ldm/modules/embedding_manager.py +413 -0
  106. invokeai-2.2.4.5/ldm/modules/encoders/__init__.py +0 -0
  107. invokeai-2.2.4.5/ldm/modules/encoders/modules.py +772 -0
  108. invokeai-2.2.4.5/ldm/modules/image_degradation/__init__.py +6 -0
  109. invokeai-2.2.4.5/ldm/modules/image_degradation/bsrgan.py +846 -0
  110. invokeai-2.2.4.5/ldm/modules/image_degradation/bsrgan_light.py +751 -0
  111. invokeai-2.2.4.5/ldm/modules/image_degradation/utils_image.py +1024 -0
  112. invokeai-2.2.4.5/ldm/modules/losses/__init__.py +1 -0
  113. invokeai-2.2.4.5/ldm/modules/losses/contperceptual.py +175 -0
  114. invokeai-2.2.4.5/ldm/modules/losses/vqperceptual.py +240 -0
  115. invokeai-2.2.4.5/ldm/modules/x_transformer.py +752 -0
  116. invokeai-2.2.4.5/ldm/simplet2i.py +13 -0
  117. invokeai-2.2.4.5/ldm/util.py +264 -0
  118. invokeai-2.2.4.5/pyproject.toml +127 -0
  119. invokeai-2.2.4.5/scripts/configure_invokeai.py +797 -0
  120. invokeai-2.2.4.5/scripts/create_root.py +43 -0
  121. invokeai-2.2.4.5/scripts/dream.py +10 -0
  122. invokeai-2.2.4.5/scripts/images2prompt.py +30 -0
  123. invokeai-2.2.4.5/scripts/invoke.py +5 -0
  124. invokeai-2.2.4.5/scripts/legacy_api.py +681 -0
  125. invokeai-2.2.4.5/scripts/load_models.py +12 -0
  126. invokeai-2.2.4.5/scripts/merge_embeddings.py +124 -0
  127. invokeai-2.2.4.5/scripts/orig_scripts/img2img.py +296 -0
  128. invokeai-2.2.4.5/scripts/orig_scripts/inpaint.py +98 -0
  129. invokeai-2.2.4.5/scripts/orig_scripts/knn2img.py +397 -0
  130. invokeai-2.2.4.5/scripts/orig_scripts/sample_diffusion.py +313 -0
  131. invokeai-2.2.4.5/scripts/orig_scripts/train_searcher.py +147 -0
  132. invokeai-2.2.4.5/scripts/orig_scripts/txt2img.py +324 -0
  133. invokeai-2.2.4.5/scripts/preload_models.py +12 -0
  134. invokeai-2.2.4.5/scripts/sd-metadata.py +22 -0
  135. invokeai-2.2.4.5/setup.cfg +42 -0
  136. invokeai-2.2.4.5/setup.py +32 -0
  137. invokeai-2.2.4.5/vendored/clip/clip/__init__.py +1 -0
  138. invokeai-2.2.4.5/vendored/clip/clip/bpe_simple_vocab_16e6.txt.gz +0 -0
  139. invokeai-2.2.4.5/vendored/clip/clip/clip.py +237 -0
  140. invokeai-2.2.4.5/vendored/clip/clip/model.py +436 -0
  141. invokeai-2.2.4.5/vendored/clip/clip/simple_tokenizer.py +132 -0
  142. invokeai-2.2.4.5/vendored/clip/hubconf.py +42 -0
  143. invokeai-2.2.4.5/vendored/clip/setup.py +21 -0
  144. invokeai-2.2.4.5/vendored/clip/tests/test_consistency.py +25 -0
  145. invokeai-2.2.4.5/vendored/clipseg/datasets/coco_wrapper.py +99 -0
  146. invokeai-2.2.4.5/vendored/clipseg/datasets/pascal_zeroshot.py +60 -0
  147. invokeai-2.2.4.5/vendored/clipseg/datasets/pfe_dataset.py +129 -0
  148. invokeai-2.2.4.5/vendored/clipseg/datasets/phrasecut.py +380 -0
  149. invokeai-2.2.4.5/vendored/clipseg/datasets/utils.py +68 -0
  150. invokeai-2.2.4.5/vendored/clipseg/evaluation_utils.py +292 -0
  151. invokeai-2.2.4.5/vendored/clipseg/general_utils.py +272 -0
  152. invokeai-2.2.4.5/vendored/clipseg/metrics.py +271 -0
  153. invokeai-2.2.4.5/vendored/clipseg/models/clipseg.py +538 -0
  154. invokeai-2.2.4.5/vendored/clipseg/models/vitseg.py +286 -0
  155. invokeai-2.2.4.5/vendored/clipseg/score.py +453 -0
  156. invokeai-2.2.4.5/vendored/clipseg/setup.py +30 -0
  157. invokeai-2.2.4.5/vendored/clipseg/training.py +266 -0
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2022 InvokeAI Team
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,294 @@
1
+ Copyright (c) 2022 Robin Rombach and Patrick Esser and contributors
2
+
3
+ CreativeML Open RAIL-M
4
+ dated August 22, 2022
5
+
6
+ Section I: PREAMBLE
7
+
8
+ Multimodal generative models are being widely adopted and used, and
9
+ have the potential to transform the way artists, among other
10
+ individuals, conceive and benefit from AI or ML technologies as a tool
11
+ for content creation.
12
+
13
+ Notwithstanding the current and potential benefits that these
14
+ artifacts can bring to society at large, there are also concerns about
15
+ potential misuses of them, either due to their technical limitations
16
+ or ethical considerations.
17
+
18
+ In short, this license strives for both the open and responsible
19
+ downstream use of the accompanying model. When it comes to the open
20
+ character, we took inspiration from open source permissive licenses
21
+ regarding the grant of IP rights. Referring to the downstream
22
+ responsible use, we added use-based restrictions not permitting the
23
+ use of the Model in very specific scenarios, in order for the licensor
24
+ to be able to enforce the license in case potential misuses of the
25
+ Model may occur. At the same time, we strive to promote open and
26
+ responsible research on generative models for art and content
27
+ generation.
28
+
29
+ Even though downstream derivative versions of the model could be
30
+ released under different licensing terms, the latter will always have
31
+ to include - at minimum - the same use-based restrictions as the ones
32
+ in the original license (this license). We believe in the intersection
33
+ between open and responsible AI development; thus, this License aims
34
+ to strike a balance between both in order to enable responsible
35
+ open-science in the field of AI.
36
+
37
+ This License governs the use of the model (and its derivatives) and is
38
+ informed by the model card associated with the model.
39
+
40
+ NOW THEREFORE, You and Licensor agree as follows:
41
+
42
+ 1. Definitions
43
+
44
+ - "License" means the terms and conditions for use, reproduction, and
45
+ Distribution as defined in this document.
46
+
47
+ - "Data" means a collection of information and/or content extracted
48
+ from the dataset used with the Model, including to train, pretrain,
49
+ or otherwise evaluate the Model. The Data is not licensed under this
50
+ License.
51
+
52
+ - "Output" means the results of operating a Model as embodied in
53
+ informational content resulting therefrom.
54
+
55
+ - "Model" means any accompanying machine-learning based assemblies
56
+ (including checkpoints), consisting of learnt weights, parameters
57
+ (including optimizer states), corresponding to the model
58
+ architecture as embodied in the Complementary Material, that have
59
+ been trained or tuned, in whole or in part on the Data, using the
60
+ Complementary Material.
61
+
62
+ - "Derivatives of the Model" means all modifications to the Model,
63
+ works based on the Model, or any other model which is created or
64
+ initialized by transfer of patterns of the weights, parameters,
65
+ activations or output of the Model, to the other model, in order to
66
+ cause the other model to perform similarly to the Model, including -
67
+ but not limited to - distillation methods entailing the use of
68
+ intermediate data representations or methods based on the generation
69
+ of synthetic data by the Model for training the other model.
70
+
71
+ - "Complementary Material" means the accompanying source code and
72
+ scripts used to define, run, load, benchmark or evaluate the Model,
73
+ and used to prepare data for training or evaluation, if any. This
74
+ includes any accompanying documentation, tutorials, examples, etc,
75
+ if any.
76
+
77
+ - "Distribution" means any transmission, reproduction, publication or
78
+ other sharing of the Model or Derivatives of the Model to a third
79
+ party, including providing the Model as a hosted service made
80
+ available by electronic or other remote means - e.g. API-based or
81
+ web access.
82
+
83
+ - "Licensor" means the copyright owner or entity authorized by the
84
+ copyright owner that is granting the License, including the persons
85
+ or entities that may have rights in the Model and/or distributing
86
+ the Model.
87
+
88
+ - "You" (or "Your") means an individual or Legal Entity exercising
89
+ permissions granted by this License and/or making use of the Model
90
+ for whichever purpose and in any field of use, including usage of
91
+ the Model in an end-use application - e.g. chatbot, translator,
92
+ image generator.
93
+
94
+ - "Third Parties" means individuals or legal entities that are not
95
+ under common control with Licensor or You.
96
+
97
+ - "Contribution" means any work of authorship, including the original
98
+ version of the Model and any modifications or additions to that
99
+ Model or Derivatives of the Model thereof, that is intentionally
100
+ submitted to Licensor for inclusion in the Model by the copyright
101
+ owner or by an individual or Legal Entity authorized to submit on
102
+ behalf of the copyright owner. For the purposes of this definition,
103
+ "submitted" means any form of electronic, verbal, or written
104
+ communication sent to the Licensor or its representatives, including
105
+ but not limited to communication on electronic mailing lists, source
106
+ code control systems, and issue tracking systems that are managed
107
+ by, or on behalf of, the Licensor for the purpose of discussing and
108
+ improving the Model, but excluding communication that is
109
+ conspicuously marked or otherwise designated in writing by the
110
+ copyright owner as "Not a Contribution."
111
+
112
+ - "Contributor" means Licensor and any individual or Legal Entity on
113
+ behalf of whom a Contribution has been received by Licensor and
114
+ subsequently incorporated within the Model.
115
+
116
+ Section II: INTELLECTUAL PROPERTY RIGHTS
117
+
118
+ Both copyright and patent grants apply to the Model, Derivatives of
119
+ the Model and Complementary Material. The Model and Derivatives of the
120
+ Model are subject to additional terms as described in Section III.
121
+
122
+ 2. Grant of Copyright License. Subject to the terms and conditions of
123
+ this License, each Contributor hereby grants to You a perpetual,
124
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
125
+ copyright license to reproduce, prepare, publicly display, publicly
126
+ perform, sublicense, and distribute the Complementary Material, the
127
+ Model, and Derivatives of the Model.
128
+
129
+ 3. Grant of Patent License. Subject to the terms and conditions of
130
+ this License and where and as applicable, each Contributor hereby
131
+ grants to You a perpetual, worldwide, non-exclusive, no-charge,
132
+ royalty-free, irrevocable (except as stated in this paragraph) patent
133
+ license to make, have made, use, offer to sell, sell, import, and
134
+ otherwise transfer the Model and the Complementary Material, where
135
+ such license applies only to those patent claims licensable by such
136
+ Contributor that are necessarily infringed by their Contribution(s)
137
+ alone or by combination of their Contribution(s) with the Model to
138
+ which such Contribution(s) was submitted. If You institute patent
139
+ litigation against any entity (including a cross-claim or counterclaim
140
+ in a lawsuit) alleging that the Model and/or Complementary Material or
141
+ a Contribution incorporated within the Model and/or Complementary
142
+ Material constitutes direct or contributory patent infringement, then
143
+ any patent licenses granted to You under this License for the Model
144
+ and/or Work shall terminate as of the date such litigation is asserted
145
+ or filed.
146
+
147
+ Section III: CONDITIONS OF USAGE, DISTRIBUTION AND REDISTRIBUTION
148
+
149
+ 4. Distribution and Redistribution. You may host for Third Party
150
+ remote access purposes (e.g. software-as-a-service), reproduce and
151
+ distribute copies of the Model or Derivatives of the Model thereof in
152
+ any medium, with or without modifications, provided that You meet the
153
+ following conditions: Use-based restrictions as referenced in
154
+ paragraph 5 MUST be included as an enforceable provision by You in any
155
+ type of legal agreement (e.g. a license) governing the use and/or
156
+ distribution of the Model or Derivatives of the Model, and You shall
157
+ give notice to subsequent users You Distribute to, that the Model or
158
+ Derivatives of the Model are subject to paragraph 5. This provision
159
+ does not apply to the use of Complementary Material. You must give
160
+ any Third Party recipients of the Model or Derivatives of the Model a
161
+ copy of this License; You must cause any modified files to carry
162
+ prominent notices stating that You changed the files; You must retain
163
+ all copyright, patent, trademark, and attribution notices excluding
164
+ those notices that do not pertain to any part of the Model,
165
+ Derivatives of the Model. You may add Your own copyright statement to
166
+ Your modifications and may provide additional or different license
167
+ terms and conditions - respecting paragraph 4.a. - for use,
168
+ reproduction, or Distribution of Your modifications, or for any such
169
+ Derivatives of the Model as a whole, provided Your use, reproduction,
170
+ and Distribution of the Model otherwise complies with the conditions
171
+ stated in this License.
172
+
173
+ 5. Use-based restrictions. The restrictions set forth in Attachment A
174
+ are considered Use-based restrictions. Therefore You cannot use the
175
+ Model 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
+ 6. The Output You Generate. Except as set forth herein, Licensor
184
+ claims 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
+ 7. Updates and Runtime Restrictions. To the maximum extent permitted
192
+ by law, Licensor reserves the right to restrict (remotely or
193
+ otherwise) usage of the Model in violation of this License, update the
194
+ Model through electronic means, or modify the Output of the Model
195
+ based on updates. You shall undertake reasonable efforts to use the
196
+ latest version of the Model.
197
+
198
+ 8. Trademarks and related. Nothing in this License permits You to make
199
+ use of Licensors’ trademarks, trade names, logos or to otherwise
200
+ suggest endorsement or misrepresent the relationship between the
201
+ parties; and any rights not expressly granted herein are reserved by
202
+ the Licensors.
203
+
204
+ 9. Disclaimer of Warranty. Unless required by applicable law or agreed
205
+ to in writing, Licensor provides the Model and the Complementary
206
+ Material (and each Contributor provides its Contributions) on an "AS
207
+ IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
208
+ express or implied, including, without limitation, any warranties or
209
+ conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR
210
+ A PARTICULAR PURPOSE. You are solely responsible for determining the
211
+ appropriateness of using or redistributing the Model, Derivatives of
212
+ the Model, and the Complementary Material and assume any risks
213
+ associated with Your exercise of permissions under this License.
214
+
215
+ 10. Limitation of Liability. In no event and under no legal theory,
216
+ whether in tort (including negligence), contract, or otherwise, unless
217
+ required by applicable law (such as deliberate and grossly negligent
218
+ acts) or agreed to in writing, shall any Contributor be liable to You
219
+ for damages, including any direct, indirect, special, incidental, or
220
+ consequential damages of any character arising as a result of this
221
+ License or out of the use or inability to use the Model and the
222
+ Complementary Material (including but not limited to damages for loss
223
+ of goodwill, work stoppage, computer failure or malfunction, or any
224
+ and all other commercial damages or losses), even if such Contributor
225
+ has been advised of the possibility of such damages.
226
+
227
+ 11. Accepting Warranty or Additional Liability. While redistributing
228
+ the Model, Derivatives of the Model and the Complementary Material
229
+ thereof, You may choose to offer, and charge a fee for, acceptance of
230
+ support, warranty, indemnity, or other liability obligations and/or
231
+ rights consistent with this License. However, in accepting such
232
+ obligations, You may act only on Your own behalf and on Your sole
233
+ responsibility, not on behalf of any other Contributor, and only if
234
+ You agree to indemnify, defend, and hold each Contributor harmless for
235
+ any liability incurred by, or claims asserted against, such
236
+ Contributor by reason of your accepting any such warranty or
237
+ additional liability.
238
+
239
+ 12. If any provision of this License is held to be invalid, illegal or
240
+ unenforceable, the remaining provisions shall be unaffected thereby
241
+ and remain valid as if such provision had not been set forth herein.
242
+
243
+ END OF TERMS AND CONDITIONS
244
+
245
+
246
+
247
+
248
+ Attachment A
249
+
250
+ Use Restrictions
251
+
252
+ You agree not to use the Model or Derivatives of the Model:
253
+
254
+ - In any way that violates any applicable national, federal, state,
255
+ local or international law or regulation;
256
+
257
+ - For the purpose of exploiting, harming or attempting to exploit or
258
+ harm minors in any way;
259
+
260
+ - To generate or disseminate verifiably false information and/or
261
+ content with the purpose of harming others;
262
+
263
+ - To generate or disseminate personal identifiable information that
264
+ can be used to harm an individual;
265
+
266
+ - To defame, disparage or otherwise harass others;
267
+
268
+ - For fully automated decision making that adversely impacts an
269
+ individual’s legal rights or otherwise creates or modifies a
270
+ binding, enforceable obligation;
271
+
272
+ pp- For any use intended to or which has the effect of discriminating
273
+ against or harming individuals or groups based on online or offline
274
+ social behavior or known or predicted personal or personality
275
+ characteristics;
276
+
277
+ - To exploit any of the vulnerabilities of a specific group of persons
278
+ based on their age, social, physical or mental characteristics, in
279
+ order to materially distort the behavior of a person pertaining to
280
+ that group in a manner that causes or is likely to cause that person
281
+ or another person physical or psychological harm;
282
+
283
+ - For any use intended to or which has the effect of discriminating
284
+ against individuals or groups based on legally protected
285
+ characteristics or categories;
286
+
287
+ - To provide medical advice and medical results interpretation;
288
+
289
+ - To generate or disseminate information for the purpose to be used
290
+ for administration of justice, law enforcement, immigration or
291
+ asylum processes, such as predicting an individual will commit
292
+ fraud/crime commitment (e.g. by text profiling, drawing causal
293
+ relationships between assertions made in documents, indiscriminate
294
+ and arbitrarily-targeted use).
@@ -0,0 +1,255 @@
1
+ Metadata-Version: 2.1
2
+ Name: invokeai
3
+ Version: 2.2.4.5
4
+ Summary: An implementation of Stable Diffusion which provides various new features and options to aid the image generation process
5
+ Home-page: https://invoke-ai.github.io/InvokeAI/
6
+ Author: The InvokeAI Project
7
+ Author-email: The InvokeAI Project <lincoln.stein@gmail.com>
8
+ License: MIT License
9
+
10
+ Copyright (c) 2022 InvokeAI Team
11
+
12
+ Permission is hereby granted, free of charge, to any person obtaining a copy
13
+ of this software and associated documentation files (the "Software"), to deal
14
+ in the Software without restriction, including without limitation the rights
15
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
16
+ copies of the Software, and to permit persons to whom the Software is
17
+ furnished to do so, subject to the following conditions:
18
+
19
+ The above copyright notice and this permission notice shall be included in all
20
+ copies or substantial portions of the Software.
21
+
22
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
23
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
24
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
25
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
26
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
27
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
28
+ SOFTWARE.
29
+
30
+ Project-URL: Documentation, https://invoke-ai.github.io/InvokeAI/
31
+ Project-URL: Source, https://github.com/invoke-ai/InvokeAI/
32
+ Project-URL: Bug Reports, https://github.com/invoke-ai/InvokeAI/issues
33
+ Project-URL: Discord, https://discord.gg/ZmtBAhwWhy
34
+ Keywords: stable-diffusion,AI
35
+ Classifier: Development Status :: 4 - Beta
36
+ Classifier: Environment :: GPU
37
+ Classifier: Environment :: GPU :: NVIDIA CUDA
38
+ Classifier: Environment :: MacOS X
39
+ Classifier: Intended Audience :: End Users/Desktop
40
+ Classifier: Intended Audience :: Developers
41
+ Classifier: License :: OSI Approved :: MIT License
42
+ Classifier: Operating System :: POSIX :: Linux
43
+ Classifier: Operating System :: MacOS
44
+ Classifier: Operating System :: Microsoft :: Windows
45
+ Classifier: Programming Language :: Python :: 3
46
+ Classifier: Programming Language :: Python :: 3.9
47
+ Classifier: Programming Language :: Python :: 3.10
48
+ Classifier: Programming Language :: Python :: 3 :: Only
49
+ Classifier: Topic :: Artistic Software
50
+ Classifier: Topic :: Internet :: WWW/HTTP :: WSGI :: Application
51
+ Classifier: Topic :: Internet :: WWW/HTTP :: WSGI :: Server
52
+ Classifier: Topic :: Multimedia :: Graphics
53
+ Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
54
+ Classifier: Topic :: Scientific/Engineering :: Image Processing
55
+ Requires-Python: <3.11,>=3.9
56
+ Description-Content-Type: text/markdown
57
+ Provides-Extra: dev
58
+ License-File: LICENSE
59
+ License-File: LICENSE-ModelWeights.txt
60
+
61
+ <div align="center">
62
+
63
+ ![project logo](docs/assets/invoke_ai_banner.png)
64
+
65
+ # InvokeAI: A Stable Diffusion Toolkit
66
+
67
+ [![discord badge]][discord link]
68
+
69
+ [![latest release badge]][latest release link] [![github stars badge]][github stars link] [![github forks badge]][github forks link]
70
+
71
+ [![CI checks on main badge]][CI checks on main link] [![CI checks on dev badge]][CI checks on dev link] [![latest commit to dev badge]][latest commit to dev link]
72
+
73
+ [![github open issues badge]][github open issues link] [![github open prs badge]][github open prs link]
74
+
75
+ [CI checks on dev badge]: https://flat.badgen.net/github/checks/invoke-ai/InvokeAI/development?label=CI%20status%20on%20dev&cache=900&icon=github
76
+ [CI checks on dev link]: https://github.com/invoke-ai/InvokeAI/actions?query=branch%3Adevelopment
77
+ [CI checks on main badge]: https://flat.badgen.net/github/checks/invoke-ai/InvokeAI/main?label=CI%20status%20on%20main&cache=900&icon=github
78
+ [CI checks on main link]: https://github.com/invoke-ai/InvokeAI/actions/workflows/test-invoke-conda.yml
79
+ [discord badge]: https://flat.badgen.net/discord/members/ZmtBAhwWhy?icon=discord
80
+ [discord link]: https://discord.gg/ZmtBAhwWhy
81
+ [github forks badge]: https://flat.badgen.net/github/forks/invoke-ai/InvokeAI?icon=github
82
+ [github forks link]: https://useful-forks.github.io/?repo=invoke-ai%2FInvokeAI
83
+ [github open issues badge]: https://flat.badgen.net/github/open-issues/invoke-ai/InvokeAI?icon=github
84
+ [github open issues link]: https://github.com/invoke-ai/InvokeAI/issues?q=is%3Aissue+is%3Aopen
85
+ [github open prs badge]: https://flat.badgen.net/github/open-prs/invoke-ai/InvokeAI?icon=github
86
+ [github open prs link]: https://github.com/invoke-ai/InvokeAI/pulls?q=is%3Apr+is%3Aopen
87
+ [github stars badge]: https://flat.badgen.net/github/stars/invoke-ai/InvokeAI?icon=github
88
+ [github stars link]: https://github.com/invoke-ai/InvokeAI/stargazers
89
+ [latest commit to dev badge]: https://flat.badgen.net/github/last-commit/invoke-ai/InvokeAI/development?icon=github&color=yellow&label=last%20dev%20commit&cache=900
90
+ [latest commit to dev link]: https://github.com/invoke-ai/InvokeAI/commits/development
91
+ [latest release badge]: https://flat.badgen.net/github/release/invoke-ai/InvokeAI/development?icon=github
92
+ [latest release link]: https://github.com/invoke-ai/InvokeAI/releases
93
+ </div>
94
+
95
+ This is a fork of
96
+ [CompVis/stable-diffusion](https://github.com/CompVis/stable-diffusion),
97
+ the open source text-to-image generator. It provides a streamlined
98
+ process with various new features and options to aid the image
99
+ generation process. It runs on Windows, macOS and Linux machines, with
100
+ GPU cards with as little as 4 GB of RAM. It provides both a polished
101
+ Web interface (see below), and an easy-to-use command-line interface.
102
+
103
+ **Quick links**: [[How to Install](#installation)] [<a href="https://discord.gg/ZmtBAhwWhy">Discord Server</a>] [<a href="https://invoke-ai.github.io/InvokeAI/">Documentation and Tutorials</a>] [<a href="https://github.com/invoke-ai/InvokeAI/">Code and Downloads</a>] [<a href="https://github.com/invoke-ai/InvokeAI/issues">Bug Reports</a>] [<a href="https://github.com/invoke-ai/InvokeAI/discussions">Discussion, Ideas & Q&A</a>]
104
+
105
+ _Note: InvokeAI is rapidly evolving. Please use the
106
+ [Issues](https://github.com/invoke-ai/InvokeAI/issues) tab to report bugs and make feature
107
+ requests. Be sure to use the provided templates. They will help us diagnose issues faster._
108
+
109
+ # Getting Started with InvokeAI
110
+
111
+ For full installation and upgrade instructions, please see:
112
+ [InvokeAI Installation Overview](https://invoke-ai.github.io/InvokeAI/installation/)
113
+
114
+ 1. Go to the bottom of the [Latest Release Page](https://github.com/invoke-ai/InvokeAI/releases/latest)
115
+ 2. Download the .zip file for your OS (Windows/macOS/Linux).
116
+ 3. Unzip the file.
117
+ 4. If you are on Windows, double-click on the `install.bat` script. On macOS, open a Terminal window, drag the file `install.sh` from Finder into the Terminal, and press return. On Linux, run `install.sh`.
118
+ 5. Wait a while, until it is done.
119
+ 6. The folder where you ran the installer from will now be filled with lots of files. If you are on Windows, double-click on the `invoke.bat` file. On macOS, open a Terminal window, drag `invoke.sh` from the folder into the Terminal, and press return. On Linux, run `invoke.sh`
120
+ 7. Press 2 to open the "browser-based UI", press enter/return, wait a minute or two for Stable Diffusion to start up, then open your browser and go to http://localhost:9090.
121
+ 8. Type `banana sushi` in the box on the top left and click `Invoke`:
122
+
123
+ <div align="center"><img src="docs/assets/invoke-web-server-1.png" width=640></div>
124
+
125
+
126
+
127
+ ## Table of Contents
128
+
129
+ 1. [Installation](#installation)
130
+ 2. [Hardware Requirements](#hardware-requirements)
131
+ 3. [Features](#features)
132
+ 4. [Latest Changes](#latest-changes)
133
+ 5. [Troubleshooting](#troubleshooting)
134
+ 6. [Contributing](#contributing)
135
+ 7. [Contributors](#contributors)
136
+ 8. [Support](#support)
137
+ 9. [Further Reading](#further-reading)
138
+
139
+ ### Installation
140
+
141
+ This fork is supported across Linux, Windows and Macintosh. Linux
142
+ users can use either an Nvidia-based card (with CUDA support) or an
143
+ AMD card (using the ROCm driver). For full installation and upgrade
144
+ instructions, please see:
145
+ [InvokeAI Installation Overview](https://invoke-ai.github.io/InvokeAI/installation/INSTALL_SOURCE/)
146
+
147
+ ### Hardware Requirements
148
+
149
+ InvokeAI is supported across Linux, Windows and macOS. Linux
150
+ users can use either an Nvidia-based card (with CUDA support) or an
151
+ AMD card (using the ROCm driver).
152
+ #### System
153
+
154
+ You wil need one of the following:
155
+
156
+ - An NVIDIA-based graphics card with 4 GB or more VRAM memory.
157
+ - An Apple computer with an M1 chip.
158
+
159
+ We do not recommend the GTX 1650 or 1660 series video cards. They are
160
+ unable to run in half-precision mode and do not have sufficient VRAM
161
+ to render 512x512 images.
162
+
163
+ #### Memory
164
+
165
+ - At least 12 GB Main Memory RAM.
166
+
167
+ #### Disk
168
+
169
+ - At least 12 GB of free disk space for the machine learning model, Python, and all its dependencies.
170
+
171
+ **Note**
172
+
173
+ If you have a Nvidia 10xx series card (e.g. the 1080ti), please
174
+ run the dream script in full-precision mode as shown below.
175
+
176
+ Similarly, specify full-precision mode on Apple M1 hardware.
177
+
178
+ Precision is auto configured based on the device. If however you encounter
179
+ errors like 'expected type Float but found Half' or 'not implemented for Half'
180
+ you can try starting `invoke.py` with the `--precision=float32` flag to your initialization command
181
+
182
+ ```bash
183
+ (invokeai) ~/InvokeAI$ python scripts/invoke.py --precision=float32
184
+ ```
185
+ Or by updating your InvokeAI configuration file with this argument.
186
+
187
+ ### Features
188
+
189
+ #### Major Features
190
+
191
+ - [Web Server](https://invoke-ai.github.io/InvokeAI/features/WEB/)
192
+ - [Interactive Command Line Interface](https://invoke-ai.github.io/InvokeAI/features/CLI/)
193
+ - [Image To Image](https://invoke-ai.github.io/InvokeAI/features/IMG2IMG/)
194
+ - [Inpainting Support](https://invoke-ai.github.io/InvokeAI/features/INPAINTING/)
195
+ - [Outpainting Support](https://invoke-ai.github.io/InvokeAI/features/OUTPAINTING/)
196
+ - [Upscaling, face-restoration and outpainting](https://invoke-ai.github.io/InvokeAI/features/POSTPROCESS/)
197
+ - [Reading Prompts From File](https://invoke-ai.github.io/InvokeAI/features/PROMPTS/#reading-prompts-from-a-file)
198
+ - [Prompt Blending](https://invoke-ai.github.io/InvokeAI/features/PROMPTS/#prompt-blending)
199
+ - [Thresholding and Perlin Noise Initialization Options](https://invoke-ai.github.io/InvokeAI/features/OTHER/#thresholding-and-perlin-noise-initialization-options)
200
+ - [Negative/Unconditioned Prompts](https://invoke-ai.github.io/InvokeAI/features/PROMPTS/#negative-and-unconditioned-prompts)
201
+ - [Variations](https://invoke-ai.github.io/InvokeAI/features/VARIATIONS/)
202
+ - [Personalizing Text-to-Image Generation](https://invoke-ai.github.io/InvokeAI/features/TEXTUAL_INVERSION/)
203
+ - [Simplified API for text to image generation](https://invoke-ai.github.io/InvokeAI/features/OTHER/#simplified-api)
204
+
205
+ #### Other Features
206
+
207
+ - [Google Colab](https://invoke-ai.github.io/InvokeAI/features/OTHER/#google-colab)
208
+ - [Seamless Tiling](https://invoke-ai.github.io/InvokeAI/features/OTHER/#seamless-tiling)
209
+ - [Shortcut: Reusing Seeds](https://invoke-ai.github.io/InvokeAI/features/OTHER/#shortcuts-reusing-seeds)
210
+ - [Preload Models](https://invoke-ai.github.io/InvokeAI/features/OTHER/#preload-models)
211
+
212
+ ### Latest Changes
213
+
214
+ For our latest changes, view our [Release Notes](https://github.com/invoke-ai/InvokeAI/releases)
215
+
216
+ ### Troubleshooting
217
+
218
+ Please check out our **[Q&A](https://invoke-ai.github.io/InvokeAI/help/TROUBLESHOOT/#faq)** to get solutions for common installation
219
+ problems and other issues.
220
+
221
+ # Contributing
222
+
223
+ Anyone who wishes to contribute to this project, whether documentation, features, bug fixes, code
224
+ cleanup, testing, or code reviews, is very much encouraged to do so.
225
+
226
+ To join, just raise your hand on the InvokeAI Discord server (#dev-chat) or the GitHub discussion board.
227
+
228
+ If you are unfamiliar with how
229
+ to contribute to GitHub projects, here is a
230
+ [Getting Started Guide](https://opensource.com/article/19/7/create-pull-request-github). A full set of contribution guidelines, along with templates, are in progress. You can **make your pull request against the "main" branch**.
231
+
232
+ We hope you enjoy using our software as much as we enjoy creating it,
233
+ and we hope that some of those of you who are reading this will elect
234
+ to become part of our community.
235
+
236
+ Welcome to InvokeAI!
237
+
238
+ ### Contributors
239
+
240
+ This fork is a combined effort of various people from across the world.
241
+ [Check out the list of all these amazing people](https://invoke-ai.github.io/InvokeAI/other/CONTRIBUTORS/). We thank them for
242
+ their time, hard work and effort.
243
+
244
+ ### Support
245
+
246
+ For support, please use this repository's GitHub Issues tracking service. Feel free to send me an
247
+ email if you use and like the script.
248
+
249
+ Original portions of the software are Copyright (c) 2022
250
+ [Lincoln D. Stein](https://github.com/lstein)
251
+
252
+ ### Further Reading
253
+
254
+ Please see the original README for more information on this software and underlying algorithm,
255
+ located in the file [README-CompViz.md](https://invoke-ai.github.io/InvokeAI/other/README-CompViz/).