digitalbrain79
commited on
Upload 7 files
Browse files- scheduler/scheduler_config.json +18 -0
- text_encoder/config.json +25 -0
- text_encoder/coreml_model.mlmodelc/analytics/coremldata.bin +3 -0
- text_encoder/coreml_model.mlmodelc/coremldata.bin +3 -0
- text_encoder/coreml_model.mlmodelc/metadata.json +85 -0
- text_encoder/coreml_model.mlmodelc/model.mil +0 -0
- text_encoder/coreml_model.mlmodelc/weights/weight.bin +3 -0
scheduler/scheduler_config.json
ADDED
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_class_name": "EulerDiscreteScheduler",
|
3 |
+
"_diffusers_version": "0.19.0.dev0",
|
4 |
+
"beta_end": 0.012,
|
5 |
+
"beta_schedule": "scaled_linear",
|
6 |
+
"beta_start": 0.00085,
|
7 |
+
"clip_sample": false,
|
8 |
+
"interpolation_type": "linear",
|
9 |
+
"num_train_timesteps": 1000,
|
10 |
+
"prediction_type": "epsilon",
|
11 |
+
"sample_max_value": 1.0,
|
12 |
+
"set_alpha_to_one": false,
|
13 |
+
"skip_prk_steps": true,
|
14 |
+
"steps_offset": 1,
|
15 |
+
"timestep_spacing": "leading",
|
16 |
+
"trained_betas": null,
|
17 |
+
"use_karras_sigmas": false
|
18 |
+
}
|
text_encoder/config.json
ADDED
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"architectures": [
|
3 |
+
"CLIPTextModel"
|
4 |
+
],
|
5 |
+
"attention_dropout": 0.0,
|
6 |
+
"bos_token_id": 0,
|
7 |
+
"dropout": 0.0,
|
8 |
+
"eos_token_id": 2,
|
9 |
+
"hidden_act": "quick_gelu",
|
10 |
+
"hidden_size": 768,
|
11 |
+
"initializer_factor": 1.0,
|
12 |
+
"initializer_range": 0.02,
|
13 |
+
"intermediate_size": 3072,
|
14 |
+
"layer_norm_eps": 1e-05,
|
15 |
+
"max_position_embeddings": 77,
|
16 |
+
"model_type": "clip_text_model",
|
17 |
+
"num_attention_heads": 12,
|
18 |
+
"num_hidden_layers": 12,
|
19 |
+
"pad_token_id": 1,
|
20 |
+
"projection_dim": 768,
|
21 |
+
"torch_dtype": "float16",
|
22 |
+
"transformers_version": "4.32.0.dev0",
|
23 |
+
"vocab_size": 49408
|
24 |
+
}
|
25 |
+
|
text_encoder/coreml_model.mlmodelc/analytics/coremldata.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:0db95ce4b2f6033f9afc25f599c997ca94c489bedfb8ae2110284814de788cac
|
3 |
+
size 243
|
text_encoder/coreml_model.mlmodelc/coremldata.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:1ba0eed8c77eb51159a81ed74c77aa641e6a00186be2a905ab53d32d1d02f250
|
3 |
+
size 919
|
text_encoder/coreml_model.mlmodelc/metadata.json
ADDED
@@ -0,0 +1,85 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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" : "Hidden states after the encoder layers",
|
12 |
+
"shape" : "[1, 77, 768]",
|
13 |
+
"name" : "hidden_embeds",
|
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" : "stabilityai\/stable-diffusion-xl-base-1.0",
|
28 |
+
"modelParameters" : [
|
29 |
+
|
30 |
+
],
|
31 |
+
"author" : "Please refer to the Model Card available at huggingface.co\/stabilityai\/stable-diffusion-xl-base-1.0",
|
32 |
+
"specificationVersion" : 7,
|
33 |
+
"storagePrecision" : "Mixed (Float16, Palettized (6 bits))",
|
34 |
+
"license" : "OpenRAIL++-M (https:\/\/huggingface.co\/stabilityai\/stable-diffusion-xl-base-1.0\/blob\/main\/LICENSE.md)",
|
35 |
+
"mlProgramOperationTypeHistogram" : {
|
36 |
+
"Ios16.cast" : 3,
|
37 |
+
"Ios16.mul" : 36,
|
38 |
+
"Ios16.layerNorm" : 25,
|
39 |
+
"Ios16.constexprLutToDense" : 86,
|
40 |
+
"Stack" : 1,
|
41 |
+
"Transpose" : 48,
|
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 |
+
"visionOS" : "1.0",
|
58 |
+
"watchOS" : "9.0",
|
59 |
+
"iOS" : "16.0",
|
60 |
+
"macCatalyst" : "16.0"
|
61 |
+
},
|
62 |
+
"modelType" : {
|
63 |
+
"name" : "MLModelType_mlProgram"
|
64 |
+
},
|
65 |
+
"inputSchema" : [
|
66 |
+
{
|
67 |
+
"hasShapeFlexibility" : "0",
|
68 |
+
"isOptional" : "0",
|
69 |
+
"dataType" : "Float32",
|
70 |
+
"formattedType" : "MultiArray (Float32 1 × 77)",
|
71 |
+
"shortDescription" : "The token ids that represent the input text",
|
72 |
+
"shape" : "[1, 77]",
|
73 |
+
"name" : "input_ids",
|
74 |
+
"type" : "MultiArray"
|
75 |
+
}
|
76 |
+
],
|
77 |
+
"userDefinedMetadata" : {
|
78 |
+
"com.github.apple.coremltools.source_dialect" : "TorchScript",
|
79 |
+
"com.github.apple.coremltools.source" : "torch==2.2.0",
|
80 |
+
"com.github.apple.coremltools.version" : "7.2"
|
81 |
+
},
|
82 |
+
"generatedClassName" : "Stable_Diffusion_version_stabilityai_stable_diffusion_xl_base_1_0_text_encoder",
|
83 |
+
"method" : "predict"
|
84 |
+
}
|
85 |
+
]
|
text_encoder/coreml_model.mlmodelc/model.mil
ADDED
The diff for this file is too large to render.
See raw diff
|
|
text_encoder/coreml_model.mlmodelc/weights/weight.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:a5f4905f255613745ea2499ec9fc856aff4a7243251f7d191eac0f9651e5221b
|
3 |
+
size 139866304
|