Upload 5 files
Browse files
SafetyChecker.mlmodelc/analytics/coremldata.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7a126fe075e680cf3d3de7ae0870627292c130320865f92787003b7083a1915f
|
| 3 |
+
size 243
|
SafetyChecker.mlmodelc/coremldata.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:32e8f4fe544e5386d5b78584b875e5b7f227e7fc549359ed8086d7fda27d065a
|
| 3 |
+
size 1415
|
SafetyChecker.mlmodelc/metadata.json
ADDED
|
@@ -0,0 +1,124 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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" : "lykon\/absolutereality",
|
| 38 |
+
"modelParameters" : [
|
| 39 |
+
|
| 40 |
+
],
|
| 41 |
+
"author" : "Please refer to the Model Card available at huggingface.co\/lykon\/absolutereality",
|
| 42 |
+
"specificationVersion" : 7,
|
| 43 |
+
"storagePrecision" : "Mixed (Float16, Palettized (6 bits))",
|
| 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.constexprLutToDense" : 173,
|
| 62 |
+
"Ios16.abs" : 1,
|
| 63 |
+
"Ios16.conv" : 1,
|
| 64 |
+
"Ios16.layerNorm" : 50,
|
| 65 |
+
"Ios16.matmul" : 48,
|
| 66 |
+
"Ios16.pow" : 2,
|
| 67 |
+
"Ios16.reshape" : 193,
|
| 68 |
+
"SliceByIndex" : 2,
|
| 69 |
+
"Ios16.mul" : 73,
|
| 70 |
+
"NonZero" : 1
|
| 71 |
+
},
|
| 72 |
+
"computePrecision" : "Mixed (Float16, Float32, Int32)",
|
| 73 |
+
"isUpdatable" : "0",
|
| 74 |
+
"availability" : {
|
| 75 |
+
"macOS" : "13.0",
|
| 76 |
+
"tvOS" : "16.0",
|
| 77 |
+
"visionOS" : "1.0",
|
| 78 |
+
"watchOS" : "9.0",
|
| 79 |
+
"iOS" : "16.0",
|
| 80 |
+
"macCatalyst" : "16.0"
|
| 81 |
+
},
|
| 82 |
+
"modelType" : {
|
| 83 |
+
"name" : "MLModelType_mlProgram"
|
| 84 |
+
},
|
| 85 |
+
"inputSchema" : [
|
| 86 |
+
{
|
| 87 |
+
"hasShapeFlexibility" : "0",
|
| 88 |
+
"isOptional" : "0",
|
| 89 |
+
"dataType" : "Float16",
|
| 90 |
+
"formattedType" : "MultiArray (Float16 1 × 3 × 224 × 224)",
|
| 91 |
+
"shortDescription" : "The normalized image input tensor resized to (224x224) in channels-first (BCHW) format",
|
| 92 |
+
"shape" : "[1, 3, 224, 224]",
|
| 93 |
+
"name" : "clip_input",
|
| 94 |
+
"type" : "MultiArray"
|
| 95 |
+
},
|
| 96 |
+
{
|
| 97 |
+
"hasShapeFlexibility" : "0",
|
| 98 |
+
"isOptional" : "0",
|
| 99 |
+
"dataType" : "Float16",
|
| 100 |
+
"formattedType" : "MultiArray (Float16 1 × 512 × 512 × 3)",
|
| 101 |
+
"shortDescription" : "Output of the vae_decoder (512x512) in channels-last (BHWC) format",
|
| 102 |
+
"shape" : "[1, 512, 512, 3]",
|
| 103 |
+
"name" : "images",
|
| 104 |
+
"type" : "MultiArray"
|
| 105 |
+
},
|
| 106 |
+
{
|
| 107 |
+
"hasShapeFlexibility" : "0",
|
| 108 |
+
"isOptional" : "0",
|
| 109 |
+
"dataType" : "Float16",
|
| 110 |
+
"formattedType" : "MultiArray (Float16 1)",
|
| 111 |
+
"shortDescription" : "Bias added to the concept scores to trade off increased recall for reduce precision in the safety checker classifier",
|
| 112 |
+
"shape" : "[1]",
|
| 113 |
+
"name" : "adjustment",
|
| 114 |
+
"type" : "MultiArray"
|
| 115 |
+
}
|
| 116 |
+
],
|
| 117 |
+
"userDefinedMetadata" : {
|
| 118 |
+
"com.github.apple.coremltools.version" : "7.0b2",
|
| 119 |
+
"com.github.apple.coremltools.source" : "torch==2.0.0"
|
| 120 |
+
},
|
| 121 |
+
"generatedClassName" : "Stable_Diffusion_version_lykon_absolutereality_safety_checker",
|
| 122 |
+
"method" : "predict"
|
| 123 |
+
}
|
| 124 |
+
]
|
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:e93dab6323ebe06363253dac4040558525cee016b29a4650f025ca1b1a5dafe4
|
| 3 |
+
size 228329250
|