Publish context-aware inpainting v2 Core ML runtime
Browse files- README.md +27 -33
- Resources/SafetyChecker.mlmodelc/analytics/coremldata.bin +3 -0
- Resources/SafetyChecker.mlmodelc/coremldata.bin +3 -0
- Resources/SafetyChecker.mlmodelc/metadata.json +130 -0
- Resources/SafetyChecker.mlmodelc/model.mil +0 -0
- Resources/SafetyChecker.mlmodelc/weights/weight.bin +3 -0
- Resources/TextEncoder.mlmodelc/analytics/coremldata.bin +3 -0
- Resources/TextEncoder.mlmodelc/coremldata.bin +3 -0
- Resources/TextEncoder.mlmodelc/metadata.json +90 -0
- Resources/TextEncoder.mlmodelc/model.mil +0 -0
- Resources/TextEncoder.mlmodelc/weights/weight.bin +3 -0
- Resources/UnetChunk1.mlmodelc/analytics/coremldata.bin +3 -0
- Resources/UnetChunk1.mlmodelc/coremldata.bin +3 -0
- Resources/UnetChunk1.mlmodelc/metadata.json +180 -0
- Resources/UnetChunk1.mlmodelc/model.mil +0 -0
- Resources/UnetChunk1.mlmodelc/weights/weight.bin +3 -0
- Resources/UnetChunk2.mlmodelc/analytics/coremldata.bin +3 -0
- Resources/UnetChunk2.mlmodelc/coremldata.bin +3 -0
- Resources/UnetChunk2.mlmodelc/metadata.json +168 -0
- Resources/UnetChunk2.mlmodelc/model.mil +0 -0
- Resources/UnetChunk2.mlmodelc/weights/weight.bin +3 -0
- Resources/VAEDecoder.mlmodelc/analytics/coremldata.bin +3 -0
- Resources/VAEDecoder.mlmodelc/coremldata.bin +3 -0
- Resources/VAEDecoder.mlmodelc/metadata.json +80 -0
- Resources/VAEDecoder.mlmodelc/model.mil +0 -0
- Resources/VAEDecoder.mlmodelc/weights/weight.bin +3 -0
- Resources/VAEEncoder.mlmodelc/analytics/coremldata.bin +3 -0
- Resources/VAEEncoder.mlmodelc/coremldata.bin +3 -0
- Resources/VAEEncoder.mlmodelc/metadata.json +80 -0
- Resources/VAEEncoder.mlmodelc/model.mil +0 -0
- Resources/VAEEncoder.mlmodelc/weights/weight.bin +3 -0
- Resources/merges.txt +0 -0
- Resources/vocab.json +0 -0
- manifest.json +46 -39
README.md
CHANGED
|
@@ -11,16 +11,12 @@ tags:
|
|
| 11 |
|
| 12 |
# Clover Image Tiny Inpaint — Core ML
|
| 13 |
|
| 14 |
-
|
| 15 |
-
inpainting
|
| 16 |
-
|
|
|
|
| 17 |
|
| 18 |
-
|
| 19 |
-
**1,670 MB** (1.56 GiB). It is installed separately from Regular Clover.
|
| 20 |
-
|
| 21 |
-
## Resource contract
|
| 22 |
-
|
| 23 |
-
The app-managed `Resources` directory contains:
|
| 24 |
|
| 25 |
```text
|
| 26 |
TextEncoder.mlmodelc
|
|
@@ -33,40 +29,38 @@ vocab.json
|
|
| 33 |
merges.txt
|
| 34 |
```
|
| 35 |
|
| 36 |
-
The U-Net input is `[1, 9, 64, 64]`, ordered as noisy latent, mask,
|
| 37 |
-
masked-image latent.
|
| 38 |
-
|
| 39 |
-
preserved.
|
| 40 |
|
| 41 |
-
|
| 42 |
-
|
| 43 |
-
|
| 44 |
-
black means “preserve.”
|
| 45 |
|
| 46 |
-
![
|
| 47 |
|
| 48 |
-
|
| 49 |
-
benefit from a context crop before 512×512 inference, followed by exact-mask
|
| 50 |
-
compositing back into the source. Regular Clover LoRAs target a different
|
| 51 |
-
4-channel U-Net and cannot be loaded dynamically into this 9-channel export.
|
| 52 |
|
| 53 |
-
|
|
|
|
|
|
|
| 54 |
|
| 55 |
```bash
|
| 56 |
-
coreml-tools/convert_inpaint.sh
|
| 57 |
-
coreml-
|
|
|
|
|
|
|
| 58 |
.venv-coreml/bin/python coreml-tools/manifest_inpaint.py \
|
| 59 |
-
coreml-inpaint
|
|
|
|
| 60 |
```
|
| 61 |
|
| 62 |
-
The
|
| 63 |
-
|
| 64 |
-
PyTorch/Core ML parity. The all-accelerators path is used because the macOS
|
| 65 |
-
CPU-only Core ML runtime can return NaNs for this MLProgram even though the
|
| 66 |
-
Neural Engine-capable path is valid.
|
| 67 |
|
| 68 |
-
|
| 69 |
-
|
|
|
|
| 70 |
|
| 71 |
## Citation
|
| 72 |
|
|
|
|
| 11 |
|
| 12 |
# Clover Image Tiny Inpaint — Core ML
|
| 13 |
|
| 14 |
+
Compiled Core ML resources for the v2 SD 1.4-class Clover Image Tiny
|
| 15 |
+
inpainting model. The optional download contains **1,671,581,989 bytes**:
|
| 16 |
+
approximately **1,672 MB** (1.56 GiB). It is installed separately from Regular
|
| 17 |
+
Clover.
|
| 18 |
|
| 19 |
+
## Runtime resources
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 20 |
|
| 21 |
```text
|
| 22 |
TextEncoder.mlmodelc
|
|
|
|
| 29 |
merges.txt
|
| 30 |
```
|
| 31 |
|
| 32 |
+
The batch-one U-Net input is `[1, 9, 64, 64]`, ordered as noisy latent, mask,
|
| 33 |
+
and masked-image latent. White mask pixels are regenerated; black pixels are
|
| 34 |
+
preserved. The VAE encoder creates the masked-image latent locally.
|
|
|
|
| 35 |
|
| 36 |
+
Recommended settings are DPM-Solver++, 20 steps, CFG 6.0, and a 96-pixel
|
| 37 |
+
context margin around focused mask crops. Composite the result through the
|
| 38 |
+
exact mask to preserve all source pixels outside the edit.
|
|
|
|
| 39 |
|
| 40 |
+

|
| 41 |
|
| 42 |
+
## Validation
|
|
|
|
|
|
|
|
|
|
| 43 |
|
| 44 |
+
The converted nine-channel U-Net passed Apple conversion parity at 40.8 dB and
|
| 45 |
+
the independent fixed-shape Core ML smoke test at **46.2 dB**, above the 35 dB
|
| 46 |
+
release threshold. The manifest records every runtime file's size and SHA-256.
|
| 47 |
|
| 48 |
```bash
|
| 49 |
+
coreml-tools/convert_inpaint.sh \
|
| 50 |
+
coreml-inpaint-v2 artifacts/clover-image-tiny-inpaint-v2
|
| 51 |
+
coreml-tools/smoke-test-inpaint.sh \
|
| 52 |
+
artifacts/clover-image-tiny-inpaint-v2 coreml-inpaint-v2
|
| 53 |
.venv-coreml/bin/python coreml-tools/manifest_inpaint.py \
|
| 54 |
+
coreml-inpaint-release-v2 \
|
| 55 |
+
--model-dir artifacts/clover-image-tiny-inpaint-v2
|
| 56 |
```
|
| 57 |
|
| 58 |
+
The package targets iOS 18. The chunked batch-one U-Net lets the Swift runtime
|
| 59 |
+
perform classifier-free guidance as two serial passes to reduce peak memory.
|
|
|
|
|
|
|
|
|
|
| 60 |
|
| 61 |
+
Regular Clover Image Tiny LoRAs target a four-channel U-Net and cannot be
|
| 62 |
+
loaded dynamically into this nine-channel package. An inpainting-specific LoRA
|
| 63 |
+
can be fused before conversion as a separate Core ML bundle.
|
| 64 |
|
| 65 |
## Citation
|
| 66 |
|
Resources/SafetyChecker.mlmodelc/analytics/coremldata.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8211508a22331e6868fa9d207c6532ae5fc11791e8ceac6bf6fa4c7dd89004e8
|
| 3 |
+
size 243
|
Resources/SafetyChecker.mlmodelc/coremldata.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f57494e9bc01a089c73ba6b1b9554e1a3df155efbf7cf36223ba10ae494f0d58
|
| 3 |
+
size 1549
|
Resources/SafetyChecker.mlmodelc/metadata.json
ADDED
|
@@ -0,0 +1,130 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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" : "clover-image-tiny-inpaint-v2",
|
| 38 |
+
"modelParameters" : [
|
| 39 |
+
|
| 40 |
+
],
|
| 41 |
+
"author" : "Please refer to the Model Card available at huggingface.co\/clover-image-tiny-inpaint-v2",
|
| 42 |
+
"specificationVersion" : 9,
|
| 43 |
+
"storagePrecision" : "Float16",
|
| 44 |
+
"license" : "OpenRAIL (https:\/\/huggingface.co\/spaces\/CompVis\/stable-diffusion-license)",
|
| 45 |
+
"mlProgramOperationTypeHistogram" : {
|
| 46 |
+
"Ios18.expandDims" : 4,
|
| 47 |
+
"Ios18.softmax" : 24,
|
| 48 |
+
"Ios18.mul" : 73,
|
| 49 |
+
"Ios18.matmul" : 48,
|
| 50 |
+
"Ios18.realDiv" : 1,
|
| 51 |
+
"Ios18.sigmoid" : 24,
|
| 52 |
+
"Ios18.equal" : 1,
|
| 53 |
+
"Ios18.greaterEqual" : 1,
|
| 54 |
+
"Select" : 2,
|
| 55 |
+
"Ios18.greater" : 4,
|
| 56 |
+
"Tile" : 4,
|
| 57 |
+
"Ios16.reduceSum" : 2,
|
| 58 |
+
"Ios18.add" : 52,
|
| 59 |
+
"Ios18.layerNorm" : 50,
|
| 60 |
+
"Ios18.scatterNd" : 1,
|
| 61 |
+
"Ios18.reshape" : 97,
|
| 62 |
+
"Shape" : 1,
|
| 63 |
+
"Ios18.maximum" : 1,
|
| 64 |
+
"Ios18.linear" : 147,
|
| 65 |
+
"Ios18.conv" : 1,
|
| 66 |
+
"Ios18.concat" : 2,
|
| 67 |
+
"Ios18.transpose" : 97,
|
| 68 |
+
"Ios18.cast" : 7,
|
| 69 |
+
"Ios18.sliceByIndex" : 2,
|
| 70 |
+
"NonZero" : 1,
|
| 71 |
+
"Ios16.reduceL2Norm" : 1
|
| 72 |
+
},
|
| 73 |
+
"computePrecision" : "Mixed (Float16, Float32, Int32)",
|
| 74 |
+
"stateSchema" : [
|
| 75 |
+
|
| 76 |
+
],
|
| 77 |
+
"isUpdatable" : "0",
|
| 78 |
+
"availability" : {
|
| 79 |
+
"macOS" : "15.0",
|
| 80 |
+
"tvOS" : "18.0",
|
| 81 |
+
"visionOS" : "2.0",
|
| 82 |
+
"watchOS" : "11.0",
|
| 83 |
+
"iOS" : "18.0",
|
| 84 |
+
"macCatalyst" : "18.0"
|
| 85 |
+
},
|
| 86 |
+
"modelType" : {
|
| 87 |
+
"name" : "MLModelType_mlProgram"
|
| 88 |
+
},
|
| 89 |
+
"inputSchema" : [
|
| 90 |
+
{
|
| 91 |
+
"hasShapeFlexibility" : "0",
|
| 92 |
+
"isOptional" : "0",
|
| 93 |
+
"dataType" : "Float16",
|
| 94 |
+
"formattedType" : "MultiArray (Float16 1 × 3 × 224 × 224)",
|
| 95 |
+
"shortDescription" : "The normalized image input tensor resized to (224x224) in channels-first (BCHW) format",
|
| 96 |
+
"shape" : "[1, 3, 224, 224]",
|
| 97 |
+
"name" : "clip_input",
|
| 98 |
+
"type" : "MultiArray"
|
| 99 |
+
},
|
| 100 |
+
{
|
| 101 |
+
"hasShapeFlexibility" : "0",
|
| 102 |
+
"isOptional" : "0",
|
| 103 |
+
"dataType" : "Float16",
|
| 104 |
+
"formattedType" : "MultiArray (Float16 1 × 512 × 512 × 3)",
|
| 105 |
+
"shortDescription" : "Output of the vae_decoder (512x512) in channels-last (BHWC) format",
|
| 106 |
+
"shape" : "[1, 512, 512, 3]",
|
| 107 |
+
"name" : "images",
|
| 108 |
+
"type" : "MultiArray"
|
| 109 |
+
},
|
| 110 |
+
{
|
| 111 |
+
"hasShapeFlexibility" : "0",
|
| 112 |
+
"isOptional" : "0",
|
| 113 |
+
"dataType" : "Float16",
|
| 114 |
+
"formattedType" : "MultiArray (Float16 1)",
|
| 115 |
+
"shortDescription" : "Bias added to the concept scores to trade off increased recall for reduce precision in the safety checker classifier",
|
| 116 |
+
"shape" : "[1]",
|
| 117 |
+
"name" : "adjustment",
|
| 118 |
+
"type" : "MultiArray"
|
| 119 |
+
}
|
| 120 |
+
],
|
| 121 |
+
"userDefinedMetadata" : {
|
| 122 |
+
"com.github.apple.coremltools.conversion_date" : "2026-08-11",
|
| 123 |
+
"com.github.apple.coremltools.source" : "torch==2.7.0",
|
| 124 |
+
"com.github.apple.coremltools.version" : "9.0",
|
| 125 |
+
"com.github.apple.coremltools.source_dialect" : "TorchScript"
|
| 126 |
+
},
|
| 127 |
+
"generatedClassName" : "Stable_Diffusion_version_clover_image_tiny_inpaint_v2_safety_checker",
|
| 128 |
+
"method" : "predict"
|
| 129 |
+
}
|
| 130 |
+
]
|
Resources/SafetyChecker.mlmodelc/model.mil
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
Resources/SafetyChecker.mlmodelc/weights/weight.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ffdfb1a4774feb816dd2ccc3e304d109013bc9591e188dcab840789583fdc1b4
|
| 3 |
+
size 607990114
|
Resources/TextEncoder.mlmodelc/analytics/coremldata.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3ba6d80c5e94f50f17a70a965c2f63d24fa4239672d0fb5dadcf888e69cafc0f
|
| 3 |
+
size 243
|
Resources/TextEncoder.mlmodelc/coremldata.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:734dc3fdcdcc31367ffae6a58b1e4b0d713eb3f043b89811b7fcaec6df67a495
|
| 3 |
+
size 952
|
Resources/TextEncoder.mlmodelc/metadata.json
ADDED
|
@@ -0,0 +1,90 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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" : "clover-image-tiny-inpaint-v2",
|
| 28 |
+
"modelParameters" : [
|
| 29 |
+
|
| 30 |
+
],
|
| 31 |
+
"author" : "Please refer to the Model Card available at huggingface.co\/clover-image-tiny-inpaint-v2",
|
| 32 |
+
"specificationVersion" : 9,
|
| 33 |
+
"storagePrecision" : "Float16",
|
| 34 |
+
"license" : "OpenRAIL (https:\/\/huggingface.co\/spaces\/CompVis\/stable-diffusion-license)",
|
| 35 |
+
"mlProgramOperationTypeHistogram" : {
|
| 36 |
+
"Ios18.linear" : 72,
|
| 37 |
+
"Ios18.matmul" : 24,
|
| 38 |
+
"Select" : 1,
|
| 39 |
+
"Ios18.reduceArgmax" : 1,
|
| 40 |
+
"Ios18.gather" : 1,
|
| 41 |
+
"Ios18.sigmoid" : 12,
|
| 42 |
+
"Ios18.add" : 38,
|
| 43 |
+
"Stack" : 1,
|
| 44 |
+
"Ios18.softmax" : 12,
|
| 45 |
+
"Ios18.layerNorm" : 25,
|
| 46 |
+
"Ios18.transpose" : 48,
|
| 47 |
+
"Ios18.cast" : 4,
|
| 48 |
+
"Ios18.gatherNd" : 1,
|
| 49 |
+
"Ios18.reshape" : 48,
|
| 50 |
+
"Ios18.greaterEqual" : 1,
|
| 51 |
+
"Ios18.mul" : 36
|
| 52 |
+
},
|
| 53 |
+
"computePrecision" : "Mixed (Float16, Float32, Int32, UInt16)",
|
| 54 |
+
"stateSchema" : [
|
| 55 |
+
|
| 56 |
+
],
|
| 57 |
+
"isUpdatable" : "0",
|
| 58 |
+
"availability" : {
|
| 59 |
+
"macOS" : "15.0",
|
| 60 |
+
"tvOS" : "18.0",
|
| 61 |
+
"visionOS" : "2.0",
|
| 62 |
+
"watchOS" : "11.0",
|
| 63 |
+
"iOS" : "18.0",
|
| 64 |
+
"macCatalyst" : "18.0"
|
| 65 |
+
},
|
| 66 |
+
"modelType" : {
|
| 67 |
+
"name" : "MLModelType_mlProgram"
|
| 68 |
+
},
|
| 69 |
+
"inputSchema" : [
|
| 70 |
+
{
|
| 71 |
+
"hasShapeFlexibility" : "0",
|
| 72 |
+
"isOptional" : "0",
|
| 73 |
+
"dataType" : "Float32",
|
| 74 |
+
"formattedType" : "MultiArray (Float32 1 × 77)",
|
| 75 |
+
"shortDescription" : "The token ids that represent the input text",
|
| 76 |
+
"shape" : "[1, 77]",
|
| 77 |
+
"name" : "input_ids",
|
| 78 |
+
"type" : "MultiArray"
|
| 79 |
+
}
|
| 80 |
+
],
|
| 81 |
+
"userDefinedMetadata" : {
|
| 82 |
+
"com.github.apple.coremltools.conversion_date" : "2026-08-11",
|
| 83 |
+
"com.github.apple.coremltools.source" : "torch==2.7.0",
|
| 84 |
+
"com.github.apple.coremltools.version" : "9.0",
|
| 85 |
+
"com.github.apple.coremltools.source_dialect" : "TorchScript"
|
| 86 |
+
},
|
| 87 |
+
"generatedClassName" : "Stable_Diffusion_version_clover_image_tiny_inpaint_v2_text_encoder",
|
| 88 |
+
"method" : "predict"
|
| 89 |
+
}
|
| 90 |
+
]
|
Resources/TextEncoder.mlmodelc/model.mil
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
Resources/TextEncoder.mlmodelc/weights/weight.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b3e8699e18a386ba82633384e0a6f5c090983f1c66b24a26fad3554fc2a12ddb
|
| 3 |
+
size 246145536
|
Resources/UnetChunk1.mlmodelc/analytics/coremldata.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7ee3483e4486c1bdc21299013aa9d3a25fcafb3d064750294c822cf8d6708151
|
| 3 |
+
size 243
|
Resources/UnetChunk1.mlmodelc/coremldata.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f1ebbe33a5324d71a517efe9d5f5b8f9bbcb9bd2e991a57171840161b3a63430
|
| 3 |
+
size 532
|
Resources/UnetChunk1.mlmodelc/metadata.json
ADDED
|
@@ -0,0 +1,180 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 1 × 320 × 64 × 64)",
|
| 11 |
+
"shortDescription" : "",
|
| 12 |
+
"shape" : "[1, 320, 64, 64]",
|
| 13 |
+
"name" : "input_7_cast_fp16",
|
| 14 |
+
"type" : "MultiArray"
|
| 15 |
+
},
|
| 16 |
+
{
|
| 17 |
+
"hasShapeFlexibility" : "0",
|
| 18 |
+
"isOptional" : "0",
|
| 19 |
+
"dataType" : "Float32",
|
| 20 |
+
"formattedType" : "MultiArray (Float32 1 × 640 × 32 × 32)",
|
| 21 |
+
"shortDescription" : "",
|
| 22 |
+
"shape" : "[1, 640, 32, 32]",
|
| 23 |
+
"name" : "input_63_cast_fp16",
|
| 24 |
+
"type" : "MultiArray"
|
| 25 |
+
},
|
| 26 |
+
{
|
| 27 |
+
"hasShapeFlexibility" : "0",
|
| 28 |
+
"isOptional" : "0",
|
| 29 |
+
"dataType" : "Float32",
|
| 30 |
+
"formattedType" : "MultiArray (Float32 1 × 10240 × 1 × 256)",
|
| 31 |
+
"shortDescription" : "",
|
| 32 |
+
"shape" : "[1, 10240, 1, 256]",
|
| 33 |
+
"name" : "var_2337_cast_fp16",
|
| 34 |
+
"type" : "MultiArray"
|
| 35 |
+
},
|
| 36 |
+
{
|
| 37 |
+
"hasShapeFlexibility" : "0",
|
| 38 |
+
"isOptional" : "0",
|
| 39 |
+
"dataType" : "Float32",
|
| 40 |
+
"formattedType" : "MultiArray (Float32 1 × 640 × 16 × 16)",
|
| 41 |
+
"shortDescription" : "",
|
| 42 |
+
"shape" : "[1, 640, 16, 16]",
|
| 43 |
+
"name" : "input_65_cast_fp16",
|
| 44 |
+
"type" : "MultiArray"
|
| 45 |
+
},
|
| 46 |
+
{
|
| 47 |
+
"hasShapeFlexibility" : "0",
|
| 48 |
+
"isOptional" : "0",
|
| 49 |
+
"dataType" : "Float32",
|
| 50 |
+
"formattedType" : "MultiArray (Float32 1 × 320 × 32 × 32)",
|
| 51 |
+
"shortDescription" : "",
|
| 52 |
+
"shape" : "[1, 320, 32, 32]",
|
| 53 |
+
"name" : "input_37_cast_fp16",
|
| 54 |
+
"type" : "MultiArray"
|
| 55 |
+
},
|
| 56 |
+
{
|
| 57 |
+
"hasShapeFlexibility" : "0",
|
| 58 |
+
"isOptional" : "0",
|
| 59 |
+
"dataType" : "Float32",
|
| 60 |
+
"formattedType" : "MultiArray (Float32 1 × 1280 × 16 × 16)",
|
| 61 |
+
"shortDescription" : "",
|
| 62 |
+
"shape" : "[1, 1280, 16, 16]",
|
| 63 |
+
"name" : "hidden_states_61_cast_fp16",
|
| 64 |
+
"type" : "MultiArray"
|
| 65 |
+
},
|
| 66 |
+
{
|
| 67 |
+
"hasShapeFlexibility" : "0",
|
| 68 |
+
"isOptional" : "0",
|
| 69 |
+
"dataType" : "Float32",
|
| 70 |
+
"formattedType" : "MultiArray (Float32 1 × 320 × 64 × 64)",
|
| 71 |
+
"shortDescription" : "",
|
| 72 |
+
"shape" : "[1, 320, 64, 64]",
|
| 73 |
+
"name" : "input_35_cast_fp16",
|
| 74 |
+
"type" : "MultiArray"
|
| 75 |
+
},
|
| 76 |
+
{
|
| 77 |
+
"hasShapeFlexibility" : "0",
|
| 78 |
+
"isOptional" : "0",
|
| 79 |
+
"dataType" : "Float32",
|
| 80 |
+
"formattedType" : "MultiArray (Float32 1 × 1280 × 1 × 1)",
|
| 81 |
+
"shortDescription" : "",
|
| 82 |
+
"shape" : "[1, 1280, 1, 1]",
|
| 83 |
+
"name" : "input_15_cast_fp16",
|
| 84 |
+
"type" : "MultiArray"
|
| 85 |
+
},
|
| 86 |
+
{
|
| 87 |
+
"hasShapeFlexibility" : "0",
|
| 88 |
+
"isOptional" : "0",
|
| 89 |
+
"dataType" : "Float32",
|
| 90 |
+
"formattedType" : "MultiArray (Float32 1 × 1280 × 1 × 256)",
|
| 91 |
+
"shortDescription" : "",
|
| 92 |
+
"shape" : "[1, 1280, 1, 256]",
|
| 93 |
+
"name" : "inputs_23_cast_fp16",
|
| 94 |
+
"type" : "MultiArray"
|
| 95 |
+
}
|
| 96 |
+
],
|
| 97 |
+
"modelParameters" : [
|
| 98 |
+
|
| 99 |
+
],
|
| 100 |
+
"specificationVersion" : 9,
|
| 101 |
+
"mlProgramOperationTypeHistogram" : {
|
| 102 |
+
"Ios18.expandDims" : 3,
|
| 103 |
+
"Ios18.softmax" : 64,
|
| 104 |
+
"Ios18.cos" : 1,
|
| 105 |
+
"Ios18.mul" : 68,
|
| 106 |
+
"Ios18.batchNorm" : 12,
|
| 107 |
+
"Ios16.reduceMean" : 24,
|
| 108 |
+
"Ios18.realDiv" : 12,
|
| 109 |
+
"Ios18.sin" : 1,
|
| 110 |
+
"Split" : 3,
|
| 111 |
+
"Ios18.add" : 34,
|
| 112 |
+
"Ios18.layerNorm" : 12,
|
| 113 |
+
"Ios18.reshape" : 31,
|
| 114 |
+
"Ios18.conv" : 66,
|
| 115 |
+
"Ios18.concat" : 11,
|
| 116 |
+
"Ios16.einsum" : 128,
|
| 117 |
+
"Ios18.sub" : 12,
|
| 118 |
+
"Ios18.silu" : 10,
|
| 119 |
+
"Ios18.transpose" : 8,
|
| 120 |
+
"Ios18.sqrt" : 12,
|
| 121 |
+
"Ios18.gelu" : 3,
|
| 122 |
+
"Ios18.square" : 12,
|
| 123 |
+
"Ios18.cast" : 9,
|
| 124 |
+
"Ios18.sliceByIndex" : 194
|
| 125 |
+
},
|
| 126 |
+
"computePrecision" : "Mixed (Float16, Float32, Int32)",
|
| 127 |
+
"isUpdatable" : "0",
|
| 128 |
+
"stateSchema" : [
|
| 129 |
+
|
| 130 |
+
],
|
| 131 |
+
"availability" : {
|
| 132 |
+
"macOS" : "15.0",
|
| 133 |
+
"tvOS" : "18.0",
|
| 134 |
+
"visionOS" : "2.0",
|
| 135 |
+
"watchOS" : "11.0",
|
| 136 |
+
"iOS" : "18.0",
|
| 137 |
+
"macCatalyst" : "18.0"
|
| 138 |
+
},
|
| 139 |
+
"modelType" : {
|
| 140 |
+
"name" : "MLModelType_mlProgram"
|
| 141 |
+
},
|
| 142 |
+
"userDefinedMetadata" : {
|
| 143 |
+
|
| 144 |
+
},
|
| 145 |
+
"inputSchema" : [
|
| 146 |
+
{
|
| 147 |
+
"hasShapeFlexibility" : "0",
|
| 148 |
+
"isOptional" : "0",
|
| 149 |
+
"dataType" : "Float16",
|
| 150 |
+
"formattedType" : "MultiArray (Float16 1 × 9 × 64 × 64)",
|
| 151 |
+
"shortDescription" : "",
|
| 152 |
+
"shape" : "[1, 9, 64, 64]",
|
| 153 |
+
"name" : "sample",
|
| 154 |
+
"type" : "MultiArray"
|
| 155 |
+
},
|
| 156 |
+
{
|
| 157 |
+
"hasShapeFlexibility" : "0",
|
| 158 |
+
"isOptional" : "0",
|
| 159 |
+
"dataType" : "Float16",
|
| 160 |
+
"formattedType" : "MultiArray (Float16 1)",
|
| 161 |
+
"shortDescription" : "",
|
| 162 |
+
"shape" : "[1]",
|
| 163 |
+
"name" : "timestep",
|
| 164 |
+
"type" : "MultiArray"
|
| 165 |
+
},
|
| 166 |
+
{
|
| 167 |
+
"hasShapeFlexibility" : "0",
|
| 168 |
+
"isOptional" : "0",
|
| 169 |
+
"dataType" : "Float16",
|
| 170 |
+
"formattedType" : "MultiArray (Float16 1 × 768 × 1 × 77)",
|
| 171 |
+
"shortDescription" : "",
|
| 172 |
+
"shape" : "[1, 768, 1, 77]",
|
| 173 |
+
"name" : "encoder_hidden_states",
|
| 174 |
+
"type" : "MultiArray"
|
| 175 |
+
}
|
| 176 |
+
],
|
| 177 |
+
"generatedClassName" : "Stable_Diffusion_version_clover_image_tiny_inpaint_v2_unet_chunk1",
|
| 178 |
+
"method" : "predict"
|
| 179 |
+
}
|
| 180 |
+
]
|
Resources/UnetChunk1.mlmodelc/model.mil
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
Resources/UnetChunk1.mlmodelc/weights/weight.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:091529bc9e2b2bdda0508614e223570f7a8a4fe288bc510ec844635ba2f01046
|
| 3 |
+
size 324651584
|
Resources/UnetChunk2.mlmodelc/analytics/coremldata.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1f7d7cba85c9edd629d133c0224baf71e989ad4bfe1da89f37706f1d6cab45ea
|
| 3 |
+
size 243
|
Resources/UnetChunk2.mlmodelc/coremldata.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:94ea7e153dab4f55ad8a40d12f9853422f8bdce240f5b608f3ae72ac3229fb35
|
| 3 |
+
size 513
|
Resources/UnetChunk2.mlmodelc/metadata.json
ADDED
|
@@ -0,0 +1,168 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 1 × 4 × 64 × 64)",
|
| 11 |
+
"shortDescription" : "",
|
| 12 |
+
"shape" : "[1, 4, 64, 64]",
|
| 13 |
+
"name" : "noise_pred",
|
| 14 |
+
"type" : "MultiArray"
|
| 15 |
+
}
|
| 16 |
+
],
|
| 17 |
+
"modelParameters" : [
|
| 18 |
+
|
| 19 |
+
],
|
| 20 |
+
"specificationVersion" : 9,
|
| 21 |
+
"mlProgramOperationTypeHistogram" : {
|
| 22 |
+
"Ios18.softmax" : 80,
|
| 23 |
+
"Ios18.mul" : 86,
|
| 24 |
+
"UpsampleNearestNeighbor" : 2,
|
| 25 |
+
"Ios18.batchNorm" : 16,
|
| 26 |
+
"Ios16.reduceMean" : 32,
|
| 27 |
+
"Ios18.realDiv" : 16,
|
| 28 |
+
"Split" : 6,
|
| 29 |
+
"Ios18.add" : 48,
|
| 30 |
+
"Ios18.layerNorm" : 15,
|
| 31 |
+
"Ios18.reshape" : 43,
|
| 32 |
+
"Ios18.conv" : 85,
|
| 33 |
+
"Ios18.gelu" : 6,
|
| 34 |
+
"Ios18.concat" : 15,
|
| 35 |
+
"Ios18.sub" : 16,
|
| 36 |
+
"Ios16.einsum" : 160,
|
| 37 |
+
"Ios18.silu" : 11,
|
| 38 |
+
"Ios18.cast" : 10,
|
| 39 |
+
"Ios18.transpose" : 10,
|
| 40 |
+
"Ios18.square" : 16,
|
| 41 |
+
"Ios18.sqrt" : 16,
|
| 42 |
+
"Ios18.sliceByIndex" : 240
|
| 43 |
+
},
|
| 44 |
+
"computePrecision" : "Mixed (Float16, Float32, Int32)",
|
| 45 |
+
"isUpdatable" : "0",
|
| 46 |
+
"stateSchema" : [
|
| 47 |
+
|
| 48 |
+
],
|
| 49 |
+
"availability" : {
|
| 50 |
+
"macOS" : "15.0",
|
| 51 |
+
"tvOS" : "18.0",
|
| 52 |
+
"visionOS" : "2.0",
|
| 53 |
+
"watchOS" : "11.0",
|
| 54 |
+
"iOS" : "18.0",
|
| 55 |
+
"macCatalyst" : "18.0"
|
| 56 |
+
},
|
| 57 |
+
"modelType" : {
|
| 58 |
+
"name" : "MLModelType_mlProgram"
|
| 59 |
+
},
|
| 60 |
+
"userDefinedMetadata" : {
|
| 61 |
+
|
| 62 |
+
},
|
| 63 |
+
"inputSchema" : [
|
| 64 |
+
{
|
| 65 |
+
"hasShapeFlexibility" : "0",
|
| 66 |
+
"isOptional" : "0",
|
| 67 |
+
"dataType" : "Float16",
|
| 68 |
+
"formattedType" : "MultiArray (Float16 1 × 768 × 1 × 77)",
|
| 69 |
+
"shortDescription" : "",
|
| 70 |
+
"shape" : "[1, 768, 1, 77]",
|
| 71 |
+
"name" : "encoder_hidden_states",
|
| 72 |
+
"type" : "MultiArray"
|
| 73 |
+
},
|
| 74 |
+
{
|
| 75 |
+
"hasShapeFlexibility" : "0",
|
| 76 |
+
"isOptional" : "0",
|
| 77 |
+
"dataType" : "Float32",
|
| 78 |
+
"formattedType" : "MultiArray (Float32 1 × 640 × 16 × 16)",
|
| 79 |
+
"shortDescription" : "",
|
| 80 |
+
"shape" : "[1, 640, 16, 16]",
|
| 81 |
+
"name" : "input_65_cast_fp16",
|
| 82 |
+
"type" : "MultiArray"
|
| 83 |
+
},
|
| 84 |
+
{
|
| 85 |
+
"hasShapeFlexibility" : "0",
|
| 86 |
+
"isOptional" : "0",
|
| 87 |
+
"dataType" : "Float32",
|
| 88 |
+
"formattedType" : "MultiArray (Float32 1 × 1280 × 1 × 256)",
|
| 89 |
+
"shortDescription" : "",
|
| 90 |
+
"shape" : "[1, 1280, 1, 256]",
|
| 91 |
+
"name" : "inputs_23_cast_fp16",
|
| 92 |
+
"type" : "MultiArray"
|
| 93 |
+
},
|
| 94 |
+
{
|
| 95 |
+
"hasShapeFlexibility" : "0",
|
| 96 |
+
"isOptional" : "0",
|
| 97 |
+
"dataType" : "Float32",
|
| 98 |
+
"formattedType" : "MultiArray (Float32 1 × 320 × 64 × 64)",
|
| 99 |
+
"shortDescription" : "",
|
| 100 |
+
"shape" : "[1, 320, 64, 64]",
|
| 101 |
+
"name" : "input_35_cast_fp16",
|
| 102 |
+
"type" : "MultiArray"
|
| 103 |
+
},
|
| 104 |
+
{
|
| 105 |
+
"hasShapeFlexibility" : "0",
|
| 106 |
+
"isOptional" : "0",
|
| 107 |
+
"dataType" : "Float32",
|
| 108 |
+
"formattedType" : "MultiArray (Float32 1 × 1280 × 16 × 16)",
|
| 109 |
+
"shortDescription" : "",
|
| 110 |
+
"shape" : "[1, 1280, 16, 16]",
|
| 111 |
+
"name" : "hidden_states_61_cast_fp16",
|
| 112 |
+
"type" : "MultiArray"
|
| 113 |
+
},
|
| 114 |
+
{
|
| 115 |
+
"hasShapeFlexibility" : "0",
|
| 116 |
+
"isOptional" : "0",
|
| 117 |
+
"dataType" : "Float32",
|
| 118 |
+
"formattedType" : "MultiArray (Float32 1 × 10240 × 1 × 256)",
|
| 119 |
+
"shortDescription" : "",
|
| 120 |
+
"shape" : "[1, 10240, 1, 256]",
|
| 121 |
+
"name" : "var_2337_cast_fp16",
|
| 122 |
+
"type" : "MultiArray"
|
| 123 |
+
},
|
| 124 |
+
{
|
| 125 |
+
"hasShapeFlexibility" : "0",
|
| 126 |
+
"isOptional" : "0",
|
| 127 |
+
"dataType" : "Float32",
|
| 128 |
+
"formattedType" : "MultiArray (Float32 1 × 320 × 32 × 32)",
|
| 129 |
+
"shortDescription" : "",
|
| 130 |
+
"shape" : "[1, 320, 32, 32]",
|
| 131 |
+
"name" : "input_37_cast_fp16",
|
| 132 |
+
"type" : "MultiArray"
|
| 133 |
+
},
|
| 134 |
+
{
|
| 135 |
+
"hasShapeFlexibility" : "0",
|
| 136 |
+
"isOptional" : "0",
|
| 137 |
+
"dataType" : "Float32",
|
| 138 |
+
"formattedType" : "MultiArray (Float32 1 × 640 × 32 × 32)",
|
| 139 |
+
"shortDescription" : "",
|
| 140 |
+
"shape" : "[1, 640, 32, 32]",
|
| 141 |
+
"name" : "input_63_cast_fp16",
|
| 142 |
+
"type" : "MultiArray"
|
| 143 |
+
},
|
| 144 |
+
{
|
| 145 |
+
"hasShapeFlexibility" : "0",
|
| 146 |
+
"isOptional" : "0",
|
| 147 |
+
"dataType" : "Float32",
|
| 148 |
+
"formattedType" : "MultiArray (Float32 1 × 1280 × 1 × 1)",
|
| 149 |
+
"shortDescription" : "",
|
| 150 |
+
"shape" : "[1, 1280, 1, 1]",
|
| 151 |
+
"name" : "input_15_cast_fp16",
|
| 152 |
+
"type" : "MultiArray"
|
| 153 |
+
},
|
| 154 |
+
{
|
| 155 |
+
"hasShapeFlexibility" : "0",
|
| 156 |
+
"isOptional" : "0",
|
| 157 |
+
"dataType" : "Float32",
|
| 158 |
+
"formattedType" : "MultiArray (Float32 1 × 320 × 64 × 64)",
|
| 159 |
+
"shortDescription" : "",
|
| 160 |
+
"shape" : "[1, 320, 64, 64]",
|
| 161 |
+
"name" : "input_7_cast_fp16",
|
| 162 |
+
"type" : "MultiArray"
|
| 163 |
+
}
|
| 164 |
+
],
|
| 165 |
+
"generatedClassName" : "Stable_Diffusion_version_clover_image_tiny_inpaint_v2_unet_chunk2",
|
| 166 |
+
"method" : "predict"
|
| 167 |
+
}
|
| 168 |
+
]
|
Resources/UnetChunk2.mlmodelc/model.mil
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
Resources/UnetChunk2.mlmodelc/weights/weight.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:04910ba6d4ca88b34dd1202c848aebfc33e339010d203573ebc4138a4e9f78ba
|
| 3 |
+
size 322211328
|
Resources/VAEDecoder.mlmodelc/analytics/coremldata.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ff20b000564aa02c66b7e254258a5c8ba7d34fdb99c54be3c85a42d8eea45a62
|
| 3 |
+
size 243
|
Resources/VAEDecoder.mlmodelc/coremldata.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7bb1f9ddd844d6c8e14c6e52a1e05d7c493e71091d788798d065141bbe3e131b
|
| 3 |
+
size 879
|
Resources/VAEDecoder.mlmodelc/metadata.json
ADDED
|
@@ -0,0 +1,80 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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" : "clover-image-tiny-inpaint-v2",
|
| 18 |
+
"modelParameters" : [
|
| 19 |
+
|
| 20 |
+
],
|
| 21 |
+
"author" : "Please refer to the Model Card available at huggingface.co\/clover-image-tiny-inpaint-v2",
|
| 22 |
+
"specificationVersion" : 9,
|
| 23 |
+
"storagePrecision" : "Float16",
|
| 24 |
+
"license" : "OpenRAIL (https:\/\/huggingface.co\/spaces\/CompVis\/stable-diffusion-license)",
|
| 25 |
+
"mlProgramOperationTypeHistogram" : {
|
| 26 |
+
"Ios18.square" : 30,
|
| 27 |
+
"Ios18.batchNorm" : 29,
|
| 28 |
+
"Ios18.conv" : 36,
|
| 29 |
+
"Ios18.sub" : 30,
|
| 30 |
+
"Ios18.linear" : 4,
|
| 31 |
+
"Ios18.scaledDotProductAttention" : 1,
|
| 32 |
+
"Ios18.add" : 46,
|
| 33 |
+
"Ios18.realDiv" : 30,
|
| 34 |
+
"Ios18.silu" : 29,
|
| 35 |
+
"Ios16.reduceMean" : 60,
|
| 36 |
+
"UpsampleNearestNeighbor" : 3,
|
| 37 |
+
"Ios18.transpose" : 6,
|
| 38 |
+
"Ios18.cast" : 1,
|
| 39 |
+
"Ios18.reshape" : 65,
|
| 40 |
+
"Ios18.sqrt" : 30,
|
| 41 |
+
"Ios18.mul" : 1
|
| 42 |
+
},
|
| 43 |
+
"computePrecision" : "Mixed (Float16, Float32, Int32)",
|
| 44 |
+
"stateSchema" : [
|
| 45 |
+
|
| 46 |
+
],
|
| 47 |
+
"isUpdatable" : "0",
|
| 48 |
+
"availability" : {
|
| 49 |
+
"macOS" : "15.0",
|
| 50 |
+
"tvOS" : "18.0",
|
| 51 |
+
"visionOS" : "2.0",
|
| 52 |
+
"watchOS" : "11.0",
|
| 53 |
+
"iOS" : "18.0",
|
| 54 |
+
"macCatalyst" : "18.0"
|
| 55 |
+
},
|
| 56 |
+
"modelType" : {
|
| 57 |
+
"name" : "MLModelType_mlProgram"
|
| 58 |
+
},
|
| 59 |
+
"inputSchema" : [
|
| 60 |
+
{
|
| 61 |
+
"hasShapeFlexibility" : "0",
|
| 62 |
+
"isOptional" : "0",
|
| 63 |
+
"dataType" : "Float16",
|
| 64 |
+
"formattedType" : "MultiArray (Float16 1 × 4 × 64 × 64)",
|
| 65 |
+
"shortDescription" : "The denoised latent embeddings from the unet model after the last step of reverse diffusion",
|
| 66 |
+
"shape" : "[1, 4, 64, 64]",
|
| 67 |
+
"name" : "z",
|
| 68 |
+
"type" : "MultiArray"
|
| 69 |
+
}
|
| 70 |
+
],
|
| 71 |
+
"userDefinedMetadata" : {
|
| 72 |
+
"com.github.apple.coremltools.conversion_date" : "2026-08-11",
|
| 73 |
+
"com.github.apple.coremltools.source" : "torch==2.7.0",
|
| 74 |
+
"com.github.apple.coremltools.version" : "9.0",
|
| 75 |
+
"com.github.apple.coremltools.source_dialect" : "TorchScript"
|
| 76 |
+
},
|
| 77 |
+
"generatedClassName" : "Stable_Diffusion_version_clover_image_tiny_inpaint_v2_vae_decoder",
|
| 78 |
+
"method" : "predict"
|
| 79 |
+
}
|
| 80 |
+
]
|
Resources/VAEDecoder.mlmodelc/model.mil
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
Resources/VAEDecoder.mlmodelc/weights/weight.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ca45a093443d3a9719c5f7c61010315e94ffc8019eff27a0eeb52075a05ac752
|
| 3 |
+
size 98993280
|
Resources/VAEEncoder.mlmodelc/analytics/coremldata.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ba122c04ae4c8d28c8b8805049e22fb7dfeac3eada7bde68c2366a14e712d1d6
|
| 3 |
+
size 243
|
Resources/VAEEncoder.mlmodelc/coremldata.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:fe1d98a943015c7ac3d29ef2d573b37610e62c97e5724d2f85c555960832629d
|
| 3 |
+
size 883
|
Resources/VAEEncoder.mlmodelc/metadata.json
ADDED
|
@@ -0,0 +1,80 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 × 8 × 64 × 64)",
|
| 11 |
+
"shortDescription" : "The latent embeddings from the unet model from the input image.",
|
| 12 |
+
"shape" : "[1, 8, 64, 64]",
|
| 13 |
+
"name" : "latent",
|
| 14 |
+
"type" : "MultiArray"
|
| 15 |
+
}
|
| 16 |
+
],
|
| 17 |
+
"version" : "clover-image-tiny-inpaint-v2",
|
| 18 |
+
"modelParameters" : [
|
| 19 |
+
|
| 20 |
+
],
|
| 21 |
+
"author" : "Please refer to the Model Card available at huggingface.co\/clover-image-tiny-inpaint-v2",
|
| 22 |
+
"specificationVersion" : 9,
|
| 23 |
+
"storagePrecision" : "Float16",
|
| 24 |
+
"license" : "OpenRAIL (https:\/\/huggingface.co\/spaces\/CompVis\/stable-diffusion-license)",
|
| 25 |
+
"mlProgramOperationTypeHistogram" : {
|
| 26 |
+
"Ios18.square" : 22,
|
| 27 |
+
"Ios18.batchNorm" : 21,
|
| 28 |
+
"Ios18.mul" : 1,
|
| 29 |
+
"Ios18.sub" : 22,
|
| 30 |
+
"Ios18.conv" : 28,
|
| 31 |
+
"Ios18.linear" : 4,
|
| 32 |
+
"Ios18.scaledDotProductAttention" : 1,
|
| 33 |
+
"Ios18.add" : 34,
|
| 34 |
+
"Ios18.realDiv" : 22,
|
| 35 |
+
"Ios18.silu" : 21,
|
| 36 |
+
"Ios16.reduceMean" : 44,
|
| 37 |
+
"Ios18.transpose" : 6,
|
| 38 |
+
"Ios18.cast" : 1,
|
| 39 |
+
"Ios18.reshape" : 49,
|
| 40 |
+
"Ios18.sqrt" : 22,
|
| 41 |
+
"Pad" : 3
|
| 42 |
+
},
|
| 43 |
+
"computePrecision" : "Mixed (Float16, Float32, Int32)",
|
| 44 |
+
"stateSchema" : [
|
| 45 |
+
|
| 46 |
+
],
|
| 47 |
+
"isUpdatable" : "0",
|
| 48 |
+
"availability" : {
|
| 49 |
+
"macOS" : "15.0",
|
| 50 |
+
"tvOS" : "18.0",
|
| 51 |
+
"visionOS" : "2.0",
|
| 52 |
+
"watchOS" : "11.0",
|
| 53 |
+
"iOS" : "18.0",
|
| 54 |
+
"macCatalyst" : "18.0"
|
| 55 |
+
},
|
| 56 |
+
"modelType" : {
|
| 57 |
+
"name" : "MLModelType_mlProgram"
|
| 58 |
+
},
|
| 59 |
+
"inputSchema" : [
|
| 60 |
+
{
|
| 61 |
+
"hasShapeFlexibility" : "0",
|
| 62 |
+
"isOptional" : "0",
|
| 63 |
+
"dataType" : "Float16",
|
| 64 |
+
"formattedType" : "MultiArray (Float16 1 × 3 × 512 × 512)",
|
| 65 |
+
"shortDescription" : "The input image to base the initial latents on normalized to range [-1, 1]",
|
| 66 |
+
"shape" : "[1, 3, 512, 512]",
|
| 67 |
+
"name" : "x",
|
| 68 |
+
"type" : "MultiArray"
|
| 69 |
+
}
|
| 70 |
+
],
|
| 71 |
+
"userDefinedMetadata" : {
|
| 72 |
+
"com.github.apple.coremltools.conversion_date" : "2026-08-11",
|
| 73 |
+
"com.github.apple.coremltools.source" : "torch==2.7.0",
|
| 74 |
+
"com.github.apple.coremltools.version" : "9.0",
|
| 75 |
+
"com.github.apple.coremltools.source_dialect" : "TorchScript"
|
| 76 |
+
},
|
| 77 |
+
"generatedClassName" : "Stable_Diffusion_version_clover_image_tiny_inpaint_v2_vae_encoder",
|
| 78 |
+
"method" : "predict"
|
| 79 |
+
}
|
| 80 |
+
]
|
Resources/VAEEncoder.mlmodelc/model.mil
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
Resources/VAEEncoder.mlmodelc/weights/weight.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:71bf826e5ee1b455462aff0b34e3a469f5f58955ae715708962b1d81db92dc64
|
| 3 |
+
size 68338112
|
Resources/merges.txt
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
Resources/vocab.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
manifest.json
CHANGED
|
@@ -21,21 +21,28 @@
|
|
| 21 |
],
|
| 22 |
"mask_semantics": "white=regenerate, black=preserve"
|
| 23 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 24 |
"resources": [
|
| 25 |
{
|
| 26 |
"path": "SafetyChecker.mlmodelc/analytics/coremldata.bin",
|
| 27 |
"size": 243,
|
| 28 |
-
"sha256": "
|
| 29 |
},
|
| 30 |
{
|
| 31 |
"path": "SafetyChecker.mlmodelc/coremldata.bin",
|
| 32 |
-
"size":
|
| 33 |
-
"sha256": "
|
| 34 |
},
|
| 35 |
{
|
| 36 |
"path": "SafetyChecker.mlmodelc/metadata.json",
|
| 37 |
-
"size":
|
| 38 |
-
"sha256": "
|
| 39 |
},
|
| 40 |
{
|
| 41 |
"path": "SafetyChecker.mlmodelc/model.mil",
|
|
@@ -50,92 +57,92 @@
|
|
| 50 |
{
|
| 51 |
"path": "TextEncoder.mlmodelc/analytics/coremldata.bin",
|
| 52 |
"size": 243,
|
| 53 |
-
"sha256": "
|
| 54 |
},
|
| 55 |
{
|
| 56 |
"path": "TextEncoder.mlmodelc/coremldata.bin",
|
| 57 |
-
"size":
|
| 58 |
-
"sha256": "
|
| 59 |
},
|
| 60 |
{
|
| 61 |
"path": "TextEncoder.mlmodelc/metadata.json",
|
| 62 |
-
"size":
|
| 63 |
-
"sha256": "
|
| 64 |
},
|
| 65 |
{
|
| 66 |
"path": "TextEncoder.mlmodelc/model.mil",
|
| 67 |
-
"size":
|
| 68 |
-
"sha256": "
|
| 69 |
},
|
| 70 |
{
|
| 71 |
"path": "TextEncoder.mlmodelc/weights/weight.bin",
|
| 72 |
-
"size":
|
| 73 |
-
"sha256": "
|
| 74 |
},
|
| 75 |
{
|
| 76 |
"path": "UnetChunk1.mlmodelc/analytics/coremldata.bin",
|
| 77 |
"size": 243,
|
| 78 |
-
"sha256": "
|
| 79 |
},
|
| 80 |
{
|
| 81 |
"path": "UnetChunk1.mlmodelc/coremldata.bin",
|
| 82 |
"size": 532,
|
| 83 |
-
"sha256": "
|
| 84 |
},
|
| 85 |
{
|
| 86 |
"path": "UnetChunk1.mlmodelc/metadata.json",
|
| 87 |
-
"size":
|
| 88 |
-
"sha256": "
|
| 89 |
},
|
| 90 |
{
|
| 91 |
"path": "UnetChunk1.mlmodelc/model.mil",
|
| 92 |
"size": 359479,
|
| 93 |
-
"sha256": "
|
| 94 |
},
|
| 95 |
{
|
| 96 |
"path": "UnetChunk1.mlmodelc/weights/weight.bin",
|
| 97 |
"size": 324651584,
|
| 98 |
-
"sha256": "
|
| 99 |
},
|
| 100 |
{
|
| 101 |
"path": "UnetChunk2.mlmodelc/analytics/coremldata.bin",
|
| 102 |
"size": 243,
|
| 103 |
-
"sha256": "
|
| 104 |
},
|
| 105 |
{
|
| 106 |
"path": "UnetChunk2.mlmodelc/coremldata.bin",
|
| 107 |
"size": 513,
|
| 108 |
-
"sha256": "
|
| 109 |
},
|
| 110 |
{
|
| 111 |
"path": "UnetChunk2.mlmodelc/metadata.json",
|
| 112 |
-
"size":
|
| 113 |
-
"sha256": "
|
| 114 |
},
|
| 115 |
{
|
| 116 |
"path": "UnetChunk2.mlmodelc/model.mil",
|
| 117 |
-
"size":
|
| 118 |
-
"sha256": "
|
| 119 |
},
|
| 120 |
{
|
| 121 |
"path": "UnetChunk2.mlmodelc/weights/weight.bin",
|
| 122 |
"size": 322211328,
|
| 123 |
-
"sha256": "
|
| 124 |
},
|
| 125 |
{
|
| 126 |
"path": "VAEDecoder.mlmodelc/analytics/coremldata.bin",
|
| 127 |
"size": 243,
|
| 128 |
-
"sha256": "
|
| 129 |
},
|
| 130 |
{
|
| 131 |
"path": "VAEDecoder.mlmodelc/coremldata.bin",
|
| 132 |
-
"size":
|
| 133 |
-
"sha256": "
|
| 134 |
},
|
| 135 |
{
|
| 136 |
"path": "VAEDecoder.mlmodelc/metadata.json",
|
| 137 |
-
"size":
|
| 138 |
-
"sha256": "
|
| 139 |
},
|
| 140 |
{
|
| 141 |
"path": "VAEDecoder.mlmodelc/model.mil",
|
|
@@ -150,17 +157,17 @@
|
|
| 150 |
{
|
| 151 |
"path": "VAEEncoder.mlmodelc/analytics/coremldata.bin",
|
| 152 |
"size": 243,
|
| 153 |
-
"sha256": "
|
| 154 |
},
|
| 155 |
{
|
| 156 |
"path": "VAEEncoder.mlmodelc/coremldata.bin",
|
| 157 |
-
"size":
|
| 158 |
-
"sha256": "
|
| 159 |
},
|
| 160 |
{
|
| 161 |
"path": "VAEEncoder.mlmodelc/metadata.json",
|
| 162 |
-
"size":
|
| 163 |
-
"sha256": "
|
| 164 |
},
|
| 165 |
{
|
| 166 |
"path": "VAEEncoder.mlmodelc/model.mil",
|
|
@@ -179,8 +186,8 @@
|
|
| 179 |
},
|
| 180 |
{
|
| 181 |
"path": "vocab.json",
|
| 182 |
-
"size":
|
| 183 |
-
"sha256": "
|
| 184 |
}
|
| 185 |
]
|
| 186 |
}
|
|
|
|
| 21 |
],
|
| 22 |
"mask_semantics": "white=regenerate, black=preserve"
|
| 23 |
},
|
| 24 |
+
"recommended_inference": {
|
| 25 |
+
"scheduler": "dpm_solver_multistep",
|
| 26 |
+
"steps": 20,
|
| 27 |
+
"guidance_scale": 6.0,
|
| 28 |
+
"mask_crop_padding": 96,
|
| 29 |
+
"composite_outside_mask": "exact source pixels"
|
| 30 |
+
},
|
| 31 |
"resources": [
|
| 32 |
{
|
| 33 |
"path": "SafetyChecker.mlmodelc/analytics/coremldata.bin",
|
| 34 |
"size": 243,
|
| 35 |
+
"sha256": "8211508a22331e6868fa9d207c6532ae5fc11791e8ceac6bf6fa4c7dd89004e8"
|
| 36 |
},
|
| 37 |
{
|
| 38 |
"path": "SafetyChecker.mlmodelc/coremldata.bin",
|
| 39 |
+
"size": 1549,
|
| 40 |
+
"sha256": "f57494e9bc01a089c73ba6b1b9554e1a3df155efbf7cf36223ba10ae494f0d58"
|
| 41 |
},
|
| 42 |
{
|
| 43 |
"path": "SafetyChecker.mlmodelc/metadata.json",
|
| 44 |
+
"size": 4687,
|
| 45 |
+
"sha256": "4af6e1bd32288fd5e6e6f171d7e63a8a3f3ec776b45c16bb7e3fe352e36158f0"
|
| 46 |
},
|
| 47 |
{
|
| 48 |
"path": "SafetyChecker.mlmodelc/model.mil",
|
|
|
|
| 57 |
{
|
| 58 |
"path": "TextEncoder.mlmodelc/analytics/coremldata.bin",
|
| 59 |
"size": 243,
|
| 60 |
+
"sha256": "3ba6d80c5e94f50f17a70a965c2f63d24fa4239672d0fb5dadcf888e69cafc0f"
|
| 61 |
},
|
| 62 |
{
|
| 63 |
"path": "TextEncoder.mlmodelc/coremldata.bin",
|
| 64 |
+
"size": 952,
|
| 65 |
+
"sha256": "734dc3fdcdcc31367ffae6a58b1e4b0d713eb3f043b89811b7fcaec6df67a495"
|
| 66 |
},
|
| 67 |
{
|
| 68 |
"path": "TextEncoder.mlmodelc/metadata.json",
|
| 69 |
+
"size": 2992,
|
| 70 |
+
"sha256": "108a55b2e93052a093256052dbdfa9a6515c8918fbcd0c75661ffd753401ca25"
|
| 71 |
},
|
| 72 |
{
|
| 73 |
"path": "TextEncoder.mlmodelc/model.mil",
|
| 74 |
+
"size": 154795,
|
| 75 |
+
"sha256": "e3a95541282de8bc236c672d8170bfea3aceb478bd5fc5f96f390857d758be80"
|
| 76 |
},
|
| 77 |
{
|
| 78 |
"path": "TextEncoder.mlmodelc/weights/weight.bin",
|
| 79 |
+
"size": 246145536,
|
| 80 |
+
"sha256": "b3e8699e18a386ba82633384e0a6f5c090983f1c66b24a26fad3554fc2a12ddb"
|
| 81 |
},
|
| 82 |
{
|
| 83 |
"path": "UnetChunk1.mlmodelc/analytics/coremldata.bin",
|
| 84 |
"size": 243,
|
| 85 |
+
"sha256": "7ee3483e4486c1bdc21299013aa9d3a25fcafb3d064750294c822cf8d6708151"
|
| 86 |
},
|
| 87 |
{
|
| 88 |
"path": "UnetChunk1.mlmodelc/coremldata.bin",
|
| 89 |
"size": 532,
|
| 90 |
+
"sha256": "f1ebbe33a5324d71a517efe9d5f5b8f9bbcb9bd2e991a57171840161b3a63430"
|
| 91 |
},
|
| 92 |
{
|
| 93 |
"path": "UnetChunk1.mlmodelc/metadata.json",
|
| 94 |
+
"size": 5242,
|
| 95 |
+
"sha256": "54c3b23ff2d46f00cbe5e3b03e79abf4e3fbb2bc811fd440219107c79dde2ef1"
|
| 96 |
},
|
| 97 |
{
|
| 98 |
"path": "UnetChunk1.mlmodelc/model.mil",
|
| 99 |
"size": 359479,
|
| 100 |
+
"sha256": "6067c2cbbb7f35ca3f3811ded8191fab58ddd1c27ee3de5e8249fa6e9c0d7581"
|
| 101 |
},
|
| 102 |
{
|
| 103 |
"path": "UnetChunk1.mlmodelc/weights/weight.bin",
|
| 104 |
"size": 324651584,
|
| 105 |
+
"sha256": "091529bc9e2b2bdda0508614e223570f7a8a4fe288bc510ec844635ba2f01046"
|
| 106 |
},
|
| 107 |
{
|
| 108 |
"path": "UnetChunk2.mlmodelc/analytics/coremldata.bin",
|
| 109 |
"size": 243,
|
| 110 |
+
"sha256": "1f7d7cba85c9edd629d133c0224baf71e989ad4bfe1da89f37706f1d6cab45ea"
|
| 111 |
},
|
| 112 |
{
|
| 113 |
"path": "UnetChunk2.mlmodelc/coremldata.bin",
|
| 114 |
"size": 513,
|
| 115 |
+
"sha256": "94ea7e153dab4f55ad8a40d12f9853422f8bdce240f5b608f3ae72ac3229fb35"
|
| 116 |
},
|
| 117 |
{
|
| 118 |
"path": "UnetChunk2.mlmodelc/metadata.json",
|
| 119 |
+
"size": 4926,
|
| 120 |
+
"sha256": "4c3b0ad1527a1b457d22a70385ad3d8424d72d4cecb825a12e996539de649a16"
|
| 121 |
},
|
| 122 |
{
|
| 123 |
"path": "UnetChunk2.mlmodelc/model.mil",
|
| 124 |
+
"size": 460764,
|
| 125 |
+
"sha256": "82541a2df3d6b955984b151f66dc7b48f44773c1c4a3ad81b64c474bea56ba9e"
|
| 126 |
},
|
| 127 |
{
|
| 128 |
"path": "UnetChunk2.mlmodelc/weights/weight.bin",
|
| 129 |
"size": 322211328,
|
| 130 |
+
"sha256": "04910ba6d4ca88b34dd1202c848aebfc33e339010d203573ebc4138a4e9f78ba"
|
| 131 |
},
|
| 132 |
{
|
| 133 |
"path": "VAEDecoder.mlmodelc/analytics/coremldata.bin",
|
| 134 |
"size": 243,
|
| 135 |
+
"sha256": "ff20b000564aa02c66b7e254258a5c8ba7d34fdb99c54be3c85a42d8eea45a62"
|
| 136 |
},
|
| 137 |
{
|
| 138 |
"path": "VAEDecoder.mlmodelc/coremldata.bin",
|
| 139 |
+
"size": 879,
|
| 140 |
+
"sha256": "7bb1f9ddd844d6c8e14c6e52a1e05d7c493e71091d788798d065141bbe3e131b"
|
| 141 |
},
|
| 142 |
{
|
| 143 |
"path": "VAEDecoder.mlmodelc/metadata.json",
|
| 144 |
+
"size": 2690,
|
| 145 |
+
"sha256": "72a20fd0a1db9e6d3395c6be9ab3c91b70fb771c138d8b7fef5ccc6b9153539c"
|
| 146 |
},
|
| 147 |
{
|
| 148 |
"path": "VAEDecoder.mlmodelc/model.mil",
|
|
|
|
| 157 |
{
|
| 158 |
"path": "VAEEncoder.mlmodelc/analytics/coremldata.bin",
|
| 159 |
"size": 243,
|
| 160 |
+
"sha256": "ba122c04ae4c8d28c8b8805049e22fb7dfeac3eada7bde68c2366a14e712d1d6"
|
| 161 |
},
|
| 162 |
{
|
| 163 |
"path": "VAEEncoder.mlmodelc/coremldata.bin",
|
| 164 |
+
"size": 883,
|
| 165 |
+
"sha256": "fe1d98a943015c7ac3d29ef2d573b37610e62c97e5724d2f85c555960832629d"
|
| 166 |
},
|
| 167 |
{
|
| 168 |
"path": "VAEEncoder.mlmodelc/metadata.json",
|
| 169 |
+
"size": 2674,
|
| 170 |
+
"sha256": "f18ce0aabcf1ad6695c8d7bf418dd30bdac1d031ef453fe1f2b655487dff019d"
|
| 171 |
},
|
| 172 |
{
|
| 173 |
"path": "VAEEncoder.mlmodelc/model.mil",
|
|
|
|
| 186 |
},
|
| 187 |
{
|
| 188 |
"path": "vocab.json",
|
| 189 |
+
"size": 1098502,
|
| 190 |
+
"sha256": "4e6a66b6903c12d273a1a6645f761a2de07e239facfc52fd797b83a75014ca78"
|
| 191 |
}
|
| 192 |
]
|
| 193 |
}
|