Image Classification
Transformers
TensorBoard
Safetensors
vit
brain-tumor
medical-imaging
Generated from Trainer
Eval Results (legacy)
Instructions to use Tharsana/vit-base-brain-tumor with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Tharsana/vit-base-brain-tumor with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="Tharsana/vit-base-brain-tumor") pipe("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/parrots.png")# Load model directly from transformers import AutoImageProcessor, AutoModelForImageClassification processor = AutoImageProcessor.from_pretrained("Tharsana/vit-base-brain-tumor") model = AutoModelForImageClassification.from_pretrained("Tharsana/vit-base-brain-tumor", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Model save
Browse files
README.md
CHANGED
|
@@ -3,9 +3,6 @@ library_name: transformers
|
|
| 3 |
license: apache-2.0
|
| 4 |
base_model: google/vit-base-patch16-224
|
| 5 |
tags:
|
| 6 |
-
- image-classification
|
| 7 |
-
- brain-tumor
|
| 8 |
-
- medical-imaging
|
| 9 |
- generated_from_trainer
|
| 10 |
datasets:
|
| 11 |
- imagefolder
|
|
@@ -18,7 +15,7 @@ model-index:
|
|
| 18 |
name: Image Classification
|
| 19 |
type: image-classification
|
| 20 |
dataset:
|
| 21 |
-
name:
|
| 22 |
type: imagefolder
|
| 23 |
config: default
|
| 24 |
split: train
|
|
@@ -26,7 +23,7 @@ model-index:
|
|
| 26 |
metrics:
|
| 27 |
- name: Accuracy
|
| 28 |
type: accuracy
|
| 29 |
-
value: 0.
|
| 30 |
---
|
| 31 |
|
| 32 |
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
|
@@ -34,10 +31,10 @@ should probably proofread and complete it, then remove this comment. -->
|
|
| 34 |
|
| 35 |
# vit-base-brain-tumor
|
| 36 |
|
| 37 |
-
This model is a fine-tuned version of [google/vit-base-patch16-224](https://huggingface.co/google/vit-base-patch16-224) on the
|
| 38 |
It achieves the following results on the evaluation set:
|
| 39 |
-
- Loss: 0.
|
| 40 |
-
- Accuracy: 0.
|
| 41 |
|
| 42 |
## Model description
|
| 43 |
|
|
@@ -68,21 +65,21 @@ The following hyperparameters were used during training:
|
|
| 68 |
|
| 69 |
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|
| 70 |
|:-------------:|:-----:|:----:|:---------------:|:--------:|
|
| 71 |
-
| 0.
|
| 72 |
-
| 0.
|
| 73 |
-
| 0.
|
| 74 |
-
| 0.
|
| 75 |
-
| 0.
|
| 76 |
-
| 0.
|
| 77 |
-
| 0.
|
| 78 |
-
| 0.
|
| 79 |
-
| 0.
|
| 80 |
-
| 0.
|
| 81 |
-
| 0.
|
| 82 |
-
| 0.
|
| 83 |
-
| 0.
|
| 84 |
-
| 0.
|
| 85 |
-
| 0.
|
| 86 |
|
| 87 |
|
| 88 |
### Framework versions
|
|
|
|
| 3 |
license: apache-2.0
|
| 4 |
base_model: google/vit-base-patch16-224
|
| 5 |
tags:
|
|
|
|
|
|
|
|
|
|
| 6 |
- generated_from_trainer
|
| 7 |
datasets:
|
| 8 |
- imagefolder
|
|
|
|
| 15 |
name: Image Classification
|
| 16 |
type: image-classification
|
| 17 |
dataset:
|
| 18 |
+
name: imagefolder
|
| 19 |
type: imagefolder
|
| 20 |
config: default
|
| 21 |
split: train
|
|
|
|
| 23 |
metrics:
|
| 24 |
- name: Accuracy
|
| 25 |
type: accuracy
|
| 26 |
+
value: 0.8698884758364313
|
| 27 |
---
|
| 28 |
|
| 29 |
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
|
|
|
| 31 |
|
| 32 |
# vit-base-brain-tumor
|
| 33 |
|
| 34 |
+
This model is a fine-tuned version of [google/vit-base-patch16-224](https://huggingface.co/google/vit-base-patch16-224) on the imagefolder dataset.
|
| 35 |
It achieves the following results on the evaluation set:
|
| 36 |
+
- Loss: 0.3678
|
| 37 |
+
- Accuracy: 0.8699
|
| 38 |
|
| 39 |
## Model description
|
| 40 |
|
|
|
|
| 65 |
|
| 66 |
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|
| 67 |
|:-------------:|:-----:|:----:|:---------------:|:--------:|
|
| 68 |
+
| 0.8264 | 1.0 | 135 | 0.6904 | 0.5709 |
|
| 69 |
+
| 0.6692 | 2.0 | 270 | 0.5918 | 0.7313 |
|
| 70 |
+
| 0.5584 | 3.0 | 405 | 0.5281 | 0.7836 |
|
| 71 |
+
| 0.4993 | 4.0 | 540 | 0.4851 | 0.8321 |
|
| 72 |
+
| 0.4554 | 5.0 | 675 | 0.4554 | 0.8321 |
|
| 73 |
+
| 0.4237 | 6.0 | 810 | 0.4345 | 0.8246 |
|
| 74 |
+
| 0.4035 | 7.0 | 945 | 0.4183 | 0.8246 |
|
| 75 |
+
| 0.3861 | 8.0 | 1080 | 0.4066 | 0.8321 |
|
| 76 |
+
| 0.3793 | 9.0 | 1215 | 0.3976 | 0.8433 |
|
| 77 |
+
| 0.3678 | 10.0 | 1350 | 0.3898 | 0.8433 |
|
| 78 |
+
| 0.3665 | 11.0 | 1485 | 0.3843 | 0.8433 |
|
| 79 |
+
| 0.3564 | 12.0 | 1620 | 0.3802 | 0.8433 |
|
| 80 |
+
| 0.3518 | 13.0 | 1755 | 0.3772 | 0.8470 |
|
| 81 |
+
| 0.3508 | 14.0 | 1890 | 0.3755 | 0.8470 |
|
| 82 |
+
| 0.3518 | 15.0 | 2025 | 0.3750 | 0.8470 |
|
| 83 |
|
| 84 |
|
| 85 |
### Framework versions
|
runs/May24_14-13-43_ip-10-192-11-175/events.out.tfevents.1748096419.ip-10-192-11-175.1808.1
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2dd8dab5fabdc6fcc5427239bc935ba5b3a8caa292cf7baee1d90a94e7dd850b
|
| 3 |
+
size 734
|