amyeroberts HF staff commited on
Commit
8fcb38c
1 Parent(s): f548773

Training in progress epoch 0

Browse files
Files changed (4) hide show
  1. README.md +58 -0
  2. config.json +33 -0
  3. preprocessor_config.json +17 -0
  4. tf_model.h5 +3 -0
README.md ADDED
@@ -0,0 +1,58 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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.6342
21
+ - Train Accuracy: 0.9925
22
+ - Validation Loss: 0.2390
23
+ - Validation Accuracy: 0.9925
24
+ - Epoch: 0
25
+
26
+ ## Model description
27
+
28
+ More information needed
29
+
30
+ ## Intended uses & limitations
31
+
32
+ More information needed
33
+
34
+ ## Training and evaluation data
35
+
36
+ More information needed
37
+
38
+ ## Training procedure
39
+
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
+
52
+
53
+ ### Framework versions
54
+
55
+ - Transformers 4.24.0.dev0
56
+ - TensorFlow 2.10.0
57
+ - Datasets 2.6.2.dev0
58
+ - Tokenizers 0.12.1
config.json ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "google/vit-base-patch16-224-in21k",
3
+ "architectures": [
4
+ "ViTForImageClassification"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.0,
7
+ "encoder_stride": 16,
8
+ "finetuning_task": "image-classification",
9
+ "hidden_act": "gelu",
10
+ "hidden_dropout_prob": 0.0,
11
+ "hidden_size": 768,
12
+ "id2label": {
13
+ "0": "angular_leaf_spot",
14
+ "1": "bean_rust",
15
+ "2": "healthy"
16
+ },
17
+ "image_size": 224,
18
+ "initializer_range": 0.02,
19
+ "intermediate_size": 3072,
20
+ "label2id": {
21
+ "angular_leaf_spot": "0",
22
+ "bean_rust": "1",
23
+ "healthy": "2"
24
+ },
25
+ "layer_norm_eps": 1e-12,
26
+ "model_type": "vit",
27
+ "num_attention_heads": 12,
28
+ "num_channels": 3,
29
+ "num_hidden_layers": 12,
30
+ "patch_size": 16,
31
+ "qkv_bias": true,
32
+ "transformers_version": "4.24.0.dev0"
33
+ }
preprocessor_config.json ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "do_normalize": true,
3
+ "do_resize": true,
4
+ "feature_extractor_type": "ViTFeatureExtractor",
5
+ "image_mean": [
6
+ 0.5,
7
+ 0.5,
8
+ 0.5
9
+ ],
10
+ "image_std": [
11
+ 0.5,
12
+ 0.5,
13
+ 0.5
14
+ ],
15
+ "resample": 2,
16
+ "size": 224
17
+ }
tf_model.h5 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5f8037c42070e87bb4cb124a937f76f5333e486f97feb7c10b694a57903aae01
3
+ size 343472824