Add config from convert_d_fine_original_pytorch_checkpoint_to_hf.py
Browse files- config.json +3 -6
config.json
CHANGED
@@ -1,10 +1,8 @@
|
|
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,
|
@@ -75,7 +73,7 @@
|
|
75 |
16,
|
76 |
16
|
77 |
],
|
78 |
-
"
|
79 |
},
|
80 |
"backbone_kwargs": null,
|
81 |
"batch_norm_eps": 1e-05,
|
@@ -299,16 +297,15 @@
|
|
299 |
"matcher_class_cost": 2.0,
|
300 |
"matcher_gamma": 2.0,
|
301 |
"matcher_giou_cost": 2.0,
|
|
|
302 |
"model_type": "d_fine",
|
303 |
"normalize_before": false,
|
304 |
"num_denoising": 100,
|
305 |
"num_feature_levels": 3,
|
306 |
"num_queries": 300,
|
307 |
"positional_encoding_temperature": 10000,
|
308 |
-
"reg_max": 32,
|
309 |
"reg_scale": 4.0,
|
310 |
"top_prob_values": 4,
|
311 |
-
"torch_dtype": "float32",
|
312 |
"transformers_version": "4.49.0.dev0",
|
313 |
"use_focal_loss": true,
|
314 |
"use_pretrained_backbone": false,
|
|
|
1 |
{
|
2 |
+
"_attn_implementation_autoset": true,
|
3 |
"activation_dropout": 0.0,
|
4 |
"activation_function": "silu",
|
5 |
"anchor_image_size": null,
|
|
|
|
|
|
|
6 |
"attention_dropout": 0.0,
|
7 |
"auxiliary_loss": true,
|
8 |
"backbone": null,
|
|
|
73 |
16,
|
74 |
16
|
75 |
],
|
76 |
+
"use_learnable_affine_block": true
|
77 |
},
|
78 |
"backbone_kwargs": null,
|
79 |
"batch_norm_eps": 1e-05,
|
|
|
297 |
"matcher_class_cost": 2.0,
|
298 |
"matcher_gamma": 2.0,
|
299 |
"matcher_giou_cost": 2.0,
|
300 |
+
"max_num_bins": 32,
|
301 |
"model_type": "d_fine",
|
302 |
"normalize_before": false,
|
303 |
"num_denoising": 100,
|
304 |
"num_feature_levels": 3,
|
305 |
"num_queries": 300,
|
306 |
"positional_encoding_temperature": 10000,
|
|
|
307 |
"reg_scale": 4.0,
|
308 |
"top_prob_values": 4,
|
|
|
309 |
"transformers_version": "4.49.0.dev0",
|
310 |
"use_focal_loss": true,
|
311 |
"use_pretrained_backbone": false,
|