Commit
·
7cf8ea7
1
Parent(s):
5f1eb80
initial commit
Browse filesThis view is limited to 50 files because it contains too many changes.
See raw diff
- README.md +9 -0
- original/compiled/TextEncoder.mlmodelc/analytics/coremldata.bin +3 -0
- original/compiled/TextEncoder.mlmodelc/coremldata.bin +3 -0
- original/compiled/TextEncoder.mlmodelc/metadata.json +85 -0
- original/compiled/TextEncoder.mlmodelc/model.mil +0 -0
- original/compiled/TextEncoder.mlmodelc/weights/weight.bin +3 -0
- original/compiled/Unet.mlmodelc/analytics/coremldata.bin +3 -0
- original/compiled/Unet.mlmodelc/coremldata.bin +3 -0
- original/compiled/Unet.mlmodelc/metadata.json +101 -0
- original/compiled/Unet.mlmodelc/model.mil +0 -0
- original/compiled/Unet.mlmodelc/weights/weight.bin +3 -0
- original/compiled/UnetChunk1.mlmodelc/analytics/coremldata.bin +3 -0
- original/compiled/UnetChunk1.mlmodelc/coremldata.bin +3 -0
- original/compiled/UnetChunk1.mlmodelc/metadata.json +215 -0
- original/compiled/UnetChunk1.mlmodelc/model.mil +0 -0
- original/compiled/UnetChunk1.mlmodelc/weights/weight.bin +3 -0
- original/compiled/UnetChunk2.mlmodelc/analytics/coremldata.bin +3 -0
- original/compiled/UnetChunk2.mlmodelc/coremldata.bin +3 -0
- original/compiled/UnetChunk2.mlmodelc/metadata.json +202 -0
- original/compiled/UnetChunk2.mlmodelc/model.mil +0 -0
- original/compiled/UnetChunk2.mlmodelc/weights/weight.bin +3 -0
- original/compiled/VAEDecoder.mlmodelc/analytics/coremldata.bin +3 -0
- original/compiled/VAEDecoder.mlmodelc/coremldata.bin +3 -0
- original/compiled/VAEDecoder.mlmodelc/metadata.json +75 -0
- original/compiled/VAEDecoder.mlmodelc/model.mil +0 -0
- original/compiled/VAEDecoder.mlmodelc/weights/weight.bin +3 -0
- original/compiled/VAEEncoder.mlmodelc/analytics/coremldata.bin +3 -0
- original/compiled/VAEEncoder.mlmodelc/coremldata.bin +3 -0
- original/compiled/VAEEncoder.mlmodelc/metadata.json +75 -0
- original/compiled/VAEEncoder.mlmodelc/model.mil +0 -0
- original/compiled/VAEEncoder.mlmodelc/weights/weight.bin +3 -0
- original/compiled/merges.txt +0 -0
- original/compiled/vocab.json +0 -0
- original/packages/Stable_Diffusion_version_stabilityai_stable-diffusion-2-base_text_encoder.mlpackage/Data/com.apple.CoreML/model.mlmodel +3 -0
- original/packages/Stable_Diffusion_version_stabilityai_stable-diffusion-2-base_text_encoder.mlpackage/Data/com.apple.CoreML/weights/weight.bin +3 -0
- original/packages/Stable_Diffusion_version_stabilityai_stable-diffusion-2-base_text_encoder.mlpackage/Manifest.json +18 -0
- original/packages/Stable_Diffusion_version_stabilityai_stable-diffusion-2-base_unet.mlpackage/Data/com.apple.CoreML/model.mlmodel +3 -0
- original/packages/Stable_Diffusion_version_stabilityai_stable-diffusion-2-base_unet.mlpackage/Data/com.apple.CoreML/weights/weight.bin +3 -0
- original/packages/Stable_Diffusion_version_stabilityai_stable-diffusion-2-base_unet.mlpackage/Manifest.json +18 -0
- original/packages/Stable_Diffusion_version_stabilityai_stable-diffusion-2-base_unet_chunk1.mlpackage/Data/com.apple.CoreML/model.mlmodel +3 -0
- original/packages/Stable_Diffusion_version_stabilityai_stable-diffusion-2-base_unet_chunk1.mlpackage/Data/com.apple.CoreML/weights/weight.bin +3 -0
- original/packages/Stable_Diffusion_version_stabilityai_stable-diffusion-2-base_unet_chunk1.mlpackage/Manifest.json +18 -0
- original/packages/Stable_Diffusion_version_stabilityai_stable-diffusion-2-base_unet_chunk2.mlpackage/Data/com.apple.CoreML/model.mlmodel +3 -0
- original/packages/Stable_Diffusion_version_stabilityai_stable-diffusion-2-base_unet_chunk2.mlpackage/Data/com.apple.CoreML/weights/weight.bin +3 -0
- original/packages/Stable_Diffusion_version_stabilityai_stable-diffusion-2-base_unet_chunk2.mlpackage/Manifest.json +18 -0
- original/packages/Stable_Diffusion_version_stabilityai_stable-diffusion-2-base_vae_decoder.mlpackage/Data/com.apple.CoreML/model.mlmodel +3 -0
- original/packages/Stable_Diffusion_version_stabilityai_stable-diffusion-2-base_vae_decoder.mlpackage/Data/com.apple.CoreML/weights/weight.bin +3 -0
- original/packages/Stable_Diffusion_version_stabilityai_stable-diffusion-2-base_vae_decoder.mlpackage/Manifest.json +18 -0
- original/packages/Stable_Diffusion_version_stabilityai_stable-diffusion-2-base_vae_encoder.mlpackage/Data/com.apple.CoreML/model.mlmodel +3 -0
- original/packages/Stable_Diffusion_version_stabilityai_stable-diffusion-2-base_vae_encoder.mlpackage/Data/com.apple.CoreML/weights/weight.bin +3 -0
README.md
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Core ML Stable Diffusion Model (SD 2.0, 640x384)
|
2 |
+
|
3 |
+
This repository contains pre-converted Core ML models of Stable Diffusion v2
|
4 |
+
for use on Apple silicon devices. I changed the resolution to make it handy for
|
5 |
+
generating widescreen images.
|
6 |
+
|
7 |
+
- Original model: [Stable Diffusion v2](https://huggingface.co/stabilityai/stable-diffusion-2)
|
8 |
+
- Image resolution: 640x384
|
9 |
+
- Tested on ml-stable-diffusion v1.1.0
|
original/compiled/TextEncoder.mlmodelc/analytics/coremldata.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:28628ccd13fcfd2d3e34074bdb0d4785c6ebff72946234633a403921b362f28c
|
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:19be010568766bdc0f9cb803285de9e7a74ffcc737f8b91d4edfa781ba7befe1
|
3 |
+
size 835
|
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-base",
|
28 |
+
"modelParameters" : [
|
29 |
+
|
30 |
+
],
|
31 |
+
"author" : "Please refer to the Model Card available at huggingface.co\/stabilityai\/stable-diffusion-2-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.3.0",
|
80 |
+
"com.github.apple.coremltools.source" : "torch==2.0.0"
|
81 |
+
},
|
82 |
+
"generatedClassName" : "Stable_Diffusion_version_stabilityai_stable_diffusion_2_base_text_encoder",
|
83 |
+
"method" : "predict"
|
84 |
+
}
|
85 |
+
]
|
original/compiled/TextEncoder.mlmodelc/model.mil
ADDED
The diff for this file is too large to render.
See raw diff
|
|
original/compiled/TextEncoder.mlmodelc/weights/weight.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:fa359132d4df273a07350fb486bebcdd8c2549865c7b029ed34126c245e88018
|
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:50da38ff7b2523cb701d023ce5a3dc5a5058bbc0878bec02014f0cb5265d6927
|
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:e3f849c8e42db9cdd6bba058b9c87469e0487db8e359b884926b911fa08b8a98
|
3 |
+
size 1217
|
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-base",
|
18 |
+
"modelParameters" : [
|
19 |
+
|
20 |
+
],
|
21 |
+
"author" : "Please refer to the Model Card available at huggingface.co\/stabilityai\/stable-diffusion-2-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 × 48 × 80)",
|
68 |
+
"shortDescription" : "The low resolution latent feature maps being denoised through reverse diffusion",
|
69 |
+
"shape" : "[2, 4, 48, 80]",
|
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.3.0",
|
96 |
+
"com.github.apple.coremltools.source" : "torch==2.0.0"
|
97 |
+
},
|
98 |
+
"generatedClassName" : "Stable_Diffusion_version_stabilityai_stable_diffusion_2_base_unet",
|
99 |
+
"method" : "predict"
|
100 |
+
}
|
101 |
+
]
|
original/compiled/Unet.mlmodelc/model.mil
ADDED
The diff for this file is too large to render.
See raw diff
|
|
original/compiled/Unet.mlmodelc/weights/weight.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:2177ee86b2694bc5ce8c0d3a5156e47bad28ddf1ad0d188e4edd18c2e7444e93
|
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:e60ddc2483b391c0679a9388a74b5c59e2532793290d1e65de4398a0de3663f3
|
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:e1b06c73edd6000465be4a6113c331815367992c51062d646ebb63efd436efd9
|
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_15_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_253_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_143_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_115_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" : "input_171_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_169_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_61_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_63_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_7_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" : "hidden_states_149_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_117_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 × 48 × 80)",
|
186 |
+
"shortDescription" : "",
|
187 |
+
"shape" : "[2, 4, 48, 80]",
|
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_base_unet_chunk1",
|
213 |
+
"method" : "predict"
|
214 |
+
}
|
215 |
+
]
|
original/compiled/UnetChunk1.mlmodelc/model.mil
ADDED
The diff for this file is too large to render.
See raw diff
|
|
original/compiled/UnetChunk1.mlmodelc/weights/weight.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:d2e6356233a2fe2ae093fe498001ce82acd333791730841fb9d5a7b3fae46c8c
|
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:23374d5aa0d91c18c278d5b7a389589533cdebe40362d0e3c0471d70b6e5923d
|
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:b1ac8380750af91bfc48a0592263faf4a0c38b0f3bcb0d10c7f04b9de66fc899
|
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 × 24 × 40)",
|
73 |
+
"shortDescription" : "",
|
74 |
+
"shape" : "[2, 320, 24, 40]",
|
75 |
+
"name" : "input_63_cast",
|
76 |
+
"type" : "MultiArray"
|
77 |
+
},
|
78 |
+
{
|
79 |
+
"hasShapeFlexibility" : "0",
|
80 |
+
"isOptional" : "0",
|
81 |
+
"dataType" : "Float32",
|
82 |
+
"formattedType" : "MultiArray (Float32 2 × 640 × 12 × 20)",
|
83 |
+
"shortDescription" : "",
|
84 |
+
"shape" : "[2, 640, 12, 20]",
|
85 |
+
"name" : "input_117_cast",
|
86 |
+
"type" : "MultiArray"
|
87 |
+
},
|
88 |
+
{
|
89 |
+
"hasShapeFlexibility" : "0",
|
90 |
+
"isOptional" : "0",
|
91 |
+
"dataType" : "Float32",
|
92 |
+
"formattedType" : "MultiArray (Float32 2 × 640 × 24 × 40)",
|
93 |
+
"shortDescription" : "",
|
94 |
+
"shape" : "[2, 640, 24, 40]",
|
95 |
+
"name" : "input_89_cast",
|
96 |
+
"type" : "MultiArray"
|
97 |
+
},
|
98 |
+
{
|
99 |
+
"hasShapeFlexibility" : "0",
|
100 |
+
"isOptional" : "0",
|
101 |
+
"dataType" : "Float32",
|
102 |
+
"formattedType" : "MultiArray (Float32 2 × 1280 × 12 × 20)",
|
103 |
+
"shortDescription" : "",
|
104 |
+
"shape" : "[2, 1280, 12, 20]",
|
105 |
+
"name" : "input_143_cast",
|
106 |
+
"type" : "MultiArray"
|
107 |
+
},
|
108 |
+
{
|
109 |
+
"hasShapeFlexibility" : "0",
|
110 |
+
"isOptional" : "0",
|
111 |
+
"dataType" : "Float32",
|
112 |
+
"formattedType" : "MultiArray (Float32 2 × 320 × 48 × 80)",
|
113 |
+
"shortDescription" : "",
|
114 |
+
"shape" : "[2, 320, 48, 80]",
|
115 |
+
"name" : "input_35_cast",
|
116 |
+
"type" : "MultiArray"
|
117 |
+
},
|
118 |
+
{
|
119 |
+
"hasShapeFlexibility" : "0",
|
120 |
+
"isOptional" : "0",
|
121 |
+
"dataType" : "Float32",
|
122 |
+
"formattedType" : "MultiArray (Float32 2 × 1280 × 6 × 10)",
|
123 |
+
"shortDescription" : "",
|
124 |
+
"shape" : "[2, 1280, 6, 10]",
|
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 × 48 × 80)",
|
133 |
+
"shortDescription" : "",
|
134 |
+
"shape" : "[2, 320, 48, 80]",
|
135 |
+
"name" : "input_7_cast",
|
136 |
+
"type" : "MultiArray"
|
137 |
+
},
|
138 |
+
{
|
139 |
+
"hasShapeFlexibility" : "0",
|
140 |
+
"isOptional" : "0",
|
141 |
+
"dataType" : "Float32",
|
142 |
+
"formattedType" : "MultiArray (Float32 2 × 1280 × 1 × 1)",
|
143 |
+
"shortDescription" : "",
|
144 |
+
"shape" : "[2, 1280, 1, 1]",
|
145 |
+
"name" : "input_15_cast",
|
146 |
+
"type" : "MultiArray"
|
147 |
+
},
|
148 |
+
{
|
149 |
+
"hasShapeFlexibility" : "0",
|
150 |
+
"isOptional" : "0",
|
151 |
+
"dataType" : "Float32",
|
152 |
+
"formattedType" : "MultiArray (Float32 2 × 1280 × 12 × 20)",
|
153 |
+
"shortDescription" : "",
|
154 |
+
"shape" : "[2, 1280, 12, 20]",
|
155 |
+
"name" : "input_169_cast",
|
156 |
+
"type" : "MultiArray"
|
157 |
+
},
|
158 |
+
{
|
159 |
+
"hasShapeFlexibility" : "0",
|
160 |
+
"isOptional" : "0",
|
161 |
+
"dataType" : "Float32",
|
162 |
+
"formattedType" : "MultiArray (Float32 2 × 2560 × 6 × 10)",
|
163 |
+
"shortDescription" : "",
|
164 |
+
"shape" : "[2, 2560, 6, 10]",
|
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 × 6 × 10)",
|
173 |
+
"shortDescription" : "",
|
174 |
+
"shape" : "[2, 1280, 6, 10]",
|
175 |
+
"name" : "input_171_cast",
|
176 |
+
"type" : "MultiArray"
|
177 |
+
},
|
178 |
+
{
|
179 |
+
"hasShapeFlexibility" : "0",
|
180 |
+
"isOptional" : "0",
|
181 |
+
"dataType" : "Float32",
|
182 |
+
"formattedType" : "MultiArray (Float32 2 × 640 × 24 × 40)",
|
183 |
+
"shortDescription" : "",
|
184 |
+
"shape" : "[2, 640, 24, 40]",
|
185 |
+
"name" : "input_115_cast",
|
186 |
+
"type" : "MultiArray"
|
187 |
+
},
|
188 |
+
{
|
189 |
+
"hasShapeFlexibility" : "0",
|
190 |
+
"isOptional" : "0",
|
191 |
+
"dataType" : "Float32",
|
192 |
+
"formattedType" : "MultiArray (Float32 2 × 320 × 48 × 80)",
|
193 |
+
"shortDescription" : "",
|
194 |
+
"shape" : "[2, 320, 48, 80]",
|
195 |
+
"name" : "input_61_cast",
|
196 |
+
"type" : "MultiArray"
|
197 |
+
}
|
198 |
+
],
|
199 |
+
"generatedClassName" : "Stable_Diffusion_version_stabilityai_stable_diffusion_2_base_unet_chunk2",
|
200 |
+
"method" : "predict"
|
201 |
+
}
|
202 |
+
]
|
original/compiled/UnetChunk2.mlmodelc/model.mil
ADDED
The diff for this file is too large to render.
See raw diff
|
|
original/compiled/UnetChunk2.mlmodelc/weights/weight.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:2f37b91e67b33536e1b912101536d53777be30b2dc1d9ddbee79c8a229302502
|
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:e1fb480f16ccbc7e00c5795fc02549265bbc0a544a6de55df782595a1207411d
|
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:b1d6ed9336fd69ddd2719d0b6c4619bfea9b655ad80f82f36603764b5fb9d161
|
3 |
+
size 765
|
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-base",
|
18 |
+
"modelParameters" : [
|
19 |
+
|
20 |
+
],
|
21 |
+
"author" : "Please refer to the Model Card available at huggingface.co\/stabilityai\/stable-diffusion-2-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" : 7,
|
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" : 70,
|
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 × 48 × 80)",
|
62 |
+
"shortDescription" : "The denoised latent embeddings from the unet model after the last step of reverse diffusion",
|
63 |
+
"shape" : "[1, 4, 48, 80]",
|
64 |
+
"name" : "z",
|
65 |
+
"type" : "MultiArray"
|
66 |
+
}
|
67 |
+
],
|
68 |
+
"userDefinedMetadata" : {
|
69 |
+
"com.github.apple.coremltools.version" : "6.3.0",
|
70 |
+
"com.github.apple.coremltools.source" : "torch==2.0.0"
|
71 |
+
},
|
72 |
+
"generatedClassName" : "Stable_Diffusion_version_stabilityai_stable_diffusion_2_base_vae_decoder",
|
73 |
+
"method" : "predict"
|
74 |
+
}
|
75 |
+
]
|
original/compiled/VAEDecoder.mlmodelc/model.mil
ADDED
The diff for this file is too large to render.
See raw diff
|
|
original/compiled/VAEDecoder.mlmodelc/weights/weight.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:55144eea3c639e5f88c982292fcb57ad0dac4fb4a38ecf23d8f2f5b48d356644
|
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:4f8be03be0a79530ab1467c36a4b088540e39a799754a2c6577a69900f766d50
|
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:5dfa9d142233805ad310ad64a2e09852481279f3e828b9e3d0dc67d25e37a452
|
3 |
+
size 771
|
original/compiled/VAEEncoder.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" : "The latent embeddings from the unet model from the input image.",
|
12 |
+
"shape" : "[]",
|
13 |
+
"name" : "latent",
|
14 |
+
"type" : "MultiArray"
|
15 |
+
}
|
16 |
+
],
|
17 |
+
"version" : "stabilityai\/stable-diffusion-2-base",
|
18 |
+
"modelParameters" : [
|
19 |
+
|
20 |
+
],
|
21 |
+
"author" : "Please refer to the Model Card available at huggingface.co\/stabilityai\/stable-diffusion-2-base",
|
22 |
+
"specificationVersion" : 7,
|
23 |
+
"storagePrecision" : "Float16",
|
24 |
+
"license" : "OpenRAIL (https:\/\/huggingface.co\/spaces\/CompVis\/stable-diffusion-license)",
|
25 |
+
"mlProgramOperationTypeHistogram" : {
|
26 |
+
"Pad" : 3,
|
27 |
+
"Ios16.cast" : 1,
|
28 |
+
"Ios16.mul" : 1,
|
29 |
+
"Ios16.sqrt" : 22,
|
30 |
+
"Ios16.sub" : 22,
|
31 |
+
"Transpose" : 7,
|
32 |
+
"Ios16.conv" : 28,
|
33 |
+
"Ios16.add" : 33,
|
34 |
+
"Ios16.linear" : 4,
|
35 |
+
"Ios16.matmul" : 2,
|
36 |
+
"Ios16.realDiv" : 22,
|
37 |
+
"Ios16.reduceMean" : 44,
|
38 |
+
"Ios16.softmax" : 1,
|
39 |
+
"Ios16.batchNorm" : 22,
|
40 |
+
"Ios16.square" : 22,
|
41 |
+
"Ios16.reshape" : 54,
|
42 |
+
"Ios16.silu" : 21
|
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 × 3 × 384 × 640)",
|
62 |
+
"shortDescription" : "The input image to base the initial latents on normalized to range [-1, 1]",
|
63 |
+
"shape" : "[1, 3, 384, 640]",
|
64 |
+
"name" : "z",
|
65 |
+
"type" : "MultiArray"
|
66 |
+
}
|
67 |
+
],
|
68 |
+
"userDefinedMetadata" : {
|
69 |
+
"com.github.apple.coremltools.version" : "6.3.0",
|
70 |
+
"com.github.apple.coremltools.source" : "torch==2.0.0"
|
71 |
+
},
|
72 |
+
"generatedClassName" : "Stable_Diffusion_version_stabilityai_stable_diffusion_2_base_vae_encoder",
|
73 |
+
"method" : "predict"
|
74 |
+
}
|
75 |
+
]
|
original/compiled/VAEEncoder.mlmodelc/model.mil
ADDED
The diff for this file is too large to render.
See raw diff
|
|
original/compiled/VAEEncoder.mlmodelc/weights/weight.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:9f02e0b19564148fe4a56ed1f022c8dfba9463157c823823a818c54aa2fa6373
|
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-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:7801e5154bb6afc0488dd75dd4a082b13b8f1bc8e9ed96611dc315a5840d7d8a
|
3 |
+
size 272310
|
original/packages/Stable_Diffusion_version_stabilityai_stable-diffusion-2-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:fa359132d4df273a07350fb486bebcdd8c2549865c7b029ed34126c245e88018
|
3 |
+
size 680811520
|
original/packages/Stable_Diffusion_version_stabilityai_stable-diffusion-2-base_text_encoder.mlpackage/Manifest.json
ADDED
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"fileFormatVersion": "1.0.0",
|
3 |
+
"itemInfoEntries": {
|
4 |
+
"21F22832-0839-4087-96D7-59CA9A6086FA": {
|
5 |
+
"author": "com.apple.CoreML",
|
6 |
+
"description": "CoreML Model Weights",
|
7 |
+
"name": "weights",
|
8 |
+
"path": "com.apple.CoreML/weights"
|
9 |
+
},
|
10 |
+
"968B32C3-C17C-4F6B-AE59-6176D49C79A3": {
|
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": "968B32C3-C17C-4F6B-AE59-6176D49C79A3"
|
18 |
+
}
|
original/packages/Stable_Diffusion_version_stabilityai_stable-diffusion-2-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:04789f7ea48c9eb1ce4d7f0aff74a068c31562c4042d6720d94cb7879e991244
|
3 |
+
size 723019
|
original/packages/Stable_Diffusion_version_stabilityai_stable-diffusion-2-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:2177ee86b2694bc5ce8c0d3a5156e47bad28ddf1ad0d188e4edd18c2e7444e93
|
3 |
+
size 1732124416
|
original/packages/Stable_Diffusion_version_stabilityai_stable-diffusion-2-base_unet.mlpackage/Manifest.json
ADDED
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"fileFormatVersion": "1.0.0",
|
3 |
+
"itemInfoEntries": {
|
4 |
+
"4EBBAA42-ECB5-4CCF-B0C7-86037CA194E0": {
|
5 |
+
"author": "com.apple.CoreML",
|
6 |
+
"description": "CoreML Model Weights",
|
7 |
+
"name": "weights",
|
8 |
+
"path": "com.apple.CoreML/weights"
|
9 |
+
},
|
10 |
+
"E37BDA53-EADB-41BF-AE11-56FABB430ABB": {
|
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": "E37BDA53-EADB-41BF-AE11-56FABB430ABB"
|
18 |
+
}
|
original/packages/Stable_Diffusion_version_stabilityai_stable-diffusion-2-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:ec69bfa73534316b20df9e773610ad6edf0930ebd321d5fa024df268bec6fa8b
|
3 |
+
size 339619
|
original/packages/Stable_Diffusion_version_stabilityai_stable-diffusion-2-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:d2e6356233a2fe2ae093fe498001ce82acd333791730841fb9d5a7b3fae46c8c
|
3 |
+
size 893578816
|
original/packages/Stable_Diffusion_version_stabilityai_stable-diffusion-2-base_unet_chunk1.mlpackage/Manifest.json
ADDED
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"fileFormatVersion": "1.0.0",
|
3 |
+
"itemInfoEntries": {
|
4 |
+
"097B8436-D84D-446B-ACE0-D216E50BF92F": {
|
5 |
+
"author": "com.apple.CoreML",
|
6 |
+
"description": "CoreML Model Weights",
|
7 |
+
"name": "weights",
|
8 |
+
"path": "com.apple.CoreML/weights"
|
9 |
+
},
|
10 |
+
"715EF364-AD3E-4164-B9EC-D2FDC0B54C21": {
|
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": "715EF364-AD3E-4164-B9EC-D2FDC0B54C21"
|
18 |
+
}
|
original/packages/Stable_Diffusion_version_stabilityai_stable-diffusion-2-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:9e866eda9fc35fbeac9c2adfc8927fe9fb17d6d8371417f1f90327c60e85cab2
|
3 |
+
size 389721
|
original/packages/Stable_Diffusion_version_stabilityai_stable-diffusion-2-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:2f37b91e67b33536e1b912101536d53777be30b2dc1d9ddbee79c8a229302502
|
3 |
+
size 838545664
|
original/packages/Stable_Diffusion_version_stabilityai_stable-diffusion-2-base_unet_chunk2.mlpackage/Manifest.json
ADDED
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"fileFormatVersion": "1.0.0",
|
3 |
+
"itemInfoEntries": {
|
4 |
+
"16EE2C4B-AFE7-4AA5-8C49-148D14FB9957": {
|
5 |
+
"author": "com.apple.CoreML",
|
6 |
+
"description": "CoreML Model Specification",
|
7 |
+
"name": "model.mlmodel",
|
8 |
+
"path": "com.apple.CoreML/model.mlmodel"
|
9 |
+
},
|
10 |
+
"316E4873-C91E-4F21-8492-C85CF462E49A": {
|
11 |
+
"author": "com.apple.CoreML",
|
12 |
+
"description": "CoreML Model Weights",
|
13 |
+
"name": "weights",
|
14 |
+
"path": "com.apple.CoreML/weights"
|
15 |
+
}
|
16 |
+
},
|
17 |
+
"rootModelIdentifier": "16EE2C4B-AFE7-4AA5-8C49-148D14FB9957"
|
18 |
+
}
|
original/packages/Stable_Diffusion_version_stabilityai_stable-diffusion-2-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:41bf786c10a4c631531845c4801fa521dc7325d6e4761aeaacfdf7aae50889d7
|
3 |
+
size 149733
|
original/packages/Stable_Diffusion_version_stabilityai_stable-diffusion-2-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:55144eea3c639e5f88c982292fcb57ad0dac4fb4a38ecf23d8f2f5b48d356644
|
3 |
+
size 99039232
|
original/packages/Stable_Diffusion_version_stabilityai_stable-diffusion-2-base_vae_decoder.mlpackage/Manifest.json
ADDED
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"fileFormatVersion": "1.0.0",
|
3 |
+
"itemInfoEntries": {
|
4 |
+
"089A1EA6-1051-4F3C-88E4-F2CD1FDBCD93": {
|
5 |
+
"author": "com.apple.CoreML",
|
6 |
+
"description": "CoreML Model Weights",
|
7 |
+
"name": "weights",
|
8 |
+
"path": "com.apple.CoreML/weights"
|
9 |
+
},
|
10 |
+
"7BAA46E4-1AB3-4371-9200-81D16435A0A9": {
|
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": "7BAA46E4-1AB3-4371-9200-81D16435A0A9"
|
18 |
+
}
|
original/packages/Stable_Diffusion_version_stabilityai_stable-diffusion-2-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:81de010d18175a8a078df5372f3ddfc4e7b4ee919231f7bada1ede937bf6be86
|
3 |
+
size 114867
|
original/packages/Stable_Diffusion_version_stabilityai_stable-diffusion-2-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:9f02e0b19564148fe4a56ed1f022c8dfba9463157c823823a818c54aa2fa6373
|
3 |
+
size 68370240
|