SARANGx commited on
Commit
6ab02fb
·
verified ·
1 Parent(s): 6426479

Model save

Browse files
Files changed (5) hide show
  1. README.md +78 -0
  2. config.json +136 -0
  3. model.safetensors +3 -0
  4. preprocessor_config.json +25 -0
  5. training_args.bin +3 -0
README.md ADDED
@@ -0,0 +1,78 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: transformers
3
+ license: apache-2.0
4
+ base_model: PekingU/rtdetr_r18vd_coco_o365
5
+ tags:
6
+ - generated_from_trainer
7
+ model-index:
8
+ - name: rtdetr-pill-detector
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-pill-detector
16
+
17
+ This model is a fine-tuned version of [PekingU/rtdetr_r18vd_coco_o365](https://huggingface.co/PekingU/rtdetr_r18vd_coco_o365) on an unknown dataset.
18
+ It achieves the following results on the evaluation set:
19
+ - Loss: 2.5969
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: 5e-05
39
+ - train_batch_size: 4
40
+ - eval_batch_size: 4
41
+ - seed: 42
42
+ - optimizer: Use OptimizerNames.ADAMW_TORCH_FUSED with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
43
+ - lr_scheduler_type: cosine
44
+ - lr_scheduler_warmup_steps: 100
45
+ - num_epochs: 20
46
+
47
+ ### Training results
48
+
49
+ | Training Loss | Epoch | Step | Validation Loss |
50
+ |:-------------:|:-----:|:----:|:---------------:|
51
+ | 49.1683 | 1.0 | 79 | 34.2370 |
52
+ | 18.6682 | 2.0 | 158 | 11.6126 |
53
+ | 12.7908 | 3.0 | 237 | 6.9794 |
54
+ | 10.8112 | 4.0 | 316 | 5.3765 |
55
+ | 8.4986 | 5.0 | 395 | 4.3265 |
56
+ | 7.0638 | 6.0 | 474 | 3.7277 |
57
+ | 6.9021 | 7.0 | 553 | 3.4731 |
58
+ | 6.5311 | 8.0 | 632 | 2.9624 |
59
+ | 6.5105 | 9.0 | 711 | 3.0513 |
60
+ | 6.2654 | 10.0 | 790 | 2.7852 |
61
+ | 5.9322 | 11.0 | 869 | 2.9419 |
62
+ | 5.2394 | 12.0 | 948 | 2.8256 |
63
+ | 5.7140 | 13.0 | 1027 | 2.7302 |
64
+ | 6.3316 | 14.0 | 1106 | 2.6021 |
65
+ | 5.0378 | 15.0 | 1185 | 2.6694 |
66
+ | 5.2466 | 16.0 | 1264 | 2.6375 |
67
+ | 5.3730 | 17.0 | 1343 | 2.6533 |
68
+ | 4.9664 | 18.0 | 1422 | 2.6242 |
69
+ | 5.2872 | 19.0 | 1501 | 2.6111 |
70
+ | 5.5504 | 20.0 | 1580 | 2.5969 |
71
+
72
+
73
+ ### Framework versions
74
+
75
+ - Transformers 5.6.1
76
+ - Pytorch 2.11.0+cu130
77
+ - Datasets 4.8.4
78
+ - Tokenizers 0.22.2
config.json ADDED
@@ -0,0 +1,136 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ 2,
14
+ 2,
15
+ 2,
16
+ 2
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
+ 64,
25
+ 128,
26
+ 256,
27
+ 512
28
+ ],
29
+ "layer_type": "basic",
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
+ "batch_norm_eps": 1e-05,
51
+ "box_noise_scale": 1.0,
52
+ "d_model": 256,
53
+ "decoder_activation_function": "relu",
54
+ "decoder_attention_heads": 8,
55
+ "decoder_ffn_dim": 1024,
56
+ "decoder_in_channels": [
57
+ 256,
58
+ 256,
59
+ 256
60
+ ],
61
+ "decoder_layers": 3,
62
+ "decoder_n_points": 4,
63
+ "disable_custom_kernels": true,
64
+ "dropout": 0.0,
65
+ "dtype": "float32",
66
+ "encode_proj_layers": [
67
+ 2
68
+ ],
69
+ "encoder_activation_function": "gelu",
70
+ "encoder_attention_heads": 8,
71
+ "encoder_ffn_dim": 1024,
72
+ "encoder_hidden_dim": 256,
73
+ "encoder_in_channels": [
74
+ 128,
75
+ 256,
76
+ 512
77
+ ],
78
+ "encoder_layers": 1,
79
+ "eos_coefficient": 0.0001,
80
+ "eval_size": null,
81
+ "feat_strides": [
82
+ 8,
83
+ 16,
84
+ 32
85
+ ],
86
+ "focal_loss_alpha": 0.75,
87
+ "focal_loss_gamma": 2.0,
88
+ "freeze_backbone_batch_norms": true,
89
+ "hidden_expansion": 0.5,
90
+ "id2label": {
91
+ "0": "pills",
92
+ "1": "Cipro 500",
93
+ "2": "Ibuphil 600 mg",
94
+ "3": "Ibuphil Cold 400-60",
95
+ "4": "Xyzall 5mg",
96
+ "5": "blue",
97
+ "6": "pink",
98
+ "7": "red",
99
+ "8": "white"
100
+ },
101
+ "initializer_bias_prior_prob": null,
102
+ "initializer_range": 0.01,
103
+ "is_encoder_decoder": true,
104
+ "label2id": {
105
+ "Cipro 500": 1,
106
+ "Ibuphil 600 mg": 2,
107
+ "Ibuphil Cold 400-60": 3,
108
+ "Xyzall 5mg": 4,
109
+ "blue": 5,
110
+ "pills": 0,
111
+ "pink": 6,
112
+ "red": 7,
113
+ "white": 8
114
+ },
115
+ "label_noise_ratio": 0.5,
116
+ "layer_norm_eps": 1e-05,
117
+ "learn_initial_query": false,
118
+ "matcher_alpha": 0.25,
119
+ "matcher_bbox_cost": 5.0,
120
+ "matcher_class_cost": 2.0,
121
+ "matcher_gamma": 2.0,
122
+ "matcher_giou_cost": 2.0,
123
+ "model_type": "rt_detr",
124
+ "normalize_before": false,
125
+ "num_denoising": 100,
126
+ "num_feature_levels": 3,
127
+ "num_queries": 300,
128
+ "positional_encoding_temperature": 10000,
129
+ "transformers_version": "5.6.1",
130
+ "use_cache": false,
131
+ "use_focal_loss": true,
132
+ "weight_loss_bbox": 5.0,
133
+ "weight_loss_giou": 2.0,
134
+ "weight_loss_vfl": 1.0,
135
+ "with_box_refine": true
136
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:14f14b9adead20e2210f469516f72a6d6c6bae1c64b8c955b1bf2ad880f30bfc
3
+ size 80539488
preprocessor_config.json ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ "resample": 2,
20
+ "rescale_factor": 0.00392156862745098,
21
+ "size": {
22
+ "height": 640,
23
+ "width": 640
24
+ }
25
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0b4170760098cff9fafecd65cd7d93f4f8aec7d55ea50c4d43ee5b9443eb8cd1
3
+ size 5265