
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
should probably proofread and complete it, then remove this comment. -->

# working

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 leaf-images dataset.
It achieves the following results on the evaluation set:
- Loss: 0.0857
- Accuracy: 0.9801

## Model description

Finetuned model on 66000+ images of different species of leaves along with their diseases

## Intended uses & limitations

More information needed

## Training and evaluation data

More information needed

## Training procedure

### Training hyperparameters

The following hyperparameters were used during training:
- learning_rate: 0.0002
- train_batch_size: 48
- eval_batch_size: 8
- seed: 42
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
- lr_scheduler_type: linear
- num_epochs: 1

### Training results

| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|:-------------:|:-----:|:----:|:---------------:|:--------:|
| 0.9728        | 0.08  | 100  | 0.9026          | 0.8922   |
| 0.4538        | 0.17  | 200  | 0.4412          | 0.9270   |
| 0.2368        | 0.25  | 300  | 0.2870          | 0.9399   |
| 0.2388        | 0.34  | 400  | 0.2208          | 0.9504   |
| 0.1422        | 0.42  | 500  | 0.2046          | 0.9508   |
| 0.1663        | 0.51  | 600  | 0.1538          | 0.9625   |
| 0.1535        | 0.59  | 700  | 0.1427          | 0.9653   |
| 0.1233        | 0.68  | 800  | 0.1133          | 0.9724   |
| 0.1079        | 0.76  | 900  | 0.1005          | 0.9759   |
| 0.1154        | 0.84  | 1000 | 0.0989          | 0.9748   |
| 0.08          | 0.93  | 1100 | 0.0857          | 0.9801   |


### Framework versions

- Transformers 4.33.0
- Pytorch 2.0.0
- Datasets 2.1.0
- Tokenizers 0.13.3
apple_black_rot apple_cedar_apple_rust corn_(maize)_healthy cotton_leaf_diseased cotton_leaf_fresh grape_black_rot grape___esca_(black_measles) grape___leaf_blight_(isariopsis_leaf_spot) grape___healthy orange_haunglongbing_(citrus_greening) orange__black_rot orange__canker apple_powdery_mildew orange__healthy peach_bacterial_spot peach_healthy pepper,_bell_bacterial_spot pepper,_bell_healthy potato_early_blight potato_late_blight potato_healthy squash_powdery_mildew strawberry_leaf_scorch apple_healthy strawberry_healthy tomato_bacterial_spot tomato_early_blight tomato_late_blight tomato_leaf_mold tomato_septoria_leaf_spot tomato_spider_mites_two_spotted_spider_mite tomato_target_spot tomato_tomato_yellow_leaf_curl_virus tomato_tomato_mosaic_virus apple_scab tomato_healthy wheat_healthy wheat_leaf_rust wheat_nitrogen_deficiency cherry_(including_sour)_powdery_mildew cherry_(including_sour)_healthy corn_(maize)_cercospora_leaf_spot gray_leaf_spot corn_(maize)_common_rust corn_(maize)_northern_leaf_blight