hf-transformers-bot commited on
Commit
01aee10
·
verified ·
1 Parent(s): 4ea9dcd

Update tiny models for RTDetrV2Model

Browse files
Files changed (3) hide show
  1. config.json +141 -0
  2. model.safetensors +3 -0
  3. preprocessor_config.json +29 -0
config.json ADDED
@@ -0,0 +1,141 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "activation_dropout": 0.0,
3
+ "activation_function": "silu",
4
+ "anchor_image_size": null,
5
+ "architectures": [
6
+ "RTDetrV2Model"
7
+ ],
8
+ "attention_dropout": 0.0,
9
+ "auxiliary_loss": true,
10
+ "backbone_config": {
11
+ "depths": [
12
+ 1,
13
+ 1,
14
+ 2,
15
+ 1
16
+ ],
17
+ "downsample_in_bottleneck": false,
18
+ "downsample_in_first_stage": false,
19
+ "embedding_size": 64,
20
+ "embeddings_size": 10,
21
+ "hidden_act": "relu",
22
+ "hidden_sizes": [
23
+ 10,
24
+ 20,
25
+ 30,
26
+ 40
27
+ ],
28
+ "layer_type": "bottleneck",
29
+ "model_type": "rt_detr_resnet",
30
+ "num_channels": 3,
31
+ "out_features": [
32
+ "stage2",
33
+ "stage3",
34
+ "stage4"
35
+ ],
36
+ "out_indices": [
37
+ 2,
38
+ 3,
39
+ 4
40
+ ],
41
+ "stage_names": [
42
+ "stem",
43
+ "stage1",
44
+ "stage2",
45
+ "stage3",
46
+ "stage4"
47
+ ]
48
+ },
49
+ "batch_norm_eps": 1e-05,
50
+ "box_noise_scale": 1.0,
51
+ "d_model": 32,
52
+ "decoder_activation_function": "relu",
53
+ "decoder_attention_heads": 2,
54
+ "decoder_ffn_dim": 64,
55
+ "decoder_in_channels": [
56
+ 32,
57
+ 32,
58
+ 32
59
+ ],
60
+ "decoder_layers": 2,
61
+ "decoder_method": "default",
62
+ "decoder_n_levels": 3,
63
+ "decoder_n_points": 4,
64
+ "decoder_offset_scale": 0.5,
65
+ "disable_custom_kernels": true,
66
+ "dropout": 0.0,
67
+ "dtype": "float32",
68
+ "encode_proj_layers": [
69
+ 2
70
+ ],
71
+ "encoder_activation_function": "gelu",
72
+ "encoder_attention_heads": 2,
73
+ "encoder_ffn_dim": 64,
74
+ "encoder_hidden_dim": 32,
75
+ "encoder_in_channels": [
76
+ 20,
77
+ 30,
78
+ 40
79
+ ],
80
+ "encoder_layers": 1,
81
+ "eos_coefficient": 0.0001,
82
+ "eval_size": null,
83
+ "feat_strides": [
84
+ 8,
85
+ 16,
86
+ 32
87
+ ],
88
+ "focal_loss_alpha": 0.75,
89
+ "focal_loss_gamma": 2.0,
90
+ "freeze_backbone_batch_norms": true,
91
+ "hidden_expansion": 1.0,
92
+ "id2label": {
93
+ "0": "LABEL_0",
94
+ "1": "LABEL_1",
95
+ "2": "LABEL_2",
96
+ "3": "LABEL_3",
97
+ "4": "LABEL_4",
98
+ "5": "LABEL_5",
99
+ "6": "LABEL_6",
100
+ "7": "LABEL_7",
101
+ "8": "LABEL_8",
102
+ "9": "LABEL_9"
103
+ },
104
+ "image_size": 64,
105
+ "initializer_bias_prior_prob": null,
106
+ "initializer_range": 0.01,
107
+ "is_encoder_decoder": true,
108
+ "label2id": {
109
+ "LABEL_0": 0,
110
+ "LABEL_1": 1,
111
+ "LABEL_2": 2,
112
+ "LABEL_3": 3,
113
+ "LABEL_4": 4,
114
+ "LABEL_5": 5,
115
+ "LABEL_6": 6,
116
+ "LABEL_7": 7,
117
+ "LABEL_8": 8,
118
+ "LABEL_9": 9
119
+ },
120
+ "label_noise_ratio": 0.5,
121
+ "layer_norm_eps": 1e-05,
122
+ "learn_initial_query": false,
123
+ "matcher_alpha": 0.25,
124
+ "matcher_bbox_cost": 5.0,
125
+ "matcher_class_cost": 2.0,
126
+ "matcher_gamma": 2.0,
127
+ "matcher_giou_cost": 2.0,
128
+ "model_type": "rt_detr_v2",
129
+ "normalize_before": false,
130
+ "num_denoising": 0,
131
+ "num_feature_levels": 3,
132
+ "num_queries": 30,
133
+ "positional_encoding_temperature": 10000,
134
+ "tie_word_embeddings": true,
135
+ "transformers_version": "5.16.0.dev0",
136
+ "use_focal_loss": true,
137
+ "weight_loss_bbox": 5.0,
138
+ "weight_loss_giou": 2.0,
139
+ "weight_loss_vfl": 1.0,
140
+ "with_box_refine": true
141
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:417eb48f40caa4f72ba170995599406597d5f71e3f8e214d3d8e02b945159bd2
3
+ size 1046124
preprocessor_config.json ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "crop_size": {
3
+ "height": 64,
4
+ "width": 64
5
+ },
6
+ "do_convert_annotations": true,
7
+ "do_normalize": false,
8
+ "do_pad": false,
9
+ "do_rescale": true,
10
+ "do_resize": true,
11
+ "format": "coco_detection",
12
+ "image_mean": [
13
+ 0.485,
14
+ 0.456,
15
+ 0.406
16
+ ],
17
+ "image_processor_type": "RTDetrImageProcessor",
18
+ "image_std": [
19
+ 0.229,
20
+ 0.224,
21
+ 0.225
22
+ ],
23
+ "resample": 2,
24
+ "rescale_factor": 0.00392156862745098,
25
+ "size": {
26
+ "height": 64,
27
+ "width": 64
28
+ }
29
+ }