add v2
Browse files
v2/config.json
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_class_name": "ControlNetModel",
|
| 3 |
+
"_diffusers_version": "0.17.0.dev0",
|
| 4 |
+
"act_fn": "silu",
|
| 5 |
+
"attention_head_dim": 8,
|
| 6 |
+
"block_out_channels": [
|
| 7 |
+
320,
|
| 8 |
+
640,
|
| 9 |
+
1280,
|
| 10 |
+
1280
|
| 11 |
+
],
|
| 12 |
+
"class_embed_type": null,
|
| 13 |
+
"conditioning_embedding_out_channels": [
|
| 14 |
+
16,
|
| 15 |
+
32,
|
| 16 |
+
96,
|
| 17 |
+
256
|
| 18 |
+
],
|
| 19 |
+
"controlnet_conditioning_channel_order": "rgb",
|
| 20 |
+
"cross_attention_dim": 768,
|
| 21 |
+
"down_block_types": [
|
| 22 |
+
"CrossAttnDownBlock2D",
|
| 23 |
+
"CrossAttnDownBlock2D",
|
| 24 |
+
"CrossAttnDownBlock2D",
|
| 25 |
+
"DownBlock2D"
|
| 26 |
+
],
|
| 27 |
+
"downsample_padding": 1,
|
| 28 |
+
"flip_sin_to_cos": true,
|
| 29 |
+
"freq_shift": 0,
|
| 30 |
+
"global_pool_conditions": false,
|
| 31 |
+
"in_channels": 4,
|
| 32 |
+
"layers_per_block": 2,
|
| 33 |
+
"mid_block_scale_factor": 1,
|
| 34 |
+
"norm_eps": 1e-05,
|
| 35 |
+
"norm_num_groups": 32,
|
| 36 |
+
"num_class_embeds": null,
|
| 37 |
+
"only_cross_attention": false,
|
| 38 |
+
"projection_class_embeddings_input_dim": null,
|
| 39 |
+
"resnet_time_scale_shift": "default",
|
| 40 |
+
"upcast_attention": false,
|
| 41 |
+
"use_linear_projection": false
|
| 42 |
+
}
|
v2/control_v1p_sd15_qrcode_monster_v2.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:fc985da5850a03033c9e28032532f406ae04bd127178ae5bc6d3ec0502b25253
|
| 3 |
+
size 722596344
|
v2/control_v1p_sd15_qrcode_monster_v2.yaml
ADDED
|
@@ -0,0 +1,80 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
model:
|
| 2 |
+
target: cldm.cldm.ControlLDM
|
| 3 |
+
params:
|
| 4 |
+
linear_start: 0.00085
|
| 5 |
+
linear_end: 0.0120
|
| 6 |
+
num_timesteps_cond: 1
|
| 7 |
+
log_every_t: 200
|
| 8 |
+
timesteps: 1000
|
| 9 |
+
first_stage_key: "jpg"
|
| 10 |
+
cond_stage_key: "txt"
|
| 11 |
+
control_key: "hint"
|
| 12 |
+
image_size: 64
|
| 13 |
+
channels: 4
|
| 14 |
+
cond_stage_trainable: false
|
| 15 |
+
conditioning_key: crossattn
|
| 16 |
+
monitor: val/loss_simple_ema
|
| 17 |
+
scale_factor: 0.18215
|
| 18 |
+
use_ema: False
|
| 19 |
+
only_mid_control: False
|
| 20 |
+
|
| 21 |
+
control_stage_config:
|
| 22 |
+
target: cldm.cldm.ControlNet
|
| 23 |
+
params:
|
| 24 |
+
image_size: 32 # unused
|
| 25 |
+
in_channels: 4
|
| 26 |
+
hint_channels: 3
|
| 27 |
+
model_channels: 320
|
| 28 |
+
attention_resolutions: [ 4, 2, 1 ]
|
| 29 |
+
num_res_blocks: 2
|
| 30 |
+
channel_mult: [ 1, 2, 4, 4 ]
|
| 31 |
+
num_heads: 8
|
| 32 |
+
use_spatial_transformer: True
|
| 33 |
+
transformer_depth: 1
|
| 34 |
+
context_dim: 768
|
| 35 |
+
use_checkpoint: True
|
| 36 |
+
legacy: False
|
| 37 |
+
|
| 38 |
+
unet_config:
|
| 39 |
+
target: cldm.cldm.ControlledUnetModel
|
| 40 |
+
params:
|
| 41 |
+
image_size: 32 # unused
|
| 42 |
+
in_channels: 4
|
| 43 |
+
out_channels: 4
|
| 44 |
+
model_channels: 320
|
| 45 |
+
attention_resolutions: [ 4, 2, 1 ]
|
| 46 |
+
num_res_blocks: 2
|
| 47 |
+
channel_mult: [ 1, 2, 4, 4 ]
|
| 48 |
+
num_heads: 8
|
| 49 |
+
use_spatial_transformer: True
|
| 50 |
+
transformer_depth: 1
|
| 51 |
+
context_dim: 768
|
| 52 |
+
use_checkpoint: True
|
| 53 |
+
legacy: False
|
| 54 |
+
|
| 55 |
+
first_stage_config:
|
| 56 |
+
target: ldm.models.autoencoder.AutoencoderKL
|
| 57 |
+
params:
|
| 58 |
+
embed_dim: 4
|
| 59 |
+
monitor: val/rec_loss
|
| 60 |
+
ddconfig:
|
| 61 |
+
double_z: true
|
| 62 |
+
z_channels: 4
|
| 63 |
+
resolution: 256
|
| 64 |
+
in_channels: 3
|
| 65 |
+
out_ch: 3
|
| 66 |
+
ch: 128
|
| 67 |
+
ch_mult:
|
| 68 |
+
- 1
|
| 69 |
+
- 2
|
| 70 |
+
- 4
|
| 71 |
+
- 4
|
| 72 |
+
num_res_blocks: 2
|
| 73 |
+
attn_resolutions: []
|
| 74 |
+
dropout: 0.0
|
| 75 |
+
lossconfig:
|
| 76 |
+
target: torch.nn.Identity
|
| 77 |
+
|
| 78 |
+
cond_stage_config:
|
| 79 |
+
target: ldm.modules.encoders.modules.FrozenCLIPEmbedder
|
| 80 |
+
|
v2/diffusion_pytorch_model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a95dc35dfff997bd9c751a97db4959db1235f5776ef5e453d468c602c7998794
|
| 3 |
+
size 1445157120
|