Upload DetrForObjectDetection
Browse files- config.json +105 -24
- model.safetensors +2 -2
config.json
CHANGED
@@ -1,17 +1,109 @@
|
|
1 |
{
|
2 |
-
"_name_or_path": "
|
3 |
"activation_dropout": 0.0,
|
4 |
"activation_function": "relu",
|
5 |
"architectures": [
|
6 |
-
"
|
7 |
],
|
8 |
"attention_dropout": 0.0,
|
9 |
"auxiliary_loss": false,
|
10 |
-
"backbone":
|
11 |
-
"backbone_config":
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
12 |
"bbox_cost": 5,
|
13 |
"bbox_loss_coefficient": 5,
|
14 |
-
"ce_loss_coefficient": 1,
|
15 |
"class_cost": 1,
|
16 |
"d_model": 256,
|
17 |
"decoder_attention_heads": 8,
|
@@ -19,44 +111,33 @@
|
|
19 |
"decoder_layerdrop": 0.0,
|
20 |
"decoder_layers": 6,
|
21 |
"dice_loss_coefficient": 1,
|
22 |
-
"dilation":
|
23 |
"dropout": 0.1,
|
24 |
"encoder_attention_heads": 8,
|
25 |
"encoder_ffn_dim": 2048,
|
26 |
"encoder_layerdrop": 0.0,
|
27 |
"encoder_layers": 6,
|
28 |
-
"eos_coefficient": 0.
|
29 |
"giou_cost": 2,
|
30 |
"giou_loss_coefficient": 2,
|
31 |
"id2label": {
|
32 |
-
"0": "
|
33 |
-
"1": "table column",
|
34 |
-
"2": "table row",
|
35 |
-
"3": "table column header",
|
36 |
-
"4": "table projected row header",
|
37 |
-
"5": "table spanning cell"
|
38 |
},
|
39 |
"init_std": 0.02,
|
40 |
"init_xavier_std": 1.0,
|
41 |
"is_encoder_decoder": true,
|
42 |
"label2id": {
|
43 |
-
"
|
44 |
-
"table column": 1,
|
45 |
-
"table column header": 3,
|
46 |
-
"table projected row header": 4,
|
47 |
-
"table row": 2,
|
48 |
-
"table spanning cell": 5
|
49 |
},
|
50 |
"mask_loss_coefficient": 1,
|
51 |
-
"
|
52 |
-
"model_type": "table-transformer",
|
53 |
"num_channels": 3,
|
54 |
"num_hidden_layers": 6,
|
55 |
-
"num_queries":
|
56 |
"position_embedding_type": "sine",
|
57 |
"scale_embedding": false,
|
58 |
"torch_dtype": "float32",
|
59 |
"transformers_version": "4.35.2",
|
60 |
-
"use_pretrained_backbone":
|
61 |
-
"use_timm_backbone":
|
62 |
}
|
|
|
1 |
{
|
2 |
+
"_name_or_path": "facebook/detr-resnet-50",
|
3 |
"activation_dropout": 0.0,
|
4 |
"activation_function": "relu",
|
5 |
"architectures": [
|
6 |
+
"DetrForObjectDetection"
|
7 |
],
|
8 |
"attention_dropout": 0.0,
|
9 |
"auxiliary_loss": false,
|
10 |
+
"backbone": null,
|
11 |
+
"backbone_config": {
|
12 |
+
"_name_or_path": "",
|
13 |
+
"add_cross_attention": false,
|
14 |
+
"architectures": null,
|
15 |
+
"bad_words_ids": null,
|
16 |
+
"begin_suppress_tokens": null,
|
17 |
+
"bos_token_id": null,
|
18 |
+
"chunk_size_feed_forward": 0,
|
19 |
+
"cross_attention_hidden_size": null,
|
20 |
+
"decoder_start_token_id": null,
|
21 |
+
"depths": [
|
22 |
+
3,
|
23 |
+
4,
|
24 |
+
6,
|
25 |
+
3
|
26 |
+
],
|
27 |
+
"diversity_penalty": 0.0,
|
28 |
+
"do_sample": false,
|
29 |
+
"downsample_in_bottleneck": false,
|
30 |
+
"downsample_in_first_stage": false,
|
31 |
+
"early_stopping": false,
|
32 |
+
"embedding_size": 64,
|
33 |
+
"encoder_no_repeat_ngram_size": 0,
|
34 |
+
"eos_token_id": null,
|
35 |
+
"exponential_decay_length_penalty": null,
|
36 |
+
"finetuning_task": null,
|
37 |
+
"forced_bos_token_id": null,
|
38 |
+
"forced_eos_token_id": null,
|
39 |
+
"hidden_act": "relu",
|
40 |
+
"hidden_sizes": [
|
41 |
+
256,
|
42 |
+
512,
|
43 |
+
1024,
|
44 |
+
2048
|
45 |
+
],
|
46 |
+
"id2label": {
|
47 |
+
"0": "LABEL_0",
|
48 |
+
"1": "LABEL_1"
|
49 |
+
},
|
50 |
+
"is_decoder": false,
|
51 |
+
"is_encoder_decoder": false,
|
52 |
+
"label2id": {
|
53 |
+
"LABEL_0": 0,
|
54 |
+
"LABEL_1": 1
|
55 |
+
},
|
56 |
+
"layer_type": "bottleneck",
|
57 |
+
"length_penalty": 1.0,
|
58 |
+
"max_length": 20,
|
59 |
+
"min_length": 0,
|
60 |
+
"model_type": "resnet",
|
61 |
+
"no_repeat_ngram_size": 0,
|
62 |
+
"num_beam_groups": 1,
|
63 |
+
"num_beams": 1,
|
64 |
+
"num_channels": 3,
|
65 |
+
"num_return_sequences": 1,
|
66 |
+
"out_features": [
|
67 |
+
"stage4"
|
68 |
+
],
|
69 |
+
"out_indices": [
|
70 |
+
4
|
71 |
+
],
|
72 |
+
"output_attentions": false,
|
73 |
+
"output_hidden_states": false,
|
74 |
+
"output_scores": false,
|
75 |
+
"pad_token_id": null,
|
76 |
+
"prefix": null,
|
77 |
+
"problem_type": null,
|
78 |
+
"pruned_heads": {},
|
79 |
+
"remove_invalid_values": false,
|
80 |
+
"repetition_penalty": 1.0,
|
81 |
+
"return_dict": true,
|
82 |
+
"return_dict_in_generate": false,
|
83 |
+
"sep_token_id": null,
|
84 |
+
"stage_names": [
|
85 |
+
"stem",
|
86 |
+
"stage1",
|
87 |
+
"stage2",
|
88 |
+
"stage3",
|
89 |
+
"stage4"
|
90 |
+
],
|
91 |
+
"suppress_tokens": null,
|
92 |
+
"task_specific_params": null,
|
93 |
+
"temperature": 1.0,
|
94 |
+
"tf_legacy_loss": false,
|
95 |
+
"tie_encoder_decoder": false,
|
96 |
+
"tie_word_embeddings": true,
|
97 |
+
"tokenizer_class": null,
|
98 |
+
"top_k": 50,
|
99 |
+
"top_p": 1.0,
|
100 |
+
"torch_dtype": null,
|
101 |
+
"torchscript": false,
|
102 |
+
"typical_p": 1.0,
|
103 |
+
"use_bfloat16": false
|
104 |
+
},
|
105 |
"bbox_cost": 5,
|
106 |
"bbox_loss_coefficient": 5,
|
|
|
107 |
"class_cost": 1,
|
108 |
"d_model": 256,
|
109 |
"decoder_attention_heads": 8,
|
|
|
111 |
"decoder_layerdrop": 0.0,
|
112 |
"decoder_layers": 6,
|
113 |
"dice_loss_coefficient": 1,
|
114 |
+
"dilation": null,
|
115 |
"dropout": 0.1,
|
116 |
"encoder_attention_heads": 8,
|
117 |
"encoder_ffn_dim": 2048,
|
118 |
"encoder_layerdrop": 0.0,
|
119 |
"encoder_layers": 6,
|
120 |
+
"eos_coefficient": 0.1,
|
121 |
"giou_cost": 2,
|
122 |
"giou_loss_coefficient": 2,
|
123 |
"id2label": {
|
124 |
+
"0": "LABEL_0"
|
|
|
|
|
|
|
|
|
|
|
125 |
},
|
126 |
"init_std": 0.02,
|
127 |
"init_xavier_std": 1.0,
|
128 |
"is_encoder_decoder": true,
|
129 |
"label2id": {
|
130 |
+
"LABEL_0": 0
|
|
|
|
|
|
|
|
|
|
|
131 |
},
|
132 |
"mask_loss_coefficient": 1,
|
133 |
+
"model_type": "detr",
|
|
|
134 |
"num_channels": 3,
|
135 |
"num_hidden_layers": 6,
|
136 |
+
"num_queries": 100,
|
137 |
"position_embedding_type": "sine",
|
138 |
"scale_embedding": false,
|
139 |
"torch_dtype": "float32",
|
140 |
"transformers_version": "4.35.2",
|
141 |
+
"use_pretrained_backbone": null,
|
142 |
+
"use_timm_backbone": false
|
143 |
}
|
model.safetensors
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:2bb4f7e3fb790fd5ca3ad64cd11218a0df975b2316edf547486cd58afcb2d1eb
|
3 |
+
size 166503728
|