dima806 commited on
Commit
e35652b
1 Parent(s): 2be6c52

Upload folder using huggingface_hub

Browse files
checkpoint-2230/config.json ADDED
@@ -0,0 +1,132 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "dima806/medicinal_plants_image_detection",
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": "Amla",
13
+ "1": "Curry",
14
+ "2": "Betel",
15
+ "3": "Bamboo",
16
+ "4": "Palak(Spinach)",
17
+ "5": "Coriender",
18
+ "6": "Ashoka",
19
+ "7": "Seethapala",
20
+ "8": "Lemon_grass",
21
+ "9": "Pappaya",
22
+ "10": "Curry_Leaf",
23
+ "11": "Lemon",
24
+ "12": "Nooni",
25
+ "13": "Henna",
26
+ "14": "Mango",
27
+ "15": "Doddpathre",
28
+ "16": "Amruta_Balli",
29
+ "17": "Betel_Nut",
30
+ "18": "Tulsi",
31
+ "19": "Pomegranate",
32
+ "20": "Castor",
33
+ "21": "Jackfruit",
34
+ "22": "Insulin",
35
+ "23": "Pepper",
36
+ "24": "Raktachandini",
37
+ "25": "Aloevera",
38
+ "26": "Jasmine",
39
+ "27": "Doddapatre",
40
+ "28": "Neem",
41
+ "29": "Geranium",
42
+ "30": "Rose",
43
+ "31": "Gauva",
44
+ "32": "Hibiscus",
45
+ "33": "Nithyapushpa",
46
+ "34": "Wood_sorel",
47
+ "35": "Tamarind",
48
+ "36": "Guava",
49
+ "37": "Bhrami",
50
+ "38": "Sapota",
51
+ "39": "Basale",
52
+ "40": "Avacado",
53
+ "41": "Ashwagandha",
54
+ "42": "Nagadali",
55
+ "43": "Arali",
56
+ "44": "Ekka",
57
+ "45": "Ganike",
58
+ "46": "Tulasi",
59
+ "47": "Honge",
60
+ "48": "Mint",
61
+ "49": "Catharanthus",
62
+ "50": "Papaya",
63
+ "51": "Brahmi"
64
+ },
65
+ "image_size": 224,
66
+ "initializer_range": 0.02,
67
+ "intermediate_size": 3072,
68
+ "label2id": {
69
+ "Aloevera": 25,
70
+ "Amla": 0,
71
+ "Amruta_Balli": 16,
72
+ "Arali": 43,
73
+ "Ashoka": 6,
74
+ "Ashwagandha": 41,
75
+ "Avacado": 40,
76
+ "Bamboo": 3,
77
+ "Basale": 39,
78
+ "Betel": 2,
79
+ "Betel_Nut": 17,
80
+ "Bhrami": 37,
81
+ "Brahmi": 51,
82
+ "Castor": 20,
83
+ "Catharanthus": 49,
84
+ "Coriender": 5,
85
+ "Curry": 1,
86
+ "Curry_Leaf": 10,
87
+ "Doddapatre": 27,
88
+ "Doddpathre": 15,
89
+ "Ekka": 44,
90
+ "Ganike": 45,
91
+ "Gauva": 31,
92
+ "Geranium": 29,
93
+ "Guava": 36,
94
+ "Henna": 13,
95
+ "Hibiscus": 32,
96
+ "Honge": 47,
97
+ "Insulin": 22,
98
+ "Jackfruit": 21,
99
+ "Jasmine": 26,
100
+ "Lemon": 11,
101
+ "Lemon_grass": 8,
102
+ "Mango": 14,
103
+ "Mint": 48,
104
+ "Nagadali": 42,
105
+ "Neem": 28,
106
+ "Nithyapushpa": 33,
107
+ "Nooni": 12,
108
+ "Palak(Spinach)": 4,
109
+ "Papaya": 50,
110
+ "Pappaya": 9,
111
+ "Pepper": 23,
112
+ "Pomegranate": 19,
113
+ "Raktachandini": 24,
114
+ "Rose": 30,
115
+ "Sapota": 38,
116
+ "Seethapala": 7,
117
+ "Tamarind": 35,
118
+ "Tulasi": 46,
119
+ "Tulsi": 18,
120
+ "Wood_sorel": 34
121
+ },
122
+ "layer_norm_eps": 1e-12,
123
+ "model_type": "vit",
124
+ "num_attention_heads": 12,
125
+ "num_channels": 3,
126
+ "num_hidden_layers": 12,
127
+ "patch_size": 16,
128
+ "problem_type": "single_label_classification",
129
+ "qkv_bias": true,
130
+ "torch_dtype": "float32",
131
+ "transformers_version": "4.36.2"
132
+ }
checkpoint-2230/model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fca0c5f70caea2a088767c9409ec3c9c0e229cc5f63412082d8d7f7ab57cf87c
3
+ size 343377784
checkpoint-2230/optimizer.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ad262efaaa484b29b294b14a184459856a120e80ef7f172bcc00b3f655588579
3
+ size 686876037
checkpoint-2230/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
+ }
checkpoint-2230/rng_state.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0caf13d3c1c4845401ce3908a9d10f493518819387c05d4dc193b8048dcc7b6d
3
+ size 14575
checkpoint-2230/scheduler.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f6234d0b6199b99c3979c7040c139fda25ee493cda91e370d5e76ffc61a6f7b2
3
+ size 627
checkpoint-2230/trainer_state.json ADDED
@@ -0,0 +1,135 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": 0.20479127764701843,
3
+ "best_model_checkpoint": "medicinal_plants_image_detection/checkpoint-2230",
4
+ "epoch": 10.0,
5
+ "eval_steps": 500,
6
+ "global_step": 2230,
7
+ "is_hyper_param_search": false,
8
+ "is_local_process_zero": true,
9
+ "is_world_process_zero": true,
10
+ "log_history": [
11
+ {
12
+ "epoch": 1.0,
13
+ "eval_accuracy": 0.9938271604938271,
14
+ "eval_loss": 0.2496471256017685,
15
+ "eval_runtime": 46.3305,
16
+ "eval_samples_per_second": 38.463,
17
+ "eval_steps_per_second": 4.813,
18
+ "step": 223
19
+ },
20
+ {
21
+ "epoch": 2.0,
22
+ "eval_accuracy": 0.9943883277216611,
23
+ "eval_loss": 0.23750481009483337,
24
+ "eval_runtime": 45.8824,
25
+ "eval_samples_per_second": 38.838,
26
+ "eval_steps_per_second": 4.86,
27
+ "step": 446
28
+ },
29
+ {
30
+ "epoch": 2.24,
31
+ "learning_rate": 1.5871559633027523e-06,
32
+ "loss": 0.2441,
33
+ "step": 500
34
+ },
35
+ {
36
+ "epoch": 3.0,
37
+ "eval_accuracy": 0.9955106621773289,
38
+ "eval_loss": 0.22795027494430542,
39
+ "eval_runtime": 45.4458,
40
+ "eval_samples_per_second": 39.212,
41
+ "eval_steps_per_second": 4.907,
42
+ "step": 669
43
+ },
44
+ {
45
+ "epoch": 4.0,
46
+ "eval_accuracy": 0.9960718294051627,
47
+ "eval_loss": 0.2221607118844986,
48
+ "eval_runtime": 45.7745,
49
+ "eval_samples_per_second": 38.93,
50
+ "eval_steps_per_second": 4.872,
51
+ "step": 892
52
+ },
53
+ {
54
+ "epoch": 4.48,
55
+ "learning_rate": 1.128440366972477e-06,
56
+ "loss": 0.2131,
57
+ "step": 1000
58
+ },
59
+ {
60
+ "epoch": 5.0,
61
+ "eval_accuracy": 0.9955106621773289,
62
+ "eval_loss": 0.21652725338935852,
63
+ "eval_runtime": 46.3308,
64
+ "eval_samples_per_second": 38.463,
65
+ "eval_steps_per_second": 4.813,
66
+ "step": 1115
67
+ },
68
+ {
69
+ "epoch": 6.0,
70
+ "eval_accuracy": 0.9955106621773289,
71
+ "eval_loss": 0.2128886729478836,
72
+ "eval_runtime": 45.504,
73
+ "eval_samples_per_second": 39.161,
74
+ "eval_steps_per_second": 4.901,
75
+ "step": 1338
76
+ },
77
+ {
78
+ "epoch": 6.73,
79
+ "learning_rate": 6.697247706422018e-07,
80
+ "loss": 0.1971,
81
+ "step": 1500
82
+ },
83
+ {
84
+ "epoch": 7.0,
85
+ "eval_accuracy": 0.9960718294051627,
86
+ "eval_loss": 0.20924252271652222,
87
+ "eval_runtime": 45.8495,
88
+ "eval_samples_per_second": 38.866,
89
+ "eval_steps_per_second": 4.864,
90
+ "step": 1561
91
+ },
92
+ {
93
+ "epoch": 8.0,
94
+ "eval_accuracy": 0.9955106621773289,
95
+ "eval_loss": 0.2073087841272354,
96
+ "eval_runtime": 46.115,
97
+ "eval_samples_per_second": 38.643,
98
+ "eval_steps_per_second": 4.836,
99
+ "step": 1784
100
+ },
101
+ {
102
+ "epoch": 8.97,
103
+ "learning_rate": 2.110091743119266e-07,
104
+ "loss": 0.1871,
105
+ "step": 2000
106
+ },
107
+ {
108
+ "epoch": 9.0,
109
+ "eval_accuracy": 0.9955106621773289,
110
+ "eval_loss": 0.20515015721321106,
111
+ "eval_runtime": 45.8366,
112
+ "eval_samples_per_second": 38.877,
113
+ "eval_steps_per_second": 4.865,
114
+ "step": 2007
115
+ },
116
+ {
117
+ "epoch": 10.0,
118
+ "eval_accuracy": 0.9955106621773289,
119
+ "eval_loss": 0.20479127764701843,
120
+ "eval_runtime": 46.0599,
121
+ "eval_samples_per_second": 38.689,
122
+ "eval_steps_per_second": 4.842,
123
+ "step": 2230
124
+ }
125
+ ],
126
+ "logging_steps": 500,
127
+ "max_steps": 2230,
128
+ "num_input_tokens_seen": 0,
129
+ "num_train_epochs": 10,
130
+ "save_steps": 500,
131
+ "total_flos": 5.523003278059438e+18,
132
+ "train_batch_size": 32,
133
+ "trial_name": null,
134
+ "trial_params": null
135
+ }
checkpoint-2230/training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4f8b211ff932e19175bc7541070de451a6eab7f1906a0d94cab017f2ad81c940
3
+ size 4219
config.json CHANGED
@@ -1,5 +1,5 @@
1
  {
2
- "_name_or_path": "google/vit-base-patch16-224-in21k",
3
  "architectures": [
4
  "ViTForImageClassification"
5
  ],
@@ -128,5 +128,5 @@
128
  "problem_type": "single_label_classification",
129
  "qkv_bias": true,
130
  "torch_dtype": "float32",
131
- "transformers_version": "4.33.2"
132
  }
 
1
  {
2
+ "_name_or_path": "dima806/medicinal_plants_image_detection",
3
  "architectures": [
4
  "ViTForImageClassification"
5
  ],
 
128
  "problem_type": "single_label_classification",
129
  "qkv_bias": true,
130
  "torch_dtype": "float32",
131
+ "transformers_version": "4.36.2"
132
  }
model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:bcbb5b80be39aba86bba5cdcae5f630671f944a566ae1d78c07010283b504c1d
3
  size 343377784
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fca0c5f70caea2a088767c9409ec3c9c0e229cc5f63412082d8d7f7ab57cf87c
3
  size 343377784
training_args.bin CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:dd4f3514f17a397e002d618bb4c685094a71f6570a36f5bfe4984529d10ef39b
3
- size 4027
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4f8b211ff932e19175bc7541070de451a6eab7f1906a0d94cab017f2ad81c940
3
+ size 4219