hf-transformers-bot commited on
Commit
8989530
·
verified ·
1 Parent(s): ac61b30

Update tiny models for GroundingDinoModel

Browse files
config.json ADDED
@@ -0,0 +1,118 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "activation_dropout": 0.0,
3
+ "activation_function": "relu",
4
+ "architectures": [
5
+ "GroundingDinoModel"
6
+ ],
7
+ "attention_dropout": 0.1,
8
+ "auxiliary_loss": false,
9
+ "backbone_config": {
10
+ "attention_probs_dropout_prob": 0.0,
11
+ "depths": [
12
+ 1,
13
+ 1,
14
+ 1,
15
+ 1
16
+ ],
17
+ "drop_path_rate": 0.1,
18
+ "embed_dim": 8,
19
+ "encoder_stride": 32,
20
+ "hidden_act": "gelu",
21
+ "hidden_dropout_prob": 0.0,
22
+ "hidden_size": 64,
23
+ "image_size": 128,
24
+ "initializer_range": 0.02,
25
+ "layer_norm_eps": 1e-05,
26
+ "mlp_ratio": 4.0,
27
+ "model_type": "swin",
28
+ "num_channels": 3,
29
+ "num_heads": [
30
+ 1,
31
+ 1,
32
+ 1,
33
+ 1
34
+ ],
35
+ "num_layers": 4,
36
+ "out_features": [
37
+ "stage2",
38
+ "stage3",
39
+ "stage4"
40
+ ],
41
+ "out_indices": [
42
+ 2,
43
+ 3,
44
+ 4
45
+ ],
46
+ "patch_size": 4,
47
+ "qkv_bias": true,
48
+ "stage_names": [
49
+ "stem",
50
+ "stage1",
51
+ "stage2",
52
+ "stage3",
53
+ "stage4"
54
+ ],
55
+ "use_absolute_embeddings": false,
56
+ "window_size": 7
57
+ },
58
+ "bbox_cost": 5.0,
59
+ "bbox_loss_coefficient": 5.0,
60
+ "class_cost": 1.0,
61
+ "d_model": 32,
62
+ "decoder_attention_heads": 4,
63
+ "decoder_bbox_embed_share": true,
64
+ "decoder_ffn_dim": 4,
65
+ "decoder_layers": 2,
66
+ "decoder_n_points": 6,
67
+ "disable_custom_kernels": false,
68
+ "dropout": 0.1,
69
+ "dtype": "float32",
70
+ "embedding_init_target": true,
71
+ "encoder_attention_heads": 4,
72
+ "encoder_ffn_dim": 4,
73
+ "encoder_layers": 2,
74
+ "encoder_n_points": 2,
75
+ "focal_alpha": 0.25,
76
+ "fusion_dropout": 0.0,
77
+ "fusion_droppath": 0.1,
78
+ "giou_cost": 2.0,
79
+ "giou_loss_coefficient": 2.0,
80
+ "init_std": 0.02,
81
+ "is_encoder_decoder": true,
82
+ "layer_norm_eps": 1e-05,
83
+ "max_text_len": 7,
84
+ "model_type": "grounding-dino",
85
+ "num_feature_levels": 4,
86
+ "num_queries": 2,
87
+ "position_embedding_type": "sine",
88
+ "positional_embedding_temperature": 20,
89
+ "query_dim": 4,
90
+ "text_config": {
91
+ "add_cross_attention": false,
92
+ "attention_probs_dropout_prob": 0.1,
93
+ "bos_token_id": null,
94
+ "classifier_dropout": null,
95
+ "eos_token_id": null,
96
+ "hidden_act": "gelu",
97
+ "hidden_dropout_prob": 0.1,
98
+ "hidden_size": 8,
99
+ "initializer_range": 0.02,
100
+ "intermediate_size": 8,
101
+ "is_decoder": false,
102
+ "layer_norm_eps": 1e-12,
103
+ "max_position_embeddings": 200,
104
+ "model_type": "bert",
105
+ "num_attention_heads": 2,
106
+ "num_hidden_layers": 2,
107
+ "pad_token_id": 0,
108
+ "tie_word_embeddings": true,
109
+ "type_vocab_size": 2,
110
+ "use_cache": true,
111
+ "vocab_size": 30522
112
+ },
113
+ "text_enhancer_dropout": 0.0,
114
+ "tie_word_embeddings": true,
115
+ "transformers_version": "5.16.0.dev0",
116
+ "two_stage": true,
117
+ "two_stage_bbox_embed_share": false
118
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f690783f685f060654bc87bdb070138a7310d6c9197c959eda19216417716343
3
+ size 1713936
preprocessor_config.json ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "do_convert_annotations": true,
3
+ "do_normalize": true,
4
+ "do_pad": true,
5
+ "do_rescale": true,
6
+ "do_resize": true,
7
+ "format": "coco_detection",
8
+ "image_mean": [
9
+ 0.485,
10
+ 0.456,
11
+ 0.406
12
+ ],
13
+ "image_processor_type": "GroundingDinoImageProcessor",
14
+ "image_std": [
15
+ 0.229,
16
+ 0.224,
17
+ 0.225
18
+ ],
19
+ "resample": 2,
20
+ "rescale_factor": 0.00392156862745098,
21
+ "size": {
22
+ "longest_edge": 1333,
23
+ "shortest_edge": 800
24
+ }
25
+ }
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "backend": "tokenizers",
3
+ "clean_up_tokenization_spaces": true,
4
+ "cls_token": "[CLS]",
5
+ "do_lower_case": true,
6
+ "is_local": true,
7
+ "local_files_only": false,
8
+ "mask_token": "[MASK]",
9
+ "model_max_length": 512,
10
+ "pad_token": "[PAD]",
11
+ "processor_class": "GroundingDinoProcessor",
12
+ "sep_token": "[SEP]",
13
+ "strip_accents": null,
14
+ "tokenize_chinese_chars": true,
15
+ "tokenizer_class": "BertTokenizer",
16
+ "unk_token": "[UNK]"
17
+ }