atmiaxue commited on
Commit
c06ac9e
·
verified ·
1 Parent(s): 33c32b7

atmiaxue/detr_finetuned_cppe5

Browse files
Files changed (5) hide show
  1. README.md +55 -0
  2. config.json +75 -0
  3. model.safetensors +3 -0
  4. preprocessor_config.json +29 -0
  5. training_args.bin +3 -0
README.md ADDED
@@ -0,0 +1,55 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: transformers
3
+ license: apache-2.0
4
+ base_model: facebook/detr-resnet-50
5
+ tags:
6
+ - generated_from_trainer
7
+ datasets:
8
+ - imagefolder
9
+ model-index:
10
+ - name: detr_finetuned_cppe5
11
+ results: []
12
+ ---
13
+
14
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
15
+ should probably proofread and complete it, then remove this comment. -->
16
+
17
+ # detr_finetuned_cppe5
18
+
19
+ This model is a fine-tuned version of [facebook/detr-resnet-50](https://huggingface.co/facebook/detr-resnet-50) on the imagefolder dataset.
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: 1
40
+ - eval_batch_size: 8
41
+ - seed: 42
42
+ - optimizer: Use OptimizerNames.ADAMW_TORCH with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
43
+ - lr_scheduler_type: cosine
44
+ - num_epochs: 0
45
+
46
+ ### Training results
47
+
48
+
49
+
50
+ ### Framework versions
51
+
52
+ - Transformers 4.46.2
53
+ - Pytorch 2.5.1+cpu
54
+ - Datasets 2.19.2
55
+ - Tokenizers 0.20.3
config.json ADDED
@@ -0,0 +1,75 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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": "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": 1,
24
+ "classifier_dropout": 0.0,
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
+ "eos_coefficient": 0.1,
38
+ "giou_cost": 2,
39
+ "giou_loss_coefficient": 2,
40
+ "id2label": {
41
+ "0": "Black_star",
42
+ "1": "Cat",
43
+ "2": "Grey_star",
44
+ "3": "Insect",
45
+ "4": "Moon",
46
+ "5": "Owl",
47
+ "6": "Unicorn_head",
48
+ "7": "Unicorn_whole"
49
+ },
50
+ "init_std": 0.02,
51
+ "init_xavier_std": 1.0,
52
+ "is_encoder_decoder": true,
53
+ "label2id": {
54
+ "Black_star": 0,
55
+ "Cat": 1,
56
+ "Grey_star": 2,
57
+ "Insect": 3,
58
+ "Moon": 4,
59
+ "Owl": 5,
60
+ "Unicorn_head": 6,
61
+ "Unicorn_whole": 7
62
+ },
63
+ "mask_loss_coefficient": 1,
64
+ "max_position_embeddings": 1024,
65
+ "model_type": "detr",
66
+ "num_channels": 3,
67
+ "num_hidden_layers": 6,
68
+ "num_queries": 100,
69
+ "position_embedding_type": "sine",
70
+ "scale_embedding": false,
71
+ "torch_dtype": "float32",
72
+ "transformers_version": "4.46.2",
73
+ "use_pretrained_backbone": true,
74
+ "use_timm_backbone": true
75
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6145dba59c063a42802b5ef0af3dae01fa8a74d63e21b8254bd311885ec36461
3
+ size 166502020
preprocessor_config.json ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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": "DetrImageProcessor",
14
+ "image_std": [
15
+ 0.229,
16
+ 0.224,
17
+ 0.225
18
+ ],
19
+ "pad_size": {
20
+ "height": 320,
21
+ "width": 320
22
+ },
23
+ "resample": 2,
24
+ "rescale_factor": 0.00392156862745098,
25
+ "size": {
26
+ "max_height": 320,
27
+ "max_width": 320
28
+ }
29
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:709367db9414b34286222fd4b0e14373ab10360a538223312120ddbb65c362f0
3
+ size 5304