AnubhavKarki commited on
Commit
ee79abf
·
verified ·
1 Parent(s): fa1bfbb

upload fine-tuned RT-DETRv2 trashify object detection model

Browse files
Files changed (5) hide show
  1. README.md +85 -0
  2. config.json +139 -0
  3. model.safetensors +3 -0
  4. preprocessor_config.json +26 -0
  5. training_args.bin +3 -0
README.md ADDED
@@ -0,0 +1,85 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: transformers
3
+ license: apache-2.0
4
+ base_model: PekingU/rtdetr_v2_r50vd
5
+ tags:
6
+ - generated_from_trainer
7
+ model-index:
8
+ - name: rt_detrv2_finetuned_eco-vision_box_detector_v1
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
+ # rt_detrv2_finetuned_eco-vision_box_detector_v1
16
+
17
+ This model is a fine-tuned version of [PekingU/rtdetr_v2_r50vd](https://huggingface.co/PekingU/rtdetr_v2_r50vd) on an unknown dataset.
18
+ It achieves the following results on the evaluation set:
19
+ - Loss: 107.5850
20
+ - Map: 0.0
21
+ - Map 50: 0.0
22
+ - Map 75: 0.0
23
+ - Map Small: -1.0
24
+ - Map Medium: -1.0
25
+ - Map Large: 0.0
26
+ - Mar 1: 0.0
27
+ - Mar 10: 0.0
28
+ - Mar 100: 0.0
29
+ - Mar Small: -1.0
30
+ - Mar Medium: -1.0
31
+ - Mar Large: 0.0
32
+ - Map Trash Arm: 0.0
33
+ - Mar Trash Arm: 0.0
34
+ - Map Trash: 0.0
35
+ - Mar Trash: 0.0
36
+ - Map Not Trash: -1.0
37
+ - Mar Not Trash: -1.0
38
+ - Map Not Bin: 0.0
39
+ - Mar Not Bin: 0.0
40
+ - Map Hand: 0.0
41
+ - Mar Hand: 0.0
42
+ - Map Bin: -1.0
43
+ - Mar Bin: -1.0
44
+
45
+ ## Model description
46
+
47
+ More information needed
48
+
49
+ ## Intended uses & limitations
50
+
51
+ More information needed
52
+
53
+ ## Training and evaluation data
54
+
55
+ More information needed
56
+
57
+ ## Training procedure
58
+
59
+ ### Training hyperparameters
60
+
61
+ The following hyperparameters were used during training:
62
+ - learning_rate: 0.0001
63
+ - train_batch_size: 2
64
+ - eval_batch_size: 2
65
+ - seed: 42
66
+ - optimizer: Use OptimizerNames.ADAMW_TORCH_FUSED with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
67
+ - lr_scheduler_type: linear
68
+ - lr_scheduler_warmup_steps: 0.05
69
+ - num_epochs: 2
70
+ - mixed_precision_training: Native AMP
71
+
72
+ ### Training results
73
+
74
+ | Training Loss | Epoch | Step | Validation Loss | Map | Map 50 | Map 75 | Map Small | Map Medium | Map Large | Mar 1 | Mar 10 | Mar 100 | Mar Small | Mar Medium | Mar Large | Map Trash Arm | Mar Trash Arm | Map Trash | Mar Trash | Map Not Trash | Mar Not Trash | Map Not Bin | Mar Not Bin | Map Hand | Mar Hand | Map Bin | Mar Bin |
75
+ |:-------------:|:-----:|:----:|:---------------:|:---:|:------:|:------:|:---------:|:----------:|:---------:|:-----:|:------:|:-------:|:---------:|:----------:|:---------:|:-------------:|:-------------:|:---------:|:---------:|:-------------:|:-------------:|:-----------:|:-----------:|:--------:|:--------:|:-------:|:-------:|
76
+ | 98.7842 | 1.0 | 1 | 101.2103 | 0.0 | 0.0 | 0.0 | -1.0 | -1.0 | 0.0 | 0.0 | 0.0 | 0.0 | -1.0 | -1.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | -1.0 | -1.0 | 0.0 | 0.0 | 0.0 | 0.0 | -1.0 | -1.0 |
77
+ | 98.3680 | 2.0 | 2 | 83.2069 | 0.0 | 0.0 | 0.0 | -1.0 | -1.0 | 0.0 | 0.0 | 0.0 | 0.0 | -1.0 | -1.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | -1.0 | -1.0 | 0.0 | 0.0 | 0.0 | 0.0 | -1.0 | -1.0 |
78
+
79
+
80
+ ### Framework versions
81
+
82
+ - Transformers 5.0.0
83
+ - Pytorch 2.10.0+cpu
84
+ - Datasets 4.0.0
85
+ - Tokenizers 0.22.2
config.json ADDED
@@ -0,0 +1,139 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "activation_dropout": 0.0,
3
+ "activation_function": "silu",
4
+ "anchor_image_size": null,
5
+ "architectures": [
6
+ "RTDetrV2ForObjectDetection"
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_method": "default",
64
+ "decoder_n_levels": 3,
65
+ "decoder_n_points": 4,
66
+ "decoder_offset_scale": 0.5,
67
+ "disable_custom_kernels": true,
68
+ "dropout": 0.0,
69
+ "dtype": "float32",
70
+ "encode_proj_layers": [
71
+ 2
72
+ ],
73
+ "encoder_activation_function": "gelu",
74
+ "encoder_attention_heads": 8,
75
+ "encoder_ffn_dim": 1024,
76
+ "encoder_hidden_dim": 256,
77
+ "encoder_in_channels": [
78
+ 512,
79
+ 1024,
80
+ 2048
81
+ ],
82
+ "encoder_layers": 1,
83
+ "eos_coefficient": 0.0001,
84
+ "eval_size": null,
85
+ "feat_strides": [
86
+ 8,
87
+ 16,
88
+ 32
89
+ ],
90
+ "focal_loss_alpha": 0.75,
91
+ "focal_loss_gamma": 2.0,
92
+ "freeze_backbone_batch_norms": true,
93
+ "hidden_expansion": 1.0,
94
+ "id2label": {
95
+ "0": "trash_arm",
96
+ "1": "trash",
97
+ "2": "not_trash",
98
+ "3": "not_hand",
99
+ "4": "not_bin",
100
+ "5": "hand",
101
+ "6": "bin"
102
+ },
103
+ "initializer_bias_prior_prob": null,
104
+ "initializer_range": 0.01,
105
+ "is_encoder_decoder": true,
106
+ "label2id": {
107
+ "bin": 6,
108
+ "hand": 5,
109
+ "not_bin": 4,
110
+ "not_hand": 3,
111
+ "not_trash": 2,
112
+ "trash": 1,
113
+ "trash_arm": 0
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_v2",
124
+ "normalize_before": false,
125
+ "num_denoising": 100,
126
+ "num_feature_levels": 3,
127
+ "num_queries": 300,
128
+ "positional_encoding_temperature": 10000,
129
+ "tie_word_embeddings": true,
130
+ "transformers_version": "5.0.0",
131
+ "use_cache": false,
132
+ "use_focal_loss": true,
133
+ "use_pretrained_backbone": false,
134
+ "use_timm_backbone": false,
135
+ "weight_loss_bbox": 5.0,
136
+ "weight_loss_giou": 2.0,
137
+ "weight_loss_vfl": 1.0,
138
+ "with_box_refine": true
139
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9d17093a349e80f351b8df291678a4484937e5ca549ba91649add0985a5c5f5f
3
+ size 168884144
preprocessor_config.json ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "data_format": "channels_first",
3
+ "do_convert_annotations": true,
4
+ "do_normalize": false,
5
+ "do_pad": true,
6
+ "do_rescale": true,
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": "RTDetrImageProcessorFast",
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": 640,
24
+ "shortest_edge": 640
25
+ }
26
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:23aaa1cb6bfd6d8a3eb0b356572f0a0db3164415b1dfc8621f62f923d49ec3c7
3
+ size 5201