pcuenq HF staff commited on
Commit
c4e01a7
1 Parent(s): a9c46b7

`ORIGINAL` attention files.

Browse files
Files changed (44) hide show
  1. README.md +18 -0
  2. coreml-prompthero-openjourney-v4-palettized_original_compiled.zip +3 -0
  3. original/compiled/SafetyChecker.mlmodelc/analytics/coremldata.bin +3 -0
  4. original/compiled/SafetyChecker.mlmodelc/coremldata.bin +3 -0
  5. original/compiled/SafetyChecker.mlmodelc/metadata.json +122 -0
  6. original/compiled/SafetyChecker.mlmodelc/model.mil +0 -0
  7. original/compiled/SafetyChecker.mlmodelc/weights/weight.bin +3 -0
  8. original/compiled/TextEncoder.mlmodelc/analytics/coremldata.bin +3 -0
  9. original/compiled/TextEncoder.mlmodelc/coremldata.bin +3 -0
  10. original/compiled/TextEncoder.mlmodelc/metadata.json +83 -0
  11. original/compiled/TextEncoder.mlmodelc/model.mil +0 -0
  12. original/compiled/TextEncoder.mlmodelc/weights/weight.bin +3 -0
  13. original/compiled/Unet.mlmodelc/analytics/coremldata.bin +3 -0
  14. original/compiled/Unet.mlmodelc/coremldata.bin +3 -0
  15. original/compiled/Unet.mlmodelc/metadata.json +102 -0
  16. original/compiled/Unet.mlmodelc/model.mil +0 -0
  17. original/compiled/Unet.mlmodelc/weights/weight.bin +3 -0
  18. original/compiled/VAEDecoder.mlmodelc/analytics/coremldata.bin +3 -0
  19. original/compiled/VAEDecoder.mlmodelc/coremldata.bin +3 -0
  20. original/compiled/VAEDecoder.mlmodelc/metadata.json +75 -0
  21. original/compiled/VAEDecoder.mlmodelc/model.mil +0 -0
  22. original/compiled/VAEDecoder.mlmodelc/weights/weight.bin +3 -0
  23. original/compiled/VAEEncoder.mlmodelc/analytics/coremldata.bin +3 -0
  24. original/compiled/VAEEncoder.mlmodelc/coremldata.bin +3 -0
  25. original/compiled/VAEEncoder.mlmodelc/metadata.json +75 -0
  26. original/compiled/VAEEncoder.mlmodelc/model.mil +0 -0
  27. original/compiled/VAEEncoder.mlmodelc/weights/weight.bin +3 -0
  28. original/compiled/merges.txt +0 -0
  29. original/compiled/vocab.json +0 -0
  30. original/packages/Stable_Diffusion_version_prompthero_openjourney-v4_safety_checker.mlpackage/Data/com.apple.CoreML/model.mlmodel +3 -0
  31. original/packages/Stable_Diffusion_version_prompthero_openjourney-v4_safety_checker.mlpackage/Data/com.apple.CoreML/weights/weight.bin +3 -0
  32. original/packages/Stable_Diffusion_version_prompthero_openjourney-v4_safety_checker.mlpackage/Manifest.json +18 -0
  33. original/packages/Stable_Diffusion_version_prompthero_openjourney-v4_text_encoder.mlpackage/Data/com.apple.CoreML/model.mlmodel +3 -0
  34. original/packages/Stable_Diffusion_version_prompthero_openjourney-v4_text_encoder.mlpackage/Data/com.apple.CoreML/weights/weight.bin +3 -0
  35. original/packages/Stable_Diffusion_version_prompthero_openjourney-v4_text_encoder.mlpackage/Manifest.json +18 -0
  36. original/packages/Stable_Diffusion_version_prompthero_openjourney-v4_unet.mlpackage/Data/com.apple.CoreML/model.mlmodel +3 -0
  37. original/packages/Stable_Diffusion_version_prompthero_openjourney-v4_unet.mlpackage/Data/com.apple.CoreML/weights/weight.bin +3 -0
  38. original/packages/Stable_Diffusion_version_prompthero_openjourney-v4_unet.mlpackage/Manifest.json +18 -0
  39. original/packages/Stable_Diffusion_version_prompthero_openjourney-v4_vae_decoder.mlpackage/Data/com.apple.CoreML/model.mlmodel +3 -0
  40. original/packages/Stable_Diffusion_version_prompthero_openjourney-v4_vae_decoder.mlpackage/Data/com.apple.CoreML/weights/weight.bin +3 -0
  41. original/packages/Stable_Diffusion_version_prompthero_openjourney-v4_vae_decoder.mlpackage/Manifest.json +18 -0
  42. original/packages/Stable_Diffusion_version_prompthero_openjourney-v4_vae_encoder.mlpackage/Data/com.apple.CoreML/model.mlmodel +3 -0
  43. original/packages/Stable_Diffusion_version_prompthero_openjourney-v4_vae_encoder.mlpackage/Data/com.apple.CoreML/weights/weight.bin +3 -0
  44. original/packages/Stable_Diffusion_version_prompthero_openjourney-v4_vae_encoder.mlpackage/Manifest.json +18 -0
README.md ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: creativeml-openrail-m
3
+ tags:
4
+ - stable-diffusion
5
+ - text-to-image
6
+ - core-ml
7
+ ---
8
+
9
+ # <u>Openjourney v4 (Core ML)</u>
10
+
11
+ This is the Core ML conversion of [Openjourney v4](https://huggingface.co/prompthero/openjourney-v4), by [PromptHero](https://prompthero.com/?utm_source=huggingface&utm_medium=referral). All credit goes to the original authors.
12
+
13
+ These Core ML models have been quantized using [6-bit palettization](https://huggingface.co/blog/fast-diffusers-coreml), which requires iOS 17 or macOS 14. There are versions available for `ORIGINAL` and `SPLIT_EINSUM_V2` attention implementations.
14
+
15
+ Please, check the [original model](https://huggingface.co/prompthero/openjourney-v4) for details.
16
+
17
+ <img src="https://s3.us-east-1.amazonaws.com/prompthero-newsletter/Group-66.png" alt="openjourney-v4" width="50%">
18
+
coreml-prompthero-openjourney-v4-palettized_original_compiled.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cce38e481ec5de9715d710e2f25cfba2f945ec1827a76e5f09740f2670783664
3
+ size 1563644507
original/compiled/SafetyChecker.mlmodelc/analytics/coremldata.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:84bf25ba4afe1a72fd423e8a30e0d71bbff4cf35e67c4d19a4fc7c5c0fecfb33
3
+ size 207
original/compiled/SafetyChecker.mlmodelc/coremldata.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bcb86f19c3d032754923c443636cb64e65a680b6ea5a3fde03f39ab3a8e7f995
3
+ size 1405
original/compiled/SafetyChecker.mlmodelc/metadata.json ADDED
@@ -0,0 +1,122 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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" : "Identical to the input `images`. If safety checker detected any sensitive content, the corresponding image is replaced with a blank image (zeros)",
12
+ "shape" : "[]",
13
+ "name" : "filtered_images",
14
+ "type" : "MultiArray"
15
+ },
16
+ {
17
+ "hasShapeFlexibility" : "0",
18
+ "isOptional" : "0",
19
+ "dataType" : "Float32",
20
+ "formattedType" : "MultiArray (Float32)",
21
+ "shortDescription" : "Indicates whether the safety checker model found any sensitive content in the given image",
22
+ "shape" : "[]",
23
+ "name" : "has_nsfw_concepts",
24
+ "type" : "MultiArray"
25
+ },
26
+ {
27
+ "hasShapeFlexibility" : "0",
28
+ "isOptional" : "0",
29
+ "dataType" : "Float32",
30
+ "formattedType" : "MultiArray (Float32)",
31
+ "shortDescription" : "Concept scores are the scores before thresholding at zero yields the `has_nsfw_concepts` output. These scores can be used to tune the `adjustment` input",
32
+ "shape" : "[]",
33
+ "name" : "concept_scores",
34
+ "type" : "MultiArray"
35
+ }
36
+ ],
37
+ "version" : "prompthero\/openjourney-v4",
38
+ "modelParameters" : [
39
+
40
+ ],
41
+ "author" : "Please refer to the Model Card available at huggingface.co\/prompthero\/openjourney-v4",
42
+ "specificationVersion" : 7,
43
+ "storagePrecision" : "Float16",
44
+ "license" : "OpenRAIL (https:\/\/huggingface.co\/spaces\/CompVis\/stable-diffusion-license)",
45
+ "mlProgramOperationTypeHistogram" : {
46
+ "Transpose" : 121,
47
+ "Ios16.scatterNd" : 1,
48
+ "Ios16.softmax" : 24,
49
+ "Ios16.linear" : 147,
50
+ "Ios16.add" : 51,
51
+ "Concat" : 1,
52
+ "Ios16.realDiv" : 1,
53
+ "Ios16.sigmoid" : 24,
54
+ "Ios16.reduceSum" : 3,
55
+ "Tile" : 4,
56
+ "Ios16.greater" : 4,
57
+ "Shape" : 1,
58
+ "ExpandDims" : 5,
59
+ "Ios16.cast" : 7,
60
+ "Ios16.clip" : 1,
61
+ "Ios16.conv" : 1,
62
+ "Ios16.abs" : 1,
63
+ "Ios16.layerNorm" : 50,
64
+ "Ios16.matmul" : 48,
65
+ "Ios16.pow" : 2,
66
+ "Ios16.reshape" : 193,
67
+ "SliceByIndex" : 2,
68
+ "Ios16.mul" : 73,
69
+ "NonZero" : 1
70
+ },
71
+ "computePrecision" : "Mixed (Float16, Float32, Int32)",
72
+ "isUpdatable" : "0",
73
+ "availability" : {
74
+ "macOS" : "13.0",
75
+ "tvOS" : "16.0",
76
+ "watchOS" : "9.0",
77
+ "iOS" : "16.0",
78
+ "macCatalyst" : "16.0"
79
+ },
80
+ "modelType" : {
81
+ "name" : "MLModelType_mlProgram"
82
+ },
83
+ "inputSchema" : [
84
+ {
85
+ "hasShapeFlexibility" : "0",
86
+ "isOptional" : "0",
87
+ "dataType" : "Float16",
88
+ "formattedType" : "MultiArray (Float16 1 × 3 × 224 × 224)",
89
+ "shortDescription" : "The normalized image input tensor resized to (224x224) in channels-first (BCHW) format",
90
+ "shape" : "[1, 3, 224, 224]",
91
+ "name" : "clip_input",
92
+ "type" : "MultiArray"
93
+ },
94
+ {
95
+ "hasShapeFlexibility" : "0",
96
+ "isOptional" : "0",
97
+ "dataType" : "Float16",
98
+ "formattedType" : "MultiArray (Float16 1 × 512 × 512 × 3)",
99
+ "shortDescription" : "Output of the vae_decoder (512x512) in channels-last (BHWC) format",
100
+ "shape" : "[1, 512, 512, 3]",
101
+ "name" : "images",
102
+ "type" : "MultiArray"
103
+ },
104
+ {
105
+ "hasShapeFlexibility" : "0",
106
+ "isOptional" : "0",
107
+ "dataType" : "Float16",
108
+ "formattedType" : "MultiArray (Float16 1)",
109
+ "shortDescription" : "Bias added to the concept scores to trade off increased recall for reduce precision in the safety checker classifier",
110
+ "shape" : "[1]",
111
+ "name" : "adjustment",
112
+ "type" : "MultiArray"
113
+ }
114
+ ],
115
+ "userDefinedMetadata" : {
116
+ "com.github.apple.coremltools.version" : "7.0b1",
117
+ "com.github.apple.coremltools.source" : "torch==2.0.1"
118
+ },
119
+ "generatedClassName" : "Stable_Diffusion_version_prompthero_openjourney_v4_safety_checker",
120
+ "method" : "predict"
121
+ }
122
+ ]
original/compiled/SafetyChecker.mlmodelc/model.mil ADDED
The diff for this file is too large to render. See raw diff
 
original/compiled/SafetyChecker.mlmodelc/weights/weight.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:23c99d7a361e7c491dfca223b46c2f013f791ca132c82834ce387f0fdc693e70
3
+ size 607990114
original/compiled/TextEncoder.mlmodelc/analytics/coremldata.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:abbe841416d2fc714533632b71ec3acd5d4c3353b47c74005f70726a7c0a6823
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:1baf75fbc7c3b1115fb4d39c583bbcbfca7b6b1b62d7ed69966e3e45071b3e68
3
+ size 815
original/compiled/TextEncoder.mlmodelc/metadata.json ADDED
@@ -0,0 +1,83 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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" : "prompthero\/openjourney-v4",
28
+ "modelParameters" : [
29
+
30
+ ],
31
+ "author" : "Please refer to the Model Card available at huggingface.co\/prompthero\/openjourney-v4",
32
+ "specificationVersion" : 7,
33
+ "storagePrecision" : "Mixed (Float16, Palettized (6 bits))",
34
+ "license" : "OpenRAIL (https:\/\/huggingface.co\/spaces\/CompVis\/stable-diffusion-license)",
35
+ "mlProgramOperationTypeHistogram" : {
36
+ "Ios16.cast" : 3,
37
+ "Ios16.mul" : 36,
38
+ "Ios16.layerNorm" : 25,
39
+ "Ios16.constexprLutToDense" : 86,
40
+ "Stack" : 1,
41
+ "Transpose" : 60,
42
+ "Ios16.sigmoid" : 12,
43
+ "Ios16.linear" : 72,
44
+ "Ios16.add" : 37,
45
+ "Ios16.matmul" : 24,
46
+ "Ios16.softmax" : 12,
47
+ "Ios16.gatherNd" : 1,
48
+ "Ios16.gather" : 1,
49
+ "Ios16.reshape" : 120,
50
+ "Ios16.reduceArgmax" : 1
51
+ },
52
+ "computePrecision" : "Mixed (Float16, Float32, Int32)",
53
+ "isUpdatable" : "0",
54
+ "availability" : {
55
+ "macOS" : "13.0",
56
+ "tvOS" : "16.0",
57
+ "watchOS" : "9.0",
58
+ "iOS" : "16.0",
59
+ "macCatalyst" : "16.0"
60
+ },
61
+ "modelType" : {
62
+ "name" : "MLModelType_mlProgram"
63
+ },
64
+ "inputSchema" : [
65
+ {
66
+ "hasShapeFlexibility" : "0",
67
+ "isOptional" : "0",
68
+ "dataType" : "Float32",
69
+ "formattedType" : "MultiArray (Float32 1 × 77)",
70
+ "shortDescription" : "The token ids that represent the input text",
71
+ "shape" : "[1, 77]",
72
+ "name" : "input_ids",
73
+ "type" : "MultiArray"
74
+ }
75
+ ],
76
+ "userDefinedMetadata" : {
77
+ "com.github.apple.coremltools.version" : "7.0b1",
78
+ "com.github.apple.coremltools.source" : "torch==2.0.1"
79
+ },
80
+ "generatedClassName" : "Stable_Diffusion_version_prompthero_openjourney_v4_text_encoder",
81
+ "method" : "predict"
82
+ }
83
+ ]
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:2ef0a3ec7b7d451e967fa8e9946fe4d84c45d7136df6c7dbed2ad11b77547c1b
3
+ size 139866304
original/compiled/Unet.mlmodelc/analytics/coremldata.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:45cbdf4eee00c0e8d31514be078d8b136732035afb0235725cf50c8751e09298
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:7509dae8088d18ac7a1471141e5d42ae23c345774c16a9bbeafd3378d2d45e78
3
+ size 1197
original/compiled/Unet.mlmodelc/metadata.json ADDED
@@ -0,0 +1,102 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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" : "prompthero\/openjourney-v4",
18
+ "modelParameters" : [
19
+
20
+ ],
21
+ "author" : "Please refer to the Model Card available at huggingface.co\/prompthero\/openjourney-v4",
22
+ "specificationVersion" : 7,
23
+ "storagePrecision" : "Mixed (Float16, Palettized (6 bits))",
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.constexprLutToDense" : 310,
40
+ "Ios16.gelu" : 16,
41
+ "Ios16.matmul" : 64,
42
+ "Ios16.batchNorm" : 61,
43
+ "Ios16.reshape" : 282,
44
+ "Ios16.rsqrt" : 48,
45
+ "Ios16.silu" : 47,
46
+ "Ios16.sqrt" : 61,
47
+ "Ios16.mul" : 193,
48
+ "Ios16.cos" : 1,
49
+ "SliceByIndex" : 2
50
+ },
51
+ "computePrecision" : "Mixed (Float16, Float32, Int32)",
52
+ "isUpdatable" : "0",
53
+ "availability" : {
54
+ "macOS" : "13.0",
55
+ "tvOS" : "16.0",
56
+ "watchOS" : "9.0",
57
+ "iOS" : "16.0",
58
+ "macCatalyst" : "16.0"
59
+ },
60
+ "modelType" : {
61
+ "name" : "MLModelType_mlProgram"
62
+ },
63
+ "inputSchema" : [
64
+ {
65
+ "hasShapeFlexibility" : "0",
66
+ "isOptional" : "0",
67
+ "dataType" : "Float16",
68
+ "formattedType" : "MultiArray (Float16 2 × 4 × 64 × 64)",
69
+ "shortDescription" : "The low resolution latent feature maps being denoised through reverse diffusion",
70
+ "shape" : "[2, 4, 64, 64]",
71
+ "name" : "sample",
72
+ "type" : "MultiArray"
73
+ },
74
+ {
75
+ "hasShapeFlexibility" : "0",
76
+ "isOptional" : "0",
77
+ "dataType" : "Float16",
78
+ "formattedType" : "MultiArray (Float16 2)",
79
+ "shortDescription" : "A value emitted by the associated scheduler object to condition the model on a given noise schedule",
80
+ "shape" : "[2]",
81
+ "name" : "timestep",
82
+ "type" : "MultiArray"
83
+ },
84
+ {
85
+ "hasShapeFlexibility" : "0",
86
+ "isOptional" : "0",
87
+ "dataType" : "Float16",
88
+ "formattedType" : "MultiArray (Float16 2 × 768 × 1 × 77)",
89
+ "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.",
90
+ "shape" : "[2, 768, 1, 77]",
91
+ "name" : "encoder_hidden_states",
92
+ "type" : "MultiArray"
93
+ }
94
+ ],
95
+ "userDefinedMetadata" : {
96
+ "com.github.apple.coremltools.version" : "7.0b1",
97
+ "com.github.apple.coremltools.source" : "torch==2.0.1"
98
+ },
99
+ "generatedClassName" : "Stable_Diffusion_version_prompthero_openjourney_v4_unet",
100
+ "method" : "predict"
101
+ }
102
+ ]
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:9811cfec8375911cb3b9e26ba3f76dd4b592d457bd3def7706c1e78c04084569
3
+ size 645167616
original/compiled/VAEDecoder.mlmodelc/analytics/coremldata.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1a6a82d8d8b0c7be51ada6554a7779d4aeafafd98972d3e70a899d5b22483cd6
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:21a968892e29dd6bf4db95c39c32d4d152477148775ca19790187df37023a352
3
+ size 745
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" : "prompthero\/openjourney-v4",
18
+ "modelParameters" : [
19
+
20
+ ],
21
+ "author" : "Please refer to the Model Card available at huggingface.co\/prompthero\/openjourney-v4",
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 (Float16, Float32, 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" : "7.0b1",
70
+ "com.github.apple.coremltools.source" : "torch==2.0.1"
71
+ },
72
+ "generatedClassName" : "Stable_Diffusion_version_prompthero_openjourney_v4_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:d778ed4b647d1df2937e77e58bd6108e5879faab5e8a31808105eb04d7ba9b9e
3
+ size 98993280
original/compiled/VAEEncoder.mlmodelc/analytics/coremldata.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:46bf9ed4189cb7ef51d2df2c5b508eed67da2826fdf8a9b8cc749e1e6ac63267
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:bac294963b14266b301ed93df978c3bacb199ace104f00e7eadedca06a6f0ddc
3
+ size 751
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" : "prompthero\/openjourney-v4",
18
+ "modelParameters" : [
19
+
20
+ ],
21
+ "author" : "Please refer to the Model Card available at huggingface.co\/prompthero\/openjourney-v4",
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 (Float16, Float32, 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 × 512 × 512)",
62
+ "shortDescription" : "The input image to base the initial latents on normalized to range [-1, 1]",
63
+ "shape" : "[1, 3, 512, 512]",
64
+ "name" : "z",
65
+ "type" : "MultiArray"
66
+ }
67
+ ],
68
+ "userDefinedMetadata" : {
69
+ "com.github.apple.coremltools.version" : "7.0b1",
70
+ "com.github.apple.coremltools.source" : "torch==2.0.1"
71
+ },
72
+ "generatedClassName" : "Stable_Diffusion_version_prompthero_openjourney_v4_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:e572e49243e17e046a6227fba92688456801583151e0f6f75f346ceb98ef3705
3
+ size 68338112
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_prompthero_openjourney-v4_safety_checker.mlpackage/Data/com.apple.CoreML/model.mlmodel ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8d1122edeea517cdfbe6b574b30eaefa6c5fb33bc3065be9b7c5279618f322e4
3
+ size 319155
original/packages/Stable_Diffusion_version_prompthero_openjourney-v4_safety_checker.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:23c99d7a361e7c491dfca223b46c2f013f791ca132c82834ce387f0fdc693e70
3
+ size 607990114
original/packages/Stable_Diffusion_version_prompthero_openjourney-v4_safety_checker.mlpackage/Manifest.json ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "fileFormatVersion": "1.0.0",
3
+ "itemInfoEntries": {
4
+ "1F2BFF6B-034B-4914-9668-E52EA3B4A64A": {
5
+ "author": "com.apple.CoreML",
6
+ "description": "CoreML Model Specification",
7
+ "name": "model.mlmodel",
8
+ "path": "com.apple.CoreML/model.mlmodel"
9
+ },
10
+ "CEC35033-5136-4F56-9CC8-40A7916B483C": {
11
+ "author": "com.apple.CoreML",
12
+ "description": "CoreML Model Weights",
13
+ "name": "weights",
14
+ "path": "com.apple.CoreML/weights"
15
+ }
16
+ },
17
+ "rootModelIdentifier": "1F2BFF6B-034B-4914-9668-E52EA3B4A64A"
18
+ }
original/packages/Stable_Diffusion_version_prompthero_openjourney-v4_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:8c1cf46cce2e347935d76c503c082512602f7b86e2bb3957061e5ab8b571979d
3
+ size 174133
original/packages/Stable_Diffusion_version_prompthero_openjourney-v4_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:2ef0a3ec7b7d451e967fa8e9946fe4d84c45d7136df6c7dbed2ad11b77547c1b
3
+ size 139866304
original/packages/Stable_Diffusion_version_prompthero_openjourney-v4_text_encoder.mlpackage/Manifest.json ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "fileFormatVersion": "1.0.0",
3
+ "itemInfoEntries": {
4
+ "7039F099-D785-4ED8-A652-A142B34C0426": {
5
+ "author": "com.apple.CoreML",
6
+ "description": "CoreML Model Specification",
7
+ "name": "model.mlmodel",
8
+ "path": "com.apple.CoreML/model.mlmodel"
9
+ },
10
+ "7278BF83-A3D0-44DD-A069-0D1726B98E55": {
11
+ "author": "com.apple.CoreML",
12
+ "description": "CoreML Model Weights",
13
+ "name": "weights",
14
+ "path": "com.apple.CoreML/weights"
15
+ }
16
+ },
17
+ "rootModelIdentifier": "7039F099-D785-4ED8-A652-A142B34C0426"
18
+ }
original/packages/Stable_Diffusion_version_prompthero_openjourney-v4_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:11780c95cd5d51fff194ba9dfd918d1f5fabbdefbb672a1c42ed9efe2ebada48
3
+ size 822608
original/packages/Stable_Diffusion_version_prompthero_openjourney-v4_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:9811cfec8375911cb3b9e26ba3f76dd4b592d457bd3def7706c1e78c04084569
3
+ size 645167616
original/packages/Stable_Diffusion_version_prompthero_openjourney-v4_unet.mlpackage/Manifest.json ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "fileFormatVersion": "1.0.0",
3
+ "itemInfoEntries": {
4
+ "0008C090-D675-4308-A06D-41D5FB3099FE": {
5
+ "author": "com.apple.CoreML",
6
+ "description": "CoreML Model Weights",
7
+ "name": "weights",
8
+ "path": "com.apple.CoreML/weights"
9
+ },
10
+ "B6292FFD-C667-41FB-82D6-DF5D639DFD19": {
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": "B6292FFD-C667-41FB-82D6-DF5D639DFD19"
18
+ }
original/packages/Stable_Diffusion_version_prompthero_openjourney-v4_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:3d4c86d8b5710e7e4a7153ecd292e2742ff85c99a8008db126c7e3d8ba1f0b70
3
+ size 156802
original/packages/Stable_Diffusion_version_prompthero_openjourney-v4_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:d778ed4b647d1df2937e77e58bd6108e5879faab5e8a31808105eb04d7ba9b9e
3
+ size 98993280
original/packages/Stable_Diffusion_version_prompthero_openjourney-v4_vae_decoder.mlpackage/Manifest.json ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "fileFormatVersion": "1.0.0",
3
+ "itemInfoEntries": {
4
+ "9ABECDFF-FC0E-4F24-A02E-D2EF02518C2D": {
5
+ "author": "com.apple.CoreML",
6
+ "description": "CoreML Model Specification",
7
+ "name": "model.mlmodel",
8
+ "path": "com.apple.CoreML/model.mlmodel"
9
+ },
10
+ "BB51F648-6816-4699-BF33-692DC65FE81B": {
11
+ "author": "com.apple.CoreML",
12
+ "description": "CoreML Model Weights",
13
+ "name": "weights",
14
+ "path": "com.apple.CoreML/weights"
15
+ }
16
+ },
17
+ "rootModelIdentifier": "9ABECDFF-FC0E-4F24-A02E-D2EF02518C2D"
18
+ }
original/packages/Stable_Diffusion_version_prompthero_openjourney-v4_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:af9d8c6ffca95ca2f8d0745ba4a448130a327b54ff22ef73f7cce5d766eeb89a
3
+ size 120671
original/packages/Stable_Diffusion_version_prompthero_openjourney-v4_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:e572e49243e17e046a6227fba92688456801583151e0f6f75f346ceb98ef3705
3
+ size 68338112
original/packages/Stable_Diffusion_version_prompthero_openjourney-v4_vae_encoder.mlpackage/Manifest.json ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "fileFormatVersion": "1.0.0",
3
+ "itemInfoEntries": {
4
+ "1BE5EA01-ACAD-427C-9A2B-A32CC378C0D1": {
5
+ "author": "com.apple.CoreML",
6
+ "description": "CoreML Model Specification",
7
+ "name": "model.mlmodel",
8
+ "path": "com.apple.CoreML/model.mlmodel"
9
+ },
10
+ "F898B226-8F2F-4F34-96F9-6EF9CE19B62B": {
11
+ "author": "com.apple.CoreML",
12
+ "description": "CoreML Model Weights",
13
+ "name": "weights",
14
+ "path": "com.apple.CoreML/weights"
15
+ }
16
+ },
17
+ "rootModelIdentifier": "1BE5EA01-ACAD-427C-9A2B-A32CC378C0D1"
18
+ }