mhassanch commited on
Commit
80158e1
·
verified ·
1 Parent(s): 30a7bf3

Upload config.json

Browse files
Files changed (1) hide show
  1. config.json +65 -54
config.json CHANGED
@@ -1,56 +1,67 @@
1
  {
2
- "model_name": "grounded",
3
- "input_names": [
4
- "img",
5
- "input_ids",
6
- "attention_mask",
7
- "position_ids",
8
- "token_type_ids",
9
- "text_token_mask"
 
 
 
 
 
 
 
 
10
  ],
11
- "output_names": [
12
- "logits",
13
- "boxes"
14
- ],
15
- "input_shapes": {
16
- "img": [
17
- "dynamic",
18
- 3,
19
- "dynamic",
20
- "dynamic"
21
- ],
22
- "input_ids": [
23
- "dynamic",
24
- "dynamic"
25
- ],
26
- "attention_mask": [
27
- "dynamic",
28
- "dynamic"
29
- ],
30
- "position_ids": [
31
- "dynamic",
32
- "dynamic"
33
- ],
34
- "token_type_ids": [
35
- "dynamic",
36
- "dynamic"
37
- ],
38
- "text_token_mask": [
39
- "dynamic",
40
- "dynamic",
41
- "dynamic"
42
- ]
43
- },
44
- "output_shapes": {
45
- "logits": [
46
- "dynamic",
47
- "dynamic",
48
- "dynamic"
49
- ],
50
- "boxes": [
51
- "dynamic",
52
- "dynamic",
53
- 4
54
- ]
55
- }
56
- }
 
 
 
 
1
  {
2
+ "_attn_implementation_autoset": true,
3
+ "_name_or_path": "IDEA-Research/grounding-dino-tiny",
4
+ "activation_dropout": 0.0,
5
+ "activation_function": "relu",
6
+ "architectures": [
7
+ "GroundingDinoForObjectDetection"
8
+ ],
9
+ "attention_dropout": 0.0,
10
+ "auxiliary_loss": false,
11
+ "backbone": null,
12
+ "backbone_config": {
13
+ "model_type": "swin",
14
+ "out_features": [
15
+ "stage2",
16
+ "stage3",
17
+ "stage4"
18
  ],
19
+ "out_indices": [
20
+ 2,
21
+ 3,
22
+ 4
23
+ ]
24
+ },
25
+ "backbone_kwargs": null,
26
+ "bbox_cost": 5.0,
27
+ "bbox_loss_coefficient": 5.0,
28
+ "class_cost": 1.0,
29
+ "d_model": 256,
30
+ "decoder_attention_heads": 8,
31
+ "decoder_bbox_embed_share": true,
32
+ "decoder_ffn_dim": 2048,
33
+ "decoder_layers": 6,
34
+ "decoder_n_points": 4,
35
+ "disable_custom_kernels": false,
36
+ "dropout": 0.1,
37
+ "embedding_init_target": true,
38
+ "encoder_attention_heads": 8,
39
+ "encoder_ffn_dim": 2048,
40
+ "encoder_layers": 6,
41
+ "encoder_n_points": 4,
42
+ "focal_alpha": 0.25,
43
+ "fusion_dropout": 0.0,
44
+ "fusion_droppath": 0.1,
45
+ "giou_cost": 2.0,
46
+ "giou_loss_coefficient": 2.0,
47
+ "init_std": 0.02,
48
+ "is_encoder_decoder": true,
49
+ "layer_norm_eps": 1e-05,
50
+ "max_text_len": 256,
51
+ "model_type": "grounding-dino",
52
+ "num_feature_levels": 4,
53
+ "num_queries": 900,
54
+ "position_embedding_type": "sine",
55
+ "positional_embedding_temperature": 20,
56
+ "query_dim": 4,
57
+ "text_config": {
58
+ "model_type": "bert"
59
+ },
60
+ "text_enhancer_dropout": 0.0,
61
+ "torch_dtype": "float32",
62
+ "transformers_version": "4.47.1",
63
+ "two_stage": true,
64
+ "two_stage_bbox_embed_share": false,
65
+ "use_pretrained_backbone": false,
66
+ "use_timm_backbone": false
67
+ }