neonforestmist commited on
Commit
67b44c8
·
verified ·
1 Parent(s): 23f9a36

Add reliable chunk pipeline for iOS inpainting

Browse files
manifest-pipeline.json ADDED
@@ -0,0 +1,133 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "schema_version": 3,
3
+ "model": "neonforestmist/Clover-Image-Tiny-Inpaint",
4
+ "base_model": "neonforestmist/Clover-Image-Tiny",
5
+ "minimum_ios": "18.0",
6
+ "requires_base_model": true,
7
+ "resolution": [
8
+ 512,
9
+ 512
10
+ ],
11
+ "weight_compression": "float16 Core ML pipeline",
12
+ "unet_input": {
13
+ "shape": [
14
+ 1,
15
+ 9,
16
+ 64,
17
+ 64
18
+ ],
19
+ "channels": [
20
+ "noisy_latent",
21
+ "mask",
22
+ "masked_image_latent"
23
+ ],
24
+ "mask_semantics": "white=regenerate, black=preserve"
25
+ },
26
+ "recommended_inference": {
27
+ "scheduler": "dpm_solver_multistep",
28
+ "steps": 20,
29
+ "guidance_scale": 6.0,
30
+ "random_generator": "torch",
31
+ "conditioning_mask_expansion": 64,
32
+ "composite_outside_mask": "exact source pixels"
33
+ },
34
+ "resources": [
35
+ {
36
+ "path": "UnetPipeline.mlmodelc/analytics/coremldata.bin",
37
+ "remote_path": "pipeline-v1/UnetPipeline.mlmodelc/analytics/coremldata.bin",
38
+ "size": 202,
39
+ "sha256": "24bc7decedc8a3485c6af30000a6cff3f46fab33f538c8890e07d2da05a616cd"
40
+ },
41
+ {
42
+ "path": "UnetPipeline.mlmodelc/coremldata.bin",
43
+ "remote_path": "pipeline-v1/UnetPipeline.mlmodelc/coremldata.bin",
44
+ "size": 257,
45
+ "sha256": "493697fec9508d0af0bea22d3b73ddfc6339df1d3191bc8b8e03d7b857aa55f0"
46
+ },
47
+ {
48
+ "path": "UnetPipeline.mlmodelc/metadata.json",
49
+ "remote_path": "pipeline-v1/UnetPipeline.mlmodelc/metadata.json",
50
+ "size": 2766,
51
+ "sha256": "64dce3cb35ae0eeb28b87dafec498d4b5afc62fad6324007191884bfbda3aed4"
52
+ },
53
+ {
54
+ "path": "UnetPipeline.mlmodelc/model0/analytics/coremldata.bin",
55
+ "remote_path": "pipeline-v1/UnetPipeline.mlmodelc/model0/analytics/coremldata.bin",
56
+ "size": 108,
57
+ "sha256": "5a8281049b2a65a3be541cfd9f949e84b8fe1c5251ce90e46da1626fed54e58a"
58
+ },
59
+ {
60
+ "path": "UnetPipeline.mlmodelc/model0/coremldata.bin",
61
+ "remote_path": "pipeline-v1/UnetPipeline.mlmodelc/model0/coremldata.bin",
62
+ "size": 681,
63
+ "sha256": "824c42312c6e437d8bc79a1c9e6a9a3b8a34b4467b8915928b164e7ab3bcbb58"
64
+ },
65
+ {
66
+ "path": "UnetPipeline.mlmodelc/model0/model.mil",
67
+ "remote_path": "pipeline-v1/UnetPipeline.mlmodelc/model0/model.mil",
68
+ "size": 688141,
69
+ "sha256": "a5223c48ca0c7e6bfdab877d8854d3a2d0d797c471d4044c7f329b1c734e9962"
70
+ },
71
+ {
72
+ "path": "UnetPipeline.mlmodelc/model0/weights/0-weight.bin",
73
+ "remote_path": "pipeline-v1/UnetPipeline.mlmodelc/model0/weights/0-weight.bin",
74
+ "size": 887598400,
75
+ "sha256": "2adda5d567cd4bb88b1c2dde8b2d7a36f79e4f9c1bf2107e6af146440f6a5c7e"
76
+ },
77
+ {
78
+ "path": "UnetPipeline.mlmodelc/model1/analytics/coremldata.bin",
79
+ "remote_path": "pipeline-v1/UnetPipeline.mlmodelc/model1/analytics/coremldata.bin",
80
+ "size": 108,
81
+ "sha256": "5a8281049b2a65a3be541cfd9f949e84b8fe1c5251ce90e46da1626fed54e58a"
82
+ },
83
+ {
84
+ "path": "UnetPipeline.mlmodelc/model1/coremldata.bin",
85
+ "remote_path": "pipeline-v1/UnetPipeline.mlmodelc/model1/coremldata.bin",
86
+ "size": 662,
87
+ "sha256": "f5fe4ad59367b13367682a3d7205eab939c3f68ac81491954cf7e3f5b1565f6c"
88
+ },
89
+ {
90
+ "path": "UnetPipeline.mlmodelc/model1/model.mil",
91
+ "remote_path": "pipeline-v1/UnetPipeline.mlmodelc/model1/model.mil",
92
+ "size": 831079,
93
+ "sha256": "07e9d07081ee7de917223093665de0f78b17e8858c47353b522c61918435638d"
94
+ },
95
+ {
96
+ "path": "UnetPipeline.mlmodelc/model1/weights/1-weight.bin",
97
+ "remote_path": "pipeline-v1/UnetPipeline.mlmodelc/model1/weights/1-weight.bin",
98
+ "size": 831567872,
99
+ "sha256": "40f1698fbfc59d0495f72d7ee5ff23db6af11c91a0fe55ad5d5725d4a3f54dd9"
100
+ },
101
+ {
102
+ "path": "VAEEncoder.mlmodelc/analytics/coremldata.bin",
103
+ "size": 243,
104
+ "sha256": "ba122c04ae4c8d28c8b8805049e22fb7dfeac3eada7bde68c2366a14e712d1d6"
105
+ },
106
+ {
107
+ "path": "VAEEncoder.mlmodelc/coremldata.bin",
108
+ "size": 883,
109
+ "sha256": "fe1d98a943015c7ac3d29ef2d573b37610e62c97e5724d2f85c555960832629d"
110
+ },
111
+ {
112
+ "path": "VAEEncoder.mlmodelc/metadata.json",
113
+ "size": 2674,
114
+ "sha256": "f18ce0aabcf1ad6695c8d7bf418dd30bdac1d031ef453fe1f2b655487dff019d"
115
+ },
116
+ {
117
+ "path": "VAEEncoder.mlmodelc/model.mil",
118
+ "size": 132453,
119
+ "sha256": "52c0b22663abb7890a76932f8c8b2467908bfc5b6cdef92e4a2cbcde9a7d07a4"
120
+ },
121
+ {
122
+ "path": "VAEEncoder.mlmodelc/weights/weight.bin",
123
+ "size": 68338112,
124
+ "sha256": "71bf826e5ee1b455462aff0b34e3a469f5f58955ae715708962b1d81db92dc64"
125
+ },
126
+ {
127
+ "path": "adapter-schema.json",
128
+ "remote_path": "hq-v4-int8/adapter-schema.json",
129
+ "size": 55773,
130
+ "sha256": "b356bae467a4e60cb26151c5b2cad2d2dc298b057f44b71479096036ca53c1d9"
131
+ }
132
+ ]
133
+ }
pipeline-v1/UnetPipeline.mlmodelc/analytics/coremldata.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:24bc7decedc8a3485c6af30000a6cff3f46fab33f538c8890e07d2da05a616cd
3
+ size 202
pipeline-v1/UnetPipeline.mlmodelc/coremldata.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:493697fec9508d0af0bea22d3b73ddfc6339df1d3191bc8b8e03d7b857aa55f0
3
+ size 257
pipeline-v1/UnetPipeline.mlmodelc/metadata.json ADDED
@@ -0,0 +1,109 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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.expandDims" : 3,
23
+ "Ios18.softmax" : 256,
24
+ "Ios18.cos" : 1,
25
+ "Ios18.mul" : 273,
26
+ "UpsampleNearestNeighbor" : 3,
27
+ "Ios18.batchNorm" : 61,
28
+ "Ios16.reduceMean" : 122,
29
+ "Ios18.realDiv" : 61,
30
+ "Ios18.sin" : 1,
31
+ "Split" : 16,
32
+ "Ios18.add" : 169,
33
+ "Ios18.layerNorm" : 48,
34
+ "Ios18.reshape" : 154,
35
+ "Ios18.conv" : 282,
36
+ "Ios18.concat" : 46,
37
+ "Ios18.gelu" : 16,
38
+ "Ios18.sub" : 61,
39
+ "Ios16.einsum" : 512,
40
+ "Ios18.silu" : 47,
41
+ "Ios18.transpose" : 32,
42
+ "Ios18.sqrt" : 61,
43
+ "Ios18.square" : 61,
44
+ "Ios18.cast" : 27,
45
+ "Ios18.sliceByIndex" : 770
46
+ },
47
+ "computePrecision" : "Mixed (Float16, Float32, Int32)",
48
+ "isUpdatable" : "0",
49
+ "stateSchema" : [
50
+
51
+ ],
52
+ "availability" : {
53
+ "macOS" : "15.0",
54
+ "tvOS" : "18.0",
55
+ "visionOS" : "2.0",
56
+ "watchOS" : "11.0",
57
+ "iOS" : "18.0",
58
+ "macCatalyst" : "18.0"
59
+ },
60
+ "modelType" : {
61
+ "name" : "MLModelType_pipeline",
62
+ "structure" : [
63
+ {
64
+ "name" : "MLModelType_mlProgram"
65
+ },
66
+ {
67
+ "name" : "MLModelType_mlProgram"
68
+ }
69
+ ]
70
+ },
71
+ "userDefinedMetadata" : {
72
+
73
+ },
74
+ "inputSchema" : [
75
+ {
76
+ "hasShapeFlexibility" : "0",
77
+ "isOptional" : "0",
78
+ "dataType" : "Float16",
79
+ "formattedType" : "MultiArray (Float16 1 × 9 × 64 × 64)",
80
+ "shortDescription" : "",
81
+ "shape" : "[1, 9, 64, 64]",
82
+ "name" : "sample",
83
+ "type" : "MultiArray"
84
+ },
85
+ {
86
+ "hasShapeFlexibility" : "0",
87
+ "isOptional" : "0",
88
+ "dataType" : "Float16",
89
+ "formattedType" : "MultiArray (Float16 1)",
90
+ "shortDescription" : "",
91
+ "shape" : "[1]",
92
+ "name" : "timestep",
93
+ "type" : "MultiArray"
94
+ },
95
+ {
96
+ "hasShapeFlexibility" : "0",
97
+ "isOptional" : "0",
98
+ "dataType" : "Float16",
99
+ "formattedType" : "MultiArray (Float16 1 × 768 × 1 × 77)",
100
+ "shortDescription" : "",
101
+ "shape" : "[1, 768, 1, 77]",
102
+ "name" : "encoder_hidden_states",
103
+ "type" : "MultiArray"
104
+ }
105
+ ],
106
+ "generatedClassName" : "tmpdjm7wibv",
107
+ "method" : "predict"
108
+ }
109
+ ]
pipeline-v1/UnetPipeline.mlmodelc/model0/analytics/coremldata.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5a8281049b2a65a3be541cfd9f949e84b8fe1c5251ce90e46da1626fed54e58a
3
+ size 108
pipeline-v1/UnetPipeline.mlmodelc/model0/coremldata.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:824c42312c6e437d8bc79a1c9e6a9a3b8a34b4467b8915928b164e7ab3bcbb58
3
+ size 681
pipeline-v1/UnetPipeline.mlmodelc/model0/model.mil ADDED
The diff for this file is too large to render. See raw diff
 
pipeline-v1/UnetPipeline.mlmodelc/model0/weights/0-weight.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2adda5d567cd4bb88b1c2dde8b2d7a36f79e4f9c1bf2107e6af146440f6a5c7e
3
+ size 887598400
pipeline-v1/UnetPipeline.mlmodelc/model1/analytics/coremldata.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5a8281049b2a65a3be541cfd9f949e84b8fe1c5251ce90e46da1626fed54e58a
3
+ size 108
pipeline-v1/UnetPipeline.mlmodelc/model1/coremldata.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f5fe4ad59367b13367682a3d7205eab939c3f68ac81491954cf7e3f5b1565f6c
3
+ size 662
pipeline-v1/UnetPipeline.mlmodelc/model1/model.mil ADDED
The diff for this file is too large to render. See raw diff
 
pipeline-v1/UnetPipeline.mlmodelc/model1/weights/1-weight.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:40f1698fbfc59d0495f72d7ee5ff23db6af11c91a0fe55ad5d5725d4a3f54dd9
3
+ size 831567872