Update tiny models for Mask2FormerModel
Browse files- config.json +104 -0
- model.safetensors +3 -0
- preprocessor_config.json +27 -0
config.json
ADDED
|
@@ -0,0 +1,104 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"activation_function": "relu",
|
| 3 |
+
"architectures": [
|
| 4 |
+
"Mask2FormerModel"
|
| 5 |
+
],
|
| 6 |
+
"backbone": null,
|
| 7 |
+
"backbone_config": {
|
| 8 |
+
"attention_probs_dropout_prob": 0.0,
|
| 9 |
+
"depths": [
|
| 10 |
+
1,
|
| 11 |
+
1,
|
| 12 |
+
1,
|
| 13 |
+
1
|
| 14 |
+
],
|
| 15 |
+
"drop_path_rate": 0.3,
|
| 16 |
+
"embed_dim": 16,
|
| 17 |
+
"encoder_stride": 32,
|
| 18 |
+
"hidden_act": "gelu",
|
| 19 |
+
"hidden_dropout_prob": 0.0,
|
| 20 |
+
"hidden_size": 16,
|
| 21 |
+
"image_size": 224,
|
| 22 |
+
"initializer_range": 0.02,
|
| 23 |
+
"layer_norm_eps": 1e-05,
|
| 24 |
+
"mlp_ratio": 4.0,
|
| 25 |
+
"model_type": "swin",
|
| 26 |
+
"num_channels": 3,
|
| 27 |
+
"num_heads": [
|
| 28 |
+
1,
|
| 29 |
+
1,
|
| 30 |
+
2,
|
| 31 |
+
2
|
| 32 |
+
],
|
| 33 |
+
"num_layers": 4,
|
| 34 |
+
"out_features": [
|
| 35 |
+
"stage1",
|
| 36 |
+
"stage2",
|
| 37 |
+
"stage3",
|
| 38 |
+
"stage4"
|
| 39 |
+
],
|
| 40 |
+
"out_indices": [
|
| 41 |
+
1,
|
| 42 |
+
2,
|
| 43 |
+
3,
|
| 44 |
+
4
|
| 45 |
+
],
|
| 46 |
+
"patch_size": 4,
|
| 47 |
+
"qkv_bias": true,
|
| 48 |
+
"stage_names": [
|
| 49 |
+
"stem",
|
| 50 |
+
"stage1",
|
| 51 |
+
"stage2",
|
| 52 |
+
"stage3",
|
| 53 |
+
"stage4"
|
| 54 |
+
],
|
| 55 |
+
"use_absolute_embeddings": false,
|
| 56 |
+
"window_size": 7
|
| 57 |
+
},
|
| 58 |
+
"class_weight": 2.0,
|
| 59 |
+
"common_stride": 4,
|
| 60 |
+
"decoder_layers": 2,
|
| 61 |
+
"dice_weight": 5.0,
|
| 62 |
+
"dim_feedforward": 32,
|
| 63 |
+
"dropout": 0.0,
|
| 64 |
+
"dtype": "float32",
|
| 65 |
+
"encoder_feedforward_dim": 16,
|
| 66 |
+
"encoder_layers": 2,
|
| 67 |
+
"enforce_input_projection": false,
|
| 68 |
+
"feature_size": 64,
|
| 69 |
+
"feature_strides": [
|
| 70 |
+
4,
|
| 71 |
+
8,
|
| 72 |
+
16,
|
| 73 |
+
32
|
| 74 |
+
],
|
| 75 |
+
"hidden_dim": 64,
|
| 76 |
+
"id2label": {
|
| 77 |
+
"0": "LABEL_0",
|
| 78 |
+
"1": "LABEL_1",
|
| 79 |
+
"2": "LABEL_2",
|
| 80 |
+
"3": "LABEL_3"
|
| 81 |
+
},
|
| 82 |
+
"ignore_value": 255,
|
| 83 |
+
"importance_sample_ratio": 0.75,
|
| 84 |
+
"init_std": 0.02,
|
| 85 |
+
"init_xavier_std": 1.0,
|
| 86 |
+
"label2id": {
|
| 87 |
+
"LABEL_0": 0,
|
| 88 |
+
"LABEL_1": 1,
|
| 89 |
+
"LABEL_2": 2,
|
| 90 |
+
"LABEL_3": 3
|
| 91 |
+
},
|
| 92 |
+
"mask_feature_size": 64,
|
| 93 |
+
"mask_weight": 5.0,
|
| 94 |
+
"model_type": "mask2former",
|
| 95 |
+
"no_object_weight": 0.1,
|
| 96 |
+
"num_attention_heads": 4,
|
| 97 |
+
"num_queries": 10,
|
| 98 |
+
"output_auxiliary_logits": null,
|
| 99 |
+
"oversample_ratio": 3.0,
|
| 100 |
+
"pre_norm": false,
|
| 101 |
+
"train_num_points": 12544,
|
| 102 |
+
"transformers_version": "5.16.0.dev0",
|
| 103 |
+
"use_auxiliary_loss": true
|
| 104 |
+
}
|
model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:73fb063303cbfe1cfa3bb4491866bb31699de88359fbdaa510fc5a8fc84375eb
|
| 3 |
+
size 1863960
|
preprocessor_config.json
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"do_normalize": true,
|
| 3 |
+
"do_reduce_labels": false,
|
| 4 |
+
"do_rescale": true,
|
| 5 |
+
"do_resize": true,
|
| 6 |
+
"ignore_index": 255,
|
| 7 |
+
"image_mean": [
|
| 8 |
+
0.48500001430511475,
|
| 9 |
+
0.4560000002384186,
|
| 10 |
+
0.4059999883174896
|
| 11 |
+
],
|
| 12 |
+
"image_processor_type": "Mask2FormerImageProcessor",
|
| 13 |
+
"image_std": [
|
| 14 |
+
0.2290000021457672,
|
| 15 |
+
0.2239999920129776,
|
| 16 |
+
0.22499999403953552
|
| 17 |
+
],
|
| 18 |
+
"num_labels": 80,
|
| 19 |
+
"reduce_labels": false,
|
| 20 |
+
"resample": 2,
|
| 21 |
+
"rescale_factor": 0.00392156862745098,
|
| 22 |
+
"size": {
|
| 23 |
+
"height": 384,
|
| 24 |
+
"width": 384
|
| 25 |
+
},
|
| 26 |
+
"size_divisor": 32
|
| 27 |
+
}
|