InvokeAI 2.2.4.5__py3-none-any.whl

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 (169) hide show
  1. backend/__init__.py +0 -0
  2. backend/invoke_ai_web_server.py +1724 -0
  3. backend/modules/__init__.py +0 -0
  4. backend/modules/create_cmd_parser.py +55 -0
  5. backend/modules/get_canvas_generation_mode.py +117 -0
  6. backend/modules/parameters.py +71 -0
  7. backend/modules/parse_seed_weights.py +47 -0
  8. configs/INITIAL_MODELS.yaml +80 -0
  9. configs/models.yaml.example +29 -0
  10. configs/sd-concepts.txt +803 -0
  11. configs/stable-diffusion/v1-finetune.yaml +110 -0
  12. configs/stable-diffusion/v1-finetune_style.yaml +103 -0
  13. configs/stable-diffusion/v1-inference.yaml +79 -0
  14. configs/stable-diffusion/v1-inpainting-inference.yaml +79 -0
  15. configs/stable-diffusion/v1-m1-finetune.yaml +110 -0
  16. docs/assets/invoke-web-server-1.png +0 -0
  17. docs/assets/invoke_ai_banner.png +0 -0
  18. invokeai-2.2.4.5.data/data/assets/caution.png +0 -0
  19. invokeai-2.2.4.5.data/data/configs/INITIAL_MODELS.yaml +80 -0
  20. invokeai-2.2.4.5.data/data/configs/models.yaml.example +29 -0
  21. invokeai-2.2.4.5.data/data/configs/sd-concepts.txt +803 -0
  22. invokeai-2.2.4.5.data/data/configs/stable-diffusion/v1-finetune.yaml +110 -0
  23. invokeai-2.2.4.5.data/data/configs/stable-diffusion/v1-finetune_style.yaml +103 -0
  24. invokeai-2.2.4.5.data/data/configs/stable-diffusion/v1-inference.yaml +79 -0
  25. invokeai-2.2.4.5.data/data/configs/stable-diffusion/v1-inpainting-inference.yaml +79 -0
  26. invokeai-2.2.4.5.data/data/configs/stable-diffusion/v1-m1-finetune.yaml +110 -0
  27. invokeai-2.2.4.5.data/data/frontend/dist/assets/Inter-Bold.790c108b.ttf +0 -0
  28. invokeai-2.2.4.5.data/data/frontend/dist/assets/Inter.b9a8e5e2.ttf +0 -0
  29. invokeai-2.2.4.5.data/data/frontend/dist/assets/favicon.0d253ced.ico +0 -0
  30. invokeai-2.2.4.5.data/data/frontend/dist/assets/index-legacy-b741077f.js +48 -0
  31. invokeai-2.2.4.5.data/data/frontend/dist/assets/index.0dadf5d0.css +1 -0
  32. invokeai-2.2.4.5.data/data/frontend/dist/assets/index.21ff81eb.js +625 -0
  33. invokeai-2.2.4.5.data/data/frontend/dist/assets/logo.13003d72.png +0 -0
  34. invokeai-2.2.4.5.data/data/frontend/dist/assets/polyfills-legacy-dde3a68a.js +4 -0
  35. invokeai-2.2.4.5.data/data/frontend/dist/assets/polyfills.1ff60148.js +1 -0
  36. invokeai-2.2.4.5.data/data/frontend/dist/index.html +23 -0
  37. invokeai-2.2.4.5.data/data/scripts/configure_invokeai.py +797 -0
  38. invokeai-2.2.4.5.data/data/scripts/create_root.py +43 -0
  39. invokeai-2.2.4.5.data/data/scripts/dream.py +10 -0
  40. invokeai-2.2.4.5.data/data/scripts/images2prompt.py +30 -0
  41. invokeai-2.2.4.5.data/data/scripts/invoke.py +5 -0
  42. invokeai-2.2.4.5.data/data/scripts/legacy_api.py +681 -0
  43. invokeai-2.2.4.5.data/data/scripts/load_models.py +12 -0
  44. invokeai-2.2.4.5.data/data/scripts/merge_embeddings.py +124 -0
  45. invokeai-2.2.4.5.data/data/scripts/preload_models.py +12 -0
  46. invokeai-2.2.4.5.data/data/scripts/sd-metadata.py +22 -0
  47. invokeai-2.2.4.5.dist-info/LICENSE +21 -0
  48. invokeai-2.2.4.5.dist-info/LICENSE-ModelWeights.txt +294 -0
  49. invokeai-2.2.4.5.dist-info/METADATA +288 -0
  50. invokeai-2.2.4.5.dist-info/RECORD +169 -0
  51. invokeai-2.2.4.5.dist-info/WHEEL +5 -0
  52. invokeai-2.2.4.5.dist-info/entry_points.txt +4 -0
  53. invokeai-2.2.4.5.dist-info/top_level.txt +6 -0
  54. invokeai-2.2.4.5.dist-info/zip-safe +1 -0
  55. ldm/__init__.py +0 -0
  56. ldm/data/__init__.py +0 -0
  57. ldm/data/base.py +31 -0
  58. ldm/data/imagenet.py +466 -0
  59. ldm/data/lsun.py +126 -0
  60. ldm/data/personalized.py +202 -0
  61. ldm/data/personalized_style.py +169 -0
  62. ldm/generate.py +1159 -0
  63. ldm/invoke/CLI.py +960 -0
  64. ldm/invoke/__init__.py +3 -0
  65. ldm/invoke/args.py +1257 -0
  66. ldm/invoke/concepts_lib.py +169 -0
  67. ldm/invoke/conditioning.py +289 -0
  68. ldm/invoke/devices.py +27 -0
  69. ldm/invoke/generator/__init__.py +4 -0
  70. ldm/invoke/generator/base.py +335 -0
  71. ldm/invoke/generator/embiggen.py +501 -0
  72. ldm/invoke/generator/img2img.py +97 -0
  73. ldm/invoke/generator/inpaint.py +358 -0
  74. ldm/invoke/generator/omnibus.py +175 -0
  75. ldm/invoke/generator/txt2img.py +88 -0
  76. ldm/invoke/generator/txt2img2img.py +182 -0
  77. ldm/invoke/globals.py +31 -0
  78. ldm/invoke/image_util.py +70 -0
  79. ldm/invoke/log.py +66 -0
  80. ldm/invoke/model_cache.py +449 -0
  81. ldm/invoke/patchmatch.py +44 -0
  82. ldm/invoke/pngwriter.py +113 -0
  83. ldm/invoke/prompt_parser.py +655 -0
  84. ldm/invoke/readline.py +442 -0
  85. ldm/invoke/restoration/__init__.py +4 -0
  86. ldm/invoke/restoration/base.py +38 -0
  87. ldm/invoke/restoration/codeformer.py +103 -0
  88. ldm/invoke/restoration/codeformer_arch.py +276 -0
  89. ldm/invoke/restoration/gfpgan.py +84 -0
  90. ldm/invoke/restoration/outcrop.py +108 -0
  91. ldm/invoke/restoration/outpaint.py +92 -0
  92. ldm/invoke/restoration/realesrgan.py +90 -0
  93. ldm/invoke/restoration/vqgan_arch.py +435 -0
  94. ldm/invoke/seamless.py +30 -0
  95. ldm/invoke/server.py +282 -0
  96. ldm/invoke/server_legacy.py +246 -0
  97. ldm/invoke/txt2mask.py +136 -0
  98. ldm/lr_scheduler.py +143 -0
  99. ldm/models/__init__.py +0 -0
  100. ldm/models/autoencoder.py +596 -0
  101. ldm/models/diffusion/__init__.py +0 -0
  102. ldm/models/diffusion/classifier.py +355 -0
  103. ldm/models/diffusion/cross_attention_control.py +443 -0
  104. ldm/models/diffusion/cross_attention_map_saving.py +95 -0
  105. ldm/models/diffusion/ddim.py +111 -0
  106. ldm/models/diffusion/ddpm.py +2263 -0
  107. ldm/models/diffusion/ksampler.py +312 -0
  108. ldm/models/diffusion/plms.py +146 -0
  109. ldm/models/diffusion/sampler.py +450 -0
  110. ldm/models/diffusion/shared_invokeai_diffusion.py +244 -0
  111. ldm/modules/__init__.py +0 -0
  112. ldm/modules/attention.py +274 -0
  113. ldm/modules/diffusionmodules/__init__.py +0 -0
  114. ldm/modules/diffusionmodules/model.py +894 -0
  115. ldm/modules/diffusionmodules/openaimodel.py +1036 -0
  116. ldm/modules/diffusionmodules/util.py +314 -0
  117. ldm/modules/distributions/__init__.py +0 -0
  118. ldm/modules/distributions/distributions.py +104 -0
  119. ldm/modules/ema.py +88 -0
  120. ldm/modules/embedding_manager.py +413 -0
  121. ldm/modules/encoders/__init__.py +0 -0
  122. ldm/modules/encoders/modules.py +772 -0
  123. ldm/modules/image_degradation/__init__.py +6 -0
  124. ldm/modules/image_degradation/bsrgan.py +846 -0
  125. ldm/modules/image_degradation/bsrgan_light.py +751 -0
  126. ldm/modules/image_degradation/utils_image.py +1024 -0
  127. ldm/modules/losses/__init__.py +1 -0
  128. ldm/modules/losses/contperceptual.py +175 -0
  129. ldm/modules/losses/vqperceptual.py +240 -0
  130. ldm/modules/x_transformer.py +752 -0
  131. ldm/simplet2i.py +13 -0
  132. ldm/util.py +264 -0
  133. scripts/configure_invokeai.py +797 -0
  134. scripts/create_root.py +43 -0
  135. scripts/dream.py +10 -0
  136. scripts/images2prompt.py +30 -0
  137. scripts/invoke.py +5 -0
  138. scripts/legacy_api.py +681 -0
  139. scripts/load_models.py +12 -0
  140. scripts/merge_embeddings.py +124 -0
  141. scripts/orig_scripts/img2img.py +296 -0
  142. scripts/orig_scripts/inpaint.py +98 -0
  143. scripts/orig_scripts/knn2img.py +397 -0
  144. scripts/orig_scripts/sample_diffusion.py +313 -0
  145. scripts/orig_scripts/train_searcher.py +147 -0
  146. scripts/orig_scripts/txt2img.py +324 -0
  147. scripts/preload_models.py +12 -0
  148. scripts/sd-metadata.py +22 -0
  149. vendored/clip/clip/__init__.py +1 -0
  150. vendored/clip/clip/bpe_simple_vocab_16e6.txt.gz +0 -0
  151. vendored/clip/clip/clip.py +237 -0
  152. vendored/clip/clip/model.py +436 -0
  153. vendored/clip/clip/simple_tokenizer.py +132 -0
  154. vendored/clip/hubconf.py +42 -0
  155. vendored/clip/setup.py +21 -0
  156. vendored/clip/tests/test_consistency.py +25 -0
  157. vendored/clipseg/datasets/coco_wrapper.py +99 -0
  158. vendored/clipseg/datasets/pascal_zeroshot.py +60 -0
  159. vendored/clipseg/datasets/pfe_dataset.py +129 -0
  160. vendored/clipseg/datasets/phrasecut.py +380 -0
  161. vendored/clipseg/datasets/utils.py +68 -0
  162. vendored/clipseg/evaluation_utils.py +292 -0
  163. vendored/clipseg/general_utils.py +272 -0
  164. vendored/clipseg/metrics.py +271 -0
  165. vendored/clipseg/models/clipseg.py +538 -0
  166. vendored/clipseg/models/vitseg.py +286 -0
  167. vendored/clipseg/score.py +453 -0
  168. vendored/clipseg/setup.py +30 -0
  169. vendored/clipseg/training.py +266 -0
@@ -0,0 +1,288 @@
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
+ Copyright (c) 2022 InvokeAI Team
10
+ Permission is hereby granted, free of charge, to any person obtaining a copy
11
+ of this software and associated documentation files (the "Software"), to deal
12
+ in the Software without restriction, including without limitation the rights
13
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
14
+ copies of the Software, and to permit persons to whom the Software is
15
+ furnished to do so, subject to the following conditions:
16
+ The above copyright notice and this permission notice shall be included in all
17
+ copies or substantial portions of the Software.
18
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
21
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
24
+ SOFTWARE.
25
+ Project-URL: Documentation, https://invoke-ai.github.io/InvokeAI/
26
+ Project-URL: Source, https://github.com/invoke-ai/InvokeAI/
27
+ Project-URL: Bug Reports, https://github.com/invoke-ai/InvokeAI/issues
28
+ Project-URL: Discord, https://discord.gg/ZmtBAhwWhy
29
+ Keywords: stable-diffusion,AI
30
+ Classifier: Development Status :: 4 - Beta
31
+ Classifier: Environment :: GPU
32
+ Classifier: Environment :: GPU :: NVIDIA CUDA
33
+ Classifier: Environment :: MacOS X
34
+ Classifier: Intended Audience :: End Users/Desktop
35
+ Classifier: Intended Audience :: Developers
36
+ Classifier: License :: OSI Approved :: MIT License
37
+ Classifier: Operating System :: POSIX :: Linux
38
+ Classifier: Operating System :: MacOS
39
+ Classifier: Operating System :: Microsoft :: Windows
40
+ Classifier: Programming Language :: Python :: 3
41
+ Classifier: Programming Language :: Python :: 3.9
42
+ Classifier: Programming Language :: Python :: 3.10
43
+ Classifier: Programming Language :: Python :: 3 :: Only
44
+ Classifier: Topic :: Artistic Software
45
+ Classifier: Topic :: Internet :: WWW/HTTP :: WSGI :: Application
46
+ Classifier: Topic :: Internet :: WWW/HTTP :: WSGI :: Server
47
+ Classifier: Topic :: Multimedia :: Graphics
48
+ Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
49
+ Classifier: Topic :: Scientific/Engineering :: Image Processing
50
+ Requires-Python: <3.11,>=3.9
51
+ Description-Content-Type: text/markdown
52
+ License-File: LICENSE
53
+ License-File: LICENSE-ModelWeights.txt
54
+ Requires-Dist: accelerate
55
+ Requires-Dist: albumentations
56
+ Requires-Dist: diffusers[torch] (==0.10.*)
57
+ Requires-Dist: einops
58
+ Requires-Dist: eventlet
59
+ Requires-Dist: facexlib
60
+ Requires-Dist: flask (==2.1.3)
61
+ Requires-Dist: flask-cors (==3.0.10)
62
+ Requires-Dist: flask-socketio (==5.3.0)
63
+ Requires-Dist: flaskwebgui (==1.0.3)
64
+ Requires-Dist: getpass-asterisk
65
+ Requires-Dist: gfpgan
66
+ Requires-Dist: imageio-ffmpeg
67
+ Requires-Dist: kornia
68
+ Requires-Dist: numpy (==1.23.*)
69
+ Requires-Dist: omegaconf
70
+ Requires-Dist: opencv-python
71
+ Requires-Dist: picklescan
72
+ Requires-Dist: pillow
73
+ Requires-Dist: pudb
74
+ Requires-Dist: pyreadline3
75
+ Requires-Dist: pytorch-lightning (<1.8.0)
76
+ Requires-Dist: realesrgan
77
+ Requires-Dist: requests (==2.25.1)
78
+ Requires-Dist: scikit-image (>=0.19)
79
+ Requires-Dist: send2trash
80
+ Requires-Dist: streamlit
81
+ Requires-Dist: taming-transformers-rom1504
82
+ Requires-Dist: test-tube (>=0.7.5)
83
+ Requires-Dist: torch
84
+ Requires-Dist: torch-fidelity
85
+ Requires-Dist: torchvision
86
+ Requires-Dist: torchmetrics
87
+ Requires-Dist: transformers (==4.25.1)
88
+ Requires-Dist: k-diffusion
89
+ Requires-Dist: pypatchmatch
90
+ Provides-Extra: dev
91
+ Requires-Dist: black (==22.1.0) ; extra == 'dev'
92
+ Requires-Dist: pylint (==2.15.9) ; extra == 'dev'
93
+
94
+ <div align="center">
95
+
96
+ ![project logo](docs/assets/invoke_ai_banner.png)
97
+
98
+ # InvokeAI: A Stable Diffusion Toolkit
99
+
100
+ [![discord badge]][discord link]
101
+
102
+ [![latest release badge]][latest release link] [![github stars badge]][github stars link] [![github forks badge]][github forks link]
103
+
104
+ [![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]
105
+
106
+ [![github open issues badge]][github open issues link] [![github open prs badge]][github open prs link]
107
+
108
+ [CI checks on dev badge]: https://flat.badgen.net/github/checks/invoke-ai/InvokeAI/development?label=CI%20status%20on%20dev&cache=900&icon=github
109
+ [CI checks on dev link]: https://github.com/invoke-ai/InvokeAI/actions?query=branch%3Adevelopment
110
+ [CI checks on main badge]: https://flat.badgen.net/github/checks/invoke-ai/InvokeAI/main?label=CI%20status%20on%20main&cache=900&icon=github
111
+ [CI checks on main link]: https://github.com/invoke-ai/InvokeAI/actions/workflows/test-invoke-conda.yml
112
+ [discord badge]: https://flat.badgen.net/discord/members/ZmtBAhwWhy?icon=discord
113
+ [discord link]: https://discord.gg/ZmtBAhwWhy
114
+ [github forks badge]: https://flat.badgen.net/github/forks/invoke-ai/InvokeAI?icon=github
115
+ [github forks link]: https://useful-forks.github.io/?repo=invoke-ai%2FInvokeAI
116
+ [github open issues badge]: https://flat.badgen.net/github/open-issues/invoke-ai/InvokeAI?icon=github
117
+ [github open issues link]: https://github.com/invoke-ai/InvokeAI/issues?q=is%3Aissue+is%3Aopen
118
+ [github open prs badge]: https://flat.badgen.net/github/open-prs/invoke-ai/InvokeAI?icon=github
119
+ [github open prs link]: https://github.com/invoke-ai/InvokeAI/pulls?q=is%3Apr+is%3Aopen
120
+ [github stars badge]: https://flat.badgen.net/github/stars/invoke-ai/InvokeAI?icon=github
121
+ [github stars link]: https://github.com/invoke-ai/InvokeAI/stargazers
122
+ [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
123
+ [latest commit to dev link]: https://github.com/invoke-ai/InvokeAI/commits/development
124
+ [latest release badge]: https://flat.badgen.net/github/release/invoke-ai/InvokeAI/development?icon=github
125
+ [latest release link]: https://github.com/invoke-ai/InvokeAI/releases
126
+ </div>
127
+
128
+ This is a fork of
129
+ [CompVis/stable-diffusion](https://github.com/CompVis/stable-diffusion),
130
+ the open source text-to-image generator. It provides a streamlined
131
+ process with various new features and options to aid the image
132
+ generation process. It runs on Windows, macOS and Linux machines, with
133
+ GPU cards with as little as 4 GB of RAM. It provides both a polished
134
+ Web interface (see below), and an easy-to-use command-line interface.
135
+
136
+ **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>]
137
+
138
+ _Note: InvokeAI is rapidly evolving. Please use the
139
+ [Issues](https://github.com/invoke-ai/InvokeAI/issues) tab to report bugs and make feature
140
+ requests. Be sure to use the provided templates. They will help us diagnose issues faster._
141
+
142
+ # Getting Started with InvokeAI
143
+
144
+ For full installation and upgrade instructions, please see:
145
+ [InvokeAI Installation Overview](https://invoke-ai.github.io/InvokeAI/installation/)
146
+
147
+ 1. Go to the bottom of the [Latest Release Page](https://github.com/invoke-ai/InvokeAI/releases/latest)
148
+ 2. Download the .zip file for your OS (Windows/macOS/Linux).
149
+ 3. Unzip the file.
150
+ 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`.
151
+ 5. Wait a while, until it is done.
152
+ 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`
153
+ 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.
154
+ 8. Type `banana sushi` in the box on the top left and click `Invoke`:
155
+
156
+ <div align="center"><img src="docs/assets/invoke-web-server-1.png" width=640></div>
157
+
158
+
159
+
160
+ ## Table of Contents
161
+
162
+ 1. [Installation](#installation)
163
+ 2. [Hardware Requirements](#hardware-requirements)
164
+ 3. [Features](#features)
165
+ 4. [Latest Changes](#latest-changes)
166
+ 5. [Troubleshooting](#troubleshooting)
167
+ 6. [Contributing](#contributing)
168
+ 7. [Contributors](#contributors)
169
+ 8. [Support](#support)
170
+ 9. [Further Reading](#further-reading)
171
+
172
+ ### Installation
173
+
174
+ This fork is supported across Linux, Windows and Macintosh. Linux
175
+ users can use either an Nvidia-based card (with CUDA support) or an
176
+ AMD card (using the ROCm driver). For full installation and upgrade
177
+ instructions, please see:
178
+ [InvokeAI Installation Overview](https://invoke-ai.github.io/InvokeAI/installation/INSTALL_SOURCE/)
179
+
180
+ ### Hardware Requirements
181
+
182
+ InvokeAI is supported across Linux, Windows and macOS. Linux
183
+ users can use either an Nvidia-based card (with CUDA support) or an
184
+ AMD card (using the ROCm driver).
185
+ #### System
186
+
187
+ You wil need one of the following:
188
+
189
+ - An NVIDIA-based graphics card with 4 GB or more VRAM memory.
190
+ - An Apple computer with an M1 chip.
191
+
192
+ We do not recommend the GTX 1650 or 1660 series video cards. They are
193
+ unable to run in half-precision mode and do not have sufficient VRAM
194
+ to render 512x512 images.
195
+
196
+ #### Memory
197
+
198
+ - At least 12 GB Main Memory RAM.
199
+
200
+ #### Disk
201
+
202
+ - At least 12 GB of free disk space for the machine learning model, Python, and all its dependencies.
203
+
204
+ **Note**
205
+
206
+ If you have a Nvidia 10xx series card (e.g. the 1080ti), please
207
+ run the dream script in full-precision mode as shown below.
208
+
209
+ Similarly, specify full-precision mode on Apple M1 hardware.
210
+
211
+ Precision is auto configured based on the device. If however you encounter
212
+ errors like 'expected type Float but found Half' or 'not implemented for Half'
213
+ you can try starting `invoke.py` with the `--precision=float32` flag to your initialization command
214
+
215
+ ```bash
216
+ (invokeai) ~/InvokeAI$ python scripts/invoke.py --precision=float32
217
+ ```
218
+ Or by updating your InvokeAI configuration file with this argument.
219
+
220
+ ### Features
221
+
222
+ #### Major Features
223
+
224
+ - [Web Server](https://invoke-ai.github.io/InvokeAI/features/WEB/)
225
+ - [Interactive Command Line Interface](https://invoke-ai.github.io/InvokeAI/features/CLI/)
226
+ - [Image To Image](https://invoke-ai.github.io/InvokeAI/features/IMG2IMG/)
227
+ - [Inpainting Support](https://invoke-ai.github.io/InvokeAI/features/INPAINTING/)
228
+ - [Outpainting Support](https://invoke-ai.github.io/InvokeAI/features/OUTPAINTING/)
229
+ - [Upscaling, face-restoration and outpainting](https://invoke-ai.github.io/InvokeAI/features/POSTPROCESS/)
230
+ - [Reading Prompts From File](https://invoke-ai.github.io/InvokeAI/features/PROMPTS/#reading-prompts-from-a-file)
231
+ - [Prompt Blending](https://invoke-ai.github.io/InvokeAI/features/PROMPTS/#prompt-blending)
232
+ - [Thresholding and Perlin Noise Initialization Options](https://invoke-ai.github.io/InvokeAI/features/OTHER/#thresholding-and-perlin-noise-initialization-options)
233
+ - [Negative/Unconditioned Prompts](https://invoke-ai.github.io/InvokeAI/features/PROMPTS/#negative-and-unconditioned-prompts)
234
+ - [Variations](https://invoke-ai.github.io/InvokeAI/features/VARIATIONS/)
235
+ - [Personalizing Text-to-Image Generation](https://invoke-ai.github.io/InvokeAI/features/TEXTUAL_INVERSION/)
236
+ - [Simplified API for text to image generation](https://invoke-ai.github.io/InvokeAI/features/OTHER/#simplified-api)
237
+
238
+ #### Other Features
239
+
240
+ - [Google Colab](https://invoke-ai.github.io/InvokeAI/features/OTHER/#google-colab)
241
+ - [Seamless Tiling](https://invoke-ai.github.io/InvokeAI/features/OTHER/#seamless-tiling)
242
+ - [Shortcut: Reusing Seeds](https://invoke-ai.github.io/InvokeAI/features/OTHER/#shortcuts-reusing-seeds)
243
+ - [Preload Models](https://invoke-ai.github.io/InvokeAI/features/OTHER/#preload-models)
244
+
245
+ ### Latest Changes
246
+
247
+ For our latest changes, view our [Release Notes](https://github.com/invoke-ai/InvokeAI/releases)
248
+
249
+ ### Troubleshooting
250
+
251
+ Please check out our **[Q&A](https://invoke-ai.github.io/InvokeAI/help/TROUBLESHOOT/#faq)** to get solutions for common installation
252
+ problems and other issues.
253
+
254
+ # Contributing
255
+
256
+ Anyone who wishes to contribute to this project, whether documentation, features, bug fixes, code
257
+ cleanup, testing, or code reviews, is very much encouraged to do so.
258
+
259
+ To join, just raise your hand on the InvokeAI Discord server (#dev-chat) or the GitHub discussion board.
260
+
261
+ If you are unfamiliar with how
262
+ to contribute to GitHub projects, here is a
263
+ [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**.
264
+
265
+ We hope you enjoy using our software as much as we enjoy creating it,
266
+ and we hope that some of those of you who are reading this will elect
267
+ to become part of our community.
268
+
269
+ Welcome to InvokeAI!
270
+
271
+ ### Contributors
272
+
273
+ This fork is a combined effort of various people from across the world.
274
+ [Check out the list of all these amazing people](https://invoke-ai.github.io/InvokeAI/other/CONTRIBUTORS/). We thank them for
275
+ their time, hard work and effort.
276
+
277
+ ### Support
278
+
279
+ For support, please use this repository's GitHub Issues tracking service. Feel free to send me an
280
+ email if you use and like the script.
281
+
282
+ Original portions of the software are Copyright (c) 2022
283
+ [Lincoln D. Stein](https://github.com/lstein)
284
+
285
+ ### Further Reading
286
+
287
+ Please see the original README for more information on this software and underlying algorithm,
288
+ located in the file [README-CompViz.md](https://invoke-ai.github.io/InvokeAI/other/README-CompViz/).
@@ -0,0 +1,169 @@
1
+ backend/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
+ backend/invoke_ai_web_server.py,sha256=sRVbMJ27UQSc3y-7l2rvPI_Ml6dSbOYhG3RI6OoXgRc,64783
3
+ backend/modules/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
+ backend/modules/create_cmd_parser.py,sha256=FkR8yUVbTZiiIUdIm_ohGcSjMk_4Xe5yCsPBdmdCX68,1606
5
+ backend/modules/get_canvas_generation_mode.py,sha256=9e4cPGKdmG4n9V3ph2s0nrZxxpdSznw8Py7iNZlMPig,3758
6
+ backend/modules/parameters.py,sha256=UIxuNG55mXQcvAU_pOX-OE7uD22Q5lMQPV0_0M1Go48,2665
7
+ backend/modules/parse_seed_weights.py,sha256=FJvWo06yEi_GEQVCo5j__bdcjxp2Bw6Gq_3a3NC0H98,1224
8
+ configs/INITIAL_MODELS.yaml,sha256=7sq2E93lumWT-8lBrkl9W_YeOYBj-pOo-xzKxVMy-tU,2716
9
+ configs/models.yaml.example,sha256=0ZrZQCxC8B7uQuHit5O6kFFvU2Ks-DovlpPr5r08hTc,1198
10
+ configs/sd-concepts.txt,sha256=rdzhVl8RYlGYHwMFcBYQ2OCeCIbyl5kpBCULwm6noic,26868
11
+ configs/stable-diffusion/v1-finetune.yaml,sha256=YJdxSvgqXkSvvZghOBYVV9xyKV9UYL5b4baNlxZhGV4,2631
12
+ configs/stable-diffusion/v1-finetune_style.yaml,sha256=tMqvWeZL8_WhVuRY9Cx4PbGclqMPuC8UdSaU13JcC6A,2502
13
+ configs/stable-diffusion/v1-inference.yaml,sha256=OIGdTTr7Fs-DHeLetFzoIgay2L_RC39-WsJOWwB3we4,2159
14
+ configs/stable-diffusion/v1-inpainting-inference.yaml,sha256=c99osMMAVXA5Hj6yJ3u8F46j_sWCnqhfHBO3_NDoGQs,2277
15
+ configs/stable-diffusion/v1-m1-finetune.yaml,sha256=p5yaJFs7-rRV7ksYiQ5LXqwUCMQDT8jy5Y77vDilq3g,2629
16
+ docs/assets/invoke-web-server-1.png,sha256=wItDyBiVnwFkigx2pH-Vrgv2-zzkbv5dXx6BmSTgwbY,1006371
17
+ docs/assets/invoke_ai_banner.png,sha256=6UT9F4sc7WTCstMmmx6w1z5veCvWUq0OFGLLTvXJWeI,173047
18
+ invokeai-2.2.4.5.data/data/assets/caution.png,sha256=wxzdQg0_d7Wl4YcsGWPA5UzveRnvRtRpq8NQxJx8fLE,34023
19
+ invokeai-2.2.4.5.data/data/configs/INITIAL_MODELS.yaml,sha256=7sq2E93lumWT-8lBrkl9W_YeOYBj-pOo-xzKxVMy-tU,2716
20
+ invokeai-2.2.4.5.data/data/configs/models.yaml.example,sha256=0ZrZQCxC8B7uQuHit5O6kFFvU2Ks-DovlpPr5r08hTc,1198
21
+ invokeai-2.2.4.5.data/data/configs/sd-concepts.txt,sha256=rdzhVl8RYlGYHwMFcBYQ2OCeCIbyl5kpBCULwm6noic,26868
22
+ invokeai-2.2.4.5.data/data/configs/stable-diffusion/v1-finetune.yaml,sha256=YJdxSvgqXkSvvZghOBYVV9xyKV9UYL5b4baNlxZhGV4,2631
23
+ invokeai-2.2.4.5.data/data/configs/stable-diffusion/v1-finetune_style.yaml,sha256=tMqvWeZL8_WhVuRY9Cx4PbGclqMPuC8UdSaU13JcC6A,2502
24
+ invokeai-2.2.4.5.data/data/configs/stable-diffusion/v1-inference.yaml,sha256=OIGdTTr7Fs-DHeLetFzoIgay2L_RC39-WsJOWwB3we4,2159
25
+ invokeai-2.2.4.5.data/data/configs/stable-diffusion/v1-inpainting-inference.yaml,sha256=c99osMMAVXA5Hj6yJ3u8F46j_sWCnqhfHBO3_NDoGQs,2277
26
+ invokeai-2.2.4.5.data/data/configs/stable-diffusion/v1-m1-finetune.yaml,sha256=p5yaJFs7-rRV7ksYiQ5LXqwUCMQDT8jy5Y77vDilq3g,2629
27
+ invokeai-2.2.4.5.data/data/frontend/dist/index.html,sha256=fVfqcP_aqQxYriQEVVmju2t2snRRil5MuqDa3GdSXFc,1835
28
+ invokeai-2.2.4.5.data/data/frontend/dist/assets/Inter-Bold.790c108b.ttf,sha256=eQwQi-_oWdrC3b0grz-7aRfGAbPVRMigV2FRnztVCP4,316100
29
+ invokeai-2.2.4.5.data/data/frontend/dist/assets/Inter.b9a8e5e2.ttf,sha256=uajl4hOXdmW-KlbbZpRaFsaG2j2YYa8eeFEyLPFUleo,803384
30
+ invokeai-2.2.4.5.data/data/frontend/dist/assets/favicon.0d253ced.ico,sha256=DSU87SOOEaJS4413fxvTw_EwC36iOAG_1iJvP8_mu-I,118734
31
+ invokeai-2.2.4.5.data/data/frontend/dist/assets/index-legacy-b741077f.js,sha256=_N3cJdlLqYHkgoAWGTh-hFuIFZA1dHr64ghw6MBiQUc,1588882
32
+ invokeai-2.2.4.5.data/data/frontend/dist/assets/index.0dadf5d0.css,sha256=Da310JY2bg3TnroF0aX_BD22SpYz46M4b3tSa0LMROU,51336
33
+ invokeai-2.2.4.5.data/data/frontend/dist/assets/index.21ff81eb.js,sha256=N0GGoLi9UxgkKFxecpfK2FfujyG6I6IzwStcQvFGIZM,1565832
34
+ invokeai-2.2.4.5.data/data/frontend/dist/assets/logo.13003d72.png,sha256=EwA9cm5XE_636x7VxxSxZppuPrTjCSm4gQ_f9AnFsA0,44115
35
+ invokeai-2.2.4.5.data/data/frontend/dist/assets/polyfills-legacy-dde3a68a.js,sha256=d29YQwFNJq9R0Cm8Ks-qN7rLBQlK971uJlyCCUgfQlw,34033
36
+ invokeai-2.2.4.5.data/data/frontend/dist/assets/polyfills.1ff60148.js,sha256=tLZBjZdoBFMajtOpOvB3leOQ4MIGrDb6jV4slTFzAH4,11620
37
+ invokeai-2.2.4.5.data/data/scripts/configure_invokeai.py,sha256=2rVZ_KT9n2p2jUmKBPgACe-n66GjV_QFAbuU0pIp0d0,31801
38
+ invokeai-2.2.4.5.data/data/scripts/create_root.py,sha256=sjfeYgsg-OdMF3tnaF_MAp3vqkhdhxTsMNCO3Spw67Y,1178
39
+ invokeai-2.2.4.5.data/data/scripts/dream.py,sha256=RXSuuzs-ZXtQWzX-TP9LUM71xJAegfhh1cfRywM7UE8,322
40
+ invokeai-2.2.4.5.data/data/scripts/images2prompt.py,sha256=1ODMnGxTz5M0XRfLMnWj5BxLEqq5h0Nc6V0CdaJIGlE,853
41
+ invokeai-2.2.4.5.data/data/scripts/invoke.py,sha256=-nC_6RJwPaKA5I990TTWmV4YnFllh06tVpB9wvtQzqM,68
42
+ invokeai-2.2.4.5.data/data/scripts/legacy_api.py,sha256=NQyox1mKSt5pZJVyAJ2et28qm4LPGuyQprtmWA_eyp8,22466
43
+ invokeai-2.2.4.5.data/data/scripts/load_models.py,sha256=36PGe8sge-nilgiphcl_OsB_N3lk9EvBmp6oftlMq_c,369
44
+ invokeai-2.2.4.5.data/data/scripts/merge_embeddings.py,sha256=BMLq0QTtmloJ_Lt2dKJouojiWOuQnHSMKdCzg5d8GDg,3939
45
+ invokeai-2.2.4.5.data/data/scripts/preload_models.py,sha256=36PGe8sge-nilgiphcl_OsB_N3lk9EvBmp6oftlMq_c,369
46
+ invokeai-2.2.4.5.data/data/scripts/sd-metadata.py,sha256=rQTKsJ9zFNc5CDh_wdSxT3gJdTuJUUAGPZYrsx8ug-M,706
47
+ ldm/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
48
+ ldm/generate.py,sha256=2351qkYOaKrHTk0CCshPcDrUJovTuLM0PtQFePM_1Ik,49838
49
+ ldm/lr_scheduler.py,sha256=DOevF7ezFfU48M9Ig6tWS-pfiaGHhgjsvub0x9gvq6M,4373
50
+ ldm/simplet2i.py,sha256=RSCGlTixYhDbipy9S5ptFmMGrKR-sh42IQiM88ci614,363
51
+ ldm/util.py,sha256=EvovHHoHFUgy0-ZgGK7TPE5DsRk39G48G0VJyj4Tz2Y,8012
52
+ ldm/data/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
53
+ ldm/data/base.py,sha256=xJuuZVLMG-YLFca6GItI3mAnAWkfl3_yhIBUidV4_6I,738
54
+ ldm/data/imagenet.py,sha256=YbsVQZdN6OmyR4yGIQ1442RdW-2ZngySisuTIGnR5BE,16282
55
+ ldm/data/lsun.py,sha256=iiPr8DsiOBOwdNG6iyZooTtoUQw09Ji6fMqTBEUd8qY,3497
56
+ ldm/data/personalized.py,sha256=Q7m6m1v7Piwa-KQSHIhMKaAbiIb2mS9MrHGNoZdVlf4,5546
57
+ ldm/data/personalized_style.py,sha256=a-veUrYtoFlv3dDf58digdBe2Arxjgmm8icjrjwzfcw,5002
58
+ ldm/invoke/CLI.py,sha256=iukS14qGYnEYRyfkfrLVu99gq7g52p7Va4QDy0hj4-g,35873
59
+ ldm/invoke/__init__.py,sha256=U-uG50uPgcPURbztbefqkLFBEmJcdUsMSaqxbVV1HiY,84
60
+ ldm/invoke/args.py,sha256=_IVnwmcgIDyubY5KR6g9PeNkRCSUKR5olITUjO4Uu-g,47389
61
+ ldm/invoke/concepts_lib.py,sha256=u_JVq7UsjAsvPjBcNKxKWq8bKCrrIy9Au0FgR3wna_4,7281
62
+ ldm/invoke/conditioning.py,sha256=61YOrx0qXunrVzsCHtCe4WwlYqMxg_B12FWdPg9Id78,13971
63
+ ldm/invoke/devices.py,sha256=FuSdGS0wwFslaxn22hPOu8iVzlG1Gc7P0d4VJcAzOq8,1027
64
+ ldm/invoke/globals.py,sha256=TVeEPCASbUOypMbmG9JenjxaTT_BRLtDIaHJeoqct70,1029
65
+ ldm/invoke/image_util.py,sha256=BsXgPsKoRlxQjmxIwGsAQXLb_slId_vnwUXrnZ1BY2c,2374
66
+ ldm/invoke/log.py,sha256=MMMXXZtUU-0wNE7_Y9ANQjO_nKO4jj1O5LPu3TYeXpg,2392
67
+ ldm/invoke/model_cache.py,sha256=bN6aCtOsaaC3_COKTLdSlYXFjqZuHb5hjZL1eJUWrak,17132
68
+ ldm/invoke/patchmatch.py,sha256=EMNKVkF1P06tzsA67phJbuX-dImnjmn4wjYRx-f1S1A,1289
69
+ ldm/invoke/pngwriter.py,sha256=Mab97PwVcp_rKnjbPlE__8xfI3Jnlyre0dbwOp_neJc,4290
70
+ ldm/invoke/prompt_parser.py,sha256=EkRU1tDzVsi8Xx99mRKYKZng4WOhfcDKoOGMjI_QBzk,29393
71
+ ldm/invoke/readline.py,sha256=R8tepPaqMjGIEjA1AEKQoVWmieJCaL3K-7jcK4J2gyI,13852
72
+ ldm/invoke/seamless.py,sha256=AlN9s7RG46hyyOnn5d8aLLRqQZNuLhW7nfL82DlDqHE,1758
73
+ ldm/invoke/server.py,sha256=0NPNkwCYIGIJrwkHZDExgsnjBMC4cKiXS6a1_2S2GXY,12606
74
+ ldm/invoke/server_legacy.py,sha256=5M4VPr-Ah8TtNc0bn0QQJbYAxzEhfveoUvCW6CRSShk,11263
75
+ ldm/invoke/txt2mask.py,sha256=LojaahseTxxCI9lhHjKvzqwWLJ3_eGbfHF1SrBVDxxo,5439
76
+ ldm/invoke/generator/__init__.py,sha256=JXEv78eaZWNTEZvxSRXRKNLtkemQkjMMuTouUmTHhng,93
77
+ ldm/invoke/generator/base.py,sha256=vsC3HtU4I3wCZxNrocRNLUfX8ORL8ETL7dxQygCsSxU,14308
78
+ ldm/invoke/generator/embiggen.py,sha256=lJk5vFkBk1uiJ2VJh7qIExovDfZdnxMX3HhrTFObtsM,26223
79
+ ldm/invoke/generator/img2img.py,sha256=quANkkEfkteo-jyBHN3QhZaTFrBow7WtbQGJWIwjCnw,3617
80
+ ldm/invoke/generator/inpaint.py,sha256=u9mpjd7njMjVn91Md91R3lO0n_4TZryjzzuLHHyvo_o,13681
81
+ ldm/invoke/generator/omnibus.py,sha256=QHDH9iHFNVYTRrM00f_2nWHTKPxJuWvP80v6qVQHiis,6597
82
+ ldm/invoke/generator/txt2img.py,sha256=M8p-2EEVOzyOur6ZiXoe0xI639Jn2whIaSpXUl5oY74,3508
83
+ ldm/invoke/generator/txt2img2img.py,sha256=mjyxWBwZZ3YvhMjNnG_HQKBA1PyPsyNF3T6X38UxjSQ,6992
84
+ ldm/invoke/restoration/__init__.py,sha256=8mzfv2OBuOs2y0KBkaQlaIsrx7ehICjwQSYYOhiLzy0,97
85
+ ldm/invoke/restoration/base.py,sha256=81k6_KegSehl_okN8qfCMMFSI5UWcWqC6C62Ux_KH80,1234
86
+ ldm/invoke/restoration/codeformer.py,sha256=prZTM7t5KxqGEPyIuWRCP06KSsrALYOMiVIh0Q0r1po,4323
87
+ ldm/invoke/restoration/codeformer_arch.py,sha256=oq6EOtx5RUFSfPKjbqfiNTpPIe7MD5VCBeg5yNJHOLo,10946
88
+ ldm/invoke/restoration/gfpgan.py,sha256=M2IM55ae-WlXs49439DaZnVkiiXZh9VWX7QfvMM4drk,2707
89
+ ldm/invoke/restoration/outcrop.py,sha256=NcaFTjW7z8NnYKshaCOdJqahvQ4RE_LqVBCNvWTahog,4051
90
+ ldm/invoke/restoration/outpaint.py,sha256=R3DSqoOp_ICITLlaz3tjfkJioe3yDRCOT5qCeHCGGOo,3543
91
+ ldm/invoke/restoration/realesrgan.py,sha256=ju1cOhdkWie7-Sv42BnFe07b3qoqa0QjM6sVtnwpBgE,2996
92
+ ldm/invoke/restoration/vqgan_arch.py,sha256=0DKNaehqUDrLu9hRuDv3T-33gEQ1nSKuuxqfTRe3O-o,15435
93
+ ldm/models/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
94
+ ldm/models/autoencoder.py,sha256=Ri2oeOSV-mjAnfGXWqu5kwT5xOWTw3sxNpIEBIBVPFg,18770
95
+ ldm/models/diffusion/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
96
+ ldm/models/diffusion/classifier.py,sha256=OfsiHGx1tT3RDdvTunA43JvA17z5f-zt9JWCslsidVw,11323
97
+ ldm/models/diffusion/cross_attention_control.py,sha256=b-18mo8Qzj0j6ffXsrMmD2AoW1wB89OI4NohXIwWf5U,21711
98
+ ldm/models/diffusion/cross_attention_map_saving.py,sha256=j2AoET8WiHwGl88KVBHBVhYak7wZFB8IV6pDrNtF2Lc,4006
99
+ ldm/models/diffusion/ddim.py,sha256=YLKOaw8bqT7Dj6AYH5Vi6iOFNMAZqaOtfLmIftUFZVM,4259
100
+ ldm/models/diffusion/ddpm.py,sha256=vo2z-qhEw_lgdzGTIw8yeQZHLZrt_WyO71ByEQcJAXs,80537
101
+ ldm/models/diffusion/ksampler.py,sha256=XQonOX7hVtPWLZ97Q-lnFFPvjVz1-jpbKutruNJb9O8,11478
102
+ ldm/models/diffusion/plms.py,sha256=F71f-10ABn9RozPn-6dqB-z2D7g7e1v-Cb5YCYcIk-o,5730
103
+ ldm/models/diffusion/sampler.py,sha256=oPCwkwOBpuUQvUWdgSTeJAYsoCOv76gaxD_iSTtaqcc,15537
104
+ ldm/models/diffusion/shared_invokeai_diffusion.py,sha256=y3Rjx6QFdtQJf9AHhP22erwKE9YUVZ74-TpadRuxZQk,13266
105
+ ldm/modules/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
106
+ ldm/modules/attention.py,sha256=yY5DzKD_5vrM0_dnxWKGfU0gyqKr0DakR6fsMoaZVZw,9039
107
+ ldm/modules/ema.py,sha256=83zqrsnhPAEZCUbGnDsYUATkEp9dRlqNTHNORLnmnLI,3180
108
+ ldm/modules/embedding_manager.py,sha256=wec0iAgNmuBqVFqwxUDaMYHSPgBEN6jOrX62DZ8ld2A,15472
109
+ ldm/modules/x_transformer.py,sha256=mwJhbTznEbvbHC29frUvCpdQ3WfNKxlRed7QNkO4Cvc,21561
110
+ ldm/modules/diffusionmodules/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
111
+ ldm/modules/diffusionmodules/model.py,sha256=k9ywoAWvMOlkmOJwXKNvKKhpQpaM_Z0Qr2YmmXrswuE,35512
112
+ ldm/modules/diffusionmodules/openaimodel.py,sha256=rs5vfF3amJ2eX0KHy_VNX3BUifNdgwLoeID0JxG2Mng,36213
113
+ ldm/modules/diffusionmodules/util.py,sha256=4zoCXsWJDY21iFhlJXTVqC097-VcdoA-_n6PaMJf2hg,10086
114
+ ldm/modules/distributions/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
115
+ ldm/modules/distributions/distributions.py,sha256=Sa4SWzKB5EPxsGROYwK5SomUQhnSDlIkysakz7_jLSM,3119
116
+ ldm/modules/encoders/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
117
+ ldm/modules/encoders/modules.py,sha256=4XJYNztQc2vN2RjMjeajKlYKApy2US3Kotr5S6yMdVA,28716
118
+ ldm/modules/image_degradation/__init__.py,sha256=BhjIywa3OkErbQIB5Q_uupe21-Qh_t8LaEovi70kp8g,226
119
+ ldm/modules/image_degradation/bsrgan.py,sha256=kyHtGRTV2t9zb5VJh6PputP4AAJTe3UTDr6Bdz1rwsQ,26558
120
+ ldm/modules/image_degradation/bsrgan_light.py,sha256=anFrz7LQPsEz2VSk7qLCeAgtqQvKAskVfB_97fOISsU,23359
121
+ ldm/modules/image_degradation/utils_image.py,sha256=MMPa-SIc5FpK7Gvv8xavTT07GIfwecjNNvQ5ebTbhaQ,30058
122
+ ldm/modules/losses/__init__.py,sha256=Pjt0LHYDnWvHSbG7X5cIKe8UBS29x8Jr-rCpd7Nf0Bg,69
123
+ ldm/modules/losses/contperceptual.py,sha256=it49D8yya2R4_Tnbo_13H_KUB0sJ38QXW42LzYmHmrk,6282
124
+ ldm/modules/losses/vqperceptual.py,sha256=5uXzbTieWj92husrcgdwBxX-gC67gfmOMuRhTjvVfvk,8654
125
+ scripts/configure_invokeai.py,sha256=2rVZ_KT9n2p2jUmKBPgACe-n66GjV_QFAbuU0pIp0d0,31801
126
+ scripts/create_root.py,sha256=sjfeYgsg-OdMF3tnaF_MAp3vqkhdhxTsMNCO3Spw67Y,1178
127
+ scripts/dream.py,sha256=RXSuuzs-ZXtQWzX-TP9LUM71xJAegfhh1cfRywM7UE8,322
128
+ scripts/images2prompt.py,sha256=1ODMnGxTz5M0XRfLMnWj5BxLEqq5h0Nc6V0CdaJIGlE,853
129
+ scripts/invoke.py,sha256=-nC_6RJwPaKA5I990TTWmV4YnFllh06tVpB9wvtQzqM,68
130
+ scripts/legacy_api.py,sha256=NQyox1mKSt5pZJVyAJ2et28qm4LPGuyQprtmWA_eyp8,22466
131
+ scripts/load_models.py,sha256=36PGe8sge-nilgiphcl_OsB_N3lk9EvBmp6oftlMq_c,369
132
+ scripts/merge_embeddings.py,sha256=BMLq0QTtmloJ_Lt2dKJouojiWOuQnHSMKdCzg5d8GDg,3939
133
+ scripts/preload_models.py,sha256=36PGe8sge-nilgiphcl_OsB_N3lk9EvBmp6oftlMq_c,369
134
+ scripts/sd-metadata.py,sha256=rQTKsJ9zFNc5CDh_wdSxT3gJdTuJUUAGPZYrsx8ug-M,706
135
+ scripts/orig_scripts/img2img.py,sha256=HgL6qbPfCISrzVEs0lHBIIysA-asbjXHegdDYyG2Pcs,9326
136
+ scripts/orig_scripts/inpaint.py,sha256=3axKjYyVBbkzlbW_-FAdjEFCvNThQNYPDH9jsn-xx2I,3644
137
+ scripts/orig_scripts/knn2img.py,sha256=KWvSZXdK-vdEJkRUrNzN6P_duQUUtj1saC9Lmz5zKIQ,13695
138
+ scripts/orig_scripts/sample_diffusion.py,sha256=ChYIIm4qYZnDIstfviFgLBM0spj6T0qcz5JFeDHucko,9606
139
+ scripts/orig_scripts/train_searcher.py,sha256=VIYb-A66Z7_soE48G6i2zE62B_QpSp1qrswpWNv6IuI,5807
140
+ scripts/orig_scripts/txt2img.py,sha256=UA6K_koR-Lt4ibK3LEf2Cc_DCeHNaNo4bxWHqkQSaj4,10834
141
+ vendored/clip/hubconf.py,sha256=BkGUZhDBenQ-vMP26Fz__xQAM3u5qZdmdAxAsB2aPhQ,1382
142
+ vendored/clip/setup.py,sha256=nPnWLuu5Fh2p0Tlbb8J8rledhdkezUFZQykmDNANm0w,491
143
+ vendored/clip/clip/__init__.py,sha256=15MOspDr7UMhFnlckUcyANCYRRqUwK7dSuD5NPl5Veg,20
144
+ vendored/clip/clip/bpe_simple_vocab_16e6.txt.gz,sha256=kkaRrCiOVECSNhFWUq1KolD0ggPeUKnkcipuzUjWgEo,1356917
145
+ vendored/clip/clip/clip.py,sha256=w_HAmr4KDZxCng1H8rjUpOwJ29Ee7D192YRrq9cX5Ds,9396
146
+ vendored/clip/clip/model.py,sha256=mQLL5e6Qodoqo-bwQ-iiPcH4gxGTuWN4XJrwPVx77yw,17374
147
+ vendored/clip/clip/simple_tokenizer.py,sha256=0bCfEO09Hiw0NhnLmMv6y5I2PdhgdSakOqf-LWDRW60,4632
148
+ vendored/clip/tests/test_consistency.py,sha256=NC-E5IFBQ-ERfbwUuqbPKi7AH2FULjlS7ckeaPXu0gY,812
149
+ vendored/clipseg/evaluation_utils.py,sha256=BH3NAlf1bsnXhlFHodeDynsCXMoblwj5SpDTulRN3qo,9281
150
+ vendored/clipseg/general_utils.py,sha256=F5Avn5FNGdYat9bo99GrtyjgWTqIv7AEU6lBt2NLX8Q,9288
151
+ vendored/clipseg/metrics.py,sha256=Vwg4ULwvj9iQP8pAYO2yGORyftW00NCNzv8YaRzba7c,10606
152
+ vendored/clipseg/score.py,sha256=35js38fpbzwbdynVERz1zhEIBUqvh5LgERVYC8_WHBw,16896
153
+ vendored/clipseg/setup.py,sha256=jovT13X-WXnmDzQ0UuYpR1GTAsOA8s1i4awc6aHShsA,787
154
+ vendored/clipseg/training.py,sha256=RenkCmC4E71uRLwUUXLRZYw9kUDmog0d3THlq3XJmuk,10397
155
+ vendored/clipseg/datasets/coco_wrapper.py,sha256=fHCJry3IfIMRoCG3k5g-U0FW45tK6owC24PXY6kqP_M,4454
156
+ vendored/clipseg/datasets/pascal_zeroshot.py,sha256=POGtbzf_HhafJWhxoUXo6Zp4XdMtYHfJ7FanU-qhT2s,2259
157
+ vendored/clipseg/datasets/pfe_dataset.py,sha256=5nH-kADgZnMAIlTNGPd2lWqv6Dq4iWoMfvpjE0N7F3k,5003
158
+ vendored/clipseg/datasets/phrasecut.py,sha256=qGTdeAqgz9AuQ7wVdyUxsRnRib9-0PmpuSX_s5sLK1M,15053
159
+ vendored/clipseg/datasets/utils.py,sha256=qvv1f8pTse_XrL9NTEbM4zuoBpZaniMXeht1Zm3I8yU,3104
160
+ vendored/clipseg/models/clipseg.py,sha256=awkD1ZSRyUdHD03Sd44PT_ZuuyYWZqaAN7zilJdBsDw,20691
161
+ vendored/clipseg/models/vitseg.py,sha256=ZLHCix7RuzflNwZeflkSeF67psOWHLdvaWX1hM4nHVQ,10692
162
+ invokeai-2.2.4.5.dist-info/LICENSE,sha256=R_eAb2jPl1EiLPL2Q4EC8uDg9as-lzYYM_oHtHyYBXc,1070
163
+ invokeai-2.2.4.5.dist-info/LICENSE-ModelWeights.txt,sha256=GbsztR5dRQiKsmF33NYkGL-GFJhSc2oG9gQPwzo-7Tg,14555
164
+ invokeai-2.2.4.5.dist-info/METADATA,sha256=yHq15G1wf2fe_hfo063XZh2B8fm8KL11FnANhzTiv78,14274
165
+ invokeai-2.2.4.5.dist-info/WHEEL,sha256=G16H4A3IeoQmnOrYV4ueZGKSjhipXx8zc8nu9FGlvMA,92
166
+ invokeai-2.2.4.5.dist-info/entry_points.txt,sha256=EzH4YRIb1WULGM-X8VDrF9KZXS2ilqqGA2PnPfpLIbE,141
167
+ invokeai-2.2.4.5.dist-info/top_level.txt,sha256=jQUNUhSs4vdYt5wtuH42TFYsI7mG6Hgd09J-HrCjAYA,42
168
+ invokeai-2.2.4.5.dist-info/zip-safe,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
169
+ invokeai-2.2.4.5.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: bdist_wheel (0.37.1)
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
5
+
@@ -0,0 +1,4 @@
1
+ [console_scripts]
2
+ configure_invokeai = scripts.configure_invokeai:main
3
+ create_root = scripts.create_root:main
4
+ invokeai = scripts.invoke:main
@@ -0,0 +1,6 @@
1
+ backend
2
+ configs
3
+ docs
4
+ ldm
5
+ scripts
6
+ vendored
@@ -0,0 +1 @@
1
+
ldm/__init__.py ADDED
File without changes
ldm/data/__init__.py ADDED
File without changes
ldm/data/base.py ADDED
@@ -0,0 +1,31 @@
1
+ from abc import abstractmethod
2
+ from torch.utils.data import (
3
+ Dataset,
4
+ ConcatDataset,
5
+ ChainDataset,
6
+ IterableDataset,
7
+ )
8
+
9
+
10
+ class Txt2ImgIterableBaseDataset(IterableDataset):
11
+ """
12
+ Define an interface to make the IterableDatasets for text2img data chainable
13
+ """
14
+
15
+ def __init__(self, num_records=0, valid_ids=None, size=256):
16
+ super().__init__()
17
+ self.num_records = num_records
18
+ self.valid_ids = valid_ids
19
+ self.sample_ids = valid_ids
20
+ self.size = size
21
+
22
+ print(
23
+ f'{self.__class__.__name__} dataset contains {self.__len__()} examples.'
24
+ )
25
+
26
+ def __len__(self):
27
+ return self.num_records
28
+
29
+ @abstractmethod
30
+ def __iter__(self):
31
+ pass