Image Classification
Transformers
PyTorch
TensorBoard
beit
Generated from Trainer
Eval Results (legacy)
Instructions to use ALM-AHME/beit-large-patch16-224-finetuned-LungCancer-Classification-LC25000-AH-40-30-30 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ALM-AHME/beit-large-patch16-224-finetuned-LungCancer-Classification-LC25000-AH-40-30-30 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="ALM-AHME/beit-large-patch16-224-finetuned-LungCancer-Classification-LC25000-AH-40-30-30") 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("ALM-AHME/beit-large-patch16-224-finetuned-LungCancer-Classification-LC25000-AH-40-30-30") model = AutoModelForImageClassification.from_pretrained("ALM-AHME/beit-large-patch16-224-finetuned-LungCancer-Classification-LC25000-AH-40-30-30", device_map="auto") - Notebooks
- Google Colab
- Kaggle
update model card README.md
Browse files
README.md
CHANGED
|
@@ -21,7 +21,7 @@ model-index:
|
|
| 21 |
metrics:
|
| 22 |
- name: Accuracy
|
| 23 |
type: accuracy
|
| 24 |
-
value: 0.
|
| 25 |
---
|
| 26 |
|
| 27 |
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
|
@@ -31,8 +31,8 @@ should probably proofread and complete it, then remove this comment. -->
|
|
| 31 |
|
| 32 |
This model is a fine-tuned version of [microsoft/beit-large-patch16-224](https://huggingface.co/microsoft/beit-large-patch16-224) on the imagefolder dataset.
|
| 33 |
It achieves the following results on the evaluation set:
|
| 34 |
-
- Loss: 0.
|
| 35 |
-
- Accuracy: 0.
|
| 36 |
|
| 37 |
## Model description
|
| 38 |
|
|
@@ -51,7 +51,7 @@ More information needed
|
|
| 51 |
### Training hyperparameters
|
| 52 |
|
| 53 |
The following hyperparameters were used during training:
|
| 54 |
-
- learning_rate:
|
| 55 |
- train_batch_size: 16
|
| 56 |
- eval_batch_size: 16
|
| 57 |
- seed: 42
|
|
@@ -66,11 +66,11 @@ The following hyperparameters were used during training:
|
|
| 66 |
|
| 67 |
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|
| 68 |
|:-------------:|:-----:|:----:|:---------------:|:--------:|
|
| 69 |
-
| 0.
|
| 70 |
-
| 0.
|
| 71 |
-
| 0.
|
| 72 |
-
| 0.
|
| 73 |
-
| 0.
|
| 74 |
|
| 75 |
|
| 76 |
### Framework versions
|
|
|
|
| 21 |
metrics:
|
| 22 |
- name: Accuracy
|
| 23 |
type: accuracy
|
| 24 |
+
value: 0.9805094130675526
|
| 25 |
---
|
| 26 |
|
| 27 |
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
|
|
|
| 31 |
|
| 32 |
This model is a fine-tuned version of [microsoft/beit-large-patch16-224](https://huggingface.co/microsoft/beit-large-patch16-224) on the imagefolder dataset.
|
| 33 |
It achieves the following results on the evaluation set:
|
| 34 |
+
- Loss: 0.0474
|
| 35 |
+
- Accuracy: 0.9805
|
| 36 |
|
| 37 |
## Model description
|
| 38 |
|
|
|
|
| 51 |
### Training hyperparameters
|
| 52 |
|
| 53 |
The following hyperparameters were used during training:
|
| 54 |
+
- learning_rate: 0.0005
|
| 55 |
- train_batch_size: 16
|
| 56 |
- eval_batch_size: 16
|
| 57 |
- seed: 42
|
|
|
|
| 66 |
|
| 67 |
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|
| 68 |
|:-------------:|:-----:|:----:|:---------------:|:--------:|
|
| 69 |
+
| 0.2312 | 0.99 | 93 | 0.1822 | 0.9453 |
|
| 70 |
+
| 0.3817 | 1.99 | 187 | 0.2106 | 0.9183 |
|
| 71 |
+
| 0.2217 | 3.0 | 281 | 0.1902 | 0.9285 |
|
| 72 |
+
| 0.1667 | 4.0 | 375 | 0.1127 | 0.9584 |
|
| 73 |
+
| 0.0572 | 4.96 | 465 | 0.0474 | 0.9805 |
|
| 74 |
|
| 75 |
|
| 76 |
### Framework versions
|