Upload ./vqgan/model.yaml with huggingface_hub
Browse files- vqgan/model.yaml +30 -0
vqgan/model.yaml
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
model:
|
| 2 |
+
base_learning_rate: 4.5e-06
|
| 3 |
+
target: models.taming.models.vqgan.VQSegmentationModel
|
| 4 |
+
params:
|
| 5 |
+
monitor: miou
|
| 6 |
+
embed_dim: 256
|
| 7 |
+
n_embed: 32
|
| 8 |
+
image_key: segmentation
|
| 9 |
+
n_labels: 20
|
| 10 |
+
ddconfig:
|
| 11 |
+
double_z: false
|
| 12 |
+
z_channels: 256
|
| 13 |
+
resolution: 128
|
| 14 |
+
in_channels: 20
|
| 15 |
+
out_ch: 20
|
| 16 |
+
ch: 128
|
| 17 |
+
ch_mult:
|
| 18 |
+
- 1
|
| 19 |
+
- 1
|
| 20 |
+
- 2
|
| 21 |
+
- 2
|
| 22 |
+
- 4
|
| 23 |
+
num_res_blocks: 2
|
| 24 |
+
attn_resolutions:
|
| 25 |
+
- 16
|
| 26 |
+
dropout: 0.0
|
| 27 |
+
lossconfig:
|
| 28 |
+
target: models.taming.modules.losses.segmentation.BCELossWithQuant
|
| 29 |
+
params:
|
| 30 |
+
codebook_weight: 1.0
|