amyeroberts HF staff commited on
Commit
05510b7
1 Parent(s): 252909e

update model card README.md

Browse files
Files changed (1) hide show
  1. README.md +43 -25
README.md CHANGED
@@ -1,27 +1,38 @@
1
  ---
2
  license: apache-2.0
3
  tags:
4
- - image-classification
5
- - tensorflow
6
- - vision
7
- - generated_from_keras_callback
 
8
  model-index:
9
- - name: amyeroberts/vit-base-beans
10
- results: []
 
 
 
 
 
 
 
 
 
 
 
 
 
11
  ---
12
 
13
- <!-- This model card has been generated automatically according to the information Keras had access to. You should
14
- probably proofread and complete it, then remove this comment. -->
15
 
16
- # amyeroberts/vit-base-beans
17
 
18
  This model is a fine-tuned version of [google/vit-base-patch16-224-in21k](https://huggingface.co/google/vit-base-patch16-224-in21k) on the beans dataset.
19
  It achieves the following results on the evaluation set:
20
- - Train Loss: 0.1538
21
- - Train Accuracy: 0.9774
22
- - Validation Loss: 0.1126
23
- - Validation Accuracy: 0.9774
24
- - Epoch: 2
25
 
26
  ## Model description
27
 
@@ -40,21 +51,28 @@ More information needed
40
  ### Training hyperparameters
41
 
42
  The following hyperparameters were used during training:
43
- - optimizer: {'name': 'Adam', 'global_clipnorm': 1.0, 'learning_rate': {'class_name': 'PolynomialDecay', 'config': {'initial_learning_rate': 2e-05, 'decay_steps': 5170, 'end_learning_rate': 0.0, 'power': 1.0, 'cycle': False, 'name': None}}, 'decay': 0.0, 'beta_1': 0.9, 'beta_2': 0.999, 'epsilon': 1e-08, 'amsgrad': False}
44
- - training_precision: float32
 
 
 
 
 
45
 
46
  ### Training results
47
 
48
- | Train Loss | Train Accuracy | Validation Loss | Validation Accuracy | Epoch |
49
- |:----------:|:--------------:|:---------------:|:-------------------:|:-----:|
50
- | 0.6342 | 0.9925 | 0.2390 | 0.9925 | 0 |
51
- | 0.2234 | 0.9774 | 0.1293 | 0.9774 | 1 |
52
- | 0.1538 | 0.9774 | 0.1126 | 0.9774 | 2 |
 
 
53
 
54
 
55
  ### Framework versions
56
 
57
- - Transformers 4.24.0.dev0
58
- - TensorFlow 2.10.0
59
- - Datasets 2.6.2.dev0
60
- - Tokenizers 0.12.1
 
1
  ---
2
  license: apache-2.0
3
  tags:
4
+ - generated_from_trainer
5
+ datasets:
6
+ - beans
7
+ metrics:
8
+ - accuracy
9
  model-index:
10
+ - name: vit-base-beans
11
+ results:
12
+ - task:
13
+ name: Image Classification
14
+ type: image-classification
15
+ dataset:
16
+ name: beans
17
+ type: beans
18
+ config: default
19
+ split: validation
20
+ args: default
21
+ metrics:
22
+ - name: Accuracy
23
+ type: accuracy
24
+ value: 0.9849624060150376
25
  ---
26
 
27
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
28
+ should probably proofread and complete it, then remove this comment. -->
29
 
30
+ # vit-base-beans
31
 
32
  This model is a fine-tuned version of [google/vit-base-patch16-224-in21k](https://huggingface.co/google/vit-base-patch16-224-in21k) on the beans dataset.
33
  It achieves the following results on the evaluation set:
34
+ - Loss: 0.0630
35
+ - Accuracy: 0.9850
 
 
 
36
 
37
  ## Model description
38
 
 
51
  ### Training hyperparameters
52
 
53
  The following hyperparameters were used during training:
54
+ - learning_rate: 2e-05
55
+ - train_batch_size: 8
56
+ - eval_batch_size: 8
57
+ - seed: 1337
58
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
59
+ - lr_scheduler_type: linear
60
+ - num_epochs: 5.0
61
 
62
  ### Training results
63
 
64
+ | Training Loss | Epoch | Step | Validation Loss | Accuracy |
65
+ |:-------------:|:-----:|:----:|:---------------:|:--------:|
66
+ | 0.3038 | 1.0 | 130 | 0.2396 | 0.9624 |
67
+ | 0.1609 | 2.0 | 260 | 0.1130 | 0.9774 |
68
+ | 0.2313 | 3.0 | 390 | 0.0809 | 0.9850 |
69
+ | 0.1436 | 4.0 | 520 | 0.0738 | 0.9850 |
70
+ | 0.1086 | 5.0 | 650 | 0.0630 | 0.9850 |
71
 
72
 
73
  ### Framework versions
74
 
75
+ - Transformers 4.27.0.dev0
76
+ - Pytorch 1.14.0.dev20221118
77
+ - Datasets 2.9.1.dev0
78
+ - Tokenizers 0.13.2