yemisi commited on
Commit
2ced42b
1 Parent(s): 1b448bc

End of training

Browse files
Files changed (4) hide show
  1. README.md +59 -0
  2. config.json +56 -0
  3. preprocessor_config.json +22 -0
  4. tf_model.h5 +3 -0
README.md ADDED
@@ -0,0 +1,59 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ base_model: google/vit-base-patch16-224-in21k
4
+ tags:
5
+ - generated_from_keras_callback
6
+ model-index:
7
+ - name: yemisi/ricedisease_classifier
8
+ results: []
9
+ ---
10
+
11
+ <!-- This model card has been generated automatically according to the information Keras had access to. You should
12
+ probably proofread and complete it, then remove this comment. -->
13
+
14
+ # yemisi/ricedisease_classifier
15
+
16
+ This model is a fine-tuned version of [google/vit-base-patch16-224-in21k](https://huggingface.co/google/vit-base-patch16-224-in21k) on an unknown dataset.
17
+ It achieves the following results on the evaluation set:
18
+ - Train Loss: 0.1499
19
+ - Validation Loss: 0.1889
20
+ - Train Accuracy: 0.9434
21
+ - Epoch: 4
22
+
23
+ ## Model description
24
+
25
+ More information needed
26
+
27
+ ## Intended uses & limitations
28
+
29
+ More information needed
30
+
31
+ ## Training and evaluation data
32
+
33
+ More information needed
34
+
35
+ ## Training procedure
36
+
37
+ ### Training hyperparameters
38
+
39
+ The following hyperparameters were used during training:
40
+ - optimizer: {'name': 'AdamWeightDecay', 'learning_rate': {'module': 'keras.optimizers.schedules', 'class_name': 'PolynomialDecay', 'config': {'initial_learning_rate': 3e-05, 'decay_steps': 78610, 'end_learning_rate': 0.0, 'power': 1.0, 'cycle': False, 'name': None}, 'registered_name': None}, 'decay': 0.0, 'beta_1': 0.9, 'beta_2': 0.999, 'epsilon': 1e-08, 'amsgrad': False, 'weight_decay_rate': 0.01}
41
+ - training_precision: float32
42
+
43
+ ### Training results
44
+
45
+ | Train Loss | Validation Loss | Train Accuracy | Epoch |
46
+ |:----------:|:---------------:|:--------------:|:-----:|
47
+ | 1.1162 | 0.5310 | 0.8806 | 0 |
48
+ | 0.4034 | 0.5059 | 0.8555 | 1 |
49
+ | 0.2501 | 0.2754 | 0.9259 | 2 |
50
+ | 0.1898 | 0.2323 | 0.9276 | 3 |
51
+ | 0.1499 | 0.1889 | 0.9434 | 4 |
52
+
53
+
54
+ ### Framework versions
55
+
56
+ - Transformers 4.42.4
57
+ - TensorFlow 2.17.0
58
+ - Datasets 2.20.0
59
+ - Tokenizers 0.19.1
config.json ADDED
@@ -0,0 +1,56 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ "hidden_act": "gelu",
9
+ "hidden_dropout_prob": 0.0,
10
+ "hidden_size": 768,
11
+ "id2label": {
12
+ "0": "Brown Spot",
13
+ "1": "Leaf Blight",
14
+ "10": "bacterial_panicle_blight",
15
+ "11": "dead_heart",
16
+ "12": "downy_mildew",
17
+ "13": "healthy",
18
+ "14": "hispa",
19
+ "2": "Leaf Scaled",
20
+ "3": "Leaf blast",
21
+ "4": "Narrow brown spot",
22
+ "5": "Rice Blast",
23
+ "6": "Rice Tungro",
24
+ "7": "Sheath Blight",
25
+ "8": "bacterial_leaf_blight",
26
+ "9": "bacterial_leaf_streak"
27
+ },
28
+ "image_size": 224,
29
+ "initializer_range": 0.02,
30
+ "intermediate_size": 3072,
31
+ "label2id": {
32
+ "Brown Spot": "0",
33
+ "Leaf Blight": "1",
34
+ "Leaf Scaled": "2",
35
+ "Leaf blast": "3",
36
+ "Narrow brown spot": "4",
37
+ "Rice Blast": "5",
38
+ "Rice Tungro": "6",
39
+ "Sheath Blight": "7",
40
+ "bacterial_leaf_blight": "8",
41
+ "bacterial_leaf_streak": "9",
42
+ "bacterial_panicle_blight": "10",
43
+ "dead_heart": "11",
44
+ "downy_mildew": "12",
45
+ "healthy": "13",
46
+ "hispa": "14"
47
+ },
48
+ "layer_norm_eps": 1e-12,
49
+ "model_type": "vit",
50
+ "num_attention_heads": 12,
51
+ "num_channels": 3,
52
+ "num_hidden_layers": 12,
53
+ "patch_size": 16,
54
+ "qkv_bias": true,
55
+ "transformers_version": "4.42.4"
56
+ }
preprocessor_config.json ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "do_normalize": true,
3
+ "do_rescale": true,
4
+ "do_resize": true,
5
+ "image_mean": [
6
+ 0.5,
7
+ 0.5,
8
+ 0.5
9
+ ],
10
+ "image_processor_type": "ViTImageProcessor",
11
+ "image_std": [
12
+ 0.5,
13
+ 0.5,
14
+ 0.5
15
+ ],
16
+ "resample": 2,
17
+ "rescale_factor": 0.00392156862745098,
18
+ "size": {
19
+ "height": 224,
20
+ "width": 224
21
+ }
22
+ }
tf_model.h5 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bed9bbaf2880c4ab3fc39f1e7ededfa63890bef0af0b9129fc97787c07547c0f
3
+ size 343509688