add groundingdino used for segmentation
Browse files- grounding-dino-base/config.json +61 -0
- grounding-dino-base/model.safetensors +3 -0
- grounding-dino-base/preprocessor_config.json +17 -0
- grounding-dino-base/special_tokens_map.json +7 -0
- grounding-dino-base/tokenizer.json +0 -0
- grounding-dino-base/tokenizer_config.json +56 -0
- grounding-dino-base/vocab.txt +0 -0
grounding-dino-base/config.json
ADDED
@@ -0,0 +1,61 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"activation_dropout": 0.0,
|
3 |
+
"activation_function": "relu",
|
4 |
+
"architectures": ["GroundingDinoForObjectDetection"],
|
5 |
+
"attention_dropout": 0.0,
|
6 |
+
"auxiliary_loss": false,
|
7 |
+
"backbone": null,
|
8 |
+
"backbone_config": {
|
9 |
+
"depths": [2, 2, 18, 2],
|
10 |
+
"embed_dim": 128,
|
11 |
+
"hidden_size": 1024,
|
12 |
+
"image_size": 384,
|
13 |
+
"model_type": "swin",
|
14 |
+
"num_heads": [4, 8, 16, 32],
|
15 |
+
"out_features": ["stage2", "stage3", "stage4"],
|
16 |
+
"out_indices": [2, 3, 4],
|
17 |
+
"window_size": 12
|
18 |
+
},
|
19 |
+
"backbone_kwargs": null,
|
20 |
+
"bbox_cost": 5.0,
|
21 |
+
"bbox_loss_coefficient": 5.0,
|
22 |
+
"class_cost": 1.0,
|
23 |
+
"d_model": 256,
|
24 |
+
"decoder_attention_heads": 8,
|
25 |
+
"decoder_bbox_embed_share": true,
|
26 |
+
"decoder_ffn_dim": 2048,
|
27 |
+
"decoder_layers": 6,
|
28 |
+
"decoder_n_points": 4,
|
29 |
+
"disable_custom_kernels": false,
|
30 |
+
"dropout": 0.1,
|
31 |
+
"embedding_init_target": true,
|
32 |
+
"encoder_attention_heads": 8,
|
33 |
+
"encoder_ffn_dim": 2048,
|
34 |
+
"encoder_layers": 6,
|
35 |
+
"encoder_n_points": 4,
|
36 |
+
"focal_alpha": 0.25,
|
37 |
+
"fusion_dropout": 0.0,
|
38 |
+
"fusion_droppath": 0.1,
|
39 |
+
"giou_cost": 2.0,
|
40 |
+
"giou_loss_coefficient": 2.0,
|
41 |
+
"init_std": 0.02,
|
42 |
+
"is_encoder_decoder": true,
|
43 |
+
"layer_norm_eps": 1e-5,
|
44 |
+
"max_text_len": 256,
|
45 |
+
"model_type": "grounding-dino",
|
46 |
+
"num_feature_levels": 4,
|
47 |
+
"num_queries": 900,
|
48 |
+
"position_embedding_type": "sine",
|
49 |
+
"positional_embedding_temperature": 20,
|
50 |
+
"query_dim": 4,
|
51 |
+
"text_config": {
|
52 |
+
"model_type": "bert"
|
53 |
+
},
|
54 |
+
"text_enhancer_dropout": 0.0,
|
55 |
+
"torch_dtype": "float32",
|
56 |
+
"transformers_version": "4.40.0.dev0",
|
57 |
+
"two_stage": true,
|
58 |
+
"two_stage_bbox_embed_share": false,
|
59 |
+
"use_pretrained_backbone": false,
|
60 |
+
"use_timm_backbone": false
|
61 |
+
}
|
grounding-dino-base/model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:5548f844c928c4b6f411fa8cbcc2bfa8dbbba437cb1d513975519f93c2a9ed21
|
3 |
+
size 933400872
|
grounding-dino-base/preprocessor_config.json
ADDED
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"do_normalize": true,
|
3 |
+
"do_pad": true,
|
4 |
+
"do_rescale": true,
|
5 |
+
"do_resize": true,
|
6 |
+
"format": "coco_detection",
|
7 |
+
"image_mean": [0.485, 0.456, 0.406],
|
8 |
+
"image_processor_type": "GroundingDinoImageProcessor",
|
9 |
+
"image_std": [0.229, 0.224, 0.225],
|
10 |
+
"processor_class": "GroundingDinoProcessor",
|
11 |
+
"resample": 2,
|
12 |
+
"rescale_factor": 0.00392156862745098,
|
13 |
+
"size": {
|
14 |
+
"longest_edge": 1333,
|
15 |
+
"shortest_edge": 800
|
16 |
+
}
|
17 |
+
}
|
grounding-dino-base/special_tokens_map.json
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"cls_token": "[CLS]",
|
3 |
+
"mask_token": "[MASK]",
|
4 |
+
"pad_token": "[PAD]",
|
5 |
+
"sep_token": "[SEP]",
|
6 |
+
"unk_token": "[UNK]"
|
7 |
+
}
|
grounding-dino-base/tokenizer.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|
grounding-dino-base/tokenizer_config.json
ADDED
@@ -0,0 +1,56 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"added_tokens_decoder": {
|
3 |
+
"0": {
|
4 |
+
"content": "[PAD]",
|
5 |
+
"lstrip": false,
|
6 |
+
"normalized": false,
|
7 |
+
"rstrip": false,
|
8 |
+
"single_word": false,
|
9 |
+
"special": true
|
10 |
+
},
|
11 |
+
"100": {
|
12 |
+
"content": "[UNK]",
|
13 |
+
"lstrip": false,
|
14 |
+
"normalized": false,
|
15 |
+
"rstrip": false,
|
16 |
+
"single_word": false,
|
17 |
+
"special": true
|
18 |
+
},
|
19 |
+
"101": {
|
20 |
+
"content": "[CLS]",
|
21 |
+
"lstrip": false,
|
22 |
+
"normalized": false,
|
23 |
+
"rstrip": false,
|
24 |
+
"single_word": false,
|
25 |
+
"special": true
|
26 |
+
},
|
27 |
+
"102": {
|
28 |
+
"content": "[SEP]",
|
29 |
+
"lstrip": false,
|
30 |
+
"normalized": false,
|
31 |
+
"rstrip": false,
|
32 |
+
"single_word": false,
|
33 |
+
"special": true
|
34 |
+
},
|
35 |
+
"103": {
|
36 |
+
"content": "[MASK]",
|
37 |
+
"lstrip": false,
|
38 |
+
"normalized": false,
|
39 |
+
"rstrip": false,
|
40 |
+
"single_word": false,
|
41 |
+
"special": true
|
42 |
+
}
|
43 |
+
},
|
44 |
+
"clean_up_tokenization_spaces": true,
|
45 |
+
"cls_token": "[CLS]",
|
46 |
+
"do_lower_case": true,
|
47 |
+
"mask_token": "[MASK]",
|
48 |
+
"model_max_length": 512,
|
49 |
+
"pad_token": "[PAD]",
|
50 |
+
"processor_class": "GroundingDinoProcessor",
|
51 |
+
"sep_token": "[SEP]",
|
52 |
+
"strip_accents": null,
|
53 |
+
"tokenize_chinese_chars": true,
|
54 |
+
"tokenizer_class": "BertTokenizer",
|
55 |
+
"unk_token": "[UNK]"
|
56 |
+
}
|
grounding-dino-base/vocab.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|