hf-transformers-bot commited on
Commit
e0b9cc4
·
verified ·
1 Parent(s): e1b5c66

Update tiny models for LwDetrForObjectDetection

Browse files
Files changed (3) hide show
  1. config.json +100 -0
  2. model.safetensors +3 -0
  3. preprocessor_config.json +25 -0
config.json ADDED
@@ -0,0 +1,100 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "activation_dropout": 0.0,
3
+ "activation_function": "silu",
4
+ "architectures": [
5
+ "LwDetrForObjectDetection"
6
+ ],
7
+ "attention_bias": true,
8
+ "attention_dropout": 0.0,
9
+ "auxiliary_loss": true,
10
+ "backbone_config": {
11
+ "cae_init_values": 0.1,
12
+ "dropout_prob": 0.0,
13
+ "hidden_act": "gelu",
14
+ "hidden_size": 16,
15
+ "image_size": 256,
16
+ "initializer_range": 0.02,
17
+ "layer_norm_eps": 1e-06,
18
+ "mlp_ratio": 4,
19
+ "model_type": "lw_detr_vit",
20
+ "num_attention_heads": 2,
21
+ "num_channels": 3,
22
+ "num_hidden_layers": 4,
23
+ "num_windows": 16,
24
+ "num_windows_side": 4,
25
+ "out_features": [
26
+ "stage1",
27
+ "stage3"
28
+ ],
29
+ "out_indices": [
30
+ 1,
31
+ 3
32
+ ],
33
+ "patch_size": 16,
34
+ "pretrain_image_size": 224,
35
+ "qkv_bias": true,
36
+ "stage_names": [
37
+ "stem",
38
+ "stage1",
39
+ "stage2",
40
+ "stage3",
41
+ "stage4"
42
+ ],
43
+ "use_absolute_position_embeddings": true,
44
+ "window_block_indices": [
45
+ 0,
46
+ 2
47
+ ]
48
+ },
49
+ "batch_norm_eps": 1e-05,
50
+ "bbox_cost": 5,
51
+ "bbox_loss_coefficient": 5,
52
+ "c2f_num_blocks": 3,
53
+ "class_cost": 2,
54
+ "class_loss_coefficient": 1,
55
+ "d_model": 32,
56
+ "decoder_activation_function": "relu",
57
+ "decoder_cross_attention_heads": 4,
58
+ "decoder_ffn_dim": 32,
59
+ "decoder_layers": 2,
60
+ "decoder_n_points": 4,
61
+ "decoder_self_attention_heads": 2,
62
+ "dice_loss_coefficient": 1,
63
+ "disable_custom_kernels": true,
64
+ "dropout": 0.0,
65
+ "dtype": "float32",
66
+ "eos_coefficient": 0.1,
67
+ "focal_alpha": 0.25,
68
+ "giou_cost": 2,
69
+ "giou_loss_coefficient": 2,
70
+ "group_detr": 2,
71
+ "hidden_expansion": 0.5,
72
+ "id2label": {
73
+ "0": "LABEL_0",
74
+ "1": "LABEL_1",
75
+ "2": "LABEL_2",
76
+ "3": "LABEL_3",
77
+ "4": "LABEL_4"
78
+ },
79
+ "init_std": 0.02,
80
+ "label2id": {
81
+ "LABEL_0": 0,
82
+ "LABEL_1": 1,
83
+ "LABEL_2": 2,
84
+ "LABEL_3": 3,
85
+ "LABEL_4": 4
86
+ },
87
+ "model_type": "lw_detr",
88
+ "num_feature_levels": 2,
89
+ "num_queries": 10,
90
+ "projector_in_channels": [
91
+ 32,
92
+ 32
93
+ ],
94
+ "projector_out_channels": 32,
95
+ "projector_scale_factors": [
96
+ 0.5,
97
+ 2.0
98
+ ],
99
+ "transformers_version": "5.16.0.dev0"
100
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d0cf94975ab29b837d6849df3c541de970efece7fd0aa990c4aacee8d08a5558
3
+ size 464324
preprocessor_config.json ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "do_convert_annotations": true,
3
+ "do_normalize": true,
4
+ "do_pad": true,
5
+ "do_rescale": true,
6
+ "do_resize": true,
7
+ "format": "coco_detection",
8
+ "image_mean": [
9
+ 0.485,
10
+ 0.456,
11
+ 0.406
12
+ ],
13
+ "image_processor_type": "DeformableDetrImageProcessor",
14
+ "image_std": [
15
+ 0.229,
16
+ 0.224,
17
+ 0.225
18
+ ],
19
+ "resample": 2,
20
+ "rescale_factor": 0.00392156862745098,
21
+ "size": {
22
+ "height": 640,
23
+ "width": 640
24
+ }
25
+ }