schoonhovenra commited on
Commit
8eda1fc
·
verified ·
1 Parent(s): f50598d

End of training

Browse files
Files changed (5) hide show
  1. README.md +90 -0
  2. config.json +159 -0
  3. model.safetensors +3 -0
  4. preprocessor_config.json +24 -0
  5. training_args.bin +3 -0
README.md ADDED
@@ -0,0 +1,90 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ base_model: facebook/detr-resnet-50
4
+ tags:
5
+ - generated_from_trainer
6
+ datasets:
7
+ - imagefolder
8
+ model-index:
9
+ - name: '20240704'
10
+ results: []
11
+ ---
12
+
13
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
14
+ should probably proofread and complete it, then remove this comment. -->
15
+
16
+ # 20240704
17
+
18
+ This model is a fine-tuned version of [facebook/detr-resnet-50](https://huggingface.co/facebook/detr-resnet-50) on the imagefolder dataset.
19
+ It achieves the following results on the evaluation set:
20
+ - Loss: 0.2392
21
+
22
+ ## Model description
23
+
24
+ More information needed
25
+
26
+ ## Intended uses & limitations
27
+
28
+ More information needed
29
+
30
+ ## Training and evaluation data
31
+
32
+ More information needed
33
+
34
+ ## Training procedure
35
+
36
+ ### Training hyperparameters
37
+
38
+ The following hyperparameters were used during training:
39
+ - learning_rate: 5e-05
40
+ - train_batch_size: 32
41
+ - eval_batch_size: 8
42
+ - seed: 42
43
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
44
+ - lr_scheduler_type: linear
45
+ - num_epochs: 1000
46
+ - mixed_precision_training: Native AMP
47
+
48
+ ### Training results
49
+
50
+ | Training Loss | Epoch | Step | Validation Loss |
51
+ |:-------------:|:-----:|:-----:|:---------------:|
52
+ | 0.4262 | 32.0 | 800 | 0.3110 |
53
+ | 0.3444 | 64.0 | 1600 | 0.2795 |
54
+ | 0.3122 | 96.0 | 2400 | 0.2704 |
55
+ | 0.2893 | 128.0 | 3200 | 0.2639 |
56
+ | 0.2823 | 160.0 | 4000 | 0.2518 |
57
+ | 0.2679 | 192.0 | 4800 | 0.2502 |
58
+ | 0.2491 | 224.0 | 5600 | 0.2444 |
59
+ | 0.2354 | 256.0 | 6400 | 0.2495 |
60
+ | 0.2284 | 288.0 | 7200 | 0.2406 |
61
+ | 0.2318 | 320.0 | 8000 | 0.2453 |
62
+ | 0.217 | 352.0 | 8800 | 0.2432 |
63
+ | 0.2124 | 384.0 | 9600 | 0.2469 |
64
+ | 0.2097 | 416.0 | 10400 | 0.2516 |
65
+ | 0.1998 | 448.0 | 11200 | 0.2428 |
66
+ | 0.1944 | 480.0 | 12000 | 0.2445 |
67
+ | 0.1909 | 512.0 | 12800 | 0.2468 |
68
+ | 0.1952 | 544.0 | 13600 | 0.2401 |
69
+ | 0.1903 | 576.0 | 14400 | 0.2408 |
70
+ | 0.1867 | 608.0 | 15200 | 0.2478 |
71
+ | 0.1845 | 640.0 | 16000 | 0.2443 |
72
+ | 0.179 | 672.0 | 16800 | 0.2432 |
73
+ | 0.1744 | 704.0 | 17600 | 0.2410 |
74
+ | 0.1747 | 736.0 | 18400 | 0.2432 |
75
+ | 0.1674 | 768.0 | 19200 | 0.2386 |
76
+ | 0.166 | 800.0 | 20000 | 0.2384 |
77
+ | 0.1686 | 832.0 | 20800 | 0.2399 |
78
+ | 0.1647 | 864.0 | 21600 | 0.2391 |
79
+ | 0.1599 | 896.0 | 22400 | 0.2398 |
80
+ | 0.1633 | 928.0 | 23200 | 0.2401 |
81
+ | 0.1654 | 960.0 | 24000 | 0.2397 |
82
+ | 0.1632 | 992.0 | 24800 | 0.2392 |
83
+
84
+
85
+ ### Framework versions
86
+
87
+ - Transformers 4.37.2
88
+ - Pytorch 2.3.0
89
+ - Datasets 2.12.0
90
+ - Tokenizers 0.15.1
config.json ADDED
@@ -0,0 +1,159 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "facebook/detr-resnet-50",
3
+ "activation_dropout": 0.0,
4
+ "activation_function": "relu",
5
+ "architectures": [
6
+ "DetrForObjectDetection"
7
+ ],
8
+ "attention_dropout": 0.0,
9
+ "auxiliary_loss": false,
10
+ "backbone": null,
11
+ "backbone_config": {
12
+ "_name_or_path": "",
13
+ "add_cross_attention": false,
14
+ "architectures": null,
15
+ "bad_words_ids": null,
16
+ "begin_suppress_tokens": null,
17
+ "bos_token_id": null,
18
+ "chunk_size_feed_forward": 0,
19
+ "cross_attention_hidden_size": null,
20
+ "decoder_start_token_id": null,
21
+ "depths": [
22
+ 3,
23
+ 4,
24
+ 6,
25
+ 3
26
+ ],
27
+ "diversity_penalty": 0.0,
28
+ "do_sample": false,
29
+ "downsample_in_bottleneck": false,
30
+ "downsample_in_first_stage": false,
31
+ "early_stopping": false,
32
+ "embedding_size": 64,
33
+ "encoder_no_repeat_ngram_size": 0,
34
+ "eos_token_id": null,
35
+ "exponential_decay_length_penalty": null,
36
+ "finetuning_task": null,
37
+ "forced_bos_token_id": null,
38
+ "forced_eos_token_id": null,
39
+ "hidden_act": "relu",
40
+ "hidden_sizes": [
41
+ 256,
42
+ 512,
43
+ 1024,
44
+ 2048
45
+ ],
46
+ "id2label": {
47
+ "0": "LABEL_0",
48
+ "1": "LABEL_1"
49
+ },
50
+ "is_decoder": false,
51
+ "is_encoder_decoder": false,
52
+ "label2id": {
53
+ "LABEL_0": 0,
54
+ "LABEL_1": 1
55
+ },
56
+ "layer_type": "bottleneck",
57
+ "length_penalty": 1.0,
58
+ "max_length": 20,
59
+ "min_length": 0,
60
+ "model_type": "resnet",
61
+ "no_repeat_ngram_size": 0,
62
+ "num_beam_groups": 1,
63
+ "num_beams": 1,
64
+ "num_channels": 3,
65
+ "num_return_sequences": 1,
66
+ "out_features": [
67
+ "stage4"
68
+ ],
69
+ "out_indices": [
70
+ 4
71
+ ],
72
+ "output_attentions": false,
73
+ "output_hidden_states": false,
74
+ "output_scores": false,
75
+ "pad_token_id": null,
76
+ "prefix": null,
77
+ "problem_type": null,
78
+ "pruned_heads": {},
79
+ "remove_invalid_values": false,
80
+ "repetition_penalty": 1.0,
81
+ "return_dict": true,
82
+ "return_dict_in_generate": false,
83
+ "sep_token_id": null,
84
+ "stage_names": [
85
+ "stem",
86
+ "stage1",
87
+ "stage2",
88
+ "stage3",
89
+ "stage4"
90
+ ],
91
+ "suppress_tokens": null,
92
+ "task_specific_params": null,
93
+ "temperature": 1.0,
94
+ "tf_legacy_loss": false,
95
+ "tie_encoder_decoder": false,
96
+ "tie_word_embeddings": true,
97
+ "tokenizer_class": null,
98
+ "top_k": 50,
99
+ "top_p": 1.0,
100
+ "torch_dtype": null,
101
+ "torchscript": false,
102
+ "typical_p": 1.0,
103
+ "use_bfloat16": false
104
+ },
105
+ "bbox_cost": 5,
106
+ "bbox_loss_coefficient": 5,
107
+ "class_cost": 1,
108
+ "d_model": 256,
109
+ "decoder_attention_heads": 8,
110
+ "decoder_ffn_dim": 2048,
111
+ "decoder_layerdrop": 0.0,
112
+ "decoder_layers": 6,
113
+ "dice_loss_coefficient": 1,
114
+ "dilation": null,
115
+ "dropout": 0.1,
116
+ "encoder_attention_heads": 8,
117
+ "encoder_ffn_dim": 2048,
118
+ "encoder_layerdrop": 0.0,
119
+ "encoder_layers": 6,
120
+ "eos_coefficient": 0.1,
121
+ "giou_cost": 2,
122
+ "giou_loss_coefficient": 2,
123
+ "id2label": {
124
+ "0": "back mirror",
125
+ "1": "backseat",
126
+ "2": "center console",
127
+ "3": "dashboard",
128
+ "4": "door front left",
129
+ "5": "door front right",
130
+ "6": "driving wheel",
131
+ "7": "window front left",
132
+ "8": "window front right"
133
+ },
134
+ "init_std": 0.02,
135
+ "init_xavier_std": 1.0,
136
+ "is_encoder_decoder": true,
137
+ "label2id": {
138
+ "back mirror": 0,
139
+ "backseat": 1,
140
+ "center console": 2,
141
+ "dashboard": 3,
142
+ "door front left": 4,
143
+ "door front right": 5,
144
+ "driving wheel": 6,
145
+ "window front left": 7,
146
+ "window front right": 8
147
+ },
148
+ "mask_loss_coefficient": 1,
149
+ "model_type": "detr",
150
+ "num_channels": 3,
151
+ "num_hidden_layers": 6,
152
+ "num_queries": 100,
153
+ "position_embedding_type": "sine",
154
+ "scale_embedding": false,
155
+ "torch_dtype": "float32",
156
+ "transformers_version": "4.37.2",
157
+ "use_pretrained_backbone": null,
158
+ "use_timm_backbone": false
159
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b05afe86daabef991adba70b863bc73fa8485934af806b0c86d33a5c97b56fd7
3
+ size 166511952
preprocessor_config.json ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "do_normalize": true,
3
+ "do_pad": true,
4
+ "do_rescale": true,
5
+ "do_resize": true,
6
+ "format": "coco_detection",
7
+ "image_mean": [
8
+ 0.485,
9
+ 0.456,
10
+ 0.406
11
+ ],
12
+ "image_processor_type": "DetrImageProcessor",
13
+ "image_std": [
14
+ 0.229,
15
+ 0.224,
16
+ 0.225
17
+ ],
18
+ "resample": 2,
19
+ "rescale_factor": 0.00392156862745098,
20
+ "size": {
21
+ "longest_edge": 1333,
22
+ "shortest_edge": 800
23
+ }
24
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a18169e3d21d3de359e74b82472d97c464a93543e97e8ec58b96978778991f05
3
+ size 4728