ashercn97 commited on
Commit
dd068c7
·
verified ·
1 Parent(s): 42efbf6

ashercn97/face-det-v1

Browse files
Files changed (5) hide show
  1. README.md +57 -0
  2. config.json +186 -0
  3. model.safetensors +3 -0
  4. preprocessor_config.json +35 -0
  5. training_args.bin +3 -0
README.md ADDED
@@ -0,0 +1,57 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: transformers
3
+ license: apache-2.0
4
+ base_model: ustc-community/dfine-nano-coco
5
+ tags:
6
+ - generated_from_trainer
7
+ model-index:
8
+ - name: d-fine-m-cppe5-finetune-3
9
+ results: []
10
+ ---
11
+
12
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
13
+ should probably proofread and complete it, then remove this comment. -->
14
+
15
+ # d-fine-m-cppe5-finetune-3
16
+
17
+ This model is a fine-tuned version of [ustc-community/dfine-nano-coco](https://huggingface.co/ustc-community/dfine-nano-coco) on an unknown dataset.
18
+ It achieves the following results on the evaluation set:
19
+ - eval_loss: 1.7779
20
+ - eval_runtime: 4.1804
21
+ - eval_samples_per_second: 154.053
22
+ - eval_steps_per_second: 19.376
23
+ - epoch: 7.8431
24
+ - step: 12000
25
+
26
+ ## Model description
27
+
28
+ More information needed
29
+
30
+ ## Intended uses & limitations
31
+
32
+ More information needed
33
+
34
+ ## Training and evaluation data
35
+
36
+ More information needed
37
+
38
+ ## Training procedure
39
+
40
+ ### Training hyperparameters
41
+
42
+ The following hyperparameters were used during training:
43
+ - learning_rate: 2e-05
44
+ - train_batch_size: 8
45
+ - eval_batch_size: 8
46
+ - seed: 42
47
+ - optimizer: Use adamw_torch with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
48
+ - lr_scheduler_type: cosine
49
+ - lr_scheduler_warmup_steps: 300
50
+ - num_epochs: 30
51
+
52
+ ### Framework versions
53
+
54
+ - Transformers 4.52.0.dev0
55
+ - Pytorch 2.6.0
56
+ - Datasets 3.6.0
57
+ - Tokenizers 0.21.1
config.json ADDED
@@ -0,0 +1,186 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "activation_dropout": 0.0,
3
+ "activation_function": "silu",
4
+ "anchor_image_size": null,
5
+ "architectures": [
6
+ "DFineForObjectDetection"
7
+ ],
8
+ "attention_dropout": 0.0,
9
+ "auxiliary_loss": true,
10
+ "backbone": null,
11
+ "backbone_config": {
12
+ "depths": [
13
+ 3,
14
+ 4,
15
+ 6,
16
+ 3
17
+ ],
18
+ "downsample_in_bottleneck": false,
19
+ "downsample_in_first_stage": false,
20
+ "embedding_size": 32,
21
+ "hidden_act": "relu",
22
+ "hidden_sizes": [
23
+ 128,
24
+ 256,
25
+ 512,
26
+ 1024
27
+ ],
28
+ "initializer_range": 0.02,
29
+ "layer_type": "basic",
30
+ "model_type": "hgnet_v2",
31
+ "num_channels": 3,
32
+ "out_features": [
33
+ "stage3",
34
+ "stage4"
35
+ ],
36
+ "out_indices": [
37
+ 3,
38
+ 4
39
+ ],
40
+ "stage_downsample": [
41
+ false,
42
+ true,
43
+ true,
44
+ true
45
+ ],
46
+ "stage_in_channels": [
47
+ 16,
48
+ 64,
49
+ 256,
50
+ 512
51
+ ],
52
+ "stage_kernel_size": [
53
+ 3,
54
+ 3,
55
+ 5,
56
+ 5
57
+ ],
58
+ "stage_light_block": [
59
+ false,
60
+ false,
61
+ true,
62
+ true
63
+ ],
64
+ "stage_mid_channels": [
65
+ 16,
66
+ 32,
67
+ 64,
68
+ 128
69
+ ],
70
+ "stage_names": [
71
+ "stem",
72
+ "stage1",
73
+ "stage2",
74
+ "stage3",
75
+ "stage4"
76
+ ],
77
+ "stage_num_blocks": [
78
+ 1,
79
+ 1,
80
+ 2,
81
+ 1
82
+ ],
83
+ "stage_numb_of_layers": [
84
+ 3,
85
+ 3,
86
+ 3,
87
+ 3
88
+ ],
89
+ "stage_out_channels": [
90
+ 64,
91
+ 256,
92
+ 512,
93
+ 1024
94
+ ],
95
+ "stem_channels": [
96
+ 3,
97
+ 16,
98
+ 16
99
+ ],
100
+ "use_learnable_affine_block": true
101
+ },
102
+ "backbone_kwargs": null,
103
+ "batch_norm_eps": 1e-05,
104
+ "box_noise_scale": 1.0,
105
+ "d_model": 128,
106
+ "decoder_activation_function": "relu",
107
+ "decoder_attention_heads": 8,
108
+ "decoder_ffn_dim": 512,
109
+ "decoder_in_channels": [
110
+ 128,
111
+ 128
112
+ ],
113
+ "decoder_layers": 3,
114
+ "decoder_method": "default",
115
+ "decoder_n_points": [
116
+ 6,
117
+ 6
118
+ ],
119
+ "decoder_offset_scale": 0.5,
120
+ "depth_mult": 0.5,
121
+ "dropout": 0.0,
122
+ "encode_proj_layers": [
123
+ 1
124
+ ],
125
+ "encoder_activation_function": "gelu",
126
+ "encoder_attention_heads": 8,
127
+ "encoder_ffn_dim": 512,
128
+ "encoder_hidden_dim": 128,
129
+ "encoder_in_channels": [
130
+ 512,
131
+ 1024
132
+ ],
133
+ "encoder_layers": 1,
134
+ "eos_coefficient": 0.0001,
135
+ "eval_idx": -1,
136
+ "eval_size": null,
137
+ "feat_strides": [
138
+ 16,
139
+ 32
140
+ ],
141
+ "focal_loss_alpha": 0.75,
142
+ "focal_loss_gamma": 2.0,
143
+ "freeze_backbone_batch_norms": true,
144
+ "hidden_expansion": 0.34,
145
+ "id2label": {
146
+ "0": "face"
147
+ },
148
+ "initializer_bias_prior_prob": null,
149
+ "initializer_range": 0.01,
150
+ "is_encoder_decoder": true,
151
+ "label2id": {
152
+ "face": 0
153
+ },
154
+ "label_noise_ratio": 0.5,
155
+ "layer_norm_eps": 1e-05,
156
+ "layer_scale": 1,
157
+ "learn_initial_query": false,
158
+ "lqe_hidden_dim": 64,
159
+ "lqe_layers": 2,
160
+ "matcher_alpha": 0.25,
161
+ "matcher_bbox_cost": 5.0,
162
+ "matcher_class_cost": 2.0,
163
+ "matcher_gamma": 2.0,
164
+ "matcher_giou_cost": 2.0,
165
+ "max_num_bins": 32,
166
+ "model_type": "d_fine",
167
+ "normalize_before": false,
168
+ "num_denoising": 100,
169
+ "num_feature_levels": 2,
170
+ "num_queries": 300,
171
+ "positional_encoding_temperature": 10000,
172
+ "reg_scale": 4.0,
173
+ "top_prob_values": 4,
174
+ "torch_dtype": "float32",
175
+ "transformers_version": "4.52.0.dev0",
176
+ "up": 0.5,
177
+ "use_focal_loss": true,
178
+ "use_pretrained_backbone": false,
179
+ "use_timm_backbone": false,
180
+ "weight_loss_bbox": 5.0,
181
+ "weight_loss_ddf": 1.5,
182
+ "weight_loss_fgl": 0.15,
183
+ "weight_loss_giou": 2.0,
184
+ "weight_loss_vfl": 1.0,
185
+ "with_box_refine": true
186
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7bc1bdb06da1f25633fae2b6607208e7c0e24e648212d0bb7c44a28bd545e022
3
+ size 15075476
preprocessor_config.json ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "crop_size": null,
3
+ "data_format": "channels_first",
4
+ "default_to_square": false,
5
+ "device": null,
6
+ "do_center_crop": null,
7
+ "do_convert_annotations": true,
8
+ "do_convert_rgb": null,
9
+ "do_normalize": false,
10
+ "do_pad": false,
11
+ "do_rescale": true,
12
+ "do_resize": true,
13
+ "format": "coco_detection",
14
+ "image_mean": [
15
+ 0.485,
16
+ 0.456,
17
+ 0.406
18
+ ],
19
+ "image_processor_type": "RTDetrImageProcessorFast",
20
+ "image_std": [
21
+ 0.229,
22
+ 0.224,
23
+ 0.225
24
+ ],
25
+ "input_data_format": null,
26
+ "pad_size": null,
27
+ "resample": 2,
28
+ "rescale_factor": 0.00392156862745098,
29
+ "return_segmentation_masks": null,
30
+ "return_tensors": null,
31
+ "size": {
32
+ "height": 640,
33
+ "width": 640
34
+ }
35
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b6faab4181747fe84f1ac5b46ba98978f0b602daa4a27665855f87bce9ef5c1e
3
+ size 5304