Image Classification
Transformers
Safetensors
English
mobilevit
sft
vision
histopathology
lung-cancer
adenocarcinoma
squamous-cell-carcinoma
medical-imaging
Instructions to use Jesteban247/mobilevit_small-lung_cancer_histopathological with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Jesteban247/mobilevit_small-lung_cancer_histopathological with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="Jesteban247/mobilevit_small-lung_cancer_histopathological") 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("Jesteban247/mobilevit_small-lung_cancer_histopathological") model = AutoModelForImageClassification.from_pretrained("Jesteban247/mobilevit_small-lung_cancer_histopathological", device_map="auto") - Notebooks
- Google Colab
- Kaggle
π« MobileViT-Small β Lung Cancer Histopathology (LoRA Fine-tune)
This model is a LoRA fine-tuned version of apple/mobilevit-small
for lung cancer classification using histopathological images from
Lung Cancer Histopathological Images Dataset.
π§© Configuration
| Attribute | Value |
|---|---|
| Base Model | apple/mobilevit-small |
| Fine-tuning Method | LoRA (Low-Rank Adaptation) |
| Dataset | Lung Cancer Histopathological Images |
| Classes | Adenocarcinoma, Benign, Squamous Cell Carcinoma |
| Epochs | 10 |
| Batch Size | 32 |
| Learning Rate | 0.0005 |
| Optimizer | AdamW |
| LoRA Config | r=4, Ξ±=32, dropout=0.1, target_modules=[query, value] |
| Trainable Params | 30.3K / 4.97M (0.61%) |
π¬ Example Image
π Evaluation Results
| Metric | Avg | Adenocarcinoma | Benign | Squamous Cell Carcinoma |
|---|---|---|---|---|
| Accuracy | 0.9974 | 0.9961 | 1.0000 | 0.9961 |
| Precision | 0.9963 | 0.9889 | 1.0000 | 1.0000 |
| Recall | 0.9960 | 1.0000 | 1.0000 | 0.9880 |
| F1 Score | 0.9961 | 0.9944 | 1.0000 | 0.9939 |
| AUC | 1.0000 | 0.9999 | 1.0000 | 0.9999 |
Test loss: 0.00425ββInference time: 0.678 s
- Downloads last month
- 15
Model tree for Jesteban247/mobilevit_small-lung_cancer_histopathological
Base model
apple/mobilevit-small