.gitattributes CHANGED
@@ -34,3 +34,8 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
  01.png filter=lfs diff=lfs merge=lfs -text
 
 
 
 
 
 
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
  01.png filter=lfs diff=lfs merge=lfs -text
37
+ *.md filter=lfs diff=lfs merge=lfs -text
38
+ *.png filter=lfs diff=lfs merge=lfs -text
39
+ *.json filter=lfs diff=lfs merge=lfs -text
40
+ *.txt filter=lfs diff=lfs merge=lfs -text
41
+ *.xml filter=lfs diff=lfs merge=lfs -text
LICENSE.md CHANGED
@@ -1,60 +1,3 @@
1
- Copyright (c) 2023 Stability AI
2
- CreativeML Open RAIL++-M License dated July 26, 2023
3
-
4
- Section I: PREAMBLE
5
- Multimodal generative models are being widely adopted and used, and have the potential to transform the way artists, among other individuals, conceive and benefit from AI or ML technologies as a tool for content creation.
6
- Notwithstanding the current and potential benefits that these artifacts can bring to society at large, there are also concerns about potential misuses of them, either due to their technical limitations or ethical considerations.
7
- In short, this license strives for both the open and responsible downstream use of the accompanying model. When it comes to the open character, we took inspiration from open source permissive licenses regarding the grant of IP rights. Referring to the downstream responsible use, we added use-based restrictions not permitting the use of the model in very specific scenarios, in order for the licensor to be able to enforce the license in case potential misuses of the Model may occur. At the same time, we strive to promote open and responsible research on generative models for art and content generation.
8
- Even though downstream derivative versions of the model could be released under different licensing terms, the latter will always have to include - at minimum - the same use-based restrictions as the ones in the original license (this license). We believe in the intersection between open and responsible AI development; thus, this agreement aims to strike a balance between both in order to enable responsible open-science in the field of AI.
9
- This CreativeML Open RAIL++-M License governs the use of the model (and its derivatives) and is informed by the model card associated with the model.
10
- NOW THEREFORE, You and Licensor agree as follows:
11
- Definitions
12
- "License" means the terms and conditions for use, reproduction, and Distribution as defined in this document.
13
- "Data" means a collection of information and/or content extracted from the dataset used with the Model, including to train, pretrain, or otherwise evaluate the Model. The Data is not licensed under this License.
14
- "Output" means the results of operating a Model as embodied in informational content resulting therefrom.
15
- "Model" means any accompanying machine-learning based assemblies (including checkpoints), consisting of learnt weights, parameters (including optimizer states), corresponding to the model architecture as embodied in the Complementary Material, that have been trained or tuned, in whole or in part on the Data, using the Complementary Material.
16
- "Derivatives of the Model" means all modifications to the Model, works based on the Model, or any other model which is created or initialized by transfer of patterns of the weights, parameters, activations or output of the Model, to the other model, in order to cause the other model to perform similarly to the Model, including - but not limited to - distillation methods entailing the use of intermediate data representations or methods based on the generation of synthetic data by the Model for training the other model.
17
- "Complementary Material" means the accompanying source code and scripts used to define, run, load, benchmark or evaluate the Model, and used to prepare data for training or evaluation, if any. This includes any accompanying documentation, tutorials, examples, etc, if any.
18
- "Distribution" means any transmission, reproduction, publication or other sharing of the Model or Derivatives of the Model to a third party, including providing the Model as a hosted service made available by electronic or other remote means - e.g. API-based or web access.
19
- "Licensor" means the copyright owner or entity authorized by the copyright owner that is granting the License, including the persons or entities that may have rights in the Model and/or distributing the Model.
20
- "You" (or "Your") means an individual or Legal Entity exercising permissions granted by this License and/or making use of the Model for whichever purpose and in any field of use, including usage of the Model in an end-use application - e.g. chatbot, translator, image generator.
21
- "Third Parties" means individuals or legal entities that are not under common control with Licensor or You.
22
- "Contribution" means any work of authorship, including the original version of the Model and any modifications or additions to that Model or Derivatives of the Model thereof, that is intentionally submitted to Licensor for inclusion in the Model by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Model, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution."
23
- "Contributor" means Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Model.
24
-
25
- Section II: INTELLECTUAL PROPERTY RIGHTS
26
- Both copyright and patent grants apply to the Model, Derivatives of the Model and Complementary Material. The Model and Derivatives of the Model are subject to additional terms as described in
27
-
28
- Section III.
29
- Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare, publicly display, publicly perform, sublicense, and distribute the Complementary Material, the Model, and Derivatives of the Model.
30
- Grant of Patent License. Subject to the terms and conditions of this License and where and as applicable, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this paragraph) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Model and the Complementary Material, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Model to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Model and/or Complementary Material or a Contribution incorporated within the Model and/or Complementary Material constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for the Model and/or Work shall terminate as of the date such litigation is asserted or filed.
31
- Section III: CONDITIONS OF USAGE, DISTRIBUTION AND REDISTRIBUTION
32
- Distribution and Redistribution. You may host for Third Party remote access purposes (e.g. software-as-a-service), reproduce and distribute copies of the Model or Derivatives of the Model thereof in any medium, with or without modifications, provided that You meet the following conditions: Use-based restrictions as referenced in paragraph 5 MUST be included as an enforceable provision by You in any type of legal agreement (e.g. a license) governing the use and/or distribution of the Model or Derivatives of the Model, and You shall give notice to subsequent users You Distribute to, that the Model or Derivatives of the Model are subject to paragraph 5. This provision does not apply to the use of Complementary Material. You must give any Third Party recipients of the Model or Derivatives of the Model a copy of this License; You must cause any modified files to carry prominent notices stating that You changed the files; You must retain all copyright, patent, trademark, and attribution notices excluding those notices that do not pertain to any part of the Model, Derivatives of the Model. You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions - respecting paragraph 4.a. - for use, reproduction, or Distribution of Your modifications, or for any such Derivatives of the Model as a whole, provided Your use, reproduction, and Distribution of the Model otherwise complies with the conditions stated in this License.
33
- Use-based restrictions. The restrictions set forth in Attachment A are considered Use-based restrictions. Therefore You cannot use the Model and the Derivatives of the Model for the specified restricted uses. You may use the Model subject to this License, including only for lawful purposes and in accordance with the License. Use may include creating any content with, finetuning, updating, running, training, evaluating and/or reparametrizing the Model. You shall require all of Your users who use the Model or a Derivative of the Model to comply with the terms of this paragraph (paragraph 5).
34
- The Output You Generate. Except as set forth herein, Licensor claims no rights in the Output You generate using the Model. You are accountable for the Output you generate and its subsequent uses. No use of the output can contravene any provision as stated in the License.
35
-
36
- Section IV: OTHER PROVISIONS
37
- Updates and Runtime Restrictions. To the maximum extent permitted by law, Licensor reserves the right to restrict (remotely or otherwise) usage of the Model in violation of this License.
38
- Trademarks and related. Nothing in this License permits You to make use of Licensors’ trademarks, trade names, logos or to otherwise suggest endorsement or misrepresent the relationship between the parties; and any rights not expressly granted herein are reserved by the Licensors.
39
- Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Model and the Complementary Material (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Model, Derivatives of the Model, and the Complementary Material and assume any risks associated with Your exercise of permissions under this License.
40
- Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Model and the Complementary Material (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages.
41
- Accepting Warranty or Additional Liability. While redistributing the Model, Derivatives of the Model and the Complementary Material thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability.
42
- If any provision of this License is held to be invalid, illegal or unenforceable, the remaining provisions shall be unaffected thereby and remain valid as if such provision had not been set forth herein.
43
-
44
- END OF TERMS AND CONDITIONS
45
-
46
- Attachment A
47
- Use Restrictions
48
- You agree not to use the Model or Derivatives of the Model:
49
- In any way that violates any applicable national, federal, state, local or international law or regulation;
50
- For the purpose of exploiting, harming or attempting to exploit or harm minors in any way;
51
- To generate or disseminate verifiably false information and/or content with the purpose of harming others;
52
- To generate or disseminate personal identifiable information that can be used to harm an individual;
53
- To defame, disparage or otherwise harass others;
54
- For fully automated decision making that adversely impacts an individual’s legal rights or otherwise creates or modifies a binding, enforceable obligation;
55
- For any use intended to or which has the effect of discriminating against or harming individuals or groups based on online or offline social behavior or known or predicted personal or personality characteristics;
56
- To exploit any of the vulnerabilities of a specific group of persons based on their age, social, physical or mental characteristics, in order to materially distort the behavior of a person pertaining to that group in a manner that causes or is likely to cause that person or another person physical or psychological harm;
57
- For any use intended to or which has the effect of discriminating against individuals or groups based on legally protected characteristics or categories;
58
- To provide medical advice and medical results interpretation;
59
- To generate or disseminate information for the purpose to be used for administration of justice, law enforcement, immigration or asylum processes, such as predicting an individual will commit fraud/crime commitment (e.g. by text profiling, drawing causal relationships between assertions made in documents, indiscriminate and arbitrarily-targeted use).
60
-
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:19b6998b569b53ac1fc2158a8a3202c8699a9a4605b47075715d9c96be7fb6d0
3
+ size 14109
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
README.md CHANGED
@@ -1,215 +1,3 @@
1
- ---
2
- license: openrail++
3
- tags:
4
- - text-to-image
5
- - stable-diffusion
6
- ---
7
- # SD-XL 1.0-base Model Card
8
- ![row01](01.png)
9
-
10
- ## Model
11
-
12
- ![pipeline](pipeline.png)
13
-
14
- [SDXL](https://arxiv.org/abs/2307.01952) consists of an [ensemble of experts](https://arxiv.org/abs/2211.01324) pipeline for latent diffusion:
15
- In a first step, the base model is used to generate (noisy) latents,
16
- which are then further processed with a refinement model (available here: https://huggingface.co/stabilityai/stable-diffusion-xl-refiner-1.0/) specialized for the final denoising steps.
17
- Note that the base model can be used as a standalone module.
18
-
19
- Alternatively, we can use a two-stage pipeline as follows:
20
- First, the base model is used to generate latents of the desired output size.
21
- In the second step, we use a specialized high-resolution model and apply a technique called SDEdit (https://arxiv.org/abs/2108.01073, also known as "img2img")
22
- to the latents generated in the first step, using the same prompt. This technique is slightly slower than the first one, as it requires more function evaluations.
23
-
24
- Source code is available at https://github.com/Stability-AI/generative-models .
25
-
26
- ### Model Description
27
-
28
- - **Developed by:** Stability AI
29
- - **Model type:** Diffusion-based text-to-image generative model
30
- - **License:** [CreativeML Open RAIL++-M License](https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/blob/main/LICENSE.md)
31
- - **Model Description:** This is a model that can be used to generate and modify images based on text prompts. It is a [Latent Diffusion Model](https://arxiv.org/abs/2112.10752) that uses two fixed, pretrained text encoders ([OpenCLIP-ViT/G](https://github.com/mlfoundations/open_clip) and [CLIP-ViT/L](https://github.com/openai/CLIP/tree/main)).
32
- - **Resources for more information:** Check out our [GitHub Repository](https://github.com/Stability-AI/generative-models) and the [SDXL report on arXiv](https://arxiv.org/abs/2307.01952).
33
-
34
- ### Model Sources
35
-
36
- For research purposes, we recommend our `generative-models` Github repository (https://github.com/Stability-AI/generative-models), which implements the most popular diffusion frameworks (both training and inference) and for which new functionalities like distillation will be added over time.
37
- [Clipdrop](https://clipdrop.co/stable-diffusion) provides free SDXL inference.
38
-
39
- - **Repository:** https://github.com/Stability-AI/generative-models
40
- - **Demo:** https://clipdrop.co/stable-diffusion
41
-
42
-
43
- ## Evaluation
44
- ![comparison](comparison.png)
45
- The chart above evaluates user preference for SDXL (with and without refinement) over SDXL 0.9 and Stable Diffusion 1.5 and 2.1.
46
- The SDXL base model performs significantly better than the previous variants, and the model combined with the refinement module achieves the best overall performance.
47
-
48
-
49
- ### 🧨 Diffusers
50
-
51
- Make sure to upgrade diffusers to >= 0.19.0:
52
- ```
53
- pip install diffusers --upgrade
54
- ```
55
-
56
- In addition make sure to install `transformers`, `safetensors`, `accelerate` as well as the invisible watermark:
57
- ```
58
- pip install invisible_watermark transformers accelerate safetensors
59
- ```
60
-
61
- To just use the base model, you can run:
62
-
63
- ```py
64
- from diffusers import DiffusionPipeline
65
- import torch
66
-
67
- pipe = DiffusionPipeline.from_pretrained("stabilityai/stable-diffusion-xl-base-1.0", torch_dtype=torch.float16, use_safetensors=True, variant="fp16")
68
- pipe.to("cuda")
69
-
70
- # if using torch < 2.0
71
- # pipe.enable_xformers_memory_efficient_attention()
72
-
73
- prompt = "An astronaut riding a green horse"
74
-
75
- images = pipe(prompt=prompt).images[0]
76
- ```
77
-
78
- To use the whole base + refiner pipeline as an ensemble of experts you can run:
79
-
80
- ```py
81
- from diffusers import DiffusionPipeline
82
- import torch
83
-
84
- # load both base & refiner
85
- base = DiffusionPipeline.from_pretrained(
86
- "stabilityai/stable-diffusion-xl-base-1.0", torch_dtype=torch.float16, variant="fp16", use_safetensors=True
87
- )
88
- base.to("cuda")
89
- refiner = DiffusionPipeline.from_pretrained(
90
- "stabilityai/stable-diffusion-xl-refiner-1.0",
91
- text_encoder_2=base.text_encoder_2,
92
- vae=base.vae,
93
- torch_dtype=torch.float16,
94
- use_safetensors=True,
95
- variant="fp16",
96
- )
97
- refiner.to("cuda")
98
-
99
- # Define how many steps and what % of steps to be run on each experts (80/20) here
100
- n_steps = 40
101
- high_noise_frac = 0.8
102
-
103
- prompt = "A majestic lion jumping from a big stone at night"
104
-
105
- # run both experts
106
- image = base(
107
- prompt=prompt,
108
- num_inference_steps=n_steps,
109
- denoising_end=high_noise_frac,
110
- output_type="latent",
111
- ).images
112
- image = refiner(
113
- prompt=prompt,
114
- num_inference_steps=n_steps,
115
- denoising_start=high_noise_frac,
116
- image=image,
117
- ).images[0]
118
- ```
119
-
120
- When using `torch >= 2.0`, you can improve the inference speed by 20-30% with torch.compile. Simple wrap the unet with torch compile before running the pipeline:
121
- ```py
122
- pipe.unet = torch.compile(pipe.unet, mode="reduce-overhead", fullgraph=True)
123
- ```
124
-
125
- If you are limited by GPU VRAM, you can enable *cpu offloading* by calling `pipe.enable_model_cpu_offload`
126
- instead of `.to("cuda")`:
127
-
128
- ```diff
129
- - pipe.to("cuda")
130
- + pipe.enable_model_cpu_offload()
131
- ```
132
-
133
- For more information on how to use Stable Diffusion XL with `diffusers`, please have a look at [the Stable Diffusion XL Docs](https://huggingface.co/docs/diffusers/api/pipelines/stable_diffusion/stable_diffusion_xl).
134
-
135
- ### Optimum
136
- [Optimum](https://github.com/huggingface/optimum) provides a Stable Diffusion pipeline compatible with both [OpenVINO](https://docs.openvino.ai/latest/index.html) and [ONNX Runtime](https://onnxruntime.ai/).
137
-
138
- #### OpenVINO
139
-
140
- To install Optimum with the dependencies required for OpenVINO :
141
-
142
- ```bash
143
- pip install optimum[openvino]
144
- ```
145
-
146
- To load an OpenVINO model and run inference with OpenVINO Runtime, you need to replace `StableDiffusionXLPipeline` with Optimum `OVStableDiffusionXLPipeline`. In case you want to load a PyTorch model and convert it to the OpenVINO format on-the-fly, you can set `export=True`.
147
-
148
- ```diff
149
- - from diffusers import StableDiffusionXLPipeline
150
- + from optimum.intel import OVStableDiffusionXLPipeline
151
-
152
- model_id = "stabilityai/stable-diffusion-xl-base-1.0"
153
- - pipeline = StableDiffusionXLPipeline.from_pretrained(model_id)
154
- + pipeline = OVStableDiffusionXLPipeline.from_pretrained(model_id)
155
- prompt = "A majestic lion jumping from a big stone at night"
156
- image = pipeline(prompt).images[0]
157
- ```
158
-
159
- You can find more examples (such as static reshaping and model compilation) in optimum [documentation](https://huggingface.co/docs/optimum/main/en/intel/inference#stable-diffusion-xl).
160
-
161
-
162
- #### ONNX
163
-
164
- To install Optimum with the dependencies required for ONNX Runtime inference :
165
-
166
- ```bash
167
- pip install optimum[onnxruntime]
168
- ```
169
-
170
- To load an ONNX model and run inference with ONNX Runtime, you need to replace `StableDiffusionXLPipeline` with Optimum `ORTStableDiffusionXLPipeline`. In case you want to load a PyTorch model and convert it to the ONNX format on-the-fly, you can set `export=True`.
171
-
172
- ```diff
173
- - from diffusers import StableDiffusionXLPipeline
174
- + from optimum.onnxruntime import ORTStableDiffusionXLPipeline
175
-
176
- model_id = "stabilityai/stable-diffusion-xl-base-1.0"
177
- - pipeline = StableDiffusionXLPipeline.from_pretrained(model_id)
178
- + pipeline = ORTStableDiffusionXLPipeline.from_pretrained(model_id)
179
- prompt = "A majestic lion jumping from a big stone at night"
180
- image = pipeline(prompt).images[0]
181
- ```
182
-
183
- You can find more examples in optimum [documentation](https://huggingface.co/docs/optimum/main/en/onnxruntime/usage_guides/models#stable-diffusion-xl).
184
-
185
-
186
- ## Uses
187
-
188
- ### Direct Use
189
-
190
- The model is intended for research purposes only. Possible research areas and tasks include
191
-
192
- - Generation of artworks and use in design and other artistic processes.
193
- - Applications in educational or creative tools.
194
- - Research on generative models.
195
- - Safe deployment of models which have the potential to generate harmful content.
196
- - Probing and understanding the limitations and biases of generative models.
197
-
198
- Excluded uses are described below.
199
-
200
- ### Out-of-Scope Use
201
-
202
- The model was not trained to be factual or true representations of people or events, and therefore using the model to generate such content is out-of-scope for the abilities of this model.
203
-
204
- ## Limitations and Bias
205
-
206
- ### Limitations
207
-
208
- - The model does not achieve perfect photorealism
209
- - The model cannot render legible text
210
- - The model struggles with more difficult tasks which involve compositionality, such as rendering an image corresponding to “A red cube on top of a blue sphere”
211
- - Faces and people in general may not be generated properly.
212
- - The autoencoding part of the model is lossy.
213
-
214
- ### Bias
215
- While the capabilities of image generation models are impressive, they can also reinforce or exacerbate social biases.
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ba0f6276519a97b9680b41b2c3eb06870ac32bc625946155df3f93dd805d2ea8
3
+ size 5198
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
comparison.png CHANGED

Git LFS Details

  • SHA256: 236672de00184fca58a7437e01cc229819f7c7eae7f331770bc38cca547d7e0f
  • Pointer size: 131 Bytes
  • Size of remote file: 130 kB
model_index.json CHANGED
@@ -1,34 +1,3 @@
1
- {
2
- "_class_name": "StableDiffusionXLPipeline",
3
- "_diffusers_version": "0.19.0.dev0",
4
- "force_zeros_for_empty_prompt": true,
5
- "add_watermarker": null,
6
- "scheduler": [
7
- "diffusers",
8
- "EulerDiscreteScheduler"
9
- ],
10
- "text_encoder": [
11
- "transformers",
12
- "CLIPTextModel"
13
- ],
14
- "text_encoder_2": [
15
- "transformers",
16
- "CLIPTextModelWithProjection"
17
- ],
18
- "tokenizer": [
19
- "transformers",
20
- "CLIPTokenizer"
21
- ],
22
- "tokenizer_2": [
23
- "transformers",
24
- "CLIPTokenizer"
25
- ],
26
- "unet": [
27
- "diffusers",
28
- "UNet2DConditionModel"
29
- ],
30
- "vae": [
31
- "diffusers",
32
- "AutoencoderKL"
33
- ]
34
- }
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a40ca00944bb33ea9281580f50d009d1e23a434173c0e4e234bb90bd75178874
3
+ size 582
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
pipeline.png CHANGED

Git LFS Details

  • SHA256: bbd01b409416c75d486caaeefea3e4b79b91b4262fc87007452ed1ee6ca1cc05
  • Pointer size: 130 Bytes
  • Size of remote file: 80.2 kB
scheduler/scheduler_config.json CHANGED
@@ -1,18 +1,3 @@
1
- {
2
- "_class_name": "EulerDiscreteScheduler",
3
- "_diffusers_version": "0.19.0.dev0",
4
- "beta_end": 0.012,
5
- "beta_schedule": "scaled_linear",
6
- "beta_start": 0.00085,
7
- "clip_sample": false,
8
- "interpolation_type": "linear",
9
- "num_train_timesteps": 1000,
10
- "prediction_type": "epsilon",
11
- "sample_max_value": 1.0,
12
- "set_alpha_to_one": false,
13
- "skip_prk_steps": true,
14
- "steps_offset": 1,
15
- "timestep_spacing": "leading",
16
- "trained_betas": null,
17
- "use_karras_sigmas": false
18
- }
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:af3e45a949aff8b8341ab8b811429ec03fee857a700a1d9477363e4fff9666e2
3
+ size 479
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
sd_xl_base_1.0_0.9vae.safetensors DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:e6bb9ea85bbf7bf6478a7c6d18b71246f22e95d41bcdd80ed40aa212c33cfeff
3
- size 6938078334
 
 
 
 
text_encoder/config.json CHANGED
@@ -1,24 +1,3 @@
1
- {
2
- "architectures": [
3
- "CLIPTextModel"
4
- ],
5
- "attention_dropout": 0.0,
6
- "bos_token_id": 0,
7
- "dropout": 0.0,
8
- "eos_token_id": 2,
9
- "hidden_act": "quick_gelu",
10
- "hidden_size": 768,
11
- "initializer_factor": 1.0,
12
- "initializer_range": 0.02,
13
- "intermediate_size": 3072,
14
- "layer_norm_eps": 1e-05,
15
- "max_position_embeddings": 77,
16
- "model_type": "clip_text_model",
17
- "num_attention_heads": 12,
18
- "num_hidden_layers": 12,
19
- "pad_token_id": 1,
20
- "projection_dim": 768,
21
- "torch_dtype": "float16",
22
- "transformers_version": "4.32.0.dev0",
23
- "vocab_size": 49408
24
- }
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:39b8b2e4b1949e36969caa425b6c81c68bace99198dd9078ce05d16ad401fe7f
3
+ size 565
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
text_encoder/flax_model.msgpack DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:80269e53c9d09b1f19c6227cf903a5032878ed31ea8b49b8ecfa7808b81568d9
3
- size 492248682
 
 
 
 
text_encoder/model.onnx DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:e27bafa0b3029ad637ef3ace24ce1efe85b8d0dbd22e03a2e70bda6fc88963a1
3
- size 492587457
 
 
 
 
text_encoder_2/config.json CHANGED
@@ -1,24 +1,3 @@
1
- {
2
- "architectures": [
3
- "CLIPTextModelWithProjection"
4
- ],
5
- "attention_dropout": 0.0,
6
- "bos_token_id": 0,
7
- "dropout": 0.0,
8
- "eos_token_id": 2,
9
- "hidden_act": "gelu",
10
- "hidden_size": 1280,
11
- "initializer_factor": 1.0,
12
- "initializer_range": 0.02,
13
- "intermediate_size": 5120,
14
- "layer_norm_eps": 1e-05,
15
- "max_position_embeddings": 77,
16
- "model_type": "clip_text_model",
17
- "num_attention_heads": 20,
18
- "num_hidden_layers": 32,
19
- "pad_token_id": 1,
20
- "projection_dim": 1280,
21
- "torch_dtype": "float16",
22
- "transformers_version": "4.32.0.dev0",
23
- "vocab_size": 49408
24
- }
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a892d1c3a69a7e9247a24de2bc1d5891e3109a54696e53be20093af671072c34
3
+ size 575
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
text_encoder_2/flax_model.msgpack DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:dc025fc8d206bafd2ebf2f2cbf0b6f791c314612b5613c3737bf368236ac657f
3
- size 2778657095
 
 
 
 
text_encoder_2/model.onnx DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:162042ac6556e73f93d4172d4c67532c1cbe4dc7a6a8fa7e44dd2e3d7cbb772b
3
- size 1041992
 
 
 
 
text_encoder_2/model.onnx_data DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:3da7ac65349fbd092e836e3eeca2c22811317bc804fd70af157b4550f2d4bcb5
3
- size 2778639360
 
 
 
 
tokenizer/merges.txt CHANGED
The diff for this file is too large to render. See raw diff
 
tokenizer/special_tokens_map.json CHANGED
@@ -1,24 +1,3 @@
1
- {
2
- "bos_token": {
3
- "content": "<|startoftext|>",
4
- "lstrip": false,
5
- "normalized": true,
6
- "rstrip": false,
7
- "single_word": false
8
- },
9
- "eos_token": {
10
- "content": "<|endoftext|>",
11
- "lstrip": false,
12
- "normalized": true,
13
- "rstrip": false,
14
- "single_word": false
15
- },
16
- "pad_token": "<|endoftext|>",
17
- "unk_token": {
18
- "content": "<|endoftext|>",
19
- "lstrip": false,
20
- "normalized": true,
21
- "rstrip": false,
22
- "single_word": false
23
- }
24
- }
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c4864a9376a8401918425bed71fc14fc0e81f9b59ec45c1cf96cccb2df508eac
3
+ size 472
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
tokenizer/tokenizer_config.json CHANGED
@@ -1,33 +1,3 @@
1
- {
2
- "add_prefix_space": false,
3
- "bos_token": {
4
- "__type": "AddedToken",
5
- "content": "<|startoftext|>",
6
- "lstrip": false,
7
- "normalized": true,
8
- "rstrip": false,
9
- "single_word": false
10
- },
11
- "clean_up_tokenization_spaces": true,
12
- "do_lower_case": true,
13
- "eos_token": {
14
- "__type": "AddedToken",
15
- "content": "<|endoftext|>",
16
- "lstrip": false,
17
- "normalized": true,
18
- "rstrip": false,
19
- "single_word": false
20
- },
21
- "errors": "replace",
22
- "model_max_length": 77,
23
- "pad_token": "<|endoftext|>",
24
- "tokenizer_class": "CLIPTokenizer",
25
- "unk_token": {
26
- "__type": "AddedToken",
27
- "content": "<|endoftext|>",
28
- "lstrip": false,
29
- "normalized": true,
30
- "rstrip": false,
31
- "single_word": false
32
- }
33
- }
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:19d7b034cb0cc3ce9766c2231373ab8aa8991fc72e2c8f76558bfaae3de0d563
3
+ size 737
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
tokenizer/vocab.json CHANGED
The diff for this file is too large to render. See raw diff
 
tokenizer_2/merges.txt CHANGED
The diff for this file is too large to render. See raw diff
 
tokenizer_2/special_tokens_map.json CHANGED
@@ -1,24 +1,3 @@
1
- {
2
- "bos_token": {
3
- "content": "<|startoftext|>",
4
- "lstrip": false,
5
- "normalized": true,
6
- "rstrip": false,
7
- "single_word": false
8
- },
9
- "eos_token": {
10
- "content": "<|endoftext|>",
11
- "lstrip": false,
12
- "normalized": true,
13
- "rstrip": false,
14
- "single_word": false
15
- },
16
- "pad_token": "!",
17
- "unk_token": {
18
- "content": "<|endoftext|>",
19
- "lstrip": false,
20
- "normalized": true,
21
- "rstrip": false,
22
- "single_word": false
23
- }
24
- }
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f118ab3a983206e4f32583448de6bd6aae4ee21869135cef1f5848a753cdaab6
3
+ size 460
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
tokenizer_2/tokenizer_config.json CHANGED
@@ -1,33 +1,3 @@
1
- {
2
- "add_prefix_space": false,
3
- "bos_token": {
4
- "__type": "AddedToken",
5
- "content": "<|startoftext|>",
6
- "lstrip": false,
7
- "normalized": true,
8
- "rstrip": false,
9
- "single_word": false
10
- },
11
- "clean_up_tokenization_spaces": true,
12
- "do_lower_case": true,
13
- "eos_token": {
14
- "__type": "AddedToken",
15
- "content": "<|endoftext|>",
16
- "lstrip": false,
17
- "normalized": true,
18
- "rstrip": false,
19
- "single_word": false
20
- },
21
- "errors": "replace",
22
- "model_max_length": 77,
23
- "pad_token": "!",
24
- "tokenizer_class": "CLIPTokenizer",
25
- "unk_token": {
26
- "__type": "AddedToken",
27
- "content": "<|endoftext|>",
28
- "lstrip": false,
29
- "normalized": true,
30
- "rstrip": false,
31
- "single_word": false
32
- }
33
- }
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c9d23941f76a41cbd50eda9290f57be7828f0a7a677939e9ef181f7e12bd1bdf
3
+ size 725
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
tokenizer_2/vocab.json CHANGED
The diff for this file is too large to render. See raw diff
 
unet/config.json CHANGED
@@ -1,69 +1,3 @@
1
- {
2
- "_class_name": "UNet2DConditionModel",
3
- "_diffusers_version": "0.19.0.dev0",
4
- "act_fn": "silu",
5
- "addition_embed_type": "text_time",
6
- "addition_embed_type_num_heads": 64,
7
- "addition_time_embed_dim": 256,
8
- "attention_head_dim": [
9
- 5,
10
- 10,
11
- 20
12
- ],
13
- "block_out_channels": [
14
- 320,
15
- 640,
16
- 1280
17
- ],
18
- "center_input_sample": false,
19
- "class_embed_type": null,
20
- "class_embeddings_concat": false,
21
- "conv_in_kernel": 3,
22
- "conv_out_kernel": 3,
23
- "cross_attention_dim": 2048,
24
- "cross_attention_norm": null,
25
- "down_block_types": [
26
- "DownBlock2D",
27
- "CrossAttnDownBlock2D",
28
- "CrossAttnDownBlock2D"
29
- ],
30
- "downsample_padding": 1,
31
- "dual_cross_attention": false,
32
- "encoder_hid_dim": null,
33
- "encoder_hid_dim_type": null,
34
- "flip_sin_to_cos": true,
35
- "freq_shift": 0,
36
- "in_channels": 4,
37
- "layers_per_block": 2,
38
- "mid_block_only_cross_attention": null,
39
- "mid_block_scale_factor": 1,
40
- "mid_block_type": "UNetMidBlock2DCrossAttn",
41
- "norm_eps": 1e-05,
42
- "norm_num_groups": 32,
43
- "num_attention_heads": null,
44
- "num_class_embeds": null,
45
- "only_cross_attention": false,
46
- "out_channels": 4,
47
- "projection_class_embeddings_input_dim": 2816,
48
- "resnet_out_scale_factor": 1.0,
49
- "resnet_skip_time_act": false,
50
- "resnet_time_scale_shift": "default",
51
- "sample_size": 128,
52
- "time_cond_proj_dim": null,
53
- "time_embedding_act_fn": null,
54
- "time_embedding_dim": null,
55
- "time_embedding_type": "positional",
56
- "timestep_post_act": null,
57
- "transformer_layers_per_block": [
58
- 1,
59
- 2,
60
- 10
61
- ],
62
- "up_block_types": [
63
- "CrossAttnUpBlock2D",
64
- "CrossAttnUpBlock2D",
65
- "UpBlock2D"
66
- ],
67
- "upcast_attention": null,
68
- "use_linear_projection": true
69
- }
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:30ebc70750223e59006f7f2b4e1e6c102570aa19a9c4ae3e1fbe7591332dbae6
3
+ size 1680
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
unet/diffusion_flax_model.msgpack DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:0b98927b43cc771954a394ed19c08ecd3064a09e6e28b1d762270978ba6a9533
3
- size 10269915611
 
 
 
 
unet/model.onnx DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:6f001c090fb13c0d0f8b0a5916da814712a94400b99471fabe77c1c4a51ecaaf
3
- size 7293842
 
 
 
 
unet/model.onnx_data DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:7905b71f0044c5ea8fea8ca0451bd73cad53492ad50f964c49c3ff9250afa350
3
- size 10269854720
 
 
 
 
vae/config.json CHANGED
@@ -1,32 +1,3 @@
1
- {
2
- "_class_name": "AutoencoderKL",
3
- "_diffusers_version": "0.20.0.dev0",
4
- "_name_or_path": "../sdxl-vae/",
5
- "act_fn": "silu",
6
- "block_out_channels": [
7
- 128,
8
- 256,
9
- 512,
10
- 512
11
- ],
12
- "down_block_types": [
13
- "DownEncoderBlock2D",
14
- "DownEncoderBlock2D",
15
- "DownEncoderBlock2D",
16
- "DownEncoderBlock2D"
17
- ],
18
- "force_upcast": true,
19
- "in_channels": 3,
20
- "latent_channels": 4,
21
- "layers_per_block": 2,
22
- "norm_num_groups": 32,
23
- "out_channels": 3,
24
- "sample_size": 1024,
25
- "scaling_factor": 0.13025,
26
- "up_block_types": [
27
- "UpDecoderBlock2D",
28
- "UpDecoderBlock2D",
29
- "UpDecoderBlock2D",
30
- "UpDecoderBlock2D"
31
- ]
32
- }
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:89a914a415bc3211fe15306c5b1d89774d928d6cc6c91dc8e86208710829355c
3
+ size 607
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
vae/diffusion_flax_model.msgpack DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:1857495e1d4e28140013764ffd620f6aa1fb0311dd43d7cf083f72704c69e3ee
3
- size 334623853
 
 
 
 
vae/diffusion_pytorch_model.fp16.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:bcb60880a46b63dea58e9bc591abe15f8350bde47b405f9c38f4be70c6161e68
3
  size 167335342
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:eb6516ab7e1104d5d1a174a4d65c57835ae38061531d0a2192103aecfb790cc1
3
  size 167335342
vae/diffusion_pytorch_model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:1598f3d24932bcfe6634e8b618ea1e30ab1d57f5aad13a6d2de446d2199f2341
3
  size 334643268
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:27ed3b02e09638568e99d4398c67bc654dde04e6c0db61fb2d21dba630e7058a
3
  size 334643268
vae_1_0/config.json DELETED
@@ -1,31 +0,0 @@
1
- {
2
- "_class_name": "AutoencoderKL",
3
- "_diffusers_version": "0.19.0.dev0",
4
- "act_fn": "silu",
5
- "block_out_channels": [
6
- 128,
7
- 256,
8
- 512,
9
- 512
10
- ],
11
- "down_block_types": [
12
- "DownEncoderBlock2D",
13
- "DownEncoderBlock2D",
14
- "DownEncoderBlock2D",
15
- "DownEncoderBlock2D"
16
- ],
17
- "force_upcast": true,
18
- "in_channels": 3,
19
- "latent_channels": 4,
20
- "layers_per_block": 2,
21
- "norm_num_groups": 32,
22
- "out_channels": 3,
23
- "sample_size": 1024,
24
- "scaling_factor": 0.13025,
25
- "up_block_types": [
26
- "UpDecoderBlock2D",
27
- "UpDecoderBlock2D",
28
- "UpDecoderBlock2D",
29
- "UpDecoderBlock2D"
30
- ]
31
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
vae_1_0/diffusion_pytorch_model.fp16.safetensors DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:eb6516ab7e1104d5d1a174a4d65c57835ae38061531d0a2192103aecfb790cc1
3
- size 167335342
 
 
 
 
vae_1_0/diffusion_pytorch_model.safetensors DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:27ed3b02e09638568e99d4398c67bc654dde04e6c0db61fb2d21dba630e7058a
3
- size 334643268
 
 
 
 
vae_decoder/config.json CHANGED
@@ -1,31 +1,3 @@
1
- {
2
- "_class_name": "AutoencoderKL",
3
- "_diffusers_version": "0.19.0.dev0",
4
- "act_fn": "silu",
5
- "block_out_channels": [
6
- 128,
7
- 256,
8
- 512,
9
- 512
10
- ],
11
- "down_block_types": [
12
- "DownEncoderBlock2D",
13
- "DownEncoderBlock2D",
14
- "DownEncoderBlock2D",
15
- "DownEncoderBlock2D"
16
- ],
17
- "force_upcast": true,
18
- "in_channels": 3,
19
- "latent_channels": 4,
20
- "layers_per_block": 2,
21
- "norm_num_groups": 32,
22
- "out_channels": 3,
23
- "sample_size": 1024,
24
- "scaling_factor": 0.13025,
25
- "up_block_types": [
26
- "UpDecoderBlock2D",
27
- "UpDecoderBlock2D",
28
- "UpDecoderBlock2D",
29
- "UpDecoderBlock2D"
30
- ]
31
- }
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:89a914a415bc3211fe15306c5b1d89774d928d6cc6c91dc8e86208710829355c
3
+ size 607
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
vae_decoder/model.onnx DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:0892c5e28b35791140467f7b9c9fa148c24238a5f0c381b1d4c22dcd2ed365cb
3
- size 198093688
 
 
 
 
vae_encoder/config.json CHANGED
@@ -1,31 +1,3 @@
1
- {
2
- "_class_name": "AutoencoderKL",
3
- "_diffusers_version": "0.19.0.dev0",
4
- "act_fn": "silu",
5
- "block_out_channels": [
6
- 128,
7
- 256,
8
- 512,
9
- 512
10
- ],
11
- "down_block_types": [
12
- "DownEncoderBlock2D",
13
- "DownEncoderBlock2D",
14
- "DownEncoderBlock2D",
15
- "DownEncoderBlock2D"
16
- ],
17
- "force_upcast": true,
18
- "in_channels": 3,
19
- "latent_channels": 4,
20
- "layers_per_block": 2,
21
- "norm_num_groups": 32,
22
- "out_channels": 3,
23
- "sample_size": 1024,
24
- "scaling_factor": 0.13025,
25
- "up_block_types": [
26
- "UpDecoderBlock2D",
27
- "UpDecoderBlock2D",
28
- "UpDecoderBlock2D",
29
- "UpDecoderBlock2D"
30
- ]
31
- }
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:89a914a415bc3211fe15306c5b1d89774d928d6cc6c91dc8e86208710829355c
3
+ size 607
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
vae_encoder/model.onnx DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:7b117fbb21531efd59d68c95682392785999bf3e0c2ce95647c6e0de9af36e74
3
- size 136775724
 
 
 
 
vae_encoder/openvino_model.xml CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:a3ec36b6f3f74d0cb2b005b7c0a1e5426c5ef1e7163b33e463ea57fa049c5996
3
  size 849965
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bb14f107c2157ea6ff017d46000feff85ada55430d591c1f8ea49ba13a17d9df
3
  size 849965