Chalios commited on
Commit
983045a
·
1 Parent(s): aa984b4

Initial commit

Browse files
SafetyChecker.mlmodelc/analytics/coremldata.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f2b0bf1174de40d589a2f5a77b6782ce86136a9e44a916e90f056f2167335ace
3
+ size 243
SafetyChecker.mlmodelc/coremldata.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9a711fac00518725af06c2f9d60696c1ecb65b67f3bebc420cdea5942b58516c
3
+ size 1411
SafetyChecker.mlmodelc/metadata.json ADDED
@@ -0,0 +1,123 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 1 × 512 × 512 × 3)",
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" : "[1, 512, 512, 3]",
13
+ "name" : "filtered_images",
14
+ "type" : "MultiArray"
15
+ },
16
+ {
17
+ "hasShapeFlexibility" : "0",
18
+ "isOptional" : "0",
19
+ "dataType" : "Float32",
20
+ "formattedType" : "MultiArray (Float32 1 × 1 × 1 × 1)",
21
+ "shortDescription" : "Indicates whether the safety checker model found any sensitive content in the given image",
22
+ "shape" : "[1, 1, 1, 1]",
23
+ "name" : "has_nsfw_concepts",
24
+ "type" : "MultiArray"
25
+ },
26
+ {
27
+ "hasShapeFlexibility" : "0",
28
+ "isOptional" : "0",
29
+ "dataType" : "Float32",
30
+ "formattedType" : "MultiArray (Float32 1 × 17)",
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" : "[1, 17]",
33
+ "name" : "concept_scores",
34
+ "type" : "MultiArray"
35
+ }
36
+ ],
37
+ "version" : "Meina\/MeinaHentai_V4",
38
+ "modelParameters" : [
39
+
40
+ ],
41
+ "author" : "Please refer to the Model Card available at huggingface.co\/Meina\/MeinaHentai_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
+ "visionOS" : "1.0",
77
+ "watchOS" : "9.0",
78
+ "iOS" : "16.0",
79
+ "macCatalyst" : "16.0"
80
+ },
81
+ "modelType" : {
82
+ "name" : "MLModelType_mlProgram"
83
+ },
84
+ "inputSchema" : [
85
+ {
86
+ "hasShapeFlexibility" : "0",
87
+ "isOptional" : "0",
88
+ "dataType" : "Float16",
89
+ "formattedType" : "MultiArray (Float16 1 × 3 × 224 × 224)",
90
+ "shortDescription" : "The normalized image input tensor resized to (224x224) in channels-first (BCHW) format",
91
+ "shape" : "[1, 3, 224, 224]",
92
+ "name" : "clip_input",
93
+ "type" : "MultiArray"
94
+ },
95
+ {
96
+ "hasShapeFlexibility" : "0",
97
+ "isOptional" : "0",
98
+ "dataType" : "Float16",
99
+ "formattedType" : "MultiArray (Float16 1 × 512 × 512 × 3)",
100
+ "shortDescription" : "Output of the vae_decoder (512x512) in channels-last (BHWC) format",
101
+ "shape" : "[1, 512, 512, 3]",
102
+ "name" : "images",
103
+ "type" : "MultiArray"
104
+ },
105
+ {
106
+ "hasShapeFlexibility" : "0",
107
+ "isOptional" : "0",
108
+ "dataType" : "Float16",
109
+ "formattedType" : "MultiArray (Float16 1)",
110
+ "shortDescription" : "Bias added to the concept scores to trade off increased recall for reduce precision in the safety checker classifier",
111
+ "shape" : "[1]",
112
+ "name" : "adjustment",
113
+ "type" : "MultiArray"
114
+ }
115
+ ],
116
+ "userDefinedMetadata" : {
117
+ "com.github.apple.coremltools.version" : "7.0",
118
+ "com.github.apple.coremltools.source" : "torch==2.0.1"
119
+ },
120
+ "generatedClassName" : "Stable_Diffusion_version_Meina_MeinaHentai_V4_safety_checker",
121
+ "method" : "predict"
122
+ }
123
+ ]
SafetyChecker.mlmodelc/model.mil ADDED
The diff for this file is too large to render. See raw diff
 
SafetyChecker.mlmodelc/weights/weight.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6efaedaa8ce3c917d547c03355833923eab9ab6bfb15e42306d8673ca896328f
3
+ size 607990114
TextEncoder.mlmodelc/analytics/coremldata.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:904bcf94bad606dc531d861c5239cf2506dbe41de0ab57c2b4150df7ff796704
3
+ size 243
TextEncoder.mlmodelc/coremldata.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6859d33d2accf86f3103b22ca1d0145563cc244fd68bb0c7bf511b743d932a07
3
+ size 814
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 1 × 77 × 768)",
11
+ "shortDescription" : "The token embeddings as encoded by the Transformer model",
12
+ "shape" : "[1, 77, 768]",
13
+ "name" : "last_hidden_state",
14
+ "type" : "MultiArray"
15
+ },
16
+ {
17
+ "hasShapeFlexibility" : "0",
18
+ "isOptional" : "0",
19
+ "dataType" : "Float32",
20
+ "formattedType" : "MultiArray (Float32 1 × 768)",
21
+ "shortDescription" : "The version of the `last_hidden_state` output after pooling",
22
+ "shape" : "[1, 768]",
23
+ "name" : "pooled_outputs",
24
+ "type" : "MultiArray"
25
+ }
26
+ ],
27
+ "version" : "Meina\/MeinaHentai_V4",
28
+ "modelParameters" : [
29
+
30
+ ],
31
+ "author" : "Please refer to the Model Card available at huggingface.co\/Meina\/MeinaHentai_V4",
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" : 36,
38
+ "Ios16.layerNorm" : 25,
39
+ "Stack" : 1,
40
+ "Transpose" : 60,
41
+ "Ios16.sigmoid" : 12,
42
+ "Ios16.linear" : 72,
43
+ "Ios16.add" : 37,
44
+ "Ios16.matmul" : 24,
45
+ "Ios16.softmax" : 12,
46
+ "Ios16.gatherNd" : 1,
47
+ "Ios16.gather" : 1,
48
+ "Ios16.reshape" : 120,
49
+ "Ios16.reduceArgmax" : 1
50
+ },
51
+ "computePrecision" : "Mixed (Float16, Float32, Int32)",
52
+ "isUpdatable" : "0",
53
+ "availability" : {
54
+ "macOS" : "13.0",
55
+ "tvOS" : "16.0",
56
+ "visionOS" : "1.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.0",
78
+ "com.github.apple.coremltools.source" : "torch==2.0.1"
79
+ },
80
+ "generatedClassName" : "Stable_Diffusion_version_Meina_MeinaHentai_V4_text_encoder",
81
+ "method" : "predict"
82
+ }
83
+ ]
TextEncoder.mlmodelc/model.mil ADDED
The diff for this file is too large to render. See raw diff
 
TextEncoder.mlmodelc/weights/weight.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d075762f637618c4681a816b814820a3221fc64f14a45a7c271c65d5a6fde817
3
+ size 246145536
Unet.mlmodelc/analytics/coremldata.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5107178b776e7254fda43189acf05dd2fd43e076630fbd80dd01b8114a605ace
3
+ size 243
Unet.mlmodelc/coremldata.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8bd27a152072ca7b65afb7f66f8f32e7db94413006fa3d13c48581dfe07d8f43
3
+ size 1247
Unet.mlmodelc/metadata.json ADDED
@@ -0,0 +1,104 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 2 × 4 × 64 × 64)",
11
+ "shortDescription" : "Same shape and dtype as the `sample` input. The predicted noise to facilitate the reverse diffusion (denoising) process",
12
+ "shape" : "[2, 4, 64, 64]",
13
+ "name" : "noise_pred",
14
+ "type" : "MultiArray"
15
+ }
16
+ ],
17
+ "version" : "Meina\/MeinaHentai_V4",
18
+ "modelParameters" : [
19
+
20
+ ],
21
+ "author" : "Please refer to the Model Card available at huggingface.co\/Meina\/MeinaHentai_V4",
22
+ "specificationVersion" : 7,
23
+ "storagePrecision" : "Float16",
24
+ "license" : "OpenRAIL (https:\/\/huggingface.co\/spaces\/CompVis\/stable-diffusion-license)",
25
+ "mlProgramOperationTypeHistogram" : {
26
+ "Transpose" : 32,
27
+ "UpsampleNearestNeighbor" : 3,
28
+ "Ios16.reduceMean" : 218,
29
+ "Ios16.sin" : 1,
30
+ "Ios16.softmax" : 256,
31
+ "Split" : 16,
32
+ "Ios16.add" : 265,
33
+ "Concat" : 46,
34
+ "Ios16.realDiv" : 61,
35
+ "Ios16.square" : 61,
36
+ "ExpandDims" : 3,
37
+ "Ios16.sub" : 109,
38
+ "Ios16.cast" : 1,
39
+ "Ios16.conv" : 282,
40
+ "Ios16.einsum" : 512,
41
+ "Ios16.gelu" : 16,
42
+ "Ios16.reshape" : 154,
43
+ "Ios16.batchNorm" : 61,
44
+ "Ios16.rsqrt" : 48,
45
+ "Ios16.silu" : 47,
46
+ "Ios16.sqrt" : 61,
47
+ "SliceByIndex" : 770,
48
+ "Ios16.mul" : 417,
49
+ "Ios16.cos" : 1
50
+ },
51
+ "computePrecision" : "Mixed (Float16, Float32, Int32)",
52
+ "isUpdatable" : "0",
53
+ "availability" : {
54
+ "macOS" : "13.0",
55
+ "tvOS" : "16.0",
56
+ "visionOS" : "1.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" : "Float16",
69
+ "formattedType" : "MultiArray (Float16 2 × 4 × 64 × 64)",
70
+ "shortDescription" : "The low resolution latent feature maps being denoised through reverse diffusion",
71
+ "shape" : "[2, 4, 64, 64]",
72
+ "name" : "sample",
73
+ "type" : "MultiArray"
74
+ },
75
+ {
76
+ "hasShapeFlexibility" : "0",
77
+ "isOptional" : "0",
78
+ "dataType" : "Float16",
79
+ "formattedType" : "MultiArray (Float16 2)",
80
+ "shortDescription" : "A value emitted by the associated scheduler object to condition the model on a given noise schedule",
81
+ "shape" : "[2]",
82
+ "name" : "timestep",
83
+ "type" : "MultiArray"
84
+ },
85
+ {
86
+ "hasShapeFlexibility" : "0",
87
+ "isOptional" : "0",
88
+ "dataType" : "Float16",
89
+ "formattedType" : "MultiArray (Float16 2 × 768 × 1 × 77)",
90
+ "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.",
91
+ "shape" : "[2, 768, 1, 77]",
92
+ "name" : "encoder_hidden_states",
93
+ "type" : "MultiArray"
94
+ }
95
+ ],
96
+ "userDefinedMetadata" : {
97
+ "com.github.apple.coremltools.version" : "7.0",
98
+ "com.github.apple.coremltools.source" : "torch==2.0.1",
99
+ "com.github.apple.ml-stable-diffusion.version" : "1.1.0"
100
+ },
101
+ "generatedClassName" : "Stable_Diffusion_version_Meina_MeinaHentai_V4_unet",
102
+ "method" : "predict"
103
+ }
104
+ ]
Unet.mlmodelc/model.mil ADDED
The diff for this file is too large to render. See raw diff
 
Unet.mlmodelc/weights/weight.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:530dd850c56dbf8cab096b4ddef0cf19504db9ec41c0a33d01134a0bfc3a5f9d
3
+ size 1719117696
VAEDecoder.mlmodelc/analytics/coremldata.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f9a773c70dab197f30135eb6bdf95b4839f44d16a9c1ad88c60eaa3ff17e93f1
3
+ size 243
VAEDecoder.mlmodelc/coremldata.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4ce0af71733fce8ea2c5ff9c52f74090d7c87dbc7977320ea2745ca1279b51d0
3
+ size 741
VAEDecoder.mlmodelc/metadata.json ADDED
@@ -0,0 +1,76 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 1 × 3 × 512 × 512)",
11
+ "shortDescription" : "Generated image normalized to range [-1, 1]",
12
+ "shape" : "[1, 3, 512, 512]",
13
+ "name" : "image",
14
+ "type" : "MultiArray"
15
+ }
16
+ ],
17
+ "version" : "Meina\/MeinaHentai_V4",
18
+ "modelParameters" : [
19
+
20
+ ],
21
+ "author" : "Please refer to the Model Card available at huggingface.co\/Meina\/MeinaHentai_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" : 2,
28
+ "Ios16.sqrt" : 30,
29
+ "Ios16.sub" : 30,
30
+ "Transpose" : 6,
31
+ "UpsampleNearestNeighbor" : 3,
32
+ "Ios16.conv" : 36,
33
+ "Ios16.add" : 46,
34
+ "Ios16.linear" : 4,
35
+ "Ios16.matmul" : 2,
36
+ "Ios16.realDiv" : 30,
37
+ "Ios16.reduceMean" : 60,
38
+ "Ios16.softmax" : 1,
39
+ "Ios16.batchNorm" : 29,
40
+ "Ios16.square" : 30,
41
+ "Ios16.reshape" : 65,
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
+ "visionOS" : "1.0",
50
+ "watchOS" : "9.0",
51
+ "iOS" : "16.0",
52
+ "macCatalyst" : "16.0"
53
+ },
54
+ "modelType" : {
55
+ "name" : "MLModelType_mlProgram"
56
+ },
57
+ "inputSchema" : [
58
+ {
59
+ "hasShapeFlexibility" : "0",
60
+ "isOptional" : "0",
61
+ "dataType" : "Float16",
62
+ "formattedType" : "MultiArray (Float16 1 × 4 × 64 × 64)",
63
+ "shortDescription" : "The denoised latent embeddings from the unet model after the last step of reverse diffusion",
64
+ "shape" : "[1, 4, 64, 64]",
65
+ "name" : "z",
66
+ "type" : "MultiArray"
67
+ }
68
+ ],
69
+ "userDefinedMetadata" : {
70
+ "com.github.apple.coremltools.version" : "7.0",
71
+ "com.github.apple.coremltools.source" : "torch==2.0.1"
72
+ },
73
+ "generatedClassName" : "Stable_Diffusion_version_Meina_MeinaHentai_V4_vae_decoder",
74
+ "method" : "predict"
75
+ }
76
+ ]
VAEDecoder.mlmodelc/model.mil ADDED
The diff for this file is too large to render. See raw diff
 
VAEDecoder.mlmodelc/weights/weight.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9af0701e94d0e5ff97b292b9a3f35efa642a5c4af40f383243fdc4fb96123cb6
3
+ size 98993280
merges.txt ADDED
The diff for this file is too large to render. See raw diff
 
vocab.json ADDED
The diff for this file is too large to render. See raw diff