IntMeGroup commited on
Commit
e250a24
·
verified ·
1 Parent(s): 5b571f6

Upload folder using huggingface_hub

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. README.md +4 -0
  2. lavie_base.pt +3 -0
  3. lavie_interpolation.pt +3 -0
  4. lavie_vsr.pt +3 -0
  5. put_pre-trained_weights_here.txt +1 -0
  6. stable-diffusion-v1-4/.gitattributes +32 -0
  7. stable-diffusion-v1-4/README.md +324 -0
  8. stable-diffusion-v1-4/feature_extractor/preprocessor_config.json +20 -0
  9. stable-diffusion-v1-4/model_index.json +32 -0
  10. stable-diffusion-v1-4/safety_checker/config.json +171 -0
  11. stable-diffusion-v1-4/safety_checker/model.fp16.safetensors +3 -0
  12. stable-diffusion-v1-4/safety_checker/model.safetensors +3 -0
  13. stable-diffusion-v1-4/safety_checker/pytorch_model.bin +3 -0
  14. stable-diffusion-v1-4/safety_checker/pytorch_model.fp16.bin +3 -0
  15. stable-diffusion-v1-4/scheduler/.ipynb_checkpoints/scheduler_config-checkpoint.json +9 -0
  16. stable-diffusion-v1-4/scheduler/scheduler_config.json +13 -0
  17. stable-diffusion-v1-4/text_encoder/config.json +24 -0
  18. stable-diffusion-v1-4/text_encoder/model.fp16.safetensors +3 -0
  19. stable-diffusion-v1-4/text_encoder/model.safetensors +3 -0
  20. stable-diffusion-v1-4/text_encoder/pytorch_model.bin +3 -0
  21. stable-diffusion-v1-4/text_encoder/pytorch_model.fp16.bin +3 -0
  22. stable-diffusion-v1-4/tokenizer/merges.txt +0 -0
  23. stable-diffusion-v1-4/tokenizer/special_tokens_map.json +24 -0
  24. stable-diffusion-v1-4/tokenizer/tokenizer_config.json +34 -0
  25. stable-diffusion-v1-4/tokenizer/vocab.json +0 -0
  26. stable-diffusion-v1-4/unet/config.json +36 -0
  27. stable-diffusion-v1-4/unet/diffusion_pytorch_model.bin +3 -0
  28. stable-diffusion-v1-4/unet/diffusion_pytorch_model.fp16.bin +3 -0
  29. stable-diffusion-v1-4/unet/diffusion_pytorch_model.fp16.safetensors +3 -0
  30. stable-diffusion-v1-4/unet/diffusion_pytorch_model.non_ema.bin +3 -0
  31. stable-diffusion-v1-4/unet/diffusion_pytorch_model.non_ema.safetensors +3 -0
  32. stable-diffusion-v1-4/unet/diffusion_pytorch_model.safetensors +3 -0
  33. stable-diffusion-v1-4/v1-variants-scores.jpg +0 -0
  34. stable-diffusion-v1-4/vae/config.json +29 -0
  35. stable-diffusion-v1-4/vae/diffusion_pytorch_model.bin +3 -0
  36. stable-diffusion-v1-4/vae/diffusion_pytorch_model.fp16.bin +3 -0
  37. stable-diffusion-v1-4/vae/diffusion_pytorch_model.fp16.safetensors +3 -0
  38. stable-diffusion-v1-4/vae/diffusion_pytorch_model.safetensors +3 -0
  39. stable-diffusion-x4-upscaler/.gitattributes +34 -0
  40. stable-diffusion-x4-upscaler/README.md +193 -0
  41. stable-diffusion-x4-upscaler/low_res_scheduler/scheduler_config.json +12 -0
  42. stable-diffusion-x4-upscaler/model_index.json +29 -0
  43. stable-diffusion-x4-upscaler/scheduler/scheduler_config.json +14 -0
  44. stable-diffusion-x4-upscaler/text_encoder/config.json +25 -0
  45. stable-diffusion-x4-upscaler/text_encoder/model.fp16.safetensors +3 -0
  46. stable-diffusion-x4-upscaler/text_encoder/model.safetensors +3 -0
  47. stable-diffusion-x4-upscaler/text_encoder/pytorch_model.bin +3 -0
  48. stable-diffusion-x4-upscaler/text_encoder/pytorch_model.fp16.bin +3 -0
  49. stable-diffusion-x4-upscaler/tokenizer/merges.txt +0 -0
  50. stable-diffusion-x4-upscaler/tokenizer/special_tokens_map.json +24 -0
README.md ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ ---
2
+ tags:
3
+ - text-to-video
4
+ ---
lavie_base.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:043d383d8b35289e98862cf7c6249f198db641f8690f283679942fc5af32ef2f
3
+ size 3636842083
lavie_interpolation.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fa076554e18b30ecce4606b0dbb5f3ad2ef5a1255c5dd7a05b92ccb614dd6830
3
+ size 3636857733
lavie_vsr.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7e138c19a4ccb8dfc6c53f507016457555b6efeab8e37a15ff4bfa74de8c3c04
3
+ size 2764614443
put_pre-trained_weights_here.txt ADDED
@@ -0,0 +1 @@
 
 
1
+ put pre-trianed weights here.
stable-diffusion-v1-4/.gitattributes ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ *.7z filter=lfs diff=lfs merge=lfs -text
2
+ *.arrow filter=lfs diff=lfs merge=lfs -text
3
+ *.bin filter=lfs diff=lfs merge=lfs -text
4
+ *.bz2 filter=lfs diff=lfs merge=lfs -text
5
+ *.ftz filter=lfs diff=lfs merge=lfs -text
6
+ *.gz filter=lfs diff=lfs merge=lfs -text
7
+ *.h5 filter=lfs diff=lfs merge=lfs -text
8
+ *.joblib filter=lfs diff=lfs merge=lfs -text
9
+ *.lfs.* filter=lfs diff=lfs merge=lfs -text
10
+ *.model filter=lfs diff=lfs merge=lfs -text
11
+ *.msgpack filter=lfs diff=lfs merge=lfs -text
12
+ *.npy filter=lfs diff=lfs merge=lfs -text
13
+ *.npz filter=lfs diff=lfs merge=lfs -text
14
+ *.onnx filter=lfs diff=lfs merge=lfs -text
15
+ *.ot filter=lfs diff=lfs merge=lfs -text
16
+ *.parquet filter=lfs diff=lfs merge=lfs -text
17
+ *.pb filter=lfs diff=lfs merge=lfs -text
18
+ *.pickle filter=lfs diff=lfs merge=lfs -text
19
+ *.pkl filter=lfs diff=lfs merge=lfs -text
20
+ *.pt filter=lfs diff=lfs merge=lfs -text
21
+ *.pth filter=lfs diff=lfs merge=lfs -text
22
+ *.rar filter=lfs diff=lfs merge=lfs -text
23
+ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
24
+ *.tar.* filter=lfs diff=lfs merge=lfs -text
25
+ *.tflite filter=lfs diff=lfs merge=lfs -text
26
+ *.tgz filter=lfs diff=lfs merge=lfs -text
27
+ *.wasm filter=lfs diff=lfs merge=lfs -text
28
+ *.xz filter=lfs diff=lfs merge=lfs -text
29
+ *.zip filter=lfs diff=lfs merge=lfs -text
30
+ *.zst filter=lfs diff=lfs merge=lfs -text
31
+ *tfevents* filter=lfs diff=lfs merge=lfs -text
32
+ *.safetensors filter=lfs diff=lfs merge=lfs -text
stable-diffusion-v1-4/README.md ADDED
@@ -0,0 +1,324 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: creativeml-openrail-m
3
+ tags:
4
+ - stable-diffusion
5
+ - stable-diffusion-diffusers
6
+ - text-to-image
7
+ widget:
8
+ - text: "A high tech solarpunk utopia in the Amazon rainforest"
9
+ example_title: Amazon rainforest
10
+ - text: "A pikachu fine dining with a view to the Eiffel Tower"
11
+ example_title: Pikachu in Paris
12
+ - text: "A mecha robot in a favela in expressionist style"
13
+ example_title: Expressionist robot
14
+ - text: "an insect robot preparing a delicious meal"
15
+ example_title: Insect robot
16
+ - text: "A small cabin on top of a snowy mountain in the style of Disney, artstation"
17
+ example_title: Snowy disney cabin
18
+ extra_gated_prompt: |-
19
+ This model is open access and available to all, with a CreativeML OpenRAIL-M license further specifying rights and usage.
20
+ The CreativeML OpenRAIL License specifies:
21
+
22
+ 1. You can't use the model to deliberately produce nor share illegal or harmful outputs or content
23
+ 2. The authors claim no rights on the outputs you generate, you are free to use them and are accountable for their use which must not go against the provisions set in the license
24
+ 3. You may re-distribute the weights and use the model commercially and/or as a service. If you do, please be aware you have to include the same use restrictions as the ones in the license and share a copy of the CreativeML OpenRAIL-M to all your users (please read the license entirely and carefully)
25
+ Please read the full license carefully here: https://huggingface.co/spaces/CompVis/stable-diffusion-license
26
+
27
+ extra_gated_heading: Please read the LICENSE to access this model
28
+ ---
29
+
30
+ # Stable Diffusion v1-4 Model Card
31
+
32
+ Stable Diffusion is a latent text-to-image diffusion model capable of generating photo-realistic images given any text input.
33
+ For more information about how Stable Diffusion functions, please have a look at [🤗's Stable Diffusion with 🧨Diffusers blog](https://huggingface.co/blog/stable_diffusion).
34
+
35
+ The **Stable-Diffusion-v1-4** checkpoint was initialized with the weights of the [Stable-Diffusion-v1-2](https:/steps/huggingface.co/CompVis/stable-diffusion-v1-2)
36
+ checkpoint and subsequently fine-tuned on 225k steps at resolution 512x512 on "laion-aesthetics v2 5+" and 10% dropping of the text-conditioning to improve [classifier-free guidance sampling](https://arxiv.org/abs/2207.12598).
37
+
38
+ This weights here are intended to be used with the 🧨 Diffusers library. If you are looking for the weights to be loaded into the CompVis Stable Diffusion codebase, [come here](https://huggingface.co/CompVis/stable-diffusion-v-1-4-original)
39
+
40
+ ## Model Details
41
+ - **Developed by:** Robin Rombach, Patrick Esser
42
+ - **Model type:** Diffusion-based text-to-image generation model
43
+ - **Language(s):** English
44
+ - **License:** [The CreativeML OpenRAIL M license](https://huggingface.co/spaces/CompVis/stable-diffusion-license) is an [Open RAIL M license](https://www.licenses.ai/blog/2022/8/18/naming-convention-of-responsible-ai-licenses), adapted from the work that [BigScience](https://bigscience.huggingface.co/) and [the RAIL Initiative](https://www.licenses.ai/) are jointly carrying in the area of responsible AI licensing. See also [the article about the BLOOM Open RAIL license](https://bigscience.huggingface.co/blog/the-bigscience-rail-license) on which our license is based.
45
+ - **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 a fixed, pretrained text encoder ([CLIP ViT-L/14](https://arxiv.org/abs/2103.00020)) as suggested in the [Imagen paper](https://arxiv.org/abs/2205.11487).
46
+ - **Resources for more information:** [GitHub Repository](https://github.com/CompVis/stable-diffusion), [Paper](https://arxiv.org/abs/2112.10752).
47
+ - **Cite as:**
48
+
49
+ @InProceedings{Rombach_2022_CVPR,
50
+ author = {Rombach, Robin and Blattmann, Andreas and Lorenz, Dominik and Esser, Patrick and Ommer, Bj\"orn},
51
+ title = {High-Resolution Image Synthesis With Latent Diffusion Models},
52
+ booktitle = {Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR)},
53
+ month = {June},
54
+ year = {2022},
55
+ pages = {10684-10695}
56
+ }
57
+
58
+ ## Examples
59
+
60
+ We recommend using [🤗's Diffusers library](https://github.com/huggingface/diffusers) to run Stable Diffusion.
61
+
62
+ ### PyTorch
63
+
64
+ ```bash
65
+ pip install --upgrade diffusers transformers scipy
66
+ ```
67
+
68
+ Running the pipeline with the default PNDM scheduler:
69
+
70
+ ```python
71
+ import torch
72
+ from diffusers import StableDiffusionPipeline
73
+
74
+ model_id = "CompVis/stable-diffusion-v1-4"
75
+ device = "cuda"
76
+
77
+
78
+ pipe = StableDiffusionPipeline.from_pretrained(model_id, torch_dtype=torch.float16)
79
+ pipe = pipe.to(device)
80
+
81
+ prompt = "a photo of an astronaut riding a horse on mars"
82
+ image = pipe(prompt).images[0]
83
+
84
+ image.save("astronaut_rides_horse.png")
85
+ ```
86
+
87
+ **Note**:
88
+ If you are limited by GPU memory and have less than 4GB of GPU RAM available, please make sure to load the StableDiffusionPipeline in float16 precision instead of the default float32 precision as done above. You can do so by telling diffusers to expect the weights to be in float16 precision:
89
+
90
+
91
+ ```py
92
+ import torch
93
+
94
+ pipe = StableDiffusionPipeline.from_pretrained(model_id, torch_dtype=torch.float16)
95
+ pipe = pipe.to(device)
96
+ pipe.enable_attention_slicing()
97
+
98
+ prompt = "a photo of an astronaut riding a horse on mars"
99
+ image = pipe(prompt).images[0]
100
+
101
+ image.save("astronaut_rides_horse.png")
102
+ ```
103
+
104
+ To swap out the noise scheduler, pass it to `from_pretrained`:
105
+
106
+ ```python
107
+ from diffusers import StableDiffusionPipeline, EulerDiscreteScheduler
108
+
109
+ model_id = "CompVis/stable-diffusion-v1-4"
110
+
111
+ # Use the Euler scheduler here instead
112
+ scheduler = EulerDiscreteScheduler.from_pretrained(model_id, subfolder="scheduler")
113
+ pipe = StableDiffusionPipeline.from_pretrained(model_id, scheduler=scheduler, torch_dtype=torch.float16)
114
+ pipe = pipe.to("cuda")
115
+
116
+ prompt = "a photo of an astronaut riding a horse on mars"
117
+ image = pipe(prompt).images[0]
118
+
119
+ image.save("astronaut_rides_horse.png")
120
+ ```
121
+
122
+ ### JAX/Flax
123
+
124
+ To use StableDiffusion on TPUs and GPUs for faster inference you can leverage JAX/Flax.
125
+
126
+ Running the pipeline with default PNDMScheduler
127
+
128
+ ```python
129
+ import jax
130
+ import numpy as np
131
+ from flax.jax_utils import replicate
132
+ from flax.training.common_utils import shard
133
+
134
+ from diffusers import FlaxStableDiffusionPipeline
135
+
136
+ pipeline, params = FlaxStableDiffusionPipeline.from_pretrained(
137
+ "CompVis/stable-diffusion-v1-4", revision="flax", dtype=jax.numpy.bfloat16
138
+ )
139
+
140
+ prompt = "a photo of an astronaut riding a horse on mars"
141
+
142
+ prng_seed = jax.random.PRNGKey(0)
143
+ num_inference_steps = 50
144
+
145
+ num_samples = jax.device_count()
146
+ prompt = num_samples * [prompt]
147
+ prompt_ids = pipeline.prepare_inputs(prompt)
148
+
149
+ # shard inputs and rng
150
+ params = replicate(params)
151
+ prng_seed = jax.random.split(prng_seed, num_samples)
152
+ prompt_ids = shard(prompt_ids)
153
+
154
+ images = pipeline(prompt_ids, params, prng_seed, num_inference_steps, jit=True).images
155
+ images = pipeline.numpy_to_pil(np.asarray(images.reshape((num_samples,) + images.shape[-3:])))
156
+ ```
157
+
158
+ **Note**:
159
+ If you are limited by TPU memory, please make sure to load the `FlaxStableDiffusionPipeline` in `bfloat16` precision instead of the default `float32` precision as done above. You can do so by telling diffusers to load the weights from "bf16" branch.
160
+
161
+ ```python
162
+ import jax
163
+ import numpy as np
164
+ from flax.jax_utils import replicate
165
+ from flax.training.common_utils import shard
166
+
167
+ from diffusers import FlaxStableDiffusionPipeline
168
+
169
+ pipeline, params = FlaxStableDiffusionPipeline.from_pretrained(
170
+ "CompVis/stable-diffusion-v1-4", revision="bf16", dtype=jax.numpy.bfloat16
171
+ )
172
+
173
+ prompt = "a photo of an astronaut riding a horse on mars"
174
+
175
+ prng_seed = jax.random.PRNGKey(0)
176
+ num_inference_steps = 50
177
+
178
+ num_samples = jax.device_count()
179
+ prompt = num_samples * [prompt]
180
+ prompt_ids = pipeline.prepare_inputs(prompt)
181
+
182
+ # shard inputs and rng
183
+ params = replicate(params)
184
+ prng_seed = jax.random.split(prng_seed, num_samples)
185
+ prompt_ids = shard(prompt_ids)
186
+
187
+ images = pipeline(prompt_ids, params, prng_seed, num_inference_steps, jit=True).images
188
+ images = pipeline.numpy_to_pil(np.asarray(images.reshape((num_samples,) + images.shape[-3:])))
189
+ ```
190
+
191
+ # Uses
192
+
193
+ ## Direct Use
194
+ The model is intended for research purposes only. Possible research areas and
195
+ tasks include
196
+
197
+ - Safe deployment of models which have the potential to generate harmful content.
198
+ - Probing and understanding the limitations and biases of generative models.
199
+ - Generation of artworks and use in design and other artistic processes.
200
+ - Applications in educational or creative tools.
201
+ - Research on generative models.
202
+
203
+ Excluded uses are described below.
204
+
205
+ ### Misuse, Malicious Use, and Out-of-Scope Use
206
+ _Note: This section is taken from the [DALLE-MINI model card](https://huggingface.co/dalle-mini/dalle-mini), but applies in the same way to Stable Diffusion v1_.
207
+
208
+
209
+ The model should not be used to intentionally create or disseminate images that create hostile or alienating environments for people. This includes generating images that people would foreseeably find disturbing, distressing, or offensive; or content that propagates historical or current stereotypes.
210
+
211
+ #### Out-of-Scope Use
212
+ 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.
213
+
214
+ #### Misuse and Malicious Use
215
+ Using the model to generate content that is cruel to individuals is a misuse of this model. This includes, but is not limited to:
216
+
217
+ - Generating demeaning, dehumanizing, or otherwise harmful representations of people or their environments, cultures, religions, etc.
218
+ - Intentionally promoting or propagating discriminatory content or harmful stereotypes.
219
+ - Impersonating individuals without their consent.
220
+ - Sexual content without consent of the people who might see it.
221
+ - Mis- and disinformation
222
+ - Representations of egregious violence and gore
223
+ - Sharing of copyrighted or licensed material in violation of its terms of use.
224
+ - Sharing content that is an alteration of copyrighted or licensed material in violation of its terms of use.
225
+
226
+ ## Limitations and Bias
227
+
228
+ ### Limitations
229
+
230
+ - The model does not achieve perfect photorealism
231
+ - The model cannot render legible text
232
+ - The model does not perform well on more difficult tasks which involve compositionality, such as rendering an image corresponding to “A red cube on top of a blue sphere”
233
+ - Faces and people in general may not be generated properly.
234
+ - The model was trained mainly with English captions and will not work as well in other languages.
235
+ - The autoencoding part of the model is lossy
236
+ - The model was trained on a large-scale dataset
237
+ [LAION-5B](https://laion.ai/blog/laion-5b/) which contains adult material
238
+ and is not fit for product use without additional safety mechanisms and
239
+ considerations.
240
+ - No additional measures were used to deduplicate the dataset. As a result, we observe some degree of memorization for images that are duplicated in the training data.
241
+ The training data can be searched at [https://rom1504.github.io/clip-retrieval/](https://rom1504.github.io/clip-retrieval/) to possibly assist in the detection of memorized images.
242
+
243
+ ### Bias
244
+
245
+ While the capabilities of image generation models are impressive, they can also reinforce or exacerbate social biases.
246
+ Stable Diffusion v1 was trained on subsets of [LAION-2B(en)](https://laion.ai/blog/laion-5b/),
247
+ which consists of images that are primarily limited to English descriptions.
248
+ Texts and images from communities and cultures that use other languages are likely to be insufficiently accounted for.
249
+ This affects the overall output of the model, as white and western cultures are often set as the default. Further, the
250
+ ability of the model to generate content with non-English prompts is significantly worse than with English-language prompts.
251
+
252
+ ### Safety Module
253
+
254
+ The intended use of this model is with the [Safety Checker](https://github.com/huggingface/diffusers/blob/main/src/diffusers/pipelines/stable_diffusion/safety_checker.py) in Diffusers.
255
+ This checker works by checking model outputs against known hard-coded NSFW concepts.
256
+ The concepts are intentionally hidden to reduce the likelihood of reverse-engineering this filter.
257
+ Specifically, the checker compares the class probability of harmful concepts in the embedding space of the `CLIPTextModel` *after generation* of the images.
258
+ The concepts are passed into the model with the generated image and compared to a hand-engineered weight for each NSFW concept.
259
+
260
+
261
+ ## Training
262
+
263
+ **Training Data**
264
+ The model developers used the following dataset for training the model:
265
+
266
+ - LAION-2B (en) and subsets thereof (see next section)
267
+
268
+ **Training Procedure**
269
+ Stable Diffusion v1-4 is a latent diffusion model which combines an autoencoder with a diffusion model that is trained in the latent space of the autoencoder. During training,
270
+
271
+ - Images are encoded through an encoder, which turns images into latent representations. The autoencoder uses a relative downsampling factor of 8 and maps images of shape H x W x 3 to latents of shape H/f x W/f x 4
272
+ - Text prompts are encoded through a ViT-L/14 text-encoder.
273
+ - The non-pooled output of the text encoder is fed into the UNet backbone of the latent diffusion model via cross-attention.
274
+ - The loss is a reconstruction objective between the noise that was added to the latent and the prediction made by the UNet.
275
+
276
+ We currently provide four checkpoints, which were trained as follows.
277
+ - [`stable-diffusion-v1-1`](https://huggingface.co/CompVis/stable-diffusion-v1-1): 237,000 steps at resolution `256x256` on [laion2B-en](https://huggingface.co/datasets/laion/laion2B-en).
278
+ 194,000 steps at resolution `512x512` on [laion-high-resolution](https://huggingface.co/datasets/laion/laion-high-resolution) (170M examples from LAION-5B with resolution `>= 1024x1024`).
279
+ - [`stable-diffusion-v1-2`](https://huggingface.co/CompVis/stable-diffusion-v1-2): Resumed from `stable-diffusion-v1-1`.
280
+ 515,000 steps at resolution `512x512` on "laion-improved-aesthetics" (a subset of laion2B-en,
281
+ filtered to images with an original size `>= 512x512`, estimated aesthetics score `> 5.0`, and an estimated watermark probability `< 0.5`. The watermark estimate is from the LAION-5B metadata, the aesthetics score is estimated using an [improved aesthetics estimator](https://github.com/christophschuhmann/improved-aesthetic-predictor)).
282
+ - [`stable-diffusion-v1-3`](https://huggingface.co/CompVis/stable-diffusion-v1-3): Resumed from `stable-diffusion-v1-2`. 195,000 steps at resolution `512x512` on "laion-improved-aesthetics" and 10 % dropping of the text-conditioning to improve [classifier-free guidance sampling](https://arxiv.org/abs/2207.12598).
283
+ - [`stable-diffusion-v1-4`](https://huggingface.co/CompVis/stable-diffusion-v1-4) Resumed from `stable-diffusion-v1-2`.225,000 steps at resolution `512x512` on "laion-aesthetics v2 5+" and 10 % dropping of the text-conditioning to improve [classifier-free guidance sampling](https://arxiv.org/abs/2207.12598).
284
+
285
+ - **Hardware:** 32 x 8 x A100 GPUs
286
+ - **Optimizer:** AdamW
287
+ - **Gradient Accumulations**: 2
288
+ - **Batch:** 32 x 8 x 2 x 4 = 2048
289
+ - **Learning rate:** warmup to 0.0001 for 10,000 steps and then kept constant
290
+
291
+ ## Evaluation Results
292
+ Evaluations with different classifier-free guidance scales (1.5, 2.0, 3.0, 4.0,
293
+ 5.0, 6.0, 7.0, 8.0) and 50 PLMS sampling
294
+ steps show the relative improvements of the checkpoints:
295
+
296
+ ![pareto](https://huggingface.co/CompVis/stable-diffusion/resolve/main/v1-variants-scores.jpg)
297
+
298
+ Evaluated using 50 PLMS steps and 10000 random prompts from the COCO2017 validation set, evaluated at 512x512 resolution. Not optimized for FID scores.
299
+ ## Environmental Impact
300
+
301
+ **Stable Diffusion v1** **Estimated Emissions**
302
+ Based on that information, we estimate the following CO2 emissions using the [Machine Learning Impact calculator](https://mlco2.github.io/impact#compute) presented in [Lacoste et al. (2019)](https://arxiv.org/abs/1910.09700). The hardware, runtime, cloud provider, and compute region were utilized to estimate the carbon impact.
303
+
304
+ - **Hardware Type:** A100 PCIe 40GB
305
+ - **Hours used:** 150000
306
+ - **Cloud Provider:** AWS
307
+ - **Compute Region:** US-east
308
+ - **Carbon Emitted (Power consumption x Time x Carbon produced based on location of power grid):** 11250 kg CO2 eq.
309
+
310
+
311
+ ## Citation
312
+
313
+ ```bibtex
314
+ @InProceedings{Rombach_2022_CVPR,
315
+ author = {Rombach, Robin and Blattmann, Andreas and Lorenz, Dominik and Esser, Patrick and Ommer, Bj\"orn},
316
+ title = {High-Resolution Image Synthesis With Latent Diffusion Models},
317
+ booktitle = {Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR)},
318
+ month = {June},
319
+ year = {2022},
320
+ pages = {10684-10695}
321
+ }
322
+ ```
323
+
324
+ *This model card was written by: Robin Rombach and Patrick Esser and is based on the [DALL-E Mini model card](https://huggingface.co/dalle-mini/dalle-mini).*
stable-diffusion-v1-4/feature_extractor/preprocessor_config.json ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "crop_size": 224,
3
+ "do_center_crop": true,
4
+ "do_convert_rgb": true,
5
+ "do_normalize": true,
6
+ "do_resize": true,
7
+ "feature_extractor_type": "CLIPFeatureExtractor",
8
+ "image_mean": [
9
+ 0.48145466,
10
+ 0.4578275,
11
+ 0.40821073
12
+ ],
13
+ "image_std": [
14
+ 0.26862954,
15
+ 0.26130258,
16
+ 0.27577711
17
+ ],
18
+ "resample": 3,
19
+ "size": 224
20
+ }
stable-diffusion-v1-4/model_index.json ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_class_name": "StableDiffusionPipeline",
3
+ "_diffusers_version": "0.2.2",
4
+ "feature_extractor": [
5
+ "transformers",
6
+ "CLIPImageProcessor"
7
+ ],
8
+ "safety_checker": [
9
+ "stable_diffusion",
10
+ "StableDiffusionSafetyChecker"
11
+ ],
12
+ "scheduler": [
13
+ "diffusers",
14
+ "PNDMScheduler"
15
+ ],
16
+ "text_encoder": [
17
+ "transformers",
18
+ "CLIPTextModel"
19
+ ],
20
+ "tokenizer": [
21
+ "transformers",
22
+ "CLIPTokenizer"
23
+ ],
24
+ "unet": [
25
+ "diffusers",
26
+ "UNet2DConditionModel"
27
+ ],
28
+ "vae": [
29
+ "diffusers",
30
+ "AutoencoderKL"
31
+ ]
32
+ }
stable-diffusion-v1-4/safety_checker/config.json ADDED
@@ -0,0 +1,171 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "./safety_module",
3
+ "architectures": [
4
+ "StableDiffusionSafetyChecker"
5
+ ],
6
+ "initializer_factor": 1.0,
7
+ "logit_scale_init_value": 2.6592,
8
+ "model_type": "clip",
9
+ "projection_dim": 768,
10
+ "text_config": {
11
+ "_name_or_path": "",
12
+ "add_cross_attention": false,
13
+ "architectures": null,
14
+ "attention_dropout": 0.0,
15
+ "bad_words_ids": null,
16
+ "bos_token_id": 0,
17
+ "chunk_size_feed_forward": 0,
18
+ "cross_attention_hidden_size": null,
19
+ "decoder_start_token_id": null,
20
+ "diversity_penalty": 0.0,
21
+ "do_sample": false,
22
+ "dropout": 0.0,
23
+ "early_stopping": false,
24
+ "encoder_no_repeat_ngram_size": 0,
25
+ "eos_token_id": 2,
26
+ "exponential_decay_length_penalty": null,
27
+ "finetuning_task": null,
28
+ "forced_bos_token_id": null,
29
+ "forced_eos_token_id": null,
30
+ "hidden_act": "quick_gelu",
31
+ "hidden_size": 768,
32
+ "id2label": {
33
+ "0": "LABEL_0",
34
+ "1": "LABEL_1"
35
+ },
36
+ "initializer_factor": 1.0,
37
+ "initializer_range": 0.02,
38
+ "intermediate_size": 3072,
39
+ "is_decoder": false,
40
+ "is_encoder_decoder": false,
41
+ "label2id": {
42
+ "LABEL_0": 0,
43
+ "LABEL_1": 1
44
+ },
45
+ "layer_norm_eps": 1e-05,
46
+ "length_penalty": 1.0,
47
+ "max_length": 20,
48
+ "max_position_embeddings": 77,
49
+ "min_length": 0,
50
+ "model_type": "clip_text_model",
51
+ "no_repeat_ngram_size": 0,
52
+ "num_attention_heads": 12,
53
+ "num_beam_groups": 1,
54
+ "num_beams": 1,
55
+ "num_hidden_layers": 12,
56
+ "num_return_sequences": 1,
57
+ "output_attentions": false,
58
+ "output_hidden_states": false,
59
+ "output_scores": false,
60
+ "pad_token_id": 1,
61
+ "prefix": null,
62
+ "problem_type": null,
63
+ "pruned_heads": {},
64
+ "remove_invalid_values": false,
65
+ "repetition_penalty": 1.0,
66
+ "return_dict": true,
67
+ "return_dict_in_generate": false,
68
+ "sep_token_id": null,
69
+ "task_specific_params": null,
70
+ "temperature": 1.0,
71
+ "tie_encoder_decoder": false,
72
+ "tie_word_embeddings": true,
73
+ "tokenizer_class": null,
74
+ "top_k": 50,
75
+ "top_p": 1.0,
76
+ "torch_dtype": null,
77
+ "torchscript": false,
78
+ "transformers_version": "4.21.0.dev0",
79
+ "typical_p": 1.0,
80
+ "use_bfloat16": false,
81
+ "vocab_size": 49408
82
+ },
83
+ "text_config_dict": {
84
+ "hidden_size": 768,
85
+ "intermediate_size": 3072,
86
+ "num_attention_heads": 12,
87
+ "num_hidden_layers": 12
88
+ },
89
+ "torch_dtype": "float32",
90
+ "transformers_version": null,
91
+ "vision_config": {
92
+ "_name_or_path": "",
93
+ "add_cross_attention": false,
94
+ "architectures": null,
95
+ "attention_dropout": 0.0,
96
+ "bad_words_ids": null,
97
+ "bos_token_id": null,
98
+ "chunk_size_feed_forward": 0,
99
+ "cross_attention_hidden_size": null,
100
+ "decoder_start_token_id": null,
101
+ "diversity_penalty": 0.0,
102
+ "do_sample": false,
103
+ "dropout": 0.0,
104
+ "early_stopping": false,
105
+ "encoder_no_repeat_ngram_size": 0,
106
+ "eos_token_id": null,
107
+ "exponential_decay_length_penalty": null,
108
+ "finetuning_task": null,
109
+ "forced_bos_token_id": null,
110
+ "forced_eos_token_id": null,
111
+ "hidden_act": "quick_gelu",
112
+ "hidden_size": 1024,
113
+ "id2label": {
114
+ "0": "LABEL_0",
115
+ "1": "LABEL_1"
116
+ },
117
+ "image_size": 224,
118
+ "initializer_factor": 1.0,
119
+ "initializer_range": 0.02,
120
+ "intermediate_size": 4096,
121
+ "is_decoder": false,
122
+ "is_encoder_decoder": false,
123
+ "label2id": {
124
+ "LABEL_0": 0,
125
+ "LABEL_1": 1
126
+ },
127
+ "layer_norm_eps": 1e-05,
128
+ "length_penalty": 1.0,
129
+ "max_length": 20,
130
+ "min_length": 0,
131
+ "model_type": "clip_vision_model",
132
+ "no_repeat_ngram_size": 0,
133
+ "num_attention_heads": 16,
134
+ "num_beam_groups": 1,
135
+ "num_beams": 1,
136
+ "num_hidden_layers": 24,
137
+ "num_return_sequences": 1,
138
+ "output_attentions": false,
139
+ "output_hidden_states": false,
140
+ "output_scores": false,
141
+ "pad_token_id": null,
142
+ "patch_size": 14,
143
+ "prefix": null,
144
+ "problem_type": null,
145
+ "pruned_heads": {},
146
+ "remove_invalid_values": false,
147
+ "repetition_penalty": 1.0,
148
+ "return_dict": true,
149
+ "return_dict_in_generate": false,
150
+ "sep_token_id": null,
151
+ "task_specific_params": null,
152
+ "temperature": 1.0,
153
+ "tie_encoder_decoder": false,
154
+ "tie_word_embeddings": true,
155
+ "tokenizer_class": null,
156
+ "top_k": 50,
157
+ "top_p": 1.0,
158
+ "torch_dtype": null,
159
+ "torchscript": false,
160
+ "transformers_version": "4.21.0.dev0",
161
+ "typical_p": 1.0,
162
+ "use_bfloat16": false
163
+ },
164
+ "vision_config_dict": {
165
+ "hidden_size": 1024,
166
+ "intermediate_size": 4096,
167
+ "num_attention_heads": 16,
168
+ "num_hidden_layers": 24,
169
+ "patch_size": 14
170
+ }
171
+ }
stable-diffusion-v1-4/safety_checker/model.fp16.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:08902f19b1cfebd7c989f152fc0507bef6898c706a91d666509383122324b511
3
+ size 608018440
stable-diffusion-v1-4/safety_checker/model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9d6a233ff6fd5ccb9f76fd99618d73369c52dd3d8222376384d0e601911089e8
3
+ size 1215981830
stable-diffusion-v1-4/safety_checker/pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:193490b58ef62739077262e833bf091c66c29488058681ac25cf7df3d8190974
3
+ size 1216061799
stable-diffusion-v1-4/safety_checker/pytorch_model.fp16.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:22ba87205445ad5def13e54919b038dcfb7321ec1c3f4b12487d4fba6036125f
3
+ size 608103564
stable-diffusion-v1-4/scheduler/.ipynb_checkpoints/scheduler_config-checkpoint.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_class_name": "PNDMScheduler",
3
+ "_diffusers_version": "0.2.2",
4
+ "beta_end": 0.012,
5
+ "beta_schedule": "scaled_linear",
6
+ "beta_start": 0.00085,
7
+ "num_train_timesteps": 1000,
8
+ "skip_prk_steps": true
9
+ }
stable-diffusion-v1-4/scheduler/scheduler_config.json ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_class_name": "PNDMScheduler",
3
+ "_diffusers_version": "0.7.0.dev0",
4
+ "beta_end": 0.012,
5
+ "beta_schedule": "scaled_linear",
6
+ "beta_start": 0.00085,
7
+ "num_train_timesteps": 1000,
8
+ "set_alpha_to_one": false,
9
+ "skip_prk_steps": true,
10
+ "steps_offset": 1,
11
+ "trained_betas": null,
12
+ "clip_sample": false
13
+ }
stable-diffusion-v1-4/text_encoder/config.json ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "openai/clip-vit-large-patch14",
3
+ "architectures": [
4
+ "CLIPTextModel"
5
+ ],
6
+ "attention_dropout": 0.0,
7
+ "bos_token_id": 0,
8
+ "dropout": 0.0,
9
+ "eos_token_id": 2,
10
+ "hidden_act": "quick_gelu",
11
+ "hidden_size": 768,
12
+ "initializer_factor": 1.0,
13
+ "initializer_range": 0.02,
14
+ "intermediate_size": 3072,
15
+ "layer_norm_eps": 1e-05,
16
+ "max_position_embeddings": 77,
17
+ "model_type": "clip_text_model",
18
+ "num_attention_heads": 12,
19
+ "num_hidden_layers": 12,
20
+ "pad_token_id": 1,
21
+ "torch_dtype": "float32",
22
+ "transformers_version": "4.21.0.dev0",
23
+ "vocab_size": 49408
24
+ }
stable-diffusion-v1-4/text_encoder/model.fp16.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:77795e2023adcf39bc29a884661950380bd093cf0750a966d473d1718dc9ef4e
3
+ size 246144864
stable-diffusion-v1-4/text_encoder/model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7b3a12df205cb3c74dd4eae4354d93f606ae6b3bc29d5d06fd97921cb9ad8a81
3
+ size 492265879
stable-diffusion-v1-4/text_encoder/pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:770a47a9ffdcfda0b05506a7888ed714d06131d60267e6cf52765d61cf59fd67
3
+ size 492305335
stable-diffusion-v1-4/text_encoder/pytorch_model.fp16.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:05eee911f195625deeab86f0b22b115d7d8bc3adbfc1404f03557f7e4e6a8fd7
3
+ size 246187076
stable-diffusion-v1-4/tokenizer/merges.txt ADDED
The diff for this file is too large to render. See raw diff
 
stable-diffusion-v1-4/tokenizer/special_tokens_map.json ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ }
stable-diffusion-v1-4/tokenizer/tokenizer_config.json ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ "do_lower_case": true,
12
+ "eos_token": {
13
+ "__type": "AddedToken",
14
+ "content": "<|endoftext|>",
15
+ "lstrip": false,
16
+ "normalized": true,
17
+ "rstrip": false,
18
+ "single_word": false
19
+ },
20
+ "errors": "replace",
21
+ "model_max_length": 77,
22
+ "name_or_path": "openai/clip-vit-large-patch14",
23
+ "pad_token": "<|endoftext|>",
24
+ "special_tokens_map_file": "./special_tokens_map.json",
25
+ "tokenizer_class": "CLIPTokenizer",
26
+ "unk_token": {
27
+ "__type": "AddedToken",
28
+ "content": "<|endoftext|>",
29
+ "lstrip": false,
30
+ "normalized": true,
31
+ "rstrip": false,
32
+ "single_word": false
33
+ }
34
+ }
stable-diffusion-v1-4/tokenizer/vocab.json ADDED
The diff for this file is too large to render. See raw diff
 
stable-diffusion-v1-4/unet/config.json ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_class_name": "UNet2DConditionModel",
3
+ "_diffusers_version": "0.2.2",
4
+ "act_fn": "silu",
5
+ "attention_head_dim": 8,
6
+ "block_out_channels": [
7
+ 320,
8
+ 640,
9
+ 1280,
10
+ 1280
11
+ ],
12
+ "center_input_sample": false,
13
+ "cross_attention_dim": 768,
14
+ "down_block_types": [
15
+ "CrossAttnDownBlock2D",
16
+ "CrossAttnDownBlock2D",
17
+ "CrossAttnDownBlock2D",
18
+ "DownBlock2D"
19
+ ],
20
+ "downsample_padding": 1,
21
+ "flip_sin_to_cos": true,
22
+ "freq_shift": 0,
23
+ "in_channels": 4,
24
+ "layers_per_block": 2,
25
+ "mid_block_scale_factor": 1,
26
+ "norm_eps": 1e-05,
27
+ "norm_num_groups": 32,
28
+ "out_channels": 4,
29
+ "sample_size": 64,
30
+ "up_block_types": [
31
+ "UpBlock2D",
32
+ "CrossAttnUpBlock2D",
33
+ "CrossAttnUpBlock2D",
34
+ "CrossAttnUpBlock2D"
35
+ ]
36
+ }
stable-diffusion-v1-4/unet/diffusion_pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:62d48b4d841a3178511fa453df0dae59b22089ace64609cc9d5353d0a7f37c26
3
+ size 3438354725
stable-diffusion-v1-4/unet/diffusion_pytorch_model.fp16.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3ac986370f51d806d2119577d5a66fbf6d3746e2356f45dc474e7561ce94bdbf
3
+ size 1719327893
stable-diffusion-v1-4/unet/diffusion_pytorch_model.fp16.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a35404d03ec8f977715a4d2a080ddf72e2144f2ee49bb1ee213258bc64f9cc87
3
+ size 1719125304
stable-diffusion-v1-4/unet/diffusion_pytorch_model.non_ema.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f5f12f7078f361f137f91edc270cb523208dc2322a597e07773eb3b1e5703850
3
+ size 3438366373
stable-diffusion-v1-4/unet/diffusion_pytorch_model.non_ema.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ac3d1bff03f9e9a6f8671b5a7a3fd984f90185c84e407bc569f97c1cce7445fd
3
+ size 3438167536
stable-diffusion-v1-4/unet/diffusion_pytorch_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:145a07e0f05ec5bbe6e2e9faf608bdb311caf708895cac8c8ed713c59864e1e8
3
+ size 3438167534
stable-diffusion-v1-4/v1-variants-scores.jpg ADDED
stable-diffusion-v1-4/vae/config.json ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_class_name": "AutoencoderKL",
3
+ "_diffusers_version": "0.2.2",
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
+ "in_channels": 3,
18
+ "latent_channels": 4,
19
+ "layers_per_block": 2,
20
+ "out_channels": 3,
21
+ "sample_size": 512,
22
+ "scaling_factor": 0.18215,
23
+ "up_block_types": [
24
+ "UpDecoderBlock2D",
25
+ "UpDecoderBlock2D",
26
+ "UpDecoderBlock2D",
27
+ "UpDecoderBlock2D"
28
+ ]
29
+ }
stable-diffusion-v1-4/vae/diffusion_pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1b134cded8eb78b184aefb8805b6b572f36fa77b255c483665dda931fa0130c5
3
+ size 334707217
stable-diffusion-v1-4/vae/diffusion_pytorch_model.fp16.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b7643b3e40b9f128eda5fe174fea73c3ef3903562651fb344a79439709c2e503
3
+ size 167405651
stable-diffusion-v1-4/vae/diffusion_pytorch_model.fp16.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4fbcf0ebe55a0984f5a5e00d8c4521d52359af7229bb4d81890039d2aa16dd7c
3
+ size 167335342
stable-diffusion-v1-4/vae/diffusion_pytorch_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a2b5134f4dbc140d9c11f11cba3233099e00af40f262f136c691fb7d38d2194c
3
+ size 334643276
stable-diffusion-x4-upscaler/.gitattributes ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ *.7z filter=lfs diff=lfs merge=lfs -text
2
+ *.arrow filter=lfs diff=lfs merge=lfs -text
3
+ *.bin filter=lfs diff=lfs merge=lfs -text
4
+ *.bz2 filter=lfs diff=lfs merge=lfs -text
5
+ *.ckpt filter=lfs diff=lfs merge=lfs -text
6
+ *.ftz filter=lfs diff=lfs merge=lfs -text
7
+ *.gz filter=lfs diff=lfs merge=lfs -text
8
+ *.h5 filter=lfs diff=lfs merge=lfs -text
9
+ *.joblib filter=lfs diff=lfs merge=lfs -text
10
+ *.lfs.* filter=lfs diff=lfs merge=lfs -text
11
+ *.mlmodel filter=lfs diff=lfs merge=lfs -text
12
+ *.model filter=lfs diff=lfs merge=lfs -text
13
+ *.msgpack filter=lfs diff=lfs merge=lfs -text
14
+ *.npy filter=lfs diff=lfs merge=lfs -text
15
+ *.npz filter=lfs diff=lfs merge=lfs -text
16
+ *.onnx filter=lfs diff=lfs merge=lfs -text
17
+ *.ot filter=lfs diff=lfs merge=lfs -text
18
+ *.parquet filter=lfs diff=lfs merge=lfs -text
19
+ *.pb filter=lfs diff=lfs merge=lfs -text
20
+ *.pickle filter=lfs diff=lfs merge=lfs -text
21
+ *.pkl filter=lfs diff=lfs merge=lfs -text
22
+ *.pt filter=lfs diff=lfs merge=lfs -text
23
+ *.pth filter=lfs diff=lfs merge=lfs -text
24
+ *.rar filter=lfs diff=lfs merge=lfs -text
25
+ *.safetensors filter=lfs diff=lfs merge=lfs -text
26
+ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
27
+ *.tar.* filter=lfs diff=lfs merge=lfs -text
28
+ *.tflite filter=lfs diff=lfs merge=lfs -text
29
+ *.tgz filter=lfs diff=lfs merge=lfs -text
30
+ *.wasm filter=lfs diff=lfs merge=lfs -text
31
+ *.xz filter=lfs diff=lfs merge=lfs -text
32
+ *.zip filter=lfs diff=lfs merge=lfs -text
33
+ *.zst filter=lfs diff=lfs merge=lfs -text
34
+ *tfevents* filter=lfs diff=lfs merge=lfs -text
stable-diffusion-x4-upscaler/README.md ADDED
@@ -0,0 +1,193 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: openrail++
3
+ tags:
4
+ - stable-diffusion
5
+ inference: false
6
+ ---
7
+
8
+ # Stable Diffusion x4 upscaler model card
9
+ This model card focuses on the model associated with the Stable Diffusion Upscaler, available [here](https://github.com/Stability-AI/stablediffusion).
10
+ This model is trained for 1.25M steps on a 10M subset of LAION containing images `>2048x2048`. The model was trained on crops of size `512x512` and is a text-guided [latent upscaling diffusion model](https://arxiv.org/abs/2112.10752).
11
+ In addition to the textual input, it receives a `noise_level` as an input parameter, which can be used to add noise to the low-resolution input according to a [predefined diffusion schedule](configs/stable-diffusion/x4-upscaling.yaml).
12
+
13
+ ![Image](https://github.com/Stability-AI/stablediffusion/raw/main/assets/stable-samples/upscaling/merged-dog.png)
14
+
15
+ - Use it with the [`stablediffusion`](https://github.com/Stability-AI/stablediffusion) repository: download the `x4-upscaler-ema.ckpt` [here](https://huggingface.co/stabilityai/stable-diffusion-x4-upscaler/resolve/main/x4-upscaler-ema.ckpt).
16
+ - Use it with 🧨 [`diffusers`](https://huggingface.co/stabilityai/stable-diffusion-x4-upscaler#examples)
17
+
18
+
19
+ ## Model Details
20
+ - **Developed by:** Robin Rombach, Patrick Esser
21
+ - **Model type:** Diffusion-based text-to-image generation model
22
+ - **Language(s):** English
23
+ - **License:** [CreativeML Open RAIL++-M License](https://huggingface.co/stabilityai/stable-diffusion-2/blob/main/LICENSE-MODEL)
24
+ - **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 a fixed, pretrained text encoder ([OpenCLIP-ViT/H](https://github.com/mlfoundations/open_clip)).
25
+ - **Resources for more information:** [GitHub Repository](https://github.com/Stability-AI/).
26
+ - **Cite as:**
27
+
28
+ @InProceedings{Rombach_2022_CVPR,
29
+ author = {Rombach, Robin and Blattmann, Andreas and Lorenz, Dominik and Esser, Patrick and Ommer, Bj\"orn},
30
+ title = {High-Resolution Image Synthesis With Latent Diffusion Models},
31
+ booktitle = {Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR)},
32
+ month = {June},
33
+ year = {2022},
34
+ pages = {10684-10695}
35
+ }
36
+
37
+
38
+ ## Examples
39
+
40
+ Using the [🤗's Diffusers library](https://github.com/huggingface/diffusers) to run Stable Diffusion 2 in a simple and efficient manner.
41
+
42
+ ```bash
43
+ pip install diffusers transformers accelerate scipy safetensors
44
+ ```
45
+
46
+ ```python
47
+ import requests
48
+ from PIL import Image
49
+ from io import BytesIO
50
+ from diffusers import StableDiffusionUpscalePipeline
51
+ import torch
52
+
53
+ # load model and scheduler
54
+ model_id = "stabilityai/stable-diffusion-x4-upscaler"
55
+ pipeline = StableDiffusionUpscalePipeline.from_pretrained(model_id, torch_dtype=torch.float16)
56
+ pipeline = pipeline.to("cuda")
57
+
58
+ # let's download an image
59
+ url = "https://huggingface.co/datasets/hf-internal-testing/diffusers-images/resolve/main/sd2-upscale/low_res_cat.png"
60
+ response = requests.get(url)
61
+ low_res_img = Image.open(BytesIO(response.content)).convert("RGB")
62
+ low_res_img = low_res_img.resize((128, 128))
63
+
64
+ prompt = "a white cat"
65
+
66
+ upscaled_image = pipeline(prompt=prompt, image=low_res_img).images[0]
67
+ upscaled_image.save("upsampled_cat.png")
68
+ ```
69
+
70
+ **Notes**:
71
+ - Despite not being a dependency, we highly recommend you to install [xformers](https://github.com/facebookresearch/xformers) for memory efficient attention (better performance)
72
+ - If you have low GPU RAM available, make sure to add a `pipe.enable_attention_slicing()` after sending it to `cuda` for less VRAM usage (to the cost of speed)
73
+
74
+
75
+ # Uses
76
+
77
+ ## Direct Use
78
+ The model is intended for research purposes only. Possible research areas and tasks include
79
+
80
+ - Safe deployment of models which have the potential to generate harmful content.
81
+ - Probing and understanding the limitations and biases of generative models.
82
+ - Generation of artworks and use in design and other artistic processes.
83
+ - Applications in educational or creative tools.
84
+ - Research on generative models.
85
+
86
+ Excluded uses are described below.
87
+
88
+ ### Misuse, Malicious Use, and Out-of-Scope Use
89
+ _Note: This section is originally taken from the [DALLE-MINI model card](https://huggingface.co/dalle-mini/dalle-mini), was used for Stable Diffusion v1, but applies in the same way to Stable Diffusion v2_.
90
+
91
+ The model should not be used to intentionally create or disseminate images that create hostile or alienating environments for people. This includes generating images that people would foreseeably find disturbing, distressing, or offensive; or content that propagates historical or current stereotypes.
92
+
93
+ #### Out-of-Scope Use
94
+ 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.
95
+
96
+ #### Misuse and Malicious Use
97
+ Using the model to generate content that is cruel to individuals is a misuse of this model. This includes, but is not limited to:
98
+
99
+ - Generating demeaning, dehumanizing, or otherwise harmful representations of people or their environments, cultures, religions, etc.
100
+ - Intentionally promoting or propagating discriminatory content or harmful stereotypes.
101
+ - Impersonating individuals without their consent.
102
+ - Sexual content without consent of the people who might see it.
103
+ - Mis- and disinformation
104
+ - Representations of egregious violence and gore
105
+ - Sharing of copyrighted or licensed material in violation of its terms of use.
106
+ - Sharing content that is an alteration of copyrighted or licensed material in violation of its terms of use.
107
+
108
+ ## Limitations and Bias
109
+
110
+ ### Limitations
111
+
112
+ - The model does not achieve perfect photorealism
113
+ - The model cannot render legible text
114
+ - The model does not perform well on more difficult tasks which involve compositionality, such as rendering an image corresponding to “A red cube on top of a blue sphere”
115
+ - Faces and people in general may not be generated properly.
116
+ - The model was trained mainly with English captions and will not work as well in other languages.
117
+ - The autoencoding part of the model is lossy
118
+ - The model was trained on a subset of the large-scale dataset
119
+ [LAION-5B](https://laion.ai/blog/laion-5b/), which contains adult, violent and sexual content. To partially mitigate this, we have filtered the dataset using LAION's NFSW detector (see Training section).
120
+
121
+ ### Bias
122
+ While the capabilities of image generation models are impressive, they can also reinforce or exacerbate social biases.
123
+ Stable Diffusion vw was primarily trained on subsets of [LAION-2B(en)](https://laion.ai/blog/laion-5b/),
124
+ which consists of images that are limited to English descriptions.
125
+ Texts and images from communities and cultures that use other languages are likely to be insufficiently accounted for.
126
+ This affects the overall output of the model, as white and western cultures are often set as the default. Further, the
127
+ ability of the model to generate content with non-English prompts is significantly worse than with English-language prompts.
128
+ Stable Diffusion v2 mirrors and exacerbates biases to such a degree that viewer discretion must be advised irrespective of the input or its intent.
129
+
130
+
131
+ ## Training
132
+
133
+ **Training Data**
134
+ The model developers used the following dataset for training the model:
135
+
136
+ - LAION-5B and subsets (details below). The training data is further filtered using LAION's NSFW detector, with a "p_unsafe" score of 0.1 (conservative). For more details, please refer to LAION-5B's [NeurIPS 2022](https://openreview.net/forum?id=M3Y74vmsMcY) paper and reviewer discussions on the topic.
137
+
138
+ **Training Procedure**
139
+ Stable Diffusion v2 is a latent diffusion model which combines an autoencoder with a diffusion model that is trained in the latent space of the autoencoder. During training,
140
+
141
+ - Images are encoded through an encoder, which turns images into latent representations. The autoencoder uses a relative downsampling factor of 8 and maps images of shape H x W x 3 to latents of shape H/f x W/f x 4
142
+ - Text prompts are encoded through the OpenCLIP-ViT/H text-encoder.
143
+ - The output of the text encoder is fed into the UNet backbone of the latent diffusion model via cross-attention.
144
+ - The loss is a reconstruction objective between the noise that was added to the latent and the prediction made by the UNet. We also use the so-called _v-objective_, see https://arxiv.org/abs/2202.00512.
145
+
146
+ We currently provide the following checkpoints:
147
+
148
+ - `512-base-ema.ckpt`: 550k steps at resolution `256x256` on a subset of [LAION-5B](https://laion.ai/blog/laion-5b/) filtered for explicit pornographic material, using the [LAION-NSFW classifier](https://github.com/LAION-AI/CLIP-based-NSFW-Detector) with `punsafe=0.1` and an [aesthetic score](https://github.com/christophschuhmann/improved-aesthetic-predictor) >= `4.5`.
149
+ 850k steps at resolution `512x512` on the same dataset with resolution `>= 512x512`.
150
+ - `768-v-ema.ckpt`: Resumed from `512-base-ema.ckpt` and trained for 150k steps using a [v-objective](https://arxiv.org/abs/2202.00512) on the same dataset. Resumed for another 140k steps on a `768x768` subset of our dataset.
151
+ - `512-depth-ema.ckpt`: Resumed from `512-base-ema.ckpt` and finetuned for 200k steps. Added an extra input channel to process the (relative) depth prediction produced by [MiDaS](https://github.com/isl-org/MiDaS) (`dpt_hybrid`) which is used as an additional conditioning.
152
+ The additional input channels of the U-Net which process this extra information were zero-initialized.
153
+ - `512-inpainting-ema.ckpt`: Resumed from `512-base-ema.ckpt` and trained for another 200k steps. Follows the mask-generation strategy presented in [LAMA](https://github.com/saic-mdal/lama) which, in combination with the latent VAE representations of the masked image, are used as an additional conditioning.
154
+ The additional input channels of the U-Net which process this extra information were zero-initialized. The same strategy was used to train the [1.5-inpainting checkpoint](https://github.com/saic-mdal/lama).
155
+ - `x4-upscaling-ema.ckpt`: Trained for 1.25M steps on a 10M subset of LAION containing images `>2048x2048`. The model was trained on crops of size `512x512` and is a text-guided [latent upscaling diffusion model](https://arxiv.org/abs/2112.10752).
156
+ In addition to the textual input, it receives a `noise_level` as an input parameter, which can be used to add noise to the low-resolution input according to a [predefined diffusion schedule](configs/stable-diffusion/x4-upscaling.yaml).
157
+
158
+ - **Hardware:** 32 x 8 x A100 GPUs
159
+ - **Optimizer:** AdamW
160
+ - **Gradient Accumulations**: 1
161
+ - **Batch:** 32 x 8 x 2 x 4 = 2048
162
+ - **Learning rate:** warmup to 0.0001 for 10,000 steps and then kept constant
163
+
164
+ ## Evaluation Results
165
+ Evaluations with different classifier-free guidance scales (1.5, 2.0, 3.0, 4.0,
166
+ 5.0, 6.0, 7.0, 8.0) and 50 steps DDIM sampling steps show the relative improvements of the checkpoints:
167
+
168
+ ![pareto](model-variants.jpg)
169
+
170
+ Evaluated using 50 DDIM steps and 10000 random prompts from the COCO2017 validation set, evaluated at 512x512 resolution. Not optimized for FID scores.
171
+
172
+ ## Environmental Impact
173
+
174
+ **Stable Diffusion v1** **Estimated Emissions**
175
+ Based on that information, we estimate the following CO2 emissions using the [Machine Learning Impact calculator](https://mlco2.github.io/impact#compute) presented in [Lacoste et al. (2019)](https://arxiv.org/abs/1910.09700). The hardware, runtime, cloud provider, and compute region were utilized to estimate the carbon impact.
176
+
177
+ - **Hardware Type:** A100 PCIe 40GB
178
+ - **Hours used:** 200000
179
+ - **Cloud Provider:** AWS
180
+ - **Compute Region:** US-east
181
+ - **Carbon Emitted (Power consumption x Time x Carbon produced based on location of power grid):** 15000 kg CO2 eq.
182
+
183
+ ## Citation
184
+ @InProceedings{Rombach_2022_CVPR,
185
+ author = {Rombach, Robin and Blattmann, Andreas and Lorenz, Dominik and Esser, Patrick and Ommer, Bj\"orn},
186
+ title = {High-Resolution Image Synthesis With Latent Diffusion Models},
187
+ booktitle = {Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR)},
188
+ month = {June},
189
+ year = {2022},
190
+ pages = {10684-10695}
191
+ }
192
+
193
+ *This model card was written by: Robin Rombach, Patrick Esser and David Ha and is based on the [Stable Diffusion v1](https://github.com/CompVis/stable-diffusion/blob/main/Stable_Diffusion_v1_Model_Card.md) and [DALL-E Mini model card](https://huggingface.co/dalle-mini/dalle-mini).*
stable-diffusion-x4-upscaler/low_res_scheduler/scheduler_config.json ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_class_name": "DDPMScheduler",
3
+ "_diffusers_version": "0.9.0.dev0",
4
+ "beta_end": 0.02,
5
+ "beta_schedule": "scaled_linear",
6
+ "beta_start": 0.0001,
7
+ "clip_sample": true,
8
+ "num_train_timesteps": 1000,
9
+ "prediction_type": "epsilon",
10
+ "trained_betas": null,
11
+ "variance_type": "fixed_small"
12
+ }
stable-diffusion-x4-upscaler/model_index.json ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_class_name": "StableDiffusionUpscalePipeline",
3
+ "_diffusers_version": "0.9.0.dev0",
4
+ "low_res_scheduler": [
5
+ "diffusers",
6
+ "DDPMScheduler"
7
+ ],
8
+ "max_noise_level": 350,
9
+ "scheduler": [
10
+ "diffusers",
11
+ "DDIMScheduler"
12
+ ],
13
+ "text_encoder": [
14
+ "transformers",
15
+ "CLIPTextModel"
16
+ ],
17
+ "tokenizer": [
18
+ "transformers",
19
+ "CLIPTokenizer"
20
+ ],
21
+ "unet": [
22
+ "diffusers",
23
+ "UNet2DConditionModel"
24
+ ],
25
+ "vae": [
26
+ "diffusers",
27
+ "AutoencoderKL"
28
+ ]
29
+ }
stable-diffusion-x4-upscaler/scheduler/scheduler_config.json ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_class_name": "DDIMScheduler",
3
+ "_diffusers_version": "0.9.0.dev0",
4
+ "beta_end": 0.02,
5
+ "beta_schedule": "scaled_linear",
6
+ "beta_start": 0.0001,
7
+ "clip_sample": false,
8
+ "num_train_timesteps": 1000,
9
+ "prediction_type": "v_prediction",
10
+ "set_alpha_to_one": false,
11
+ "skip_prk_steps": true,
12
+ "steps_offset": 1,
13
+ "trained_betas": null
14
+ }
stable-diffusion-x4-upscaler/text_encoder/config.json ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "hf-models/stable-diffusion-x4-upscaler/text_encoder",
3
+ "architectures": [
4
+ "CLIPTextModel"
5
+ ],
6
+ "attention_dropout": 0.0,
7
+ "bos_token_id": 0,
8
+ "dropout": 0.0,
9
+ "eos_token_id": 2,
10
+ "hidden_act": "gelu",
11
+ "hidden_size": 1024,
12
+ "initializer_factor": 1.0,
13
+ "initializer_range": 0.02,
14
+ "intermediate_size": 4096,
15
+ "layer_norm_eps": 1e-05,
16
+ "max_position_embeddings": 77,
17
+ "model_type": "clip_text_model",
18
+ "num_attention_heads": 16,
19
+ "num_hidden_layers": 23,
20
+ "pad_token_id": 1,
21
+ "projection_dim": 512,
22
+ "torch_dtype": "float32",
23
+ "transformers_version": "4.25.0.dev0",
24
+ "vocab_size": 49408
25
+ }
stable-diffusion-x4-upscaler/text_encoder/model.fp16.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:681c555376658c81dc273f2d737a2aeb23ddb6d1d8e5b3a7064636d359a22668
3
+ size 680821096
stable-diffusion-x4-upscaler/text_encoder/model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cce6febb0b6d876ee5eb24af35e27e764eb4f9b1d0b7c026c8c3333d4cfc916c
3
+ size 1361597018
stable-diffusion-x4-upscaler/text_encoder/pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2188379b05015f531d61503e714234d00a64939792f3098b324e516547f0194f
3
+ size 1361674657
stable-diffusion-x4-upscaler/text_encoder/pytorch_model.fp16.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7bb11b1da63986aaaaefb5ef2100d34109c024ac640cacd9ed697150c1c57f01
3
+ size 680900852
stable-diffusion-x4-upscaler/tokenizer/merges.txt ADDED
The diff for this file is too large to render. See raw diff
 
stable-diffusion-x4-upscaler/tokenizer/special_tokens_map.json ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ }