pcuenq HF staff commited on
Commit
de8bb28
1 Parent(s): a9dbe3a

Add model weights (including VAE encoder).

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 +147 -0
  2. original/compiled/TextEncoder.mlmodelc/analytics/coremldata.bin +3 -0
  3. original/compiled/TextEncoder.mlmodelc/coremldata.bin +3 -0
  4. original/compiled/TextEncoder.mlmodelc/metadata.json +85 -0
  5. original/compiled/TextEncoder.mlmodelc/model.mil +3 -0
  6. original/compiled/TextEncoder.mlmodelc/weights/weight.bin +3 -0
  7. original/compiled/Unet.mlmodelc/analytics/coremldata.bin +3 -0
  8. original/compiled/Unet.mlmodelc/coremldata.bin +3 -0
  9. original/compiled/Unet.mlmodelc/metadata.json +101 -0
  10. original/compiled/Unet.mlmodelc/model.mil +3 -0
  11. original/compiled/Unet.mlmodelc/weights/weight.bin +3 -0
  12. original/compiled/UnetChunk1.mlmodelc/analytics/coremldata.bin +3 -0
  13. original/compiled/UnetChunk1.mlmodelc/coremldata.bin +3 -0
  14. original/compiled/UnetChunk1.mlmodelc/metadata.json +215 -0
  15. original/compiled/UnetChunk1.mlmodelc/model.mil +3 -0
  16. original/compiled/UnetChunk1.mlmodelc/weights/weight.bin +3 -0
  17. original/compiled/UnetChunk2.mlmodelc/analytics/coremldata.bin +3 -0
  18. original/compiled/UnetChunk2.mlmodelc/coremldata.bin +3 -0
  19. original/compiled/UnetChunk2.mlmodelc/metadata.json +202 -0
  20. original/compiled/UnetChunk2.mlmodelc/model.mil +3 -0
  21. original/compiled/UnetChunk2.mlmodelc/weights/weight.bin +3 -0
  22. original/compiled/VAEDecoder.mlmodelc/analytics/coremldata.bin +3 -0
  23. original/compiled/VAEDecoder.mlmodelc/coremldata.bin +3 -0
  24. original/compiled/VAEDecoder.mlmodelc/metadata.json +75 -0
  25. original/compiled/VAEDecoder.mlmodelc/model.mil +3 -0
  26. original/compiled/VAEDecoder.mlmodelc/weights/weight.bin +3 -0
  27. original/compiled/VAEEncoder.mlmodelc/analytics/coremldata.bin +3 -0
  28. original/compiled/VAEEncoder.mlmodelc/coremldata.bin +3 -0
  29. original/compiled/VAEEncoder.mlmodelc/metadata.json +118 -0
  30. original/compiled/VAEEncoder.mlmodelc/model.mil +3 -0
  31. original/compiled/VAEEncoder.mlmodelc/weights/weight.bin +3 -0
  32. original/compiled/merges.txt +0 -0
  33. original/compiled/vocab.json +0 -0
  34. original/packages/Stable_Diffusion_version_stabilityai_stable-diffusion-2-1-base_text_encoder.mlpackage/Data/com.apple.CoreML/model.mlmodel +3 -0
  35. original/packages/Stable_Diffusion_version_stabilityai_stable-diffusion-2-1-base_text_encoder.mlpackage/Data/com.apple.CoreML/weights/weight.bin +3 -0
  36. original/packages/Stable_Diffusion_version_stabilityai_stable-diffusion-2-1-base_text_encoder.mlpackage/Manifest.json +18 -0
  37. original/packages/Stable_Diffusion_version_stabilityai_stable-diffusion-2-1-base_unet.mlpackage/Data/com.apple.CoreML/model.mlmodel +3 -0
  38. original/packages/Stable_Diffusion_version_stabilityai_stable-diffusion-2-1-base_unet.mlpackage/Data/com.apple.CoreML/weights/weight.bin +3 -0
  39. original/packages/Stable_Diffusion_version_stabilityai_stable-diffusion-2-1-base_unet.mlpackage/Manifest.json +18 -0
  40. original/packages/Stable_Diffusion_version_stabilityai_stable-diffusion-2-1-base_unet_chunk1.mlpackage/Data/com.apple.CoreML/model.mlmodel +3 -0
  41. original/packages/Stable_Diffusion_version_stabilityai_stable-diffusion-2-1-base_unet_chunk1.mlpackage/Data/com.apple.CoreML/weights/weight.bin +3 -0
  42. original/packages/Stable_Diffusion_version_stabilityai_stable-diffusion-2-1-base_unet_chunk1.mlpackage/Manifest.json +18 -0
  43. original/packages/Stable_Diffusion_version_stabilityai_stable-diffusion-2-1-base_unet_chunk2.mlpackage/Data/com.apple.CoreML/model.mlmodel +3 -0
  44. original/packages/Stable_Diffusion_version_stabilityai_stable-diffusion-2-1-base_unet_chunk2.mlpackage/Data/com.apple.CoreML/weights/weight.bin +3 -0
  45. original/packages/Stable_Diffusion_version_stabilityai_stable-diffusion-2-1-base_unet_chunk2.mlpackage/Manifest.json +18 -0
  46. original/packages/Stable_Diffusion_version_stabilityai_stable-diffusion-2-1-base_vae_decoder.mlpackage/Data/com.apple.CoreML/model.mlmodel +3 -0
  47. original/packages/Stable_Diffusion_version_stabilityai_stable-diffusion-2-1-base_vae_decoder.mlpackage/Data/com.apple.CoreML/weights/weight.bin +3 -0
  48. original/packages/Stable_Diffusion_version_stabilityai_stable-diffusion-2-1-base_vae_decoder.mlpackage/Manifest.json +18 -0
  49. original/packages/Stable_Diffusion_version_stabilityai_stable-diffusion-2-1-base_vae_encoder.mlpackage/Data/com.apple.CoreML/model.mlmodel +3 -0
  50. original/packages/Stable_Diffusion_version_stabilityai_stable-diffusion-2-1-base_vae_encoder.mlpackage/Data/com.apple.CoreML/weights/weight.bin +3 -0
README.md ADDED
@@ -0,0 +1,147 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: other
3
+ tags:
4
+ - stable-diffusion
5
+ - text-to-image
6
+ - core-ml
7
+ ---
8
+
9
+ # Stable Diffusion v2 Model Card
10
+
11
+ This model was generated by Hugging Face using [Apple’s repository](https://github.com/apple/ml-stable-diffusion) which has [ASCL](https://github.com/apple/ml-stable-diffusion/blob/main/LICENSE.md).
12
+
13
+ This model card focuses on the model associated with the Stable Diffusion v2.1 model, codebase available [here](https://github.com/Stability-AI/stablediffusion).
14
+
15
+ This stable-diffusion-2-1 model is fine-tuned from stable-diffusion-2 (768-v-ema.ckpt) with an additional 55k steps on the same dataset (with punsafe=0.1), and then fine-tuned for another 155k extra steps with punsafe=0.98.
16
+
17
+ These weights here have been converted to Core ML for use on Apple Silicon hardware.
18
+
19
+ There are 4 variants of the Core ML weights:
20
+
21
+ ```
22
+ coreml-stable-diffusion-2-base
23
+ ├── original
24
+ │ ├── compiled # Swift inference, "original" attention
25
+ │ └── packages # Python inference, "original" attention
26
+ └── split_einsum
27
+ ├── compiled # Swift inference, "split_einsum" attention
28
+ └── packages # Python inference, "split_einsum" attention
29
+ ```
30
+
31
+ Please, refer to https://huggingface.co/blog/diffusers-coreml for details.
32
+
33
+ - Use it with 🧨 [`diffusers`](https://huggingface.co/stabilityai/stable-diffusion-2-base#examples)
34
+ - Use it with the [`stablediffusion`](https://github.com/Stability-AI/stablediffusion) repository: download the `512-base-ema.ckpt` [here](https://huggingface.co/stabilityai/stable-diffusion-2-base/resolve/main/512-base-ema.ckpt).
35
+
36
+ ## Model Details
37
+ - **Developed by:** Robin Rombach, Patrick Esser
38
+ - **Model type:** Diffusion-based text-to-image generation model
39
+ - **Language(s):** English
40
+ - **License:** [CreativeML Open RAIL++-M License](https://huggingface.co/stabilityai/stable-diffusion-2/blob/main/LICENSE-MODEL)
41
+ - **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)).
42
+ - **Resources for more information:** [GitHub Repository](https://github.com/Stability-AI/).
43
+ - **Cite as:**
44
+
45
+ @InProceedings{Rombach_2022_CVPR,
46
+ author = {Rombach, Robin and Blattmann, Andreas and Lorenz, Dominik and Esser, Patrick and Ommer, Bj\"orn},
47
+ title = {High-Resolution Image Synthesis With Latent Diffusion Models},
48
+ booktitle = {Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR)},
49
+ month = {June},
50
+ year = {2022},
51
+ pages = {10684-10695}
52
+ }
53
+
54
+
55
+ # Uses
56
+
57
+ ## Direct Use
58
+ The model is intended for research purposes only. Possible research areas and tasks include
59
+
60
+ - Safe deployment of models which have the potential to generate harmful content.
61
+ - Probing and understanding the limitations and biases of generative models.
62
+ - Generation of artworks and use in design and other artistic processes.
63
+ - Applications in educational or creative tools.
64
+ - Research on generative models.
65
+
66
+ Excluded uses are described below.
67
+
68
+ ### Misuse, Malicious Use, and Out-of-Scope Use
69
+ _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_.
70
+
71
+ 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.
72
+
73
+ #### Out-of-Scope Use
74
+ 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.
75
+
76
+ #### Misuse and Malicious Use
77
+ Using the model to generate content that is cruel to individuals is a misuse of this model. This includes, but is not limited to:
78
+
79
+ - Generating demeaning, dehumanizing, or otherwise harmful representations of people or their environments, cultures, religions, etc.
80
+ - Intentionally promoting or propagating discriminatory content or harmful stereotypes.
81
+ - Impersonating individuals without their consent.
82
+ - Sexual content without consent of the people who might see it.
83
+ - Mis- and disinformation
84
+ - Representations of egregious violence and gore
85
+ - Sharing of copyrighted or licensed material in violation of its terms of use.
86
+ - Sharing content that is an alteration of copyrighted or licensed material in violation of its terms of use.
87
+
88
+ ## Limitations and Bias
89
+
90
+ ### Limitations
91
+
92
+ - The model does not achieve perfect photorealism
93
+ - The model cannot render legible text
94
+ - 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”
95
+ - Faces and people in general may not be generated properly.
96
+ - The model was trained mainly with English captions and will not work as well in other languages.
97
+ - The autoencoding part of the model is lossy
98
+ - The model was trained on a subset of the large-scale dataset
99
+ [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).
100
+
101
+ ### Bias
102
+ While the capabilities of image generation models are impressive, they can also reinforce or exacerbate social biases.
103
+ Stable Diffusion vw was primarily trained on subsets of [LAION-2B(en)](https://laion.ai/blog/laion-5b/),
104
+ which consists of images that are limited to English descriptions.
105
+ Texts and images from communities and cultures that use other languages are likely to be insufficiently accounted for.
106
+ This affects the overall output of the model, as white and western cultures are often set as the default. Further, the
107
+ ability of the model to generate content with non-English prompts is significantly worse than with English-language prompts.
108
+ Stable Diffusion v2 mirrors and exacerbates biases to such a degree that viewer discretion must be advised irrespective of the input or its intent.
109
+
110
+
111
+ ## Training
112
+
113
+ **Training Data**
114
+ The model developers used the following dataset for training the model:
115
+
116
+ - 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.
117
+
118
+ **Training Procedure**
119
+ 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,
120
+
121
+ - 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
122
+ - Text prompts are encoded through the OpenCLIP-ViT/H text-encoder.
123
+ - The output of the text encoder is fed into the UNet backbone of the latent diffusion model via cross-attention.
124
+ - 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.
125
+
126
+ ## Environmental Impact
127
+
128
+ **Stable Diffusion v1** **Estimated Emissions**
129
+ 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.
130
+
131
+ - **Hardware Type:** A100 PCIe 40GB
132
+ - **Hours used:** 200000
133
+ - **Cloud Provider:** AWS
134
+ - **Compute Region:** US-east
135
+ - **Carbon Emitted (Power consumption x Time x Carbon produced based on location of power grid):** 15000 kg CO2 eq.
136
+
137
+ ## Citation
138
+ @InProceedings{Rombach_2022_CVPR,
139
+ author = {Rombach, Robin and Blattmann, Andreas and Lorenz, Dominik and Esser, Patrick and Ommer, Bj\"orn},
140
+ title = {High-Resolution Image Synthesis With Latent Diffusion Models},
141
+ booktitle = {Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR)},
142
+ month = {June},
143
+ year = {2022},
144
+ pages = {10684-10695}
145
+ }
146
+
147
+ *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).*
original/compiled/TextEncoder.mlmodelc/analytics/coremldata.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b8a5d1b534f75123216a299b4dfdfbb6e0d7857dd022bbc0f70b4d2d63ab54f9
3
+ size 207
original/compiled/TextEncoder.mlmodelc/coremldata.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:05b2e1a9a806f9ca678e7252060ac74184a464b6827dc44dbc27513417aabf80
3
+ size 838
original/compiled/TextEncoder.mlmodelc/metadata.json ADDED
@@ -0,0 +1,85 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "shortDescription" : "Stable Diffusion generates images conditioned on text and\/or other images as input through the diffusion process. Please refer to https:\/\/arxiv.org\/abs\/2112.10752 for details.",
4
+ "metadataOutputVersion" : "3.0",
5
+ "outputSchema" : [
6
+ {
7
+ "hasShapeFlexibility" : "0",
8
+ "isOptional" : "0",
9
+ "dataType" : "Float32",
10
+ "formattedType" : "MultiArray (Float32)",
11
+ "shortDescription" : "The token embeddings as encoded by the Transformer model",
12
+ "shape" : "[]",
13
+ "name" : "last_hidden_state",
14
+ "type" : "MultiArray"
15
+ },
16
+ {
17
+ "hasShapeFlexibility" : "0",
18
+ "isOptional" : "0",
19
+ "dataType" : "Float32",
20
+ "formattedType" : "MultiArray (Float32)",
21
+ "shortDescription" : "The version of the `last_hidden_state` output after pooling",
22
+ "shape" : "[]",
23
+ "name" : "pooled_outputs",
24
+ "type" : "MultiArray"
25
+ }
26
+ ],
27
+ "version" : "stabilityai\/stable-diffusion-2-1-base",
28
+ "modelParameters" : [
29
+
30
+ ],
31
+ "author" : "Please refer to the Model Card available at huggingface.co\/stabilityai\/stable-diffusion-2-1-base",
32
+ "specificationVersion" : 7,
33
+ "storagePrecision" : "Float16",
34
+ "license" : "OpenRAIL (https:\/\/huggingface.co\/spaces\/CompVis\/stable-diffusion-license)",
35
+ "mlProgramOperationTypeHistogram" : {
36
+ "Ios16.cast" : 3,
37
+ "Ios16.mul" : 23,
38
+ "Ios16.layerNorm" : 47,
39
+ "Ios16.sub" : 1,
40
+ "BandPart" : 1,
41
+ "Stack" : 1,
42
+ "Transpose" : 115,
43
+ "Ios16.linear" : 138,
44
+ "Ios16.add" : 70,
45
+ "Ios16.matmul" : 46,
46
+ "Ios16.gelu" : 23,
47
+ "Ios16.softmax" : 23,
48
+ "ExpandDims" : 1,
49
+ "Ios16.gather" : 1,
50
+ "Ios16.gatherNd" : 1,
51
+ "Ios16.reshape" : 230,
52
+ "Ios16.reduceArgmax" : 1
53
+ },
54
+ "computePrecision" : "Mixed (Float16, Float32, Int32)",
55
+ "isUpdatable" : "0",
56
+ "availability" : {
57
+ "macOS" : "13.0",
58
+ "tvOS" : "16.0",
59
+ "watchOS" : "9.0",
60
+ "iOS" : "16.0",
61
+ "macCatalyst" : "16.0"
62
+ },
63
+ "modelType" : {
64
+ "name" : "MLModelType_mlProgram"
65
+ },
66
+ "inputSchema" : [
67
+ {
68
+ "hasShapeFlexibility" : "0",
69
+ "isOptional" : "0",
70
+ "dataType" : "Float32",
71
+ "formattedType" : "MultiArray (Float32 1 × 77)",
72
+ "shortDescription" : "The token ids that represent the input text",
73
+ "shape" : "[1, 77]",
74
+ "name" : "input_ids",
75
+ "type" : "MultiArray"
76
+ }
77
+ ],
78
+ "userDefinedMetadata" : {
79
+ "com.github.apple.coremltools.version" : "6.1",
80
+ "com.github.apple.coremltools.source" : "torch==1.13.0"
81
+ },
82
+ "generatedClassName" : "Stable_Diffusion_version_stabilityai_stable_diffusion_2_1_base_text_encoder",
83
+ "method" : "predict"
84
+ }
85
+ ]
original/compiled/TextEncoder.mlmodelc/model.mil ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3214a3aaa8cd8a7ab25040804d81ab0b6eb5a1a8eb07e3a240c1270e44135fad
3
+ size 320318
original/compiled/TextEncoder.mlmodelc/weights/weight.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0b5cff8d14316925d7fc7d83eb97edd49f2be05f39f84516ca326d6fb644b590
3
+ size 680811520
original/compiled/Unet.mlmodelc/analytics/coremldata.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:19311751783eb6221984b84103914dfbf28a838255c85b11c503a76e8833a1ec
3
+ size 207
original/compiled/Unet.mlmodelc/coremldata.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4fe57ad695bcb94951727abaf895236c3ba986fcc5fa3323f855867a1fed68ea
3
+ size 1220
original/compiled/Unet.mlmodelc/metadata.json ADDED
@@ -0,0 +1,101 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "shortDescription" : "Stable Diffusion generates images conditioned on text or other images as input through the diffusion process. Please refer to https:\/\/arxiv.org\/abs\/2112.10752 for details.",
4
+ "metadataOutputVersion" : "3.0",
5
+ "outputSchema" : [
6
+ {
7
+ "hasShapeFlexibility" : "0",
8
+ "isOptional" : "0",
9
+ "dataType" : "Float32",
10
+ "formattedType" : "MultiArray (Float32)",
11
+ "shortDescription" : "Same shape and dtype as the `sample` input. The predicted noise to facilitate the reverse diffusion (denoising) process",
12
+ "shape" : "[]",
13
+ "name" : "noise_pred",
14
+ "type" : "MultiArray"
15
+ }
16
+ ],
17
+ "version" : "stabilityai\/stable-diffusion-2-1-base",
18
+ "modelParameters" : [
19
+
20
+ ],
21
+ "author" : "Please refer to the Model Card available at huggingface.co\/stabilityai\/stable-diffusion-2-1-base",
22
+ "specificationVersion" : 7,
23
+ "storagePrecision" : "Float16",
24
+ "license" : "OpenRAIL (https:\/\/huggingface.co\/spaces\/CompVis\/stable-diffusion-license)",
25
+ "mlProgramOperationTypeHistogram" : {
26
+ "UpsampleNearestNeighbor" : 3,
27
+ "Ios16.reduceMean" : 218,
28
+ "Ios16.sin" : 1,
29
+ "Ios16.softmax" : 32,
30
+ "Split" : 16,
31
+ "Ios16.add" : 265,
32
+ "Concat" : 14,
33
+ "Ios16.realDiv" : 61,
34
+ "Ios16.square" : 61,
35
+ "ExpandDims" : 3,
36
+ "Ios16.sub" : 109,
37
+ "Ios16.cast" : 1,
38
+ "Ios16.conv" : 282,
39
+ "Ios16.gelu" : 16,
40
+ "Ios16.matmul" : 64,
41
+ "Ios16.reshape" : 282,
42
+ "Ios16.batchNorm" : 61,
43
+ "Ios16.rsqrt" : 48,
44
+ "Ios16.silu" : 47,
45
+ "Ios16.sqrt" : 61,
46
+ "SliceByIndex" : 2,
47
+ "Ios16.mul" : 193,
48
+ "Ios16.cos" : 1
49
+ },
50
+ "computePrecision" : "Mixed (Float32, Float16, Int32)",
51
+ "isUpdatable" : "0",
52
+ "availability" : {
53
+ "macOS" : "13.0",
54
+ "tvOS" : "16.0",
55
+ "watchOS" : "9.0",
56
+ "iOS" : "16.0",
57
+ "macCatalyst" : "16.0"
58
+ },
59
+ "modelType" : {
60
+ "name" : "MLModelType_mlProgram"
61
+ },
62
+ "inputSchema" : [
63
+ {
64
+ "hasShapeFlexibility" : "0",
65
+ "isOptional" : "0",
66
+ "dataType" : "Float16",
67
+ "formattedType" : "MultiArray (Float16 2 × 4 × 64 × 64)",
68
+ "shortDescription" : "The low resolution latent feature maps being denoised through reverse diffusion",
69
+ "shape" : "[2, 4, 64, 64]",
70
+ "name" : "sample",
71
+ "type" : "MultiArray"
72
+ },
73
+ {
74
+ "hasShapeFlexibility" : "0",
75
+ "isOptional" : "0",
76
+ "dataType" : "Float16",
77
+ "formattedType" : "MultiArray (Float16 2)",
78
+ "shortDescription" : "A value emitted by the associated scheduler object to condition the model on a given noise schedule",
79
+ "shape" : "[2]",
80
+ "name" : "timestep",
81
+ "type" : "MultiArray"
82
+ },
83
+ {
84
+ "hasShapeFlexibility" : "0",
85
+ "isOptional" : "0",
86
+ "dataType" : "Float16",
87
+ "formattedType" : "MultiArray (Float16 2 × 1024 × 1 × 77)",
88
+ "shortDescription" : "Output embeddings from the associated text_encoder model to condition to generated image on text. A maximum of 77 tokens (~40 words) are allowed. Longer text is truncated. Shorter text does not reduce computation.",
89
+ "shape" : "[2, 1024, 1, 77]",
90
+ "name" : "encoder_hidden_states",
91
+ "type" : "MultiArray"
92
+ }
93
+ ],
94
+ "userDefinedMetadata" : {
95
+ "com.github.apple.coremltools.version" : "6.1",
96
+ "com.github.apple.coremltools.source" : "torch==1.13.0"
97
+ },
98
+ "generatedClassName" : "Stable_Diffusion_version_stabilityai_stable_diffusion_2_1_base_unet",
99
+ "method" : "predict"
100
+ }
101
+ ]
original/compiled/Unet.mlmodelc/model.mil ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4e25729545d277e68844334034af2f1c8587d61100547fb88998065f1295e035
3
+ size 842344
original/compiled/Unet.mlmodelc/weights/weight.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d106cac2ba1f834383a7fc31599eb841667b679a77060c837fc4fe099b7c6f74
3
+ size 1732124416
original/compiled/UnetChunk1.mlmodelc/analytics/coremldata.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ede163f9c1ba90077e2213d59a174ed6dde98a86d4ac72ba4d59c2985f10b627
3
+ size 207
original/compiled/UnetChunk1.mlmodelc/coremldata.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9570c0c743076cff53f3ad46f48e800c44823bdb16ea51e4031ee617f4c0d332
3
+ size 528
original/compiled/UnetChunk1.mlmodelc/metadata.json ADDED
@@ -0,0 +1,215 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "metadataOutputVersion" : "3.0",
4
+ "storagePrecision" : "Float16",
5
+ "outputSchema" : [
6
+ {
7
+ "hasShapeFlexibility" : "0",
8
+ "isOptional" : "0",
9
+ "dataType" : "Float32",
10
+ "formattedType" : "MultiArray (Float32)",
11
+ "shortDescription" : "",
12
+ "shape" : "[]",
13
+ "name" : "input_89_cast",
14
+ "type" : "MultiArray"
15
+ },
16
+ {
17
+ "hasShapeFlexibility" : "0",
18
+ "isOptional" : "0",
19
+ "dataType" : "Float32",
20
+ "formattedType" : "MultiArray (Float32)",
21
+ "shortDescription" : "",
22
+ "shape" : "[]",
23
+ "name" : "input_117_cast",
24
+ "type" : "MultiArray"
25
+ },
26
+ {
27
+ "hasShapeFlexibility" : "0",
28
+ "isOptional" : "0",
29
+ "dataType" : "Float32",
30
+ "formattedType" : "MultiArray (Float32)",
31
+ "shortDescription" : "",
32
+ "shape" : "[]",
33
+ "name" : "input_171_cast",
34
+ "type" : "MultiArray"
35
+ },
36
+ {
37
+ "hasShapeFlexibility" : "0",
38
+ "isOptional" : "0",
39
+ "dataType" : "Float32",
40
+ "formattedType" : "MultiArray (Float32)",
41
+ "shortDescription" : "",
42
+ "shape" : "[]",
43
+ "name" : "input_63_cast",
44
+ "type" : "MultiArray"
45
+ },
46
+ {
47
+ "hasShapeFlexibility" : "0",
48
+ "isOptional" : "0",
49
+ "dataType" : "Float32",
50
+ "formattedType" : "MultiArray (Float32)",
51
+ "shortDescription" : "",
52
+ "shape" : "[]",
53
+ "name" : "input_15_cast",
54
+ "type" : "MultiArray"
55
+ },
56
+ {
57
+ "hasShapeFlexibility" : "0",
58
+ "isOptional" : "0",
59
+ "dataType" : "Float32",
60
+ "formattedType" : "MultiArray (Float32)",
61
+ "shortDescription" : "",
62
+ "shape" : "[]",
63
+ "name" : "hidden_states_149_cast",
64
+ "type" : "MultiArray"
65
+ },
66
+ {
67
+ "hasShapeFlexibility" : "0",
68
+ "isOptional" : "0",
69
+ "dataType" : "Float32",
70
+ "formattedType" : "MultiArray (Float32)",
71
+ "shortDescription" : "",
72
+ "shape" : "[]",
73
+ "name" : "input_35_cast",
74
+ "type" : "MultiArray"
75
+ },
76
+ {
77
+ "hasShapeFlexibility" : "0",
78
+ "isOptional" : "0",
79
+ "dataType" : "Float32",
80
+ "formattedType" : "MultiArray (Float32)",
81
+ "shortDescription" : "",
82
+ "shape" : "[]",
83
+ "name" : "input_143_cast",
84
+ "type" : "MultiArray"
85
+ },
86
+ {
87
+ "hasShapeFlexibility" : "0",
88
+ "isOptional" : "0",
89
+ "dataType" : "Float32",
90
+ "formattedType" : "MultiArray (Float32)",
91
+ "shortDescription" : "",
92
+ "shape" : "[]",
93
+ "name" : "input_115_cast",
94
+ "type" : "MultiArray"
95
+ },
96
+ {
97
+ "hasShapeFlexibility" : "0",
98
+ "isOptional" : "0",
99
+ "dataType" : "Float32",
100
+ "formattedType" : "MultiArray (Float32)",
101
+ "shortDescription" : "",
102
+ "shape" : "[]",
103
+ "name" : "input_7_cast",
104
+ "type" : "MultiArray"
105
+ },
106
+ {
107
+ "hasShapeFlexibility" : "0",
108
+ "isOptional" : "0",
109
+ "dataType" : "Float32",
110
+ "formattedType" : "MultiArray (Float32)",
111
+ "shortDescription" : "",
112
+ "shape" : "[]",
113
+ "name" : "input_253_cast",
114
+ "type" : "MultiArray"
115
+ },
116
+ {
117
+ "hasShapeFlexibility" : "0",
118
+ "isOptional" : "0",
119
+ "dataType" : "Float32",
120
+ "formattedType" : "MultiArray (Float32)",
121
+ "shortDescription" : "",
122
+ "shape" : "[]",
123
+ "name" : "input_169_cast",
124
+ "type" : "MultiArray"
125
+ },
126
+ {
127
+ "hasShapeFlexibility" : "0",
128
+ "isOptional" : "0",
129
+ "dataType" : "Float32",
130
+ "formattedType" : "MultiArray (Float32)",
131
+ "shortDescription" : "",
132
+ "shape" : "[]",
133
+ "name" : "input_61_cast",
134
+ "type" : "MultiArray"
135
+ }
136
+ ],
137
+ "modelParameters" : [
138
+
139
+ ],
140
+ "specificationVersion" : 7,
141
+ "mlProgramOperationTypeHistogram" : {
142
+ "Ios16.reduceMean" : 104,
143
+ "Ios16.sin" : 1,
144
+ "Ios16.softmax" : 14,
145
+ "Split" : 7,
146
+ "Ios16.add" : 124,
147
+ "Concat" : 4,
148
+ "Ios16.realDiv" : 31,
149
+ "Ios16.square" : 31,
150
+ "ExpandDims" : 3,
151
+ "Ios16.sub" : 52,
152
+ "Ios16.cast" : 13,
153
+ "Ios16.conv" : 129,
154
+ "Ios16.gelu" : 7,
155
+ "Ios16.matmul" : 28,
156
+ "Ios16.reshape" : 132,
157
+ "Ios16.batchNorm" : 31,
158
+ "Ios16.rsqrt" : 21,
159
+ "Ios16.silu" : 26,
160
+ "Ios16.sqrt" : 31,
161
+ "SliceByIndex" : 2,
162
+ "Ios16.mul" : 85,
163
+ "Ios16.cos" : 1
164
+ },
165
+ "computePrecision" : "Mixed (Float32, Float16, Int32)",
166
+ "isUpdatable" : "0",
167
+ "availability" : {
168
+ "macOS" : "13.0",
169
+ "tvOS" : "16.0",
170
+ "watchOS" : "9.0",
171
+ "iOS" : "16.0",
172
+ "macCatalyst" : "16.0"
173
+ },
174
+ "modelType" : {
175
+ "name" : "MLModelType_mlProgram"
176
+ },
177
+ "userDefinedMetadata" : {
178
+
179
+ },
180
+ "inputSchema" : [
181
+ {
182
+ "hasShapeFlexibility" : "0",
183
+ "isOptional" : "0",
184
+ "dataType" : "Float16",
185
+ "formattedType" : "MultiArray (Float16 2 × 4 × 64 × 64)",
186
+ "shortDescription" : "",
187
+ "shape" : "[2, 4, 64, 64]",
188
+ "name" : "sample",
189
+ "type" : "MultiArray"
190
+ },
191
+ {
192
+ "hasShapeFlexibility" : "0",
193
+ "isOptional" : "0",
194
+ "dataType" : "Float16",
195
+ "formattedType" : "MultiArray (Float16 2)",
196
+ "shortDescription" : "",
197
+ "shape" : "[2]",
198
+ "name" : "timestep",
199
+ "type" : "MultiArray"
200
+ },
201
+ {
202
+ "hasShapeFlexibility" : "0",
203
+ "isOptional" : "0",
204
+ "dataType" : "Float16",
205
+ "formattedType" : "MultiArray (Float16 2 × 1024 × 1 × 77)",
206
+ "shortDescription" : "",
207
+ "shape" : "[2, 1024, 1, 77]",
208
+ "name" : "encoder_hidden_states",
209
+ "type" : "MultiArray"
210
+ }
211
+ ],
212
+ "generatedClassName" : "Stable_Diffusion_version_stabilityai_stable_diffusion_2_1_base_unet_chunk1",
213
+ "method" : "predict"
214
+ }
215
+ ]
original/compiled/UnetChunk1.mlmodelc/model.mil ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0b858ed795e82e688b4c2c8d96f5a63f26042269a0f78bbd2ace849d6d0f57bc
3
+ size 396377
original/compiled/UnetChunk1.mlmodelc/weights/weight.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:97f4f7d7616faeb38ca909822b99ccd8c7e5cbd905b93f346c3e5cd2e7e796cc
3
+ size 893578816
original/compiled/UnetChunk2.mlmodelc/analytics/coremldata.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:47ca35b8597b0647b57a0a0447b54dc47f49f97d04f7371279799815facb103e
3
+ size 207
original/compiled/UnetChunk2.mlmodelc/coremldata.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cf9694585c601a93fbd4f7195ce9cbd900f04f520a4a65b064d4feec0388d490
3
+ size 594
original/compiled/UnetChunk2.mlmodelc/metadata.json ADDED
@@ -0,0 +1,202 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "metadataOutputVersion" : "3.0",
4
+ "storagePrecision" : "Float16",
5
+ "outputSchema" : [
6
+ {
7
+ "hasShapeFlexibility" : "0",
8
+ "isOptional" : "0",
9
+ "dataType" : "Float32",
10
+ "formattedType" : "MultiArray (Float32)",
11
+ "shortDescription" : "",
12
+ "shape" : "[]",
13
+ "name" : "noise_pred",
14
+ "type" : "MultiArray"
15
+ }
16
+ ],
17
+ "modelParameters" : [
18
+
19
+ ],
20
+ "specificationVersion" : 7,
21
+ "mlProgramOperationTypeHistogram" : {
22
+ "Split" : 9,
23
+ "Concat" : 10,
24
+ "Ios16.cast" : 14,
25
+ "Ios16.mul" : 108,
26
+ "Ios16.rsqrt" : 27,
27
+ "Ios16.sqrt" : 30,
28
+ "Ios16.sub" : 57,
29
+ "UpsampleNearestNeighbor" : 3,
30
+ "Ios16.conv" : 153,
31
+ "Ios16.add" : 141,
32
+ "Ios16.realDiv" : 30,
33
+ "Ios16.matmul" : 36,
34
+ "Ios16.gelu" : 9,
35
+ "Ios16.reduceMean" : 114,
36
+ "Ios16.softmax" : 18,
37
+ "Ios16.batchNorm" : 30,
38
+ "Ios16.square" : 30,
39
+ "Ios16.reshape" : 150,
40
+ "Ios16.silu" : 21
41
+ },
42
+ "computePrecision" : "Mixed (Int32, Float16, Float32)",
43
+ "isUpdatable" : "0",
44
+ "availability" : {
45
+ "macOS" : "13.0",
46
+ "tvOS" : "16.0",
47
+ "watchOS" : "9.0",
48
+ "iOS" : "16.0",
49
+ "macCatalyst" : "16.0"
50
+ },
51
+ "modelType" : {
52
+ "name" : "MLModelType_mlProgram"
53
+ },
54
+ "userDefinedMetadata" : {
55
+
56
+ },
57
+ "inputSchema" : [
58
+ {
59
+ "hasShapeFlexibility" : "0",
60
+ "isOptional" : "0",
61
+ "dataType" : "Float16",
62
+ "formattedType" : "MultiArray (Float16 2 × 1024 × 1 × 77)",
63
+ "shortDescription" : "",
64
+ "shape" : "[2, 1024, 1, 77]",
65
+ "name" : "encoder_hidden_states",
66
+ "type" : "MultiArray"
67
+ },
68
+ {
69
+ "hasShapeFlexibility" : "0",
70
+ "isOptional" : "0",
71
+ "dataType" : "Float32",
72
+ "formattedType" : "MultiArray (Float32 2 × 320 × 64 × 64)",
73
+ "shortDescription" : "",
74
+ "shape" : "[2, 320, 64, 64]",
75
+ "name" : "input_61_cast",
76
+ "type" : "MultiArray"
77
+ },
78
+ {
79
+ "hasShapeFlexibility" : "0",
80
+ "isOptional" : "0",
81
+ "dataType" : "Float32",
82
+ "formattedType" : "MultiArray (Float32 2 × 1280 × 8 × 8)",
83
+ "shortDescription" : "",
84
+ "shape" : "[2, 1280, 8, 8]",
85
+ "name" : "input_171_cast",
86
+ "type" : "MultiArray"
87
+ },
88
+ {
89
+ "hasShapeFlexibility" : "0",
90
+ "isOptional" : "0",
91
+ "dataType" : "Float32",
92
+ "formattedType" : "MultiArray (Float32 2 × 640 × 32 × 32)",
93
+ "shortDescription" : "",
94
+ "shape" : "[2, 640, 32, 32]",
95
+ "name" : "input_115_cast",
96
+ "type" : "MultiArray"
97
+ },
98
+ {
99
+ "hasShapeFlexibility" : "0",
100
+ "isOptional" : "0",
101
+ "dataType" : "Float32",
102
+ "formattedType" : "MultiArray (Float32 2 × 320 × 32 × 32)",
103
+ "shortDescription" : "",
104
+ "shape" : "[2, 320, 32, 32]",
105
+ "name" : "input_63_cast",
106
+ "type" : "MultiArray"
107
+ },
108
+ {
109
+ "hasShapeFlexibility" : "0",
110
+ "isOptional" : "0",
111
+ "dataType" : "Float32",
112
+ "formattedType" : "MultiArray (Float32 2 × 640 × 16 × 16)",
113
+ "shortDescription" : "",
114
+ "shape" : "[2, 640, 16, 16]",
115
+ "name" : "input_117_cast",
116
+ "type" : "MultiArray"
117
+ },
118
+ {
119
+ "hasShapeFlexibility" : "0",
120
+ "isOptional" : "0",
121
+ "dataType" : "Float32",
122
+ "formattedType" : "MultiArray (Float32 2 × 1280 × 8 × 8)",
123
+ "shortDescription" : "",
124
+ "shape" : "[2, 1280, 8, 8]",
125
+ "name" : "hidden_states_149_cast",
126
+ "type" : "MultiArray"
127
+ },
128
+ {
129
+ "hasShapeFlexibility" : "0",
130
+ "isOptional" : "0",
131
+ "dataType" : "Float32",
132
+ "formattedType" : "MultiArray (Float32 2 × 320 × 64 × 64)",
133
+ "shortDescription" : "",
134
+ "shape" : "[2, 320, 64, 64]",
135
+ "name" : "input_7_cast",
136
+ "type" : "MultiArray"
137
+ },
138
+ {
139
+ "hasShapeFlexibility" : "0",
140
+ "isOptional" : "0",
141
+ "dataType" : "Float32",
142
+ "formattedType" : "MultiArray (Float32 2 × 640 × 32 × 32)",
143
+ "shortDescription" : "",
144
+ "shape" : "[2, 640, 32, 32]",
145
+ "name" : "input_89_cast",
146
+ "type" : "MultiArray"
147
+ },
148
+ {
149
+ "hasShapeFlexibility" : "0",
150
+ "isOptional" : "0",
151
+ "dataType" : "Float32",
152
+ "formattedType" : "MultiArray (Float32 2 × 1280 × 16 × 16)",
153
+ "shortDescription" : "",
154
+ "shape" : "[2, 1280, 16, 16]",
155
+ "name" : "input_143_cast",
156
+ "type" : "MultiArray"
157
+ },
158
+ {
159
+ "hasShapeFlexibility" : "0",
160
+ "isOptional" : "0",
161
+ "dataType" : "Float32",
162
+ "formattedType" : "MultiArray (Float32 2 × 2560 × 8 × 8)",
163
+ "shortDescription" : "",
164
+ "shape" : "[2, 2560, 8, 8]",
165
+ "name" : "input_253_cast",
166
+ "type" : "MultiArray"
167
+ },
168
+ {
169
+ "hasShapeFlexibility" : "0",
170
+ "isOptional" : "0",
171
+ "dataType" : "Float32",
172
+ "formattedType" : "MultiArray (Float32 2 × 1280 × 1 × 1)",
173
+ "shortDescription" : "",
174
+ "shape" : "[2, 1280, 1, 1]",
175
+ "name" : "input_15_cast",
176
+ "type" : "MultiArray"
177
+ },
178
+ {
179
+ "hasShapeFlexibility" : "0",
180
+ "isOptional" : "0",
181
+ "dataType" : "Float32",
182
+ "formattedType" : "MultiArray (Float32 2 × 1280 × 16 × 16)",
183
+ "shortDescription" : "",
184
+ "shape" : "[2, 1280, 16, 16]",
185
+ "name" : "input_169_cast",
186
+ "type" : "MultiArray"
187
+ },
188
+ {
189
+ "hasShapeFlexibility" : "0",
190
+ "isOptional" : "0",
191
+ "dataType" : "Float32",
192
+ "formattedType" : "MultiArray (Float32 2 × 320 × 64 × 64)",
193
+ "shortDescription" : "",
194
+ "shape" : "[2, 320, 64, 64]",
195
+ "name" : "input_35_cast",
196
+ "type" : "MultiArray"
197
+ }
198
+ ],
199
+ "generatedClassName" : "Stable_Diffusion_version_stabilityai_stable_diffusion_2_1_base_unet_chunk2",
200
+ "method" : "predict"
201
+ }
202
+ ]
original/compiled/UnetChunk2.mlmodelc/model.mil ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:631902b8fac77eafd4e435fd2d3c1bfed47ac58f89fde8dad02e16b5df2a593f
3
+ size 453213
original/compiled/UnetChunk2.mlmodelc/weights/weight.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:27910cb525f7d25d42e779aba6e6f32e2213acb472b23d6d5b1b605205b24aed
3
+ size 838545664
original/compiled/VAEDecoder.mlmodelc/analytics/coremldata.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:69f99c5c967d3f6eef4c02caacaada4cdf8fb97963447dc0969a1f1119d26eda
3
+ size 207
original/compiled/VAEDecoder.mlmodelc/coremldata.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2430102e054df860edaa560cb70731328ae6c19e7c9f411a6bf5e77c2063b059
3
+ size 768
original/compiled/VAEDecoder.mlmodelc/metadata.json ADDED
@@ -0,0 +1,75 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "shortDescription" : "Stable Diffusion generates images conditioned on text and\/or other images as input through the diffusion process. Please refer to https:\/\/arxiv.org\/abs\/2112.10752 for details.",
4
+ "metadataOutputVersion" : "3.0",
5
+ "outputSchema" : [
6
+ {
7
+ "hasShapeFlexibility" : "0",
8
+ "isOptional" : "0",
9
+ "dataType" : "Float32",
10
+ "formattedType" : "MultiArray (Float32)",
11
+ "shortDescription" : "Generated image normalized to range [-1, 1]",
12
+ "shape" : "[]",
13
+ "name" : "image",
14
+ "type" : "MultiArray"
15
+ }
16
+ ],
17
+ "version" : "stabilityai\/stable-diffusion-2-1-base",
18
+ "modelParameters" : [
19
+
20
+ ],
21
+ "author" : "Please refer to the Model Card available at huggingface.co\/stabilityai\/stable-diffusion-2-1-base",
22
+ "specificationVersion" : 7,
23
+ "storagePrecision" : "Float16",
24
+ "license" : "OpenRAIL (https:\/\/huggingface.co\/spaces\/CompVis\/stable-diffusion-license)",
25
+ "mlProgramOperationTypeHistogram" : {
26
+ "Ios16.cast" : 1,
27
+ "Ios16.mul" : 1,
28
+ "Ios16.sqrt" : 30,
29
+ "Ios16.sub" : 30,
30
+ "Transpose" : 3,
31
+ "UpsampleNearestNeighbor" : 3,
32
+ "Ios16.conv" : 36,
33
+ "Ios16.add" : 45,
34
+ "Ios16.linear" : 4,
35
+ "Ios16.matmul" : 2,
36
+ "Ios16.realDiv" : 30,
37
+ "Ios16.reduceMean" : 60,
38
+ "Ios16.softmax" : 1,
39
+ "Ios16.batchNorm" : 30,
40
+ "Ios16.square" : 30,
41
+ "Ios16.reshape" : 62,
42
+ "Ios16.silu" : 29
43
+ },
44
+ "computePrecision" : "Mixed (Float32, Float16, Int32)",
45
+ "isUpdatable" : "0",
46
+ "availability" : {
47
+ "macOS" : "13.0",
48
+ "tvOS" : "16.0",
49
+ "watchOS" : "9.0",
50
+ "iOS" : "16.0",
51
+ "macCatalyst" : "16.0"
52
+ },
53
+ "modelType" : {
54
+ "name" : "MLModelType_mlProgram"
55
+ },
56
+ "inputSchema" : [
57
+ {
58
+ "hasShapeFlexibility" : "0",
59
+ "isOptional" : "0",
60
+ "dataType" : "Float16",
61
+ "formattedType" : "MultiArray (Float16 1 × 4 × 64 × 64)",
62
+ "shortDescription" : "The denoised latent embeddings from the unet model after the last step of reverse diffusion",
63
+ "shape" : "[1, 4, 64, 64]",
64
+ "name" : "z",
65
+ "type" : "MultiArray"
66
+ }
67
+ ],
68
+ "userDefinedMetadata" : {
69
+ "com.github.apple.coremltools.version" : "6.1",
70
+ "com.github.apple.coremltools.source" : "torch==1.13.0"
71
+ },
72
+ "generatedClassName" : "Stable_Diffusion_version_stabilityai_stable_diffusion_2_1_base_vae_decoder",
73
+ "method" : "predict"
74
+ }
75
+ ]
original/compiled/VAEDecoder.mlmodelc/model.mil ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:99e81b2a9a82856be34e91448bc3c033b5ed03d5868f848c7cff5a0b3ef2e339
3
+ size 174068
original/compiled/VAEDecoder.mlmodelc/weights/weight.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3508e6367d509fdf7d10750711895a8c26beb36769d010ec27376f2ecfbad913
3
+ size 99039232
original/compiled/VAEEncoder.mlmodelc/analytics/coremldata.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4147136fd916e3ff8890b4e78fa64d7140fa70577d222a9157859c7a97dcaeb5
3
+ size 207
original/compiled/VAEEncoder.mlmodelc/coremldata.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a6c596332de039ed3d9b180a13f1a1cfe4598f563632f0256313f786d093d0f2
3
+ size 1291
original/compiled/VAEEncoder.mlmodelc/metadata.json ADDED
@@ -0,0 +1,118 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "shortDescription" : "Stable Diffusion generates images conditioned on text and\/or other images as input through the diffusion process. Please refer to https:\/\/arxiv.org\/abs\/2112.10752 for details.",
4
+ "metadataOutputVersion" : "3.0",
5
+ "outputSchema" : [
6
+ {
7
+ "hasShapeFlexibility" : "0",
8
+ "isOptional" : "0",
9
+ "dataType" : "Float32",
10
+ "formattedType" : "MultiArray (Float32)",
11
+ "shortDescription" : "The latent embeddings from the unet model from the input image for image2image.",
12
+ "shape" : "[]",
13
+ "name" : "latent_dist",
14
+ "type" : "MultiArray"
15
+ }
16
+ ],
17
+ "version" : "stabilityai\/stable-diffusion-2-1-base",
18
+ "modelParameters" : [
19
+
20
+ ],
21
+ "author" : "Please refer to the Model Card available at huggingface.co\/stabilityai\/stable-diffusion-2-1-base",
22
+ "specificationVersion" : 7,
23
+ "storagePrecision" : "Float16",
24
+ "license" : "OpenRAIL (https:\/\/huggingface.co\/spaces\/CompVis\/stable-diffusion-license)",
25
+ "mlProgramOperationTypeHistogram" : {
26
+ "Transpose" : 3,
27
+ "Ios16.exp" : 1,
28
+ "Ios16.reduceMean" : 44,
29
+ "Ios16.softmax" : 1,
30
+ "Split" : 1,
31
+ "Ios16.linear" : 4,
32
+ "Ios16.add" : 35,
33
+ "Ios16.realDiv" : 22,
34
+ "Ios16.square" : 22,
35
+ "Pad" : 3,
36
+ "Ios16.sub" : 22,
37
+ "Ios16.cast" : 1,
38
+ "Ios16.clip" : 1,
39
+ "Ios16.conv" : 28,
40
+ "Ios16.matmul" : 2,
41
+ "Ios16.reshape" : 46,
42
+ "Ios16.batchNorm" : 22,
43
+ "Ios16.silu" : 21,
44
+ "Ios16.sqrt" : 22,
45
+ "Ios16.mul" : 6
46
+ },
47
+ "computePrecision" : "Mixed (Float32, Float16, Int32)",
48
+ "isUpdatable" : "0",
49
+ "availability" : {
50
+ "macOS" : "13.0",
51
+ "tvOS" : "16.0",
52
+ "watchOS" : "9.0",
53
+ "iOS" : "16.0",
54
+ "macCatalyst" : "16.0"
55
+ },
56
+ "modelType" : {
57
+ "name" : "MLModelType_mlProgram"
58
+ },
59
+ "inputSchema" : [
60
+ {
61
+ "hasShapeFlexibility" : "0",
62
+ "isOptional" : "0",
63
+ "dataType" : "Float16",
64
+ "formattedType" : "MultiArray (Float16 1 × 3 × 512 × 512)",
65
+ "shortDescription" : "An image of the correct size to create the latent space with, image2image and in-painting.",
66
+ "shape" : "[1, 3, 512, 512]",
67
+ "name" : "sample",
68
+ "type" : "MultiArray"
69
+ },
70
+ {
71
+ "hasShapeFlexibility" : "0",
72
+ "isOptional" : "0",
73
+ "dataType" : "Float16",
74
+ "formattedType" : "MultiArray (Float16 1 × 4 × 64 × 64)",
75
+ "shortDescription" : "Latent noise for `DiagonalGaussianDistribution` operation.",
76
+ "shape" : "[1, 4, 64, 64]",
77
+ "name" : "diagonalNoise",
78
+ "type" : "MultiArray"
79
+ },
80
+ {
81
+ "hasShapeFlexibility" : "0",
82
+ "isOptional" : "0",
83
+ "dataType" : "Float16",
84
+ "formattedType" : "MultiArray (Float16 1 × 4 × 64 × 64)",
85
+ "shortDescription" : "Latent noise for use with strength parameter of image2image",
86
+ "shape" : "[1, 4, 64, 64]",
87
+ "name" : "noise",
88
+ "type" : "MultiArray"
89
+ },
90
+ {
91
+ "hasShapeFlexibility" : "0",
92
+ "isOptional" : "0",
93
+ "dataType" : "Float16",
94
+ "formattedType" : "MultiArray (Float16 1 × 1)",
95
+ "shortDescription" : "Precalculated `sqrtAlphasCumprod` value based on strength and the current schedular's alphasCumprod values",
96
+ "shape" : "[1, 1]",
97
+ "name" : "sqrtAlphasCumprod",
98
+ "type" : "MultiArray"
99
+ },
100
+ {
101
+ "hasShapeFlexibility" : "0",
102
+ "isOptional" : "0",
103
+ "dataType" : "Float16",
104
+ "formattedType" : "MultiArray (Float16 1 × 1)",
105
+ "shortDescription" : "Precalculated `sqrtOneMinusAlphasCumprod` value based on strength and the current schedular's alphasCumprod values",
106
+ "shape" : "[1, 1]",
107
+ "name" : "sqrtOneMinusAlphasCumprod",
108
+ "type" : "MultiArray"
109
+ }
110
+ ],
111
+ "userDefinedMetadata" : {
112
+ "com.github.apple.coremltools.version" : "6.1",
113
+ "com.github.apple.coremltools.source" : "torch==1.13.0"
114
+ },
115
+ "generatedClassName" : "Stable_Diffusion_version_stabilityai_stable_diffusion_2_1_base_vae_encoder",
116
+ "method" : "predict"
117
+ }
118
+ ]
original/compiled/VAEEncoder.mlmodelc/model.mil ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2569dd0ec6cbfa6aab75d09632337c5768a7c4d763ceb8de633d7ad40d89df86
3
+ size 134950
original/compiled/VAEEncoder.mlmodelc/weights/weight.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:950fd5aac1db5403266fd8d42bc732b5007cf0be9fae0483e5088d1a5eacbbd5
3
+ size 68370240
original/compiled/merges.txt ADDED
The diff for this file is too large to render. See raw diff
 
original/compiled/vocab.json ADDED
The diff for this file is too large to render. See raw diff
 
original/packages/Stable_Diffusion_version_stabilityai_stable-diffusion-2-1-base_text_encoder.mlpackage/Data/com.apple.CoreML/model.mlmodel ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:dfda627a1c53245ba099b51f6aef25887cf803a2ba4189733b9cc6ea25a60b20
3
+ size 272312
original/packages/Stable_Diffusion_version_stabilityai_stable-diffusion-2-1-base_text_encoder.mlpackage/Data/com.apple.CoreML/weights/weight.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0b5cff8d14316925d7fc7d83eb97edd49f2be05f39f84516ca326d6fb644b590
3
+ size 680811520
original/packages/Stable_Diffusion_version_stabilityai_stable-diffusion-2-1-base_text_encoder.mlpackage/Manifest.json ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "fileFormatVersion": "1.0.0",
3
+ "itemInfoEntries": {
4
+ "11961AC1-9225-4F43-8D3D-1B49722A86E8": {
5
+ "author": "com.apple.CoreML",
6
+ "description": "CoreML Model Weights",
7
+ "name": "weights",
8
+ "path": "com.apple.CoreML/weights"
9
+ },
10
+ "59FF47D1-22F1-4C98-BC10-0791C2312742": {
11
+ "author": "com.apple.CoreML",
12
+ "description": "CoreML Model Specification",
13
+ "name": "model.mlmodel",
14
+ "path": "com.apple.CoreML/model.mlmodel"
15
+ }
16
+ },
17
+ "rootModelIdentifier": "59FF47D1-22F1-4C98-BC10-0791C2312742"
18
+ }
original/packages/Stable_Diffusion_version_stabilityai_stable-diffusion-2-1-base_unet.mlpackage/Data/com.apple.CoreML/model.mlmodel ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:52f4da5ccdac95c0700f109d0790594f4f55f255398a9ab341ef581950cc29f5
3
+ size 723021
original/packages/Stable_Diffusion_version_stabilityai_stable-diffusion-2-1-base_unet.mlpackage/Data/com.apple.CoreML/weights/weight.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d106cac2ba1f834383a7fc31599eb841667b679a77060c837fc4fe099b7c6f74
3
+ size 1732124416
original/packages/Stable_Diffusion_version_stabilityai_stable-diffusion-2-1-base_unet.mlpackage/Manifest.json ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "fileFormatVersion": "1.0.0",
3
+ "itemInfoEntries": {
4
+ "2A7A36AA-4B65-46F7-9177-D68E15511B9D": {
5
+ "author": "com.apple.CoreML",
6
+ "description": "CoreML Model Weights",
7
+ "name": "weights",
8
+ "path": "com.apple.CoreML/weights"
9
+ },
10
+ "50A72F8F-DD2E-4B4D-A43E-613AC3698672": {
11
+ "author": "com.apple.CoreML",
12
+ "description": "CoreML Model Specification",
13
+ "name": "model.mlmodel",
14
+ "path": "com.apple.CoreML/model.mlmodel"
15
+ }
16
+ },
17
+ "rootModelIdentifier": "50A72F8F-DD2E-4B4D-A43E-613AC3698672"
18
+ }
original/packages/Stable_Diffusion_version_stabilityai_stable-diffusion-2-1-base_unet_chunk1.mlpackage/Data/com.apple.CoreML/model.mlmodel ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:064aa14137b6eca3694237315302e9117edfb8389845434b1162799ad60f6d10
3
+ size 339619
original/packages/Stable_Diffusion_version_stabilityai_stable-diffusion-2-1-base_unet_chunk1.mlpackage/Data/com.apple.CoreML/weights/weight.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:97f4f7d7616faeb38ca909822b99ccd8c7e5cbd905b93f346c3e5cd2e7e796cc
3
+ size 893578816
original/packages/Stable_Diffusion_version_stabilityai_stable-diffusion-2-1-base_unet_chunk1.mlpackage/Manifest.json ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "fileFormatVersion": "1.0.0",
3
+ "itemInfoEntries": {
4
+ "1A628D2A-6EC2-4372-BFDA-2C8B47A85A71": {
5
+ "author": "com.apple.CoreML",
6
+ "description": "CoreML Model Weights",
7
+ "name": "weights",
8
+ "path": "com.apple.CoreML/weights"
9
+ },
10
+ "B7D314F5-8BDA-4CC3-8901-F2938DEF8F8E": {
11
+ "author": "com.apple.CoreML",
12
+ "description": "CoreML Model Specification",
13
+ "name": "model.mlmodel",
14
+ "path": "com.apple.CoreML/model.mlmodel"
15
+ }
16
+ },
17
+ "rootModelIdentifier": "B7D314F5-8BDA-4CC3-8901-F2938DEF8F8E"
18
+ }
original/packages/Stable_Diffusion_version_stabilityai_stable-diffusion-2-1-base_unet_chunk2.mlpackage/Data/com.apple.CoreML/model.mlmodel ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:85317bfec9fb4c8354697e9fa8165b24275878dfea0837d5713d987e91bd04e5
3
+ size 389721
original/packages/Stable_Diffusion_version_stabilityai_stable-diffusion-2-1-base_unet_chunk2.mlpackage/Data/com.apple.CoreML/weights/weight.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:27910cb525f7d25d42e779aba6e6f32e2213acb472b23d6d5b1b605205b24aed
3
+ size 838545664
original/packages/Stable_Diffusion_version_stabilityai_stable-diffusion-2-1-base_unet_chunk2.mlpackage/Manifest.json ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "fileFormatVersion": "1.0.0",
3
+ "itemInfoEntries": {
4
+ "34DDC4AD-F8DB-49E1-9EAD-0C3141F6CA94": {
5
+ "author": "com.apple.CoreML",
6
+ "description": "CoreML Model Specification",
7
+ "name": "model.mlmodel",
8
+ "path": "com.apple.CoreML/model.mlmodel"
9
+ },
10
+ "B8407BF5-A323-4E01-8EBB-4180264983B2": {
11
+ "author": "com.apple.CoreML",
12
+ "description": "CoreML Model Weights",
13
+ "name": "weights",
14
+ "path": "com.apple.CoreML/weights"
15
+ }
16
+ },
17
+ "rootModelIdentifier": "34DDC4AD-F8DB-49E1-9EAD-0C3141F6CA94"
18
+ }
original/packages/Stable_Diffusion_version_stabilityai_stable-diffusion-2-1-base_vae_decoder.mlpackage/Data/com.apple.CoreML/model.mlmodel ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4acfa099d34f91f7d5f4f831cf173f91d2b8c1e61d991cabba448b4ff7c92024
3
+ size 147334
original/packages/Stable_Diffusion_version_stabilityai_stable-diffusion-2-1-base_vae_decoder.mlpackage/Data/com.apple.CoreML/weights/weight.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3508e6367d509fdf7d10750711895a8c26beb36769d010ec27376f2ecfbad913
3
+ size 99039232
original/packages/Stable_Diffusion_version_stabilityai_stable-diffusion-2-1-base_vae_decoder.mlpackage/Manifest.json ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "fileFormatVersion": "1.0.0",
3
+ "itemInfoEntries": {
4
+ "A640FB14-1DE2-4F3C-8738-178B406A52CC": {
5
+ "author": "com.apple.CoreML",
6
+ "description": "CoreML Model Specification",
7
+ "name": "model.mlmodel",
8
+ "path": "com.apple.CoreML/model.mlmodel"
9
+ },
10
+ "E33AEFFC-BD3A-4F1B-A3E8-2D62BDA7A887": {
11
+ "author": "com.apple.CoreML",
12
+ "description": "CoreML Model Weights",
13
+ "name": "weights",
14
+ "path": "com.apple.CoreML/weights"
15
+ }
16
+ },
17
+ "rootModelIdentifier": "A640FB14-1DE2-4F3C-8738-178B406A52CC"
18
+ }
original/packages/Stable_Diffusion_version_stabilityai_stable-diffusion-2-1-base_vae_encoder.mlpackage/Data/com.apple.CoreML/model.mlmodel ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0b40d0d4211f3ad6b1a03b8458446d87b0f1bb08df2588ff31ebd024bbcd6afa
3
+ size 114993
original/packages/Stable_Diffusion_version_stabilityai_stable-diffusion-2-1-base_vae_encoder.mlpackage/Data/com.apple.CoreML/weights/weight.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:950fd5aac1db5403266fd8d42bc732b5007cf0be9fae0483e5088d1a5eacbbd5
3
+ size 68370240