davanstrien HF Staff commited on
Commit
f8432cb
·
verified ·
1 Parent(s): 9f4093e

fine-tuned DETR on loc_beyond_words

Browse files
Files changed (3) hide show
  1. config.json +87 -0
  2. model.safetensors +3 -0
  3. preprocessor_config.json +26 -0
config.json ADDED
@@ -0,0 +1,87 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "activation_dropout": 0.0,
3
+ "activation_function": "relu",
4
+ "architectures": [
5
+ "DetrForObjectDetection"
6
+ ],
7
+ "attention_dropout": 0.0,
8
+ "auxiliary_loss": false,
9
+ "backbone_config": {
10
+ "backbone": "resnet50",
11
+ "dtype": "float32",
12
+ "features_only": true,
13
+ "freeze_batch_norm_2d": false,
14
+ "model_type": "timm_backbone",
15
+ "num_channels": 3,
16
+ "out_features": [
17
+ "layer1",
18
+ "layer2",
19
+ "layer3",
20
+ "layer4"
21
+ ],
22
+ "out_indices": [
23
+ 1,
24
+ 2,
25
+ 3,
26
+ 4
27
+ ],
28
+ "output_stride": null,
29
+ "stage_names": [
30
+ "act1",
31
+ "layer1",
32
+ "layer2",
33
+ "layer3",
34
+ "layer4"
35
+ ],
36
+ "use_pretrained_backbone": false
37
+ },
38
+ "bbox_cost": 5,
39
+ "bbox_loss_coefficient": 5,
40
+ "class_cost": 1,
41
+ "classifier_dropout": 0.0,
42
+ "d_model": 256,
43
+ "decoder_attention_heads": 8,
44
+ "decoder_ffn_dim": 2048,
45
+ "decoder_layerdrop": 0.0,
46
+ "decoder_layers": 6,
47
+ "dice_loss_coefficient": 1,
48
+ "dilation": false,
49
+ "dropout": 0.1,
50
+ "dtype": "float32",
51
+ "encoder_attention_heads": 8,
52
+ "encoder_ffn_dim": 2048,
53
+ "encoder_layerdrop": 0.0,
54
+ "encoder_layers": 6,
55
+ "eos_coefficient": 0.1,
56
+ "giou_cost": 2,
57
+ "giou_loss_coefficient": 2,
58
+ "id2label": {
59
+ "0": "Photograph",
60
+ "1": "Illustration",
61
+ "2": "Map",
62
+ "3": "Comics/Cartoon",
63
+ "4": "Editorial Cartoon",
64
+ "5": "Headline",
65
+ "6": "Advertisement"
66
+ },
67
+ "init_std": 0.02,
68
+ "init_xavier_std": 1.0,
69
+ "is_encoder_decoder": true,
70
+ "label2id": {
71
+ "Advertisement": 6,
72
+ "Comics/Cartoon": 3,
73
+ "Editorial Cartoon": 4,
74
+ "Headline": 5,
75
+ "Illustration": 1,
76
+ "Map": 2,
77
+ "Photograph": 0
78
+ },
79
+ "mask_loss_coefficient": 1,
80
+ "max_position_embeddings": 1024,
81
+ "model_type": "detr",
82
+ "num_channels": 3,
83
+ "num_queries": 100,
84
+ "position_embedding_type": "sine",
85
+ "scale_embedding": false,
86
+ "transformers_version": "5.14.1"
87
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8c8eda6d400c953831d35f5c2c1d95fbc10bf5933150bcf16923c072f2571a16
3
+ size 166500992
preprocessor_config.json ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "do_convert_annotations": true,
3
+ "do_normalize": true,
4
+ "do_pad": true,
5
+ "do_rescale": true,
6
+ "do_rescale_deprecated": false,
7
+ "do_resize": true,
8
+ "format": "coco_detection",
9
+ "image_mean": [
10
+ 0.485,
11
+ 0.456,
12
+ 0.406
13
+ ],
14
+ "image_processor_type": "DetrImageProcessor",
15
+ "image_std": [
16
+ 0.229,
17
+ 0.224,
18
+ 0.225
19
+ ],
20
+ "resample": 2,
21
+ "rescale_factor": 0.00392156862745098,
22
+ "size": {
23
+ "longest_edge": 800,
24
+ "shortest_edge": 560
25
+ }
26
+ }