hf-transformers-bot commited on
Commit
55a80d0
·
verified ·
1 Parent(s): a40c001

Update tiny models for RfDetrForInstanceSegmentation

Browse files
Files changed (3) hide show
  1. config.json +101 -0
  2. model.safetensors +3 -0
  3. preprocessor_config.json +26 -0
config.json ADDED
@@ -0,0 +1,101 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "activation_dropout": 0.0,
3
+ "activation_function": "silu",
4
+ "architectures": [
5
+ "RfDetrForInstanceSegmentation"
6
+ ],
7
+ "attention_bias": true,
8
+ "attention_dropout": 0.0,
9
+ "auxiliary_loss": true,
10
+ "backbone_config": {
11
+ "apply_layernorm": true,
12
+ "attention_probs_dropout_prob": 0.0,
13
+ "drop_path_rate": 0.0,
14
+ "hidden_act": "gelu",
15
+ "hidden_dropout_prob": 0.0,
16
+ "hidden_size": 32,
17
+ "image_size": 256,
18
+ "initializer_range": 0.02,
19
+ "layer_norm_eps": 1e-06,
20
+ "layerscale_value": 1.0,
21
+ "mlp_ratio": 4,
22
+ "model_type": "rf_detr_dinov2",
23
+ "num_attention_heads": 2,
24
+ "num_channels": 3,
25
+ "num_hidden_layers": 4,
26
+ "num_windows": 2,
27
+ "out_features": [
28
+ "stage2",
29
+ "stage3"
30
+ ],
31
+ "out_indices": [
32
+ 2,
33
+ 3
34
+ ],
35
+ "patch_size": 16,
36
+ "qkv_bias": true,
37
+ "reshape_hidden_states": true,
38
+ "stage_names": [
39
+ "stem",
40
+ "stage1",
41
+ "stage2",
42
+ "stage3",
43
+ "stage4"
44
+ ],
45
+ "use_mask_token": true,
46
+ "use_swiglu_ffn": false,
47
+ "window_block_indexes": [
48
+ 0,
49
+ 1
50
+ ]
51
+ },
52
+ "bbox_cost": 5,
53
+ "bbox_loss_coefficient": 5,
54
+ "c2f_num_blocks": 3,
55
+ "class_cost": 2,
56
+ "class_loss_coefficient": 1,
57
+ "d_model": 32,
58
+ "decoder_activation_function": "relu",
59
+ "decoder_cross_attention_heads": 4,
60
+ "decoder_ffn_dim": 32,
61
+ "decoder_layers": 2,
62
+ "decoder_n_points": 4,
63
+ "decoder_self_attention_heads": 2,
64
+ "dice_loss_coefficient": 1,
65
+ "disable_custom_kernels": true,
66
+ "dropout": 0.0,
67
+ "dtype": "float32",
68
+ "eos_coefficient": 0.1,
69
+ "focal_alpha": 0.25,
70
+ "giou_cost": 2,
71
+ "giou_loss_coefficient": 2,
72
+ "group_detr": 2,
73
+ "hidden_expansion": 0.5,
74
+ "id2label": {
75
+ "0": "LABEL_0",
76
+ "1": "LABEL_1",
77
+ "2": "LABEL_2",
78
+ "3": "LABEL_3",
79
+ "4": "LABEL_4"
80
+ },
81
+ "init_std": 0.02,
82
+ "intermediate_size": 1024,
83
+ "label2id": {
84
+ "LABEL_0": 0,
85
+ "LABEL_1": 1,
86
+ "LABEL_2": 2,
87
+ "LABEL_3": 3,
88
+ "LABEL_4": 4
89
+ },
90
+ "layer_norm_eps": 1e-05,
91
+ "mask_class_loss_coefficient": 5.0,
92
+ "mask_dice_loss_coefficient": 5.0,
93
+ "mask_downsample_ratio": 4,
94
+ "mask_loss_coefficient": 1,
95
+ "mask_point_sample_ratio": 16,
96
+ "model_type": "rf_detr",
97
+ "num_feature_levels": 1,
98
+ "num_queries": 10,
99
+ "segmentation_head_activation_function": "gelu",
100
+ "transformers_version": "5.16.0.dev0"
101
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fbe6ffb47665b8faf2aadea249fb2ad94a55a372e3edabb3c9b9080f180343c8
3
+ size 858872
preprocessor_config.json ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "do_convert_annotations": true,
3
+ "do_normalize": true,
4
+ "do_pad": true,
5
+ "do_rescale": true,
6
+ "do_resize": true,
7
+ "format": "coco_detection",
8
+ "image_mean": [
9
+ 0.485,
10
+ 0.456,
11
+ 0.406
12
+ ],
13
+ "image_processor_type": "RfDetrImageProcessor",
14
+ "image_std": [
15
+ 0.229,
16
+ 0.224,
17
+ 0.225
18
+ ],
19
+ "resample": 2,
20
+ "rescale_factor": 0.00392156862745098,
21
+ "size": {
22
+ "height": 560,
23
+ "width": 560
24
+ },
25
+ "use_fast": true
26
+ }