upload trashify object detection model with data augmentation
Browse files- README.md +83 -0
- config.json +73 -0
- model.safetensors +3 -0
- preprocessor_config.json +26 -0
- training_args.bin +3 -0
README.md
ADDED
@@ -0,0 +1,83 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
library_name: transformers
|
3 |
+
license: apache-2.0
|
4 |
+
base_model: microsoft/conditional-detr-resnet-50
|
5 |
+
tags:
|
6 |
+
- generated_from_trainer
|
7 |
+
model-index:
|
8 |
+
- name: detr_finetuned_trashify_box_detector_with_data_aug
|
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 |
+
# detr_finetuned_trashify_box_detector_with_data_aug
|
16 |
+
|
17 |
+
This model is a fine-tuned version of [microsoft/conditional-detr-resnet-50](https://huggingface.co/microsoft/conditional-detr-resnet-50) on an unknown dataset.
|
18 |
+
It achieves the following results on the evaluation set:
|
19 |
+
- Loss: 1.0749
|
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: 0.0001
|
39 |
+
- train_batch_size: 16
|
40 |
+
- eval_batch_size: 16
|
41 |
+
- seed: 42
|
42 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
43 |
+
- lr_scheduler_type: linear
|
44 |
+
- num_epochs: 25
|
45 |
+
- mixed_precision_training: Native AMP
|
46 |
+
|
47 |
+
### Training results
|
48 |
+
|
49 |
+
| Training Loss | Epoch | Step | Validation Loss |
|
50 |
+
|:-------------:|:-----:|:----:|:---------------:|
|
51 |
+
| 36.0329 | 1.0 | 50 | 3.4510 |
|
52 |
+
| 2.8564 | 2.0 | 100 | 2.2827 |
|
53 |
+
| 2.3323 | 3.0 | 150 | 2.1028 |
|
54 |
+
| 2.1202 | 4.0 | 200 | 1.8915 |
|
55 |
+
| 1.9452 | 5.0 | 250 | 1.6696 |
|
56 |
+
| 1.7582 | 6.0 | 300 | 1.5181 |
|
57 |
+
| 1.6291 | 7.0 | 350 | 1.4310 |
|
58 |
+
| 1.5394 | 8.0 | 400 | 1.3669 |
|
59 |
+
| 1.4751 | 9.0 | 450 | 1.3164 |
|
60 |
+
| 1.3906 | 10.0 | 500 | 1.2860 |
|
61 |
+
| 1.394 | 11.0 | 550 | 1.2915 |
|
62 |
+
| 1.338 | 12.0 | 600 | 1.2461 |
|
63 |
+
| 1.3071 | 13.0 | 650 | 1.2300 |
|
64 |
+
| 1.2772 | 14.0 | 700 | 1.2059 |
|
65 |
+
| 1.2363 | 15.0 | 750 | 1.1639 |
|
66 |
+
| 1.2213 | 16.0 | 800 | 1.1547 |
|
67 |
+
| 1.1372 | 17.0 | 850 | 1.1213 |
|
68 |
+
| 1.1423 | 18.0 | 900 | 1.1322 |
|
69 |
+
| 1.0991 | 19.0 | 950 | 1.1069 |
|
70 |
+
| 1.1041 | 20.0 | 1000 | 1.1001 |
|
71 |
+
| 1.0921 | 21.0 | 1050 | 1.0869 |
|
72 |
+
| 1.063 | 22.0 | 1100 | 1.0760 |
|
73 |
+
| 1.0561 | 23.0 | 1150 | 1.0775 |
|
74 |
+
| 1.0373 | 24.0 | 1200 | 1.0799 |
|
75 |
+
| 1.0325 | 25.0 | 1250 | 1.0749 |
|
76 |
+
|
77 |
+
|
78 |
+
### Framework versions
|
79 |
+
|
80 |
+
- Transformers 4.45.0.dev0
|
81 |
+
- Pytorch 2.4.0+cu124
|
82 |
+
- Datasets 2.21.0
|
83 |
+
- Tokenizers 0.19.1
|
config.json
ADDED
@@ -0,0 +1,73 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "microsoft/conditional-detr-resnet-50",
|
3 |
+
"activation_dropout": 0.0,
|
4 |
+
"activation_function": "relu",
|
5 |
+
"architectures": [
|
6 |
+
"ConditionalDetrForObjectDetection"
|
7 |
+
],
|
8 |
+
"attention_dropout": 0.0,
|
9 |
+
"auxiliary_loss": false,
|
10 |
+
"backbone": "resnet50",
|
11 |
+
"backbone_config": null,
|
12 |
+
"backbone_kwargs": {
|
13 |
+
"in_chans": 3,
|
14 |
+
"out_indices": [
|
15 |
+
1,
|
16 |
+
2,
|
17 |
+
3,
|
18 |
+
4
|
19 |
+
]
|
20 |
+
},
|
21 |
+
"bbox_cost": 5,
|
22 |
+
"bbox_loss_coefficient": 5,
|
23 |
+
"class_cost": 2,
|
24 |
+
"cls_loss_coefficient": 2,
|
25 |
+
"d_model": 256,
|
26 |
+
"decoder_attention_heads": 8,
|
27 |
+
"decoder_ffn_dim": 2048,
|
28 |
+
"decoder_layerdrop": 0.0,
|
29 |
+
"decoder_layers": 6,
|
30 |
+
"dice_loss_coefficient": 1,
|
31 |
+
"dilation": false,
|
32 |
+
"dropout": 0.1,
|
33 |
+
"encoder_attention_heads": 8,
|
34 |
+
"encoder_ffn_dim": 2048,
|
35 |
+
"encoder_layerdrop": 0.0,
|
36 |
+
"encoder_layers": 6,
|
37 |
+
"focal_alpha": 0.25,
|
38 |
+
"giou_cost": 2,
|
39 |
+
"giou_loss_coefficient": 2,
|
40 |
+
"id2label": {
|
41 |
+
"0": "bin",
|
42 |
+
"1": "hand",
|
43 |
+
"2": "not_bin",
|
44 |
+
"3": "not_hand",
|
45 |
+
"4": "not_trash",
|
46 |
+
"5": "trash",
|
47 |
+
"6": "trash_arm"
|
48 |
+
},
|
49 |
+
"init_std": 0.02,
|
50 |
+
"init_xavier_std": 1.0,
|
51 |
+
"is_encoder_decoder": true,
|
52 |
+
"label2id": {
|
53 |
+
"bin": 0,
|
54 |
+
"hand": 1,
|
55 |
+
"not_bin": 2,
|
56 |
+
"not_hand": 3,
|
57 |
+
"not_trash": 4,
|
58 |
+
"trash": 5,
|
59 |
+
"trash_arm": 6
|
60 |
+
},
|
61 |
+
"mask_loss_coefficient": 1,
|
62 |
+
"max_position_embeddings": 1024,
|
63 |
+
"model_type": "conditional_detr",
|
64 |
+
"num_channels": 3,
|
65 |
+
"num_hidden_layers": 6,
|
66 |
+
"num_queries": 300,
|
67 |
+
"position_embedding_type": "sine",
|
68 |
+
"scale_embedding": false,
|
69 |
+
"torch_dtype": "float32",
|
70 |
+
"transformers_version": "4.45.0.dev0",
|
71 |
+
"use_pretrained_backbone": true,
|
72 |
+
"use_timm_backbone": true
|
73 |
+
}
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:fe0684c55e44bd02e61048c6a12912d159e5370547f518c354fcae901301532e
|
3 |
+
size 174081852
|
preprocessor_config.json
ADDED
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"do_convert_annotations": true,
|
3 |
+
"do_normalize": true,
|
4 |
+
"do_pad": true,
|
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": "ConditionalDetrImageProcessor",
|
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 |
+
"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:f66c68bea1d5455cab041a87da03b15d66801c6130700b0c1ebd0179639024df
|
3 |
+
size 5240
|