danelcsb commited on
Commit
66e6c5b
1 Parent(s): f13a952

Add config from convert_rt_detr_v2_original_pytorch_checkpoint_to_pytorch.py

Browse files
Files changed (2) hide show
  1. README.md +199 -0
  2. config.json +262 -0
README.md ADDED
@@ -0,0 +1,199 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: transformers
3
+ tags: []
4
+ ---
5
+
6
+ # Model Card for Model ID
7
+
8
+ <!-- Provide a quick summary of what the model is/does. -->
9
+
10
+
11
+
12
+ ## Model Details
13
+
14
+ ### Model Description
15
+
16
+ <!-- Provide a longer summary of what this model is. -->
17
+
18
+ This is the model card of a 🤗 transformers model that has been pushed on the Hub. This model card has been automatically generated.
19
+
20
+ - **Developed by:** [More Information Needed]
21
+ - **Funded by [optional]:** [More Information Needed]
22
+ - **Shared by [optional]:** [More Information Needed]
23
+ - **Model type:** [More Information Needed]
24
+ - **Language(s) (NLP):** [More Information Needed]
25
+ - **License:** [More Information Needed]
26
+ - **Finetuned from model [optional]:** [More Information Needed]
27
+
28
+ ### Model Sources [optional]
29
+
30
+ <!-- Provide the basic links for the model. -->
31
+
32
+ - **Repository:** [More Information Needed]
33
+ - **Paper [optional]:** [More Information Needed]
34
+ - **Demo [optional]:** [More Information Needed]
35
+
36
+ ## Uses
37
+
38
+ <!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model. -->
39
+
40
+ ### Direct Use
41
+
42
+ <!-- This section is for the model use without fine-tuning or plugging into a larger ecosystem/app. -->
43
+
44
+ [More Information Needed]
45
+
46
+ ### Downstream Use [optional]
47
+
48
+ <!-- This section is for the model use when fine-tuned for a task, or when plugged into a larger ecosystem/app -->
49
+
50
+ [More Information Needed]
51
+
52
+ ### Out-of-Scope Use
53
+
54
+ <!-- This section addresses misuse, malicious use, and uses that the model will not work well for. -->
55
+
56
+ [More Information Needed]
57
+
58
+ ## Bias, Risks, and Limitations
59
+
60
+ <!-- This section is meant to convey both technical and sociotechnical limitations. -->
61
+
62
+ [More Information Needed]
63
+
64
+ ### Recommendations
65
+
66
+ <!-- This section is meant to convey recommendations with respect to the bias, risk, and technical limitations. -->
67
+
68
+ Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations.
69
+
70
+ ## How to Get Started with the Model
71
+
72
+ Use the code below to get started with the model.
73
+
74
+ [More Information Needed]
75
+
76
+ ## Training Details
77
+
78
+ ### Training Data
79
+
80
+ <!-- This should link to a Dataset Card, perhaps with a short stub of information on what the training data is all about as well as documentation related to data pre-processing or additional filtering. -->
81
+
82
+ [More Information Needed]
83
+
84
+ ### Training Procedure
85
+
86
+ <!-- This relates heavily to the Technical Specifications. Content here should link to that section when it is relevant to the training procedure. -->
87
+
88
+ #### Preprocessing [optional]
89
+
90
+ [More Information Needed]
91
+
92
+
93
+ #### Training Hyperparameters
94
+
95
+ - **Training regime:** [More Information Needed] <!--fp32, fp16 mixed precision, bf16 mixed precision, bf16 non-mixed precision, fp16 non-mixed precision, fp8 mixed precision -->
96
+
97
+ #### Speeds, Sizes, Times [optional]
98
+
99
+ <!-- This section provides information about throughput, start/end time, checkpoint size if relevant, etc. -->
100
+
101
+ [More Information Needed]
102
+
103
+ ## Evaluation
104
+
105
+ <!-- This section describes the evaluation protocols and provides the results. -->
106
+
107
+ ### Testing Data, Factors & Metrics
108
+
109
+ #### Testing Data
110
+
111
+ <!-- This should link to a Dataset Card if possible. -->
112
+
113
+ [More Information Needed]
114
+
115
+ #### Factors
116
+
117
+ <!-- These are the things the evaluation is disaggregating by, e.g., subpopulations or domains. -->
118
+
119
+ [More Information Needed]
120
+
121
+ #### Metrics
122
+
123
+ <!-- These are the evaluation metrics being used, ideally with a description of why. -->
124
+
125
+ [More Information Needed]
126
+
127
+ ### Results
128
+
129
+ [More Information Needed]
130
+
131
+ #### Summary
132
+
133
+
134
+
135
+ ## Model Examination [optional]
136
+
137
+ <!-- Relevant interpretability work for the model goes here -->
138
+
139
+ [More Information Needed]
140
+
141
+ ## Environmental Impact
142
+
143
+ <!-- Total emissions (in grams of CO2eq) and additional considerations, such as electricity usage, go here. Edit the suggested text below accordingly -->
144
+
145
+ Carbon emissions can be estimated using the [Machine Learning Impact calculator](https://mlco2.github.io/impact#compute) presented in [Lacoste et al. (2019)](https://arxiv.org/abs/1910.09700).
146
+
147
+ - **Hardware Type:** [More Information Needed]
148
+ - **Hours used:** [More Information Needed]
149
+ - **Cloud Provider:** [More Information Needed]
150
+ - **Compute Region:** [More Information Needed]
151
+ - **Carbon Emitted:** [More Information Needed]
152
+
153
+ ## Technical Specifications [optional]
154
+
155
+ ### Model Architecture and Objective
156
+
157
+ [More Information Needed]
158
+
159
+ ### Compute Infrastructure
160
+
161
+ [More Information Needed]
162
+
163
+ #### Hardware
164
+
165
+ [More Information Needed]
166
+
167
+ #### Software
168
+
169
+ [More Information Needed]
170
+
171
+ ## Citation [optional]
172
+
173
+ <!-- If there is a paper or blog post introducing the model, the APA and Bibtex information for that should go in this section. -->
174
+
175
+ **BibTeX:**
176
+
177
+ [More Information Needed]
178
+
179
+ **APA:**
180
+
181
+ [More Information Needed]
182
+
183
+ ## Glossary [optional]
184
+
185
+ <!-- If relevant, include terms and calculations in this section that can help readers understand the model or model card. -->
186
+
187
+ [More Information Needed]
188
+
189
+ ## More Information [optional]
190
+
191
+ [More Information Needed]
192
+
193
+ ## Model Card Authors [optional]
194
+
195
+ [More Information Needed]
196
+
197
+ ## Model Card Contact
198
+
199
+ [More Information Needed]
config.json ADDED
@@ -0,0 +1,262 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "activation_dropout": 0.0,
3
+ "activation_function": "silu",
4
+ "anchor_image_size": null,
5
+ "architectures": [
6
+ "RTDetrV2ForObjectDetection"
7
+ ],
8
+ "attention_dropout": 0.0,
9
+ "auxiliary_loss": true,
10
+ "backbone": null,
11
+ "backbone_config": {
12
+ "depths": [
13
+ 3,
14
+ 4,
15
+ 23,
16
+ 3
17
+ ],
18
+ "model_type": "rt_detr_v2_resnet",
19
+ "out_features": [
20
+ "stage2",
21
+ "stage3",
22
+ "stage4"
23
+ ],
24
+ "out_indices": [
25
+ 2,
26
+ 3,
27
+ 4
28
+ ]
29
+ },
30
+ "backbone_kwargs": null,
31
+ "batch_norm_eps": 1e-05,
32
+ "box_noise_scale": 1.0,
33
+ "d_model": 256,
34
+ "decoder_activation_function": "relu",
35
+ "decoder_attention_heads": 8,
36
+ "decoder_ffn_dim": 1024,
37
+ "decoder_in_channels": [
38
+ 384,
39
+ 384,
40
+ 384
41
+ ],
42
+ "decoder_layers": 6,
43
+ "decoder_n_levels": 3,
44
+ "decoder_n_points": 4,
45
+ "decoder_offset_scale": 0.5,
46
+ "disable_custom_kernels": true,
47
+ "dropout": 0.0,
48
+ "encode_proj_layers": [
49
+ 2
50
+ ],
51
+ "encoder_activation_function": "gelu",
52
+ "encoder_attention_heads": 8,
53
+ "encoder_ffn_dim": 2048,
54
+ "encoder_hidden_dim": 384,
55
+ "encoder_in_channels": [
56
+ 512,
57
+ 1024,
58
+ 2048
59
+ ],
60
+ "encoder_layers": 1,
61
+ "eos_coefficient": 0.0001,
62
+ "eval_size": null,
63
+ "feat_strides": [
64
+ 8,
65
+ 16,
66
+ 32
67
+ ],
68
+ "focal_loss_alpha": 0.75,
69
+ "focal_loss_gamma": 2.0,
70
+ "freeze_backbone_batch_norms": true,
71
+ "hidden_expansion": 1.0,
72
+ "id2label": {
73
+ "0": "person",
74
+ "1": "bicycle",
75
+ "2": "car",
76
+ "3": "motorbike",
77
+ "4": "aeroplane",
78
+ "5": "bus",
79
+ "6": "train",
80
+ "7": "truck",
81
+ "8": "boat",
82
+ "9": "traffic light",
83
+ "10": "fire hydrant",
84
+ "11": "stop sign",
85
+ "12": "parking meter",
86
+ "13": "bench",
87
+ "14": "bird",
88
+ "15": "cat",
89
+ "16": "dog",
90
+ "17": "horse",
91
+ "18": "sheep",
92
+ "19": "cow",
93
+ "20": "elephant",
94
+ "21": "bear",
95
+ "22": "zebra",
96
+ "23": "giraffe",
97
+ "24": "backpack",
98
+ "25": "umbrella",
99
+ "26": "handbag",
100
+ "27": "tie",
101
+ "28": "suitcase",
102
+ "29": "frisbee",
103
+ "30": "skis",
104
+ "31": "snowboard",
105
+ "32": "sports ball",
106
+ "33": "kite",
107
+ "34": "baseball bat",
108
+ "35": "baseball glove",
109
+ "36": "skateboard",
110
+ "37": "surfboard",
111
+ "38": "tennis racket",
112
+ "39": "bottle",
113
+ "40": "wine glass",
114
+ "41": "cup",
115
+ "42": "fork",
116
+ "43": "knife",
117
+ "44": "spoon",
118
+ "45": "bowl",
119
+ "46": "banana",
120
+ "47": "apple",
121
+ "48": "sandwich",
122
+ "49": "orange",
123
+ "50": "broccoli",
124
+ "51": "carrot",
125
+ "52": "hot dog",
126
+ "53": "pizza",
127
+ "54": "donut",
128
+ "55": "cake",
129
+ "56": "chair",
130
+ "57": "sofa",
131
+ "58": "pottedplant",
132
+ "59": "bed",
133
+ "60": "diningtable",
134
+ "61": "toilet",
135
+ "62": "tvmonitor",
136
+ "63": "laptop",
137
+ "64": "mouse",
138
+ "65": "remote",
139
+ "66": "keyboard",
140
+ "67": "cell phone",
141
+ "68": "microwave",
142
+ "69": "oven",
143
+ "70": "toaster",
144
+ "71": "sink",
145
+ "72": "refrigerator",
146
+ "73": "book",
147
+ "74": "clock",
148
+ "75": "vase",
149
+ "76": "scissors",
150
+ "77": "teddy bear",
151
+ "78": "hair drier",
152
+ "79": "toothbrush"
153
+ },
154
+ "initializer_bias_prior_prob": null,
155
+ "initializer_range": 0.01,
156
+ "is_encoder_decoder": true,
157
+ "label2id": {
158
+ "aeroplane": 4,
159
+ "apple": 47,
160
+ "backpack": 24,
161
+ "banana": 46,
162
+ "baseball bat": 34,
163
+ "baseball glove": 35,
164
+ "bear": 21,
165
+ "bed": 59,
166
+ "bench": 13,
167
+ "bicycle": 1,
168
+ "bird": 14,
169
+ "boat": 8,
170
+ "book": 73,
171
+ "bottle": 39,
172
+ "bowl": 45,
173
+ "broccoli": 50,
174
+ "bus": 5,
175
+ "cake": 55,
176
+ "car": 2,
177
+ "carrot": 51,
178
+ "cat": 15,
179
+ "cell phone": 67,
180
+ "chair": 56,
181
+ "clock": 74,
182
+ "cow": 19,
183
+ "cup": 41,
184
+ "diningtable": 60,
185
+ "dog": 16,
186
+ "donut": 54,
187
+ "elephant": 20,
188
+ "fire hydrant": 10,
189
+ "fork": 42,
190
+ "frisbee": 29,
191
+ "giraffe": 23,
192
+ "hair drier": 78,
193
+ "handbag": 26,
194
+ "horse": 17,
195
+ "hot dog": 52,
196
+ "keyboard": 66,
197
+ "kite": 33,
198
+ "knife": 43,
199
+ "laptop": 63,
200
+ "microwave": 68,
201
+ "motorbike": 3,
202
+ "mouse": 64,
203
+ "orange": 49,
204
+ "oven": 69,
205
+ "parking meter": 12,
206
+ "person": 0,
207
+ "pizza": 53,
208
+ "pottedplant": 58,
209
+ "refrigerator": 72,
210
+ "remote": 65,
211
+ "sandwich": 48,
212
+ "scissors": 76,
213
+ "sheep": 18,
214
+ "sink": 71,
215
+ "skateboard": 36,
216
+ "skis": 30,
217
+ "snowboard": 31,
218
+ "sofa": 57,
219
+ "spoon": 44,
220
+ "sports ball": 32,
221
+ "stop sign": 11,
222
+ "suitcase": 28,
223
+ "surfboard": 37,
224
+ "teddy bear": 77,
225
+ "tennis racket": 38,
226
+ "tie": 27,
227
+ "toaster": 70,
228
+ "toilet": 61,
229
+ "toothbrush": 79,
230
+ "traffic light": 9,
231
+ "train": 6,
232
+ "truck": 7,
233
+ "tvmonitor": 62,
234
+ "umbrella": 25,
235
+ "vase": 75,
236
+ "wine glass": 40,
237
+ "zebra": 22
238
+ },
239
+ "label_noise_ratio": 0.5,
240
+ "layer_norm_eps": 1e-05,
241
+ "learn_initial_query": false,
242
+ "matcher_alpha": 0.25,
243
+ "matcher_bbox_cost": 5.0,
244
+ "matcher_class_cost": 2.0,
245
+ "matcher_gamma": 2.0,
246
+ "matcher_giou_cost": 2.0,
247
+ "model_type": "rt_detr_v2",
248
+ "normalize_before": false,
249
+ "num_denoising": 100,
250
+ "num_feature_levels": 3,
251
+ "num_queries": 300,
252
+ "positional_encoding_temperature": 10000,
253
+ "torch_dtype": "float32",
254
+ "transformers_version": "4.45.0.dev0",
255
+ "use_focal_loss": true,
256
+ "use_pretrained_backbone": false,
257
+ "use_timm_backbone": false,
258
+ "weight_loss_bbox": 5.0,
259
+ "weight_loss_giou": 2.0,
260
+ "weight_loss_vfl": 1.0,
261
+ "with_box_refine": true
262
+ }