Jiyog commited on
Commit
da1f1a7
·
verified ·
1 Parent(s): cc75721

Jiyog/fine-tuned-kitchenobj-resnet50

Browse files
Files changed (4) hide show
  1. README.md +24 -24
  2. config.json +20 -21
  3. model.safetensors +1 -1
  4. training_args.bin +1 -1
README.md CHANGED
@@ -1,5 +1,7 @@
1
  ---
2
  library_name: transformers
 
 
3
  tags:
4
  - generated_from_trainer
5
  datasets:
@@ -22,10 +24,10 @@ model-index:
22
  metrics:
23
  - name: Accuracy
24
  type: accuracy
25
- value: 0.6008750607681089
26
  - name: F1
27
  type: f1
28
- value: 0.5946155383964072
29
  ---
30
 
31
  <!-- This model card has been generated automatically according to the information the Trainer had access to. You
@@ -33,11 +35,11 @@ should probably proofread and complete it, then remove this comment. -->
33
 
34
  # resnet-kitchen-object
35
 
36
- This model is a fine-tuned version of [](https://huggingface.co/) on the imagefolder dataset.
37
  It achieves the following results on the evaluation set:
38
- - Loss: 1.2913
39
- - Accuracy: 0.6009
40
- - F1: 0.5946
41
 
42
  ## Model description
43
 
@@ -56,34 +58,32 @@ More information needed
56
  ### Training hyperparameters
57
 
58
  The following hyperparameters were used during training:
59
- - learning_rate: 0.0003
60
- - train_batch_size: 32
61
- - eval_batch_size: 32
62
  - seed: 42
63
  - optimizer: Use OptimizerNames.ADAMW_TORCH_FUSED with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
64
  - lr_scheduler_type: cosine
65
  - lr_scheduler_warmup_ratio: 0.05
66
- - num_epochs: 14
67
  - mixed_precision_training: Native AMP
68
 
69
  ### Training results
70
 
71
  | Training Loss | Epoch | Step | Validation Loss | Accuracy | F1 |
72
  |:-------------:|:-----:|:----:|:---------------:|:--------:|:------:|
73
- | 2.3508 | 1.0 | 224 | 3.0948 | 0.1779 | 0.1492 |
74
- | 2.0324 | 2.0 | 448 | 2.0692 | 0.2615 | 0.2454 |
75
- | 1.8579 | 3.0 | 672 | 2.0103 | 0.2528 | 0.2369 |
76
- | 1.7853 | 4.0 | 896 | 3.5934 | 0.2470 | 0.2224 |
77
- | 1.666 | 5.0 | 1120 | 2.0879 | 0.3175 | 0.3163 |
78
- | 1.5695 | 6.0 | 1344 | 1.6535 | 0.4176 | 0.4115 |
79
- | 1.4633 | 7.0 | 1568 | 1.5123 | 0.4754 | 0.4698 |
80
- | 1.3519 | 8.0 | 1792 | 1.4649 | 0.5070 | 0.4970 |
81
- | 1.2921 | 9.0 | 2016 | 1.8045 | 0.4404 | 0.4389 |
82
- | 1.1215 | 10.0 | 2240 | 1.3583 | 0.5659 | 0.5654 |
83
- | 1.0105 | 11.0 | 2464 | 1.3541 | 0.5639 | 0.5551 |
84
- | 0.8996 | 12.0 | 2688 | 1.2972 | 0.5800 | 0.5777 |
85
- | 0.7803 | 13.0 | 2912 | 1.2917 | 0.5955 | 0.5913 |
86
- | 0.7978 | 14.0 | 3136 | 1.2913 | 0.6009 | 0.5946 |
87
 
88
 
89
  ### Framework versions
 
1
  ---
2
  library_name: transformers
3
+ license: apache-2.0
4
+ base_model: microsoft/resnet-50
5
  tags:
6
  - generated_from_trainer
7
  datasets:
 
24
  metrics:
25
  - name: Accuracy
26
  type: accuracy
27
+ value: 0.8677685950413223
28
  - name: F1
29
  type: f1
30
+ value: 0.8678765100301015
31
  ---
32
 
33
  <!-- This model card has been generated automatically according to the information the Trainer had access to. You
 
35
 
36
  # resnet-kitchen-object
37
 
38
+ This model is a fine-tuned version of [microsoft/resnet-50](https://huggingface.co/microsoft/resnet-50) on the imagefolder dataset.
39
  It achieves the following results on the evaluation set:
40
+ - Loss: 0.4314
41
+ - Accuracy: 0.8678
42
+ - F1: 0.8679
43
 
44
  ## Model description
45
 
 
58
  ### Training hyperparameters
59
 
60
  The following hyperparameters were used during training:
61
+ - learning_rate: 5e-05
62
+ - train_batch_size: 16
63
+ - eval_batch_size: 16
64
  - seed: 42
65
  - optimizer: Use OptimizerNames.ADAMW_TORCH_FUSED with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
66
  - lr_scheduler_type: cosine
67
  - lr_scheduler_warmup_ratio: 0.05
68
+ - num_epochs: 12
69
  - mixed_precision_training: Native AMP
70
 
71
  ### Training results
72
 
73
  | Training Loss | Epoch | Step | Validation Loss | Accuracy | F1 |
74
  |:-------------:|:-----:|:----:|:---------------:|:--------:|:------:|
75
+ | 2.0478 | 1.0 | 447 | 1.8372 | 0.5119 | 0.5147 |
76
+ | 0.9774 | 2.0 | 894 | 0.7962 | 0.7832 | 0.7816 |
77
+ | 0.6756 | 3.0 | 1341 | 0.5893 | 0.8221 | 0.8211 |
78
+ | 0.5692 | 4.0 | 1788 | 0.5361 | 0.8347 | 0.8349 |
79
+ | 0.5087 | 5.0 | 2235 | 0.5034 | 0.8439 | 0.8438 |
80
+ | 0.4525 | 6.0 | 2682 | 0.4738 | 0.8483 | 0.8480 |
81
+ | 0.4211 | 7.0 | 3129 | 0.4518 | 0.8610 | 0.8604 |
82
+ | 0.4156 | 8.0 | 3576 | 0.4418 | 0.8629 | 0.8628 |
83
+ | 0.3394 | 9.0 | 4023 | 0.4394 | 0.8663 | 0.8659 |
84
+ | 0.3452 | 10.0 | 4470 | 0.4341 | 0.8653 | 0.8654 |
85
+ | 0.3121 | 11.0 | 4917 | 0.4457 | 0.8658 | 0.8655 |
86
+ | 0.3392 | 12.0 | 5364 | 0.4314 | 0.8678 | 0.8679 |
 
 
87
 
88
 
89
  ### Framework versions
config.json CHANGED
@@ -20,29 +20,28 @@
20
  2048
21
  ],
22
  "id2label": {
23
- "0": "bowl",
24
- "1": "fork",
25
- "2": "glass",
26
- "3": "knife",
27
- "4": "mug",
28
- "5": "pan",
29
- "6": "plate",
30
- "7": "spatula",
31
- "8": "spoon",
32
- "9": "whisk"
33
  },
34
- "image_size": 224,
35
  "label2id": {
36
- "bowl": "0",
37
- "fork": "1",
38
- "glass": "2",
39
- "knife": "3",
40
- "mug": "4",
41
- "pan": "5",
42
- "plate": "6",
43
- "spatula": "7",
44
- "spoon": "8",
45
- "whisk": "9"
46
  },
47
  "layer_type": "bottleneck",
48
  "model_type": "resnet",
 
20
  2048
21
  ],
22
  "id2label": {
23
+ "0": "LABEL_0",
24
+ "1": "LABEL_1",
25
+ "2": "LABEL_2",
26
+ "3": "LABEL_3",
27
+ "4": "LABEL_4",
28
+ "5": "LABEL_5",
29
+ "6": "LABEL_6",
30
+ "7": "LABEL_7",
31
+ "8": "LABEL_8",
32
+ "9": "LABEL_9"
33
  },
 
34
  "label2id": {
35
+ "LABEL_0": 0,
36
+ "LABEL_1": 1,
37
+ "LABEL_2": 2,
38
+ "LABEL_3": 3,
39
+ "LABEL_4": 4,
40
+ "LABEL_5": 5,
41
+ "LABEL_6": 6,
42
+ "LABEL_7": 7,
43
+ "LABEL_8": 8,
44
+ "LABEL_9": 9
45
  },
46
  "layer_type": "bottleneck",
47
  "model_type": "resnet",
model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:2eaedf7eca1ef49907e4c8dcc006595ee5b3998380335743534759702dd330d3
3
  size 94368544
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:dbb9013a4e54bdbb351c7a49d95bbccf3b196e1e531d0192a24172fd614add05
3
  size 94368544
training_args.bin CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:d0483edade651a6423e1dd72b6117037de4da1b9cd0a1a12b75ebd593faba568
3
  size 5841
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:71d93c0305244e2f0e7405e0dd1665c029588f619eb5eb06e234666bd6be6b77
3
  size 5841