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512
|
| 3 |
+
- 512
|
| 4 |
+
data:
|
| 5 |
+
samples_per_gpu: 2
|
| 6 |
+
test:
|
| 7 |
+
ann_dir: annotations/validation
|
| 8 |
+
data_root: data/ade/ADEChallengeData2016
|
| 9 |
+
img_dir: images/validation
|
| 10 |
+
pipeline:
|
| 11 |
+
- type: LoadImageFromFile
|
| 12 |
+
- flip: false
|
| 13 |
+
img_scale: !!python/tuple
|
| 14 |
+
- 2048
|
| 15 |
+
- 512
|
| 16 |
+
transforms:
|
| 17 |
+
- keep_ratio: true
|
| 18 |
+
type: Resize
|
| 19 |
+
- type: RandomFlip
|
| 20 |
+
- mean:
|
| 21 |
+
- 123.675
|
| 22 |
+
- 116.28
|
| 23 |
+
- 103.53
|
| 24 |
+
std:
|
| 25 |
+
- 58.395
|
| 26 |
+
- 57.12
|
| 27 |
+
- 57.375
|
| 28 |
+
to_rgb: true
|
| 29 |
+
type: Normalize
|
| 30 |
+
- keys:
|
| 31 |
+
- img
|
| 32 |
+
type: ImageToTensor
|
| 33 |
+
- keys:
|
| 34 |
+
- img
|
| 35 |
+
type: Collect
|
| 36 |
+
type: MultiScaleFlipAug
|
| 37 |
+
type: ADE20KDataset
|
| 38 |
+
workers_per_gpu: 4
|
| 39 |
+
data_root: data/ade/ADEChallengeData2016
|
| 40 |
+
dataset_type: ADE20KDataset
|
| 41 |
+
img_norm_cfg:
|
| 42 |
+
mean:
|
| 43 |
+
- 123.675
|
| 44 |
+
- 116.28
|
| 45 |
+
- 103.53
|
| 46 |
+
std:
|
| 47 |
+
- 58.395
|
| 48 |
+
- 57.12
|
| 49 |
+
- 57.375
|
| 50 |
+
to_rgb: true
|
| 51 |
+
model:
|
| 52 |
+
auxiliary_head:
|
| 53 |
+
align_corners: false
|
| 54 |
+
channels: 256
|
| 55 |
+
concat_input: false
|
| 56 |
+
dropout_ratio: 0.1
|
| 57 |
+
in_channels: 320
|
| 58 |
+
in_index: 2
|
| 59 |
+
loss_decode:
|
| 60 |
+
loss_weight: 0.4
|
| 61 |
+
type: CrossEntropyLoss
|
| 62 |
+
use_sigmoid: false
|
| 63 |
+
norm_cfg:
|
| 64 |
+
requires_grad: true
|
| 65 |
+
type: SyncBN
|
| 66 |
+
num_classes: 150
|
| 67 |
+
num_convs: 1
|
| 68 |
+
type: FCNHead
|
| 69 |
+
backbone:
|
| 70 |
+
attn_drop_rate: 0.0
|
| 71 |
+
drop_path_rate: 0.4
|
| 72 |
+
drop_rate: 0.0
|
| 73 |
+
embed_dim:
|
| 74 |
+
- 64
|
| 75 |
+
- 128
|
| 76 |
+
- 320
|
| 77 |
+
- 512
|
| 78 |
+
head_dim: 64
|
| 79 |
+
hybrid: false
|
| 80 |
+
layers:
|
| 81 |
+
- 5
|
| 82 |
+
- 8
|
| 83 |
+
- 20
|
| 84 |
+
- 7
|
| 85 |
+
mlp_ratio: 4.0
|
| 86 |
+
qkv_bias: true
|
| 87 |
+
type: UniFormer
|
| 88 |
+
windows: false
|
| 89 |
+
decode_head:
|
| 90 |
+
align_corners: false
|
| 91 |
+
channels: 512
|
| 92 |
+
dropout_ratio: 0.1
|
| 93 |
+
in_channels:
|
| 94 |
+
- 64
|
| 95 |
+
- 128
|
| 96 |
+
- 320
|
| 97 |
+
- 512
|
| 98 |
+
in_index:
|
| 99 |
+
- 0
|
| 100 |
+
- 1
|
| 101 |
+
- 2
|
| 102 |
+
- 3
|
| 103 |
+
loss_decode:
|
| 104 |
+
loss_weight: 1.0
|
| 105 |
+
type: CrossEntropyLoss
|
| 106 |
+
use_sigmoid: false
|
| 107 |
+
norm_cfg:
|
| 108 |
+
requires_grad: true
|
| 109 |
+
type: SyncBN
|
| 110 |
+
num_classes: 150
|
| 111 |
+
pool_scales: !!python/tuple
|
| 112 |
+
- 1
|
| 113 |
+
- 2
|
| 114 |
+
- 3
|
| 115 |
+
- 6
|
| 116 |
+
type: UPerHead
|
| 117 |
+
pretrained: null
|
| 118 |
+
test_cfg:
|
| 119 |
+
mode: whole
|
| 120 |
+
train_cfg: {}
|
| 121 |
+
type: EncoderDecoder
|
| 122 |
+
norm_cfg:
|
| 123 |
+
requires_grad: true
|
| 124 |
+
type: SyncBN
|
| 125 |
+
test_pipeline:
|
| 126 |
+
- type: LoadImageFromFile
|
| 127 |
+
- flip: false
|
| 128 |
+
img_scale: !!python/tuple
|
| 129 |
+
- 2048
|
| 130 |
+
- 512
|
| 131 |
+
transforms:
|
| 132 |
+
- keep_ratio: true
|
| 133 |
+
type: Resize
|
| 134 |
+
- type: RandomFlip
|
| 135 |
+
- mean:
|
| 136 |
+
- 123.675
|
| 137 |
+
- 116.28
|
| 138 |
+
- 103.53
|
| 139 |
+
std:
|
| 140 |
+
- 58.395
|
| 141 |
+
- 57.12
|
| 142 |
+
- 57.375
|
| 143 |
+
to_rgb: true
|
| 144 |
+
type: Normalize
|
| 145 |
+
- keys:
|
| 146 |
+
- img
|
| 147 |
+
type: ImageToTensor
|
| 148 |
+
- keys:
|
| 149 |
+
- img
|
| 150 |
+
type: Collect
|
| 151 |
+
type: MultiScaleFlipAug
|