dev-xpd commited on
Commit
dc398bf
·
verified ·
1 Parent(s): fc12944

Upload 3 files

Browse files
Files changed (3) hide show
  1. config.json +207 -0
  2. model.safetensors +3 -0
  3. preprocessor_config.json +36 -0
config.json ADDED
@@ -0,0 +1,207 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "activation_dropout": 0.0,
3
+ "activation_function": "silu",
4
+ "anchor_image_size": null,
5
+ "architectures": [
6
+ "DFineForObjectDetection"
7
+ ],
8
+ "attention_dropout": 0.0,
9
+ "auxiliary_loss": true,
10
+ "backbone": null,
11
+ "backbone_config": {
12
+ "depths": [
13
+ 3,
14
+ 4,
15
+ 6,
16
+ 3
17
+ ],
18
+ "downsample_in_bottleneck": false,
19
+ "downsample_in_first_stage": false,
20
+ "dtype": "float32",
21
+ "embedding_size": 32,
22
+ "hidden_act": "relu",
23
+ "hidden_sizes": [
24
+ 128,
25
+ 256,
26
+ 512,
27
+ 1024
28
+ ],
29
+ "initializer_range": 0.02,
30
+ "layer_type": "basic",
31
+ "model_type": "hgnet_v2",
32
+ "num_channels": 3,
33
+ "out_features": [
34
+ "stage2",
35
+ "stage3",
36
+ "stage4"
37
+ ],
38
+ "out_indices": [
39
+ 2,
40
+ 3,
41
+ 4
42
+ ],
43
+ "stage_downsample": [
44
+ false,
45
+ true,
46
+ true,
47
+ true
48
+ ],
49
+ "stage_in_channels": [
50
+ 16,
51
+ 64,
52
+ 256,
53
+ 512
54
+ ],
55
+ "stage_kernel_size": [
56
+ 3,
57
+ 3,
58
+ 5,
59
+ 5
60
+ ],
61
+ "stage_light_block": [
62
+ false,
63
+ false,
64
+ true,
65
+ true
66
+ ],
67
+ "stage_mid_channels": [
68
+ 16,
69
+ 32,
70
+ 64,
71
+ 128
72
+ ],
73
+ "stage_names": [
74
+ "stem",
75
+ "stage1",
76
+ "stage2",
77
+ "stage3",
78
+ "stage4"
79
+ ],
80
+ "stage_num_blocks": [
81
+ 1,
82
+ 1,
83
+ 2,
84
+ 1
85
+ ],
86
+ "stage_numb_of_layers": [
87
+ 3,
88
+ 3,
89
+ 3,
90
+ 3
91
+ ],
92
+ "stage_out_channels": [
93
+ 64,
94
+ 256,
95
+ 512,
96
+ 1024
97
+ ],
98
+ "stem_channels": [
99
+ 3,
100
+ 16,
101
+ 16
102
+ ],
103
+ "use_learnable_affine_block": true
104
+ },
105
+ "backbone_kwargs": null,
106
+ "batch_norm_eps": 1e-05,
107
+ "box_noise_scale": 1.0,
108
+ "d_model": 256,
109
+ "decoder_activation_function": "relu",
110
+ "decoder_attention_heads": 8,
111
+ "decoder_ffn_dim": 1024,
112
+ "decoder_in_channels": [
113
+ 256,
114
+ 256,
115
+ 256
116
+ ],
117
+ "decoder_layers": 3,
118
+ "decoder_method": "default",
119
+ "decoder_n_points": [
120
+ 3,
121
+ 6,
122
+ 3
123
+ ],
124
+ "decoder_offset_scale": 0.5,
125
+ "depth_mult": 0.34,
126
+ "dropout": 0.0,
127
+ "dtype": "float32",
128
+ "encode_proj_layers": [
129
+ 2
130
+ ],
131
+ "encoder_activation_function": "gelu",
132
+ "encoder_attention_heads": 8,
133
+ "encoder_ffn_dim": 1024,
134
+ "encoder_hidden_dim": 256,
135
+ "encoder_in_channels": [
136
+ 256,
137
+ 512,
138
+ 1024
139
+ ],
140
+ "encoder_layers": 1,
141
+ "eos_coefficient": 0.0001,
142
+ "eval_idx": -1,
143
+ "eval_size": null,
144
+ "feat_strides": [
145
+ 8,
146
+ 16,
147
+ 32
148
+ ],
149
+ "focal_loss_alpha": 0.75,
150
+ "focal_loss_gamma": 2.0,
151
+ "freeze_backbone_batch_norms": true,
152
+ "hidden_expansion": 0.5,
153
+ "id2label": {
154
+ "0": "Car",
155
+ "1": "Pedestrian",
156
+ "2": "Van",
157
+ "3": "Cyclist",
158
+ "4": "Truck",
159
+ "5": "Misc",
160
+ "6": "Tram",
161
+ "7": "Person_sitting"
162
+ },
163
+ "initializer_bias_prior_prob": null,
164
+ "initializer_range": 0.01,
165
+ "is_encoder_decoder": true,
166
+ "label2id": {
167
+ "Car": 0,
168
+ "Cyclist": 3,
169
+ "Misc": 5,
170
+ "Pedestrian": 1,
171
+ "Person_sitting": 7,
172
+ "Tram": 6,
173
+ "Truck": 4,
174
+ "Van": 2
175
+ },
176
+ "label_noise_ratio": 0.5,
177
+ "layer_norm_eps": 1e-05,
178
+ "layer_scale": 1,
179
+ "learn_initial_query": false,
180
+ "lqe_hidden_dim": 64,
181
+ "lqe_layers": 2,
182
+ "matcher_alpha": 0.25,
183
+ "matcher_bbox_cost": 5.0,
184
+ "matcher_class_cost": 2.0,
185
+ "matcher_gamma": 2.0,
186
+ "matcher_giou_cost": 2.0,
187
+ "max_num_bins": 32,
188
+ "model_type": "d_fine",
189
+ "normalize_before": false,
190
+ "num_denoising": 100,
191
+ "num_feature_levels": 3,
192
+ "num_queries": 300,
193
+ "positional_encoding_temperature": 10000,
194
+ "reg_scale": 4.0,
195
+ "top_prob_values": 4,
196
+ "transformers_version": "4.56.1",
197
+ "up": 0.5,
198
+ "use_focal_loss": true,
199
+ "use_pretrained_backbone": false,
200
+ "use_timm_backbone": false,
201
+ "weight_loss_bbox": 5.0,
202
+ "weight_loss_ddf": 1.5,
203
+ "weight_loss_fgl": 0.15,
204
+ "weight_loss_giou": 2.0,
205
+ "weight_loss_vfl": 1.0,
206
+ "with_box_refine": true
207
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:40017f050a157b8469be1fe9125393592e1ac83e914e17c57f64e42a174163cb
3
+ size 41127820
preprocessor_config.json ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "crop_size": null,
3
+ "data_format": "channels_first",
4
+ "default_to_square": false,
5
+ "device": null,
6
+ "disable_grouping": null,
7
+ "do_center_crop": null,
8
+ "do_convert_annotations": true,
9
+ "do_convert_rgb": null,
10
+ "do_normalize": false,
11
+ "do_pad": false,
12
+ "do_rescale": true,
13
+ "do_resize": true,
14
+ "format": "coco_detection",
15
+ "image_mean": [
16
+ 0.485,
17
+ 0.456,
18
+ 0.406
19
+ ],
20
+ "image_processor_type": "RTDetrImageProcessorFast",
21
+ "image_std": [
22
+ 0.229,
23
+ 0.224,
24
+ 0.225
25
+ ],
26
+ "input_data_format": null,
27
+ "pad_size": null,
28
+ "resample": 2,
29
+ "rescale_factor": 0.00392156862745098,
30
+ "return_segmentation_masks": null,
31
+ "return_tensors": null,
32
+ "size": {
33
+ "height": 320,
34
+ "width": 1024
35
+ }
36
+ }