Add model weights
Browse files- config.json +77 -0
- model.safetensors +3 -0
- preprocessor_config.json +18 -0
config.json
ADDED
@@ -0,0 +1,77 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"activation_dropout": 0.0,
|
3 |
+
"activation_function": "relu",
|
4 |
+
"architectures": [
|
5 |
+
"DeformableDetrForObjectDetection"
|
6 |
+
],
|
7 |
+
"attention_dropout": 0.0,
|
8 |
+
"auxiliary_loss": false,
|
9 |
+
"backbone": "resnet50",
|
10 |
+
"backbone_config": null,
|
11 |
+
"bbox_cost": 5,
|
12 |
+
"bbox_loss_coefficient": 5,
|
13 |
+
"class_cost": 1,
|
14 |
+
"d_model": 256,
|
15 |
+
"decoder_attention_heads": 8,
|
16 |
+
"decoder_ffn_dim": 1024,
|
17 |
+
"decoder_layers": 6,
|
18 |
+
"decoder_n_points": 4,
|
19 |
+
"dice_loss_coefficient": 1,
|
20 |
+
"dilation": false,
|
21 |
+
"disable_custom_kernels": false,
|
22 |
+
"dropout": 0.1,
|
23 |
+
"encoder_attention_heads": 8,
|
24 |
+
"encoder_ffn_dim": 1024,
|
25 |
+
"encoder_layerdrop": 0.0,
|
26 |
+
"encoder_layers": 6,
|
27 |
+
"encoder_n_points": 4,
|
28 |
+
"eos_coefficient": 0.1,
|
29 |
+
"focal_alpha": 0.25,
|
30 |
+
"giou_cost": 2,
|
31 |
+
"giou_loss_coefficient": 2,
|
32 |
+
"id2label": {
|
33 |
+
"0": "N/A",
|
34 |
+
"1": "Caption",
|
35 |
+
"10": "Text",
|
36 |
+
"11": "Title",
|
37 |
+
"2": "Footnote",
|
38 |
+
"3": "Formula",
|
39 |
+
"4": "List-item",
|
40 |
+
"5": "Page-footer",
|
41 |
+
"6": "Page-header",
|
42 |
+
"7": "Picture",
|
43 |
+
"8": "Section-header",
|
44 |
+
"9": "Table"
|
45 |
+
},
|
46 |
+
"init_std": 0.02,
|
47 |
+
"init_xavier_std": 1.0,
|
48 |
+
"is_encoder_decoder": true,
|
49 |
+
"label2id": {
|
50 |
+
"Caption": 1,
|
51 |
+
"Footnote": 2,
|
52 |
+
"Formula": 3,
|
53 |
+
"List-item": 4,
|
54 |
+
"N/A": 0,
|
55 |
+
"Page-footer": 5,
|
56 |
+
"Page-header": 6,
|
57 |
+
"Picture": 7,
|
58 |
+
"Section-header": 8,
|
59 |
+
"Table": 9,
|
60 |
+
"Text": 10,
|
61 |
+
"Title": 11
|
62 |
+
},
|
63 |
+
"mask_loss_coefficient": 1,
|
64 |
+
"max_position_embeddings": 1024,
|
65 |
+
"model_type": "deformable_detr",
|
66 |
+
"num_channels": 3,
|
67 |
+
"num_feature_levels": 4,
|
68 |
+
"num_queries": 200,
|
69 |
+
"position_embedding_type": "sine",
|
70 |
+
"torch_dtype": "float32",
|
71 |
+
"transformers_version": "4.36.2",
|
72 |
+
"two_stage": true,
|
73 |
+
"two_stage_num_proposals": 200,
|
74 |
+
"use_pretrained_backbone": true,
|
75 |
+
"use_timm_backbone": "SenseTime/deformable-detr-with-box-refine-two-stage",
|
76 |
+
"with_box_refine": true
|
77 |
+
}
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:e3861d34685d3b36e5f38370597daf98fb2f98a852cfa5c125035057ded06809
|
3 |
+
size 164653696
|
preprocessor_config.json
ADDED
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"do_normalize": true,
|
3 |
+
"do_resize": true,
|
4 |
+
"image_processor_type": "DeformableDetrImageProcessor",
|
5 |
+
"format": "coco_detection",
|
6 |
+
"image_mean": [
|
7 |
+
0.0,
|
8 |
+
0.0,
|
9 |
+
0.0
|
10 |
+
],
|
11 |
+
"image_std": [
|
12 |
+
1.0,
|
13 |
+
1.0,
|
14 |
+
1.0
|
15 |
+
],
|
16 |
+
"max_size": 1333,
|
17 |
+
"size": 800
|
18 |
+
}
|