dani880 commited on
Commit
ed8baca
1 Parent(s): 72db85c

Upload DetaForObjectDetection

Browse files
Files changed (2) hide show
  1. config.json +185 -0
  2. pytorch_model.bin +3 -0
config.json ADDED
@@ -0,0 +1,185 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_commit_hash": "001b61f1d9f57e81b15715faf5e76a04397c8cf1",
3
+ "_name_or_path": "jozhang97/deta-swin-large",
4
+ "activation_dropout": 0.0,
5
+ "activation_function": "relu",
6
+ "architectures": [
7
+ "DetaForObjectDetection"
8
+ ],
9
+ "assign_first_stage": true,
10
+ "attention_dropout": 0.0,
11
+ "auxiliary_loss": false,
12
+ "backbone_config": {
13
+ "_name_or_path": "",
14
+ "add_cross_attention": false,
15
+ "architectures": null,
16
+ "attention_probs_dropout_prob": 0.0,
17
+ "bad_words_ids": null,
18
+ "begin_suppress_tokens": null,
19
+ "bos_token_id": null,
20
+ "chunk_size_feed_forward": 0,
21
+ "cross_attention_hidden_size": null,
22
+ "decoder_start_token_id": null,
23
+ "depths": [
24
+ 2,
25
+ 2,
26
+ 18,
27
+ 2
28
+ ],
29
+ "diversity_penalty": 0.0,
30
+ "do_sample": false,
31
+ "drop_path_rate": 0.1,
32
+ "early_stopping": false,
33
+ "embed_dim": 192,
34
+ "encoder_no_repeat_ngram_size": 0,
35
+ "encoder_stride": 32,
36
+ "eos_token_id": null,
37
+ "exponential_decay_length_penalty": null,
38
+ "finetuning_task": null,
39
+ "forced_bos_token_id": null,
40
+ "forced_eos_token_id": null,
41
+ "hidden_act": "gelu",
42
+ "hidden_dropout_prob": 0.0,
43
+ "hidden_size": 1536,
44
+ "id2label": {
45
+ "0": "LABEL_0",
46
+ "1": "LABEL_1"
47
+ },
48
+ "image_size": 224,
49
+ "initializer_range": 0.02,
50
+ "is_decoder": false,
51
+ "is_encoder_decoder": false,
52
+ "label2id": {
53
+ "LABEL_0": 0,
54
+ "LABEL_1": 1
55
+ },
56
+ "layer_norm_eps": 1e-05,
57
+ "length_penalty": 1.0,
58
+ "max_length": 20,
59
+ "min_length": 0,
60
+ "mlp_ratio": 4.0,
61
+ "model_type": "swin",
62
+ "no_repeat_ngram_size": 0,
63
+ "num_beam_groups": 1,
64
+ "num_beams": 1,
65
+ "num_channels": 3,
66
+ "num_heads": [
67
+ 6,
68
+ 12,
69
+ 24,
70
+ 48
71
+ ],
72
+ "num_layers": 4,
73
+ "num_return_sequences": 1,
74
+ "out_features": [
75
+ "stage2",
76
+ "stage3",
77
+ "stage4"
78
+ ],
79
+ "out_indices": [
80
+ 2,
81
+ 3,
82
+ 4
83
+ ],
84
+ "output_attentions": false,
85
+ "output_hidden_states": false,
86
+ "output_scores": false,
87
+ "pad_token_id": null,
88
+ "patch_size": 4,
89
+ "path_norm": true,
90
+ "prefix": null,
91
+ "problem_type": null,
92
+ "pruned_heads": {},
93
+ "qkv_bias": true,
94
+ "remove_invalid_values": false,
95
+ "repetition_penalty": 1.0,
96
+ "return_dict": true,
97
+ "return_dict_in_generate": false,
98
+ "sep_token_id": null,
99
+ "stage_names": [
100
+ "stem",
101
+ "stage1",
102
+ "stage2",
103
+ "stage3",
104
+ "stage4"
105
+ ],
106
+ "suppress_tokens": null,
107
+ "task_specific_params": null,
108
+ "temperature": 1.0,
109
+ "tf_legacy_loss": false,
110
+ "tie_encoder_decoder": false,
111
+ "tie_word_embeddings": true,
112
+ "tokenizer_class": null,
113
+ "top_k": 50,
114
+ "top_p": 1.0,
115
+ "torch_dtype": null,
116
+ "torchscript": false,
117
+ "transformers_version": "4.31.0.dev0",
118
+ "typical_p": 1.0,
119
+ "use_absolute_embeddings": false,
120
+ "use_bfloat16": false,
121
+ "window_size": 12
122
+ },
123
+ "bbox_cost": 5,
124
+ "bbox_loss_coefficient": 5,
125
+ "class_cost": 1,
126
+ "d_model": 256,
127
+ "decoder_attention_heads": 8,
128
+ "decoder_ffn_dim": 2048,
129
+ "decoder_layerdrop": 0.0,
130
+ "decoder_layers": 6,
131
+ "decoder_n_points": 4,
132
+ "dice_loss_coefficient": 1,
133
+ "dropout": 0.1,
134
+ "encoder_attention_heads": 8,
135
+ "encoder_ffn_dim": 2048,
136
+ "encoder_layerdrop": 0.0,
137
+ "encoder_layers": 6,
138
+ "encoder_n_points": 4,
139
+ "eos_coefficient": 0.1,
140
+ "focal_alpha": 0.25,
141
+ "giou_cost": 2,
142
+ "giou_loss_coefficient": 2,
143
+ "id2label": {
144
+ "0": "LABEL_0",
145
+ "1": "LABEL_1",
146
+ "2": "LABEL_2",
147
+ "3": "LABEL_3",
148
+ "4": "LABEL_4",
149
+ "5": "LABEL_5",
150
+ "6": "LABEL_6",
151
+ "7": "LABEL_7",
152
+ "8": "LABEL_8",
153
+ "9": "LABEL_9",
154
+ "10": "LABEL_10",
155
+ "11": "LABEL_11"
156
+ },
157
+ "init_std": 0.02,
158
+ "init_xavier_std": 1.0,
159
+ "is_encoder_decoder": true,
160
+ "label2id": {
161
+ "LABEL_0": 0,
162
+ "LABEL_1": 1,
163
+ "LABEL_10": 10,
164
+ "LABEL_11": 11,
165
+ "LABEL_2": 2,
166
+ "LABEL_3": 3,
167
+ "LABEL_4": 4,
168
+ "LABEL_5": 5,
169
+ "LABEL_6": 6,
170
+ "LABEL_7": 7,
171
+ "LABEL_8": 8,
172
+ "LABEL_9": 9
173
+ },
174
+ "mask_loss_coefficient": 1,
175
+ "max_position_embeddings": 2048,
176
+ "model_type": "deta",
177
+ "num_feature_levels": 5,
178
+ "num_queries": 900,
179
+ "position_embedding_type": "sine",
180
+ "torch_dtype": "float32",
181
+ "transformers_version": null,
182
+ "two_stage": true,
183
+ "two_stage_num_proposals": 300,
184
+ "with_box_refine": true
185
+ }
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:960d0ca92254942bef01aa8f84a66f53c2c6bedb721471730ca950cbfca9d6ae
3
+ size 878789869