Godsonntungi2 commited on
Commit
c8d9c05
·
verified ·
1 Parent(s): cadd23a

Model save

Browse files
Files changed (5) hide show
  1. README.md +71 -0
  2. config.json +130 -0
  3. model.safetensors +3 -0
  4. preprocessor_config.json +26 -0
  5. training_args.bin +3 -0
README.md ADDED
@@ -0,0 +1,71 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: transformers
3
+ license: apache-2.0
4
+ base_model: PekingU/rtdetr_r50vd
5
+ tags:
6
+ - generated_from_trainer
7
+ model-index:
8
+ - name: rtdetr-cppe5-detection
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
+ # rtdetr-cppe5-detection
16
+
17
+ This model is a fine-tuned version of [PekingU/rtdetr_r50vd](https://huggingface.co/PekingU/rtdetr_r50vd) on an unknown dataset.
18
+ It achieves the following results on the evaluation set:
19
+ - Loss: 89.3171
20
+
21
+ ## Model description
22
+
23
+ More information needed
24
+
25
+ ## Intended uses & limitations
26
+
27
+ More information needed
28
+
29
+ ## Training and evaluation data
30
+
31
+ More information needed
32
+
33
+ ## Training procedure
34
+
35
+ ### Training hyperparameters
36
+
37
+ The following hyperparameters were used during training:
38
+ - learning_rate: 1e-05
39
+ - train_batch_size: 4
40
+ - eval_batch_size: 4
41
+ - seed: 42
42
+ - gradient_accumulation_steps: 4
43
+ - total_train_batch_size: 16
44
+ - optimizer: Use OptimizerNames.ADAMW_TORCH_FUSED with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
45
+ - lr_scheduler_type: cosine
46
+ - lr_scheduler_warmup_ratio: 0.1
47
+ - num_epochs: 10
48
+ - mixed_precision_training: Native AMP
49
+
50
+ ### Training results
51
+
52
+ | Training Loss | Epoch | Step | Validation Loss |
53
+ |:-------------:|:-----:|:----:|:---------------:|
54
+ | 237.8671 | 1.0 | 32 | 120.8588 |
55
+ | 160.6229 | 2.0 | 64 | 87.9866 |
56
+ | 123.3155 | 3.0 | 96 | 94.9977 |
57
+ | 116.224 | 4.0 | 128 | 94.1750 |
58
+ | 119.0437 | 5.0 | 160 | 96.6042 |
59
+ | 123.0258 | 6.0 | 192 | 95.5089 |
60
+ | 106.028 | 7.0 | 224 | 91.3961 |
61
+ | 104.9835 | 8.0 | 256 | 90.3529 |
62
+ | 103.8652 | 9.0 | 288 | 95.9664 |
63
+ | 107.2287 | 10.0 | 320 | 89.3171 |
64
+
65
+
66
+ ### Framework versions
67
+
68
+ - Transformers 4.57.3
69
+ - Pytorch 2.9.1+cu128
70
+ - Datasets 4.4.1
71
+ - Tokenizers 0.22.1
config.json ADDED
@@ -0,0 +1,130 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "activation_dropout": 0.0,
3
+ "activation_function": "silu",
4
+ "anchor_image_size": null,
5
+ "architectures": [
6
+ "RTDetrForObjectDetection"
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
+ "dtype": "float32",
21
+ "embedding_size": 64,
22
+ "hidden_act": "relu",
23
+ "hidden_sizes": [
24
+ 256,
25
+ 512,
26
+ 1024,
27
+ 2048
28
+ ],
29
+ "layer_type": "bottleneck",
30
+ "model_type": "rt_detr_resnet",
31
+ "num_channels": 3,
32
+ "out_features": [
33
+ "stage2",
34
+ "stage3",
35
+ "stage4"
36
+ ],
37
+ "out_indices": [
38
+ 2,
39
+ 3,
40
+ 4
41
+ ],
42
+ "stage_names": [
43
+ "stem",
44
+ "stage1",
45
+ "stage2",
46
+ "stage3",
47
+ "stage4"
48
+ ]
49
+ },
50
+ "backbone_kwargs": null,
51
+ "batch_norm_eps": 1e-05,
52
+ "box_noise_scale": 1.0,
53
+ "d_model": 256,
54
+ "decoder_activation_function": "relu",
55
+ "decoder_attention_heads": 8,
56
+ "decoder_ffn_dim": 1024,
57
+ "decoder_in_channels": [
58
+ 256,
59
+ 256,
60
+ 256
61
+ ],
62
+ "decoder_layers": 6,
63
+ "decoder_n_points": 4,
64
+ "disable_custom_kernels": true,
65
+ "dropout": 0.0,
66
+ "dtype": "float32",
67
+ "encode_proj_layers": [
68
+ 2
69
+ ],
70
+ "encoder_activation_function": "gelu",
71
+ "encoder_attention_heads": 8,
72
+ "encoder_ffn_dim": 1024,
73
+ "encoder_hidden_dim": 256,
74
+ "encoder_in_channels": [
75
+ 512,
76
+ 1024,
77
+ 2048
78
+ ],
79
+ "encoder_layers": 1,
80
+ "eos_coefficient": 0.0001,
81
+ "eval_size": null,
82
+ "feat_strides": [
83
+ 8,
84
+ 16,
85
+ 32
86
+ ],
87
+ "focal_loss_alpha": 0.75,
88
+ "focal_loss_gamma": 2.0,
89
+ "freeze_backbone_batch_norms": true,
90
+ "hidden_expansion": 1.0,
91
+ "id2label": {
92
+ "0": "Coverall",
93
+ "1": "Face_Shield",
94
+ "2": "Gloves",
95
+ "3": "Goggles",
96
+ "4": "Mask"
97
+ },
98
+ "initializer_bias_prior_prob": null,
99
+ "initializer_range": 0.01,
100
+ "is_encoder_decoder": true,
101
+ "label2id": {
102
+ "Coverall": 0,
103
+ "Face_Shield": 1,
104
+ "Gloves": 2,
105
+ "Goggles": 3,
106
+ "Mask": 4
107
+ },
108
+ "label_noise_ratio": 0.5,
109
+ "layer_norm_eps": 1e-05,
110
+ "learn_initial_query": false,
111
+ "matcher_alpha": 0.25,
112
+ "matcher_bbox_cost": 5.0,
113
+ "matcher_class_cost": 2.0,
114
+ "matcher_gamma": 2.0,
115
+ "matcher_giou_cost": 2.0,
116
+ "model_type": "rt_detr",
117
+ "normalize_before": false,
118
+ "num_denoising": 100,
119
+ "num_feature_levels": 3,
120
+ "num_queries": 300,
121
+ "positional_encoding_temperature": 10000,
122
+ "transformers_version": "4.57.3",
123
+ "use_focal_loss": true,
124
+ "use_pretrained_backbone": false,
125
+ "use_timm_backbone": false,
126
+ "weight_loss_bbox": 5.0,
127
+ "weight_loss_giou": 2.0,
128
+ "weight_loss_vfl": 1.0,
129
+ "with_box_refine": true
130
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b61a99c85b3170d3f108e7e0aae05bb60858776df18db0d013ff5dde97f0d52d
3
+ size 171559340
preprocessor_config.json ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "do_convert_annotations": true,
3
+ "do_normalize": false,
4
+ "do_pad": false,
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": "RTDetrImageProcessor",
14
+ "image_std": [
15
+ 0.229,
16
+ 0.224,
17
+ 0.225
18
+ ],
19
+ "pad_size": null,
20
+ "resample": 2,
21
+ "rescale_factor": 0.00392156862745098,
22
+ "size": {
23
+ "height": 640,
24
+ "width": 640
25
+ }
26
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:981ac9af3c972489561c31fed7bdb7604e79215b89e59d0694ea407c0330d7fa
3
+ size 5905