Instructions to use akshan-main/tiny-ernie-image-modular-pipe with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use akshan-main/tiny-ernie-image-modular-pipe with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("akshan-main/tiny-ernie-image-modular-pipe", dtype=torch.bfloat16, device_map="cuda") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
Create tiny Ernie-Image modular pipeline for CI tests
Browse files- model_index.json +24 -0
- modular_model_index.json +75 -0
- scheduler/scheduler_config.json +18 -0
- text_encoder/config.json +34 -0
- text_encoder/model.safetensors +3 -0
- tokenizer/tokenizer.json +173 -0
- tokenizer/tokenizer_config.json +8 -0
- transformer/config.json +20 -0
- transformer/diffusion_pytorch_model.safetensors +3 -0
- vae/config.json +40 -0
- vae/diffusion_pytorch_model.safetensors +3 -0
model_index.json
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_class_name": "ErnieImagePipeline",
|
| 3 |
+
"_diffusers_version": "0.38.0.dev0",
|
| 4 |
+
"scheduler": [
|
| 5 |
+
"diffusers",
|
| 6 |
+
"FlowMatchEulerDiscreteScheduler"
|
| 7 |
+
],
|
| 8 |
+
"text_encoder": [
|
| 9 |
+
"transformers",
|
| 10 |
+
"GPT2Model"
|
| 11 |
+
],
|
| 12 |
+
"tokenizer": [
|
| 13 |
+
"transformers",
|
| 14 |
+
"GPT2TokenizerFast"
|
| 15 |
+
],
|
| 16 |
+
"transformer": [
|
| 17 |
+
"diffusers",
|
| 18 |
+
"ErnieImageTransformer2DModel"
|
| 19 |
+
],
|
| 20 |
+
"vae": [
|
| 21 |
+
"diffusers",
|
| 22 |
+
"AutoencoderKLFlux2"
|
| 23 |
+
]
|
| 24 |
+
}
|
modular_model_index.json
ADDED
|
@@ -0,0 +1,75 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_blocks_class_name": "ErnieImageAutoBlocks",
|
| 3 |
+
"_class_name": "ErnieImageModularPipeline",
|
| 4 |
+
"_diffusers_version": "0.38.0.dev0",
|
| 5 |
+
"scheduler": [
|
| 6 |
+
null,
|
| 7 |
+
null,
|
| 8 |
+
{
|
| 9 |
+
"pretrained_model_name_or_path": "akshan-main/tiny-ernie-image-modular-pipe",
|
| 10 |
+
"subfolder": "scheduler",
|
| 11 |
+
"type_hint": [
|
| 12 |
+
"diffusers",
|
| 13 |
+
"FlowMatchEulerDiscreteScheduler"
|
| 14 |
+
],
|
| 15 |
+
"revision": null,
|
| 16 |
+
"variant": null
|
| 17 |
+
}
|
| 18 |
+
],
|
| 19 |
+
"text_encoder": [
|
| 20 |
+
null,
|
| 21 |
+
null,
|
| 22 |
+
{
|
| 23 |
+
"pretrained_model_name_or_path": "akshan-main/tiny-ernie-image-modular-pipe",
|
| 24 |
+
"subfolder": "text_encoder",
|
| 25 |
+
"type_hint": [
|
| 26 |
+
"transformers",
|
| 27 |
+
"GPT2Model"
|
| 28 |
+
],
|
| 29 |
+
"revision": null,
|
| 30 |
+
"variant": null
|
| 31 |
+
}
|
| 32 |
+
],
|
| 33 |
+
"tokenizer": [
|
| 34 |
+
null,
|
| 35 |
+
null,
|
| 36 |
+
{
|
| 37 |
+
"pretrained_model_name_or_path": "akshan-main/tiny-ernie-image-modular-pipe",
|
| 38 |
+
"subfolder": "tokenizer",
|
| 39 |
+
"type_hint": [
|
| 40 |
+
"transformers",
|
| 41 |
+
"GPT2TokenizerFast"
|
| 42 |
+
],
|
| 43 |
+
"revision": null,
|
| 44 |
+
"variant": null
|
| 45 |
+
}
|
| 46 |
+
],
|
| 47 |
+
"transformer": [
|
| 48 |
+
null,
|
| 49 |
+
null,
|
| 50 |
+
{
|
| 51 |
+
"pretrained_model_name_or_path": "akshan-main/tiny-ernie-image-modular-pipe",
|
| 52 |
+
"subfolder": "transformer",
|
| 53 |
+
"type_hint": [
|
| 54 |
+
"diffusers",
|
| 55 |
+
"ErnieImageTransformer2DModel"
|
| 56 |
+
],
|
| 57 |
+
"revision": null,
|
| 58 |
+
"variant": null
|
| 59 |
+
}
|
| 60 |
+
],
|
| 61 |
+
"vae": [
|
| 62 |
+
null,
|
| 63 |
+
null,
|
| 64 |
+
{
|
| 65 |
+
"pretrained_model_name_or_path": "akshan-main/tiny-ernie-image-modular-pipe",
|
| 66 |
+
"subfolder": "vae",
|
| 67 |
+
"type_hint": [
|
| 68 |
+
"diffusers",
|
| 69 |
+
"AutoencoderKLFlux2"
|
| 70 |
+
],
|
| 71 |
+
"revision": null,
|
| 72 |
+
"variant": null
|
| 73 |
+
}
|
| 74 |
+
]
|
| 75 |
+
}
|
scheduler/scheduler_config.json
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_class_name": "FlowMatchEulerDiscreteScheduler",
|
| 3 |
+
"_diffusers_version": "0.38.0.dev0",
|
| 4 |
+
"base_image_seq_len": 256,
|
| 5 |
+
"base_shift": 0.5,
|
| 6 |
+
"invert_sigmas": false,
|
| 7 |
+
"max_image_seq_len": 4096,
|
| 8 |
+
"max_shift": 1.15,
|
| 9 |
+
"num_train_timesteps": 1000,
|
| 10 |
+
"shift": 1.0,
|
| 11 |
+
"shift_terminal": null,
|
| 12 |
+
"stochastic_sampling": false,
|
| 13 |
+
"time_shift_type": "exponential",
|
| 14 |
+
"use_beta_sigmas": false,
|
| 15 |
+
"use_dynamic_shifting": false,
|
| 16 |
+
"use_exponential_sigmas": false,
|
| 17 |
+
"use_karras_sigmas": false
|
| 18 |
+
}
|
text_encoder/config.json
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"activation_function": "gelu_new",
|
| 3 |
+
"add_cross_attention": false,
|
| 4 |
+
"architectures": [
|
| 5 |
+
"GPT2Model"
|
| 6 |
+
],
|
| 7 |
+
"attn_pdrop": 0.1,
|
| 8 |
+
"bos_token_id": 50256,
|
| 9 |
+
"dtype": "float32",
|
| 10 |
+
"embd_pdrop": 0.1,
|
| 11 |
+
"eos_token_id": 50256,
|
| 12 |
+
"initializer_range": 0.02,
|
| 13 |
+
"layer_norm_epsilon": 1e-05,
|
| 14 |
+
"model_type": "gpt2",
|
| 15 |
+
"n_embd": 32,
|
| 16 |
+
"n_head": 4,
|
| 17 |
+
"n_inner": null,
|
| 18 |
+
"n_layer": 2,
|
| 19 |
+
"n_positions": 128,
|
| 20 |
+
"pad_token_id": null,
|
| 21 |
+
"reorder_and_upcast_attn": false,
|
| 22 |
+
"resid_pdrop": 0.1,
|
| 23 |
+
"scale_attn_by_inverse_layer_idx": false,
|
| 24 |
+
"scale_attn_weights": true,
|
| 25 |
+
"summary_activation": null,
|
| 26 |
+
"summary_first_dropout": 0.1,
|
| 27 |
+
"summary_proj_to_labels": true,
|
| 28 |
+
"summary_type": "cls_index",
|
| 29 |
+
"summary_use_proj": true,
|
| 30 |
+
"tie_word_embeddings": true,
|
| 31 |
+
"transformers_version": "5.5.3",
|
| 32 |
+
"use_cache": true,
|
| 33 |
+
"vocab_size": 1000
|
| 34 |
+
}
|
text_encoder/model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f62093e4aaefc16cade077e5db24467f376a30bea8f1feeb800ce0211731c370
|
| 3 |
+
size 248536
|
tokenizer/tokenizer.json
ADDED
|
@@ -0,0 +1,173 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"version": "1.0",
|
| 3 |
+
"truncation": null,
|
| 4 |
+
"padding": null,
|
| 5 |
+
"added_tokens": [
|
| 6 |
+
{
|
| 7 |
+
"id": 0,
|
| 8 |
+
"content": "<|endoftext|>",
|
| 9 |
+
"single_word": false,
|
| 10 |
+
"lstrip": false,
|
| 11 |
+
"rstrip": false,
|
| 12 |
+
"normalized": false,
|
| 13 |
+
"special": true
|
| 14 |
+
}
|
| 15 |
+
],
|
| 16 |
+
"normalizer": null,
|
| 17 |
+
"pre_tokenizer": {
|
| 18 |
+
"type": "ByteLevel",
|
| 19 |
+
"add_prefix_space": false,
|
| 20 |
+
"trim_offsets": true,
|
| 21 |
+
"use_regex": true
|
| 22 |
+
},
|
| 23 |
+
"post_processor": {
|
| 24 |
+
"type": "TemplateProcessing",
|
| 25 |
+
"single": [
|
| 26 |
+
{
|
| 27 |
+
"Sequence": {
|
| 28 |
+
"id": "A",
|
| 29 |
+
"type_id": 0
|
| 30 |
+
}
|
| 31 |
+
}
|
| 32 |
+
],
|
| 33 |
+
"pair": [
|
| 34 |
+
{
|
| 35 |
+
"Sequence": {
|
| 36 |
+
"id": "A",
|
| 37 |
+
"type_id": 0
|
| 38 |
+
}
|
| 39 |
+
},
|
| 40 |
+
{
|
| 41 |
+
"Sequence": {
|
| 42 |
+
"id": "B",
|
| 43 |
+
"type_id": 1
|
| 44 |
+
}
|
| 45 |
+
}
|
| 46 |
+
],
|
| 47 |
+
"special_tokens": {}
|
| 48 |
+
},
|
| 49 |
+
"decoder": {
|
| 50 |
+
"type": "ByteLevel",
|
| 51 |
+
"add_prefix_space": true,
|
| 52 |
+
"trim_offsets": true,
|
| 53 |
+
"use_regex": true
|
| 54 |
+
},
|
| 55 |
+
"model": {
|
| 56 |
+
"type": "BPE",
|
| 57 |
+
"dropout": null,
|
| 58 |
+
"unk_token": "<|endoftext|>",
|
| 59 |
+
"continuing_subword_prefix": null,
|
| 60 |
+
"end_of_word_suffix": null,
|
| 61 |
+
"fuse_unk": false,
|
| 62 |
+
"byte_fallback": false,
|
| 63 |
+
"ignore_merges": false,
|
| 64 |
+
"vocab": {
|
| 65 |
+
"<|endoftext|>": 0,
|
| 66 |
+
"H": 1,
|
| 67 |
+
"a": 2,
|
| 68 |
+
"d": 3,
|
| 69 |
+
"e": 4,
|
| 70 |
+
"h": 5,
|
| 71 |
+
"i": 6,
|
| 72 |
+
"l": 7,
|
| 73 |
+
"o": 8,
|
| 74 |
+
"r": 9,
|
| 75 |
+
"s": 10,
|
| 76 |
+
"t": 11,
|
| 77 |
+
"w": 12,
|
| 78 |
+
"Ġ": 13,
|
| 79 |
+
"is": 14,
|
| 80 |
+
"Ġt": 15,
|
| 81 |
+
"He": 16,
|
| 82 |
+
"es": 17,
|
| 83 |
+
"his": 18,
|
| 84 |
+
"ld": 19,
|
| 85 |
+
"ll": 20,
|
| 86 |
+
"or": 21,
|
| 87 |
+
"wor": 22,
|
| 88 |
+
"Ġa": 23,
|
| 89 |
+
"Ġis": 24,
|
| 90 |
+
"Ġwor": 25,
|
| 91 |
+
"Ġtes": 26,
|
| 92 |
+
"Ġthis": 27,
|
| 93 |
+
"Hell": 28,
|
| 94 |
+
"Ġworld": 29,
|
| 95 |
+
"Ġtest": 30,
|
| 96 |
+
"Hello": 31
|
| 97 |
+
},
|
| 98 |
+
"merges": [
|
| 99 |
+
[
|
| 100 |
+
"i",
|
| 101 |
+
"s"
|
| 102 |
+
],
|
| 103 |
+
[
|
| 104 |
+
"Ġ",
|
| 105 |
+
"t"
|
| 106 |
+
],
|
| 107 |
+
[
|
| 108 |
+
"H",
|
| 109 |
+
"e"
|
| 110 |
+
],
|
| 111 |
+
[
|
| 112 |
+
"e",
|
| 113 |
+
"s"
|
| 114 |
+
],
|
| 115 |
+
[
|
| 116 |
+
"h",
|
| 117 |
+
"is"
|
| 118 |
+
],
|
| 119 |
+
[
|
| 120 |
+
"l",
|
| 121 |
+
"d"
|
| 122 |
+
],
|
| 123 |
+
[
|
| 124 |
+
"l",
|
| 125 |
+
"l"
|
| 126 |
+
],
|
| 127 |
+
[
|
| 128 |
+
"o",
|
| 129 |
+
"r"
|
| 130 |
+
],
|
| 131 |
+
[
|
| 132 |
+
"w",
|
| 133 |
+
"or"
|
| 134 |
+
],
|
| 135 |
+
[
|
| 136 |
+
"Ġ",
|
| 137 |
+
"a"
|
| 138 |
+
],
|
| 139 |
+
[
|
| 140 |
+
"Ġ",
|
| 141 |
+
"is"
|
| 142 |
+
],
|
| 143 |
+
[
|
| 144 |
+
"Ġ",
|
| 145 |
+
"wor"
|
| 146 |
+
],
|
| 147 |
+
[
|
| 148 |
+
"Ġt",
|
| 149 |
+
"es"
|
| 150 |
+
],
|
| 151 |
+
[
|
| 152 |
+
"Ġt",
|
| 153 |
+
"his"
|
| 154 |
+
],
|
| 155 |
+
[
|
| 156 |
+
"He",
|
| 157 |
+
"ll"
|
| 158 |
+
],
|
| 159 |
+
[
|
| 160 |
+
"Ġwor",
|
| 161 |
+
"ld"
|
| 162 |
+
],
|
| 163 |
+
[
|
| 164 |
+
"Ġtes",
|
| 165 |
+
"t"
|
| 166 |
+
],
|
| 167 |
+
[
|
| 168 |
+
"Hell",
|
| 169 |
+
"o"
|
| 170 |
+
]
|
| 171 |
+
]
|
| 172 |
+
}
|
| 173 |
+
}
|
tokenizer/tokenizer_config.json
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"backend": "tokenizers",
|
| 3 |
+
"bos_token": "<|endoftext|>",
|
| 4 |
+
"eos_token": "<|endoftext|>",
|
| 5 |
+
"model_max_length": 1000000000000000019884624838656,
|
| 6 |
+
"pad_token": "<|endoftext|>",
|
| 7 |
+
"tokenizer_class": "GPT2TokenizerFast"
|
| 8 |
+
}
|
transformer/config.json
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_class_name": "ErnieImageTransformer2DModel",
|
| 3 |
+
"_diffusers_version": "0.38.0.dev0",
|
| 4 |
+
"eps": 1e-06,
|
| 5 |
+
"ffn_hidden_size": 64,
|
| 6 |
+
"hidden_size": 32,
|
| 7 |
+
"in_channels": 16,
|
| 8 |
+
"num_attention_heads": 4,
|
| 9 |
+
"num_layers": 1,
|
| 10 |
+
"out_channels": 16,
|
| 11 |
+
"patch_size": 1,
|
| 12 |
+
"qk_layernorm": true,
|
| 13 |
+
"rope_axes_dim": [
|
| 14 |
+
1,
|
| 15 |
+
1,
|
| 16 |
+
2
|
| 17 |
+
],
|
| 18 |
+
"rope_theta": 256,
|
| 19 |
+
"text_in_dim": 32
|
| 20 |
+
}
|
transformer/diffusion_pytorch_model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:24bb88cb10d4e3644fcef8a04a9aa1fb06591b8f631640766716c9d7cc58be83
|
| 3 |
+
size 89936
|
vae/config.json
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_class_name": "AutoencoderKLFlux2",
|
| 3 |
+
"_diffusers_version": "0.38.0.dev0",
|
| 4 |
+
"act_fn": "silu",
|
| 5 |
+
"batch_norm_eps": 0.0001,
|
| 6 |
+
"batch_norm_momentum": 0.1,
|
| 7 |
+
"block_out_channels": [
|
| 8 |
+
16,
|
| 9 |
+
32,
|
| 10 |
+
32,
|
| 11 |
+
32
|
| 12 |
+
],
|
| 13 |
+
"decoder_block_out_channels": null,
|
| 14 |
+
"down_block_types": [
|
| 15 |
+
"DownEncoderBlock2D",
|
| 16 |
+
"DownEncoderBlock2D",
|
| 17 |
+
"DownEncoderBlock2D",
|
| 18 |
+
"DownEncoderBlock2D"
|
| 19 |
+
],
|
| 20 |
+
"force_upcast": true,
|
| 21 |
+
"in_channels": 3,
|
| 22 |
+
"latent_channels": 4,
|
| 23 |
+
"layers_per_block": 1,
|
| 24 |
+
"mid_block_add_attention": true,
|
| 25 |
+
"norm_num_groups": 4,
|
| 26 |
+
"out_channels": 3,
|
| 27 |
+
"patch_size": [
|
| 28 |
+
2,
|
| 29 |
+
2
|
| 30 |
+
],
|
| 31 |
+
"sample_size": 64,
|
| 32 |
+
"up_block_types": [
|
| 33 |
+
"UpDecoderBlock2D",
|
| 34 |
+
"UpDecoderBlock2D",
|
| 35 |
+
"UpDecoderBlock2D",
|
| 36 |
+
"UpDecoderBlock2D"
|
| 37 |
+
],
|
| 38 |
+
"use_post_quant_conv": true,
|
| 39 |
+
"use_quant_conv": true
|
| 40 |
+
}
|
vae/diffusion_pytorch_model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:01ccf2698551093e5d2608d75e22e7a8dba6a23ae4118434d33ca0382c485040
|
| 3 |
+
size 1286060
|