Downloads · 30 days
214
79% of all-time downloads
Haifald/vit-eurosat
vit-eurosat is a image classification model from Haifald. Use it when you need a label for an image. It is set up for transformers. The card lists the license as apache-2.0.
This model is a fine-tuned version of google/vit-base-patch16-224 for satellite land-cover classification on the EuroSAT dataset.
Downloads · 30 days
214
79% of all-time downloads
All-time downloads
270
Public
Parameters
85.8M
343 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors343 MB · 100%
From the Hugging Face model README
This model is a fine-tuned version of google/vit-base-patch16-224 for satellite land-cover classification on the EuroSAT dataset.
google/vit-base-patch16-224The model was evaluated on the held-out EuroSAT test split of 2,700 images.
| Metric | Result |
|---|---|
| Test Accuracy | 98.70% |
| Macro F1 | 98.67% |
For comparison, a fine-tuned ResNet50 trained on the same data split achieved:
| Metric | Result |
|---|---|
| Test Accuracy | 97.41% |
| Macro F1 | 97.36% |
ViT achieved higher classification performance in this experiment, while ResNet50 trained substantially faster.
The pretrained ViT classification head was adapted to the 10 EuroSAT classes and the model was fine-tuned end to end using Hugging Face Transformers.
Training configuration:
5e-50.013from transformers import pipeline
classifier = pipeline(
"image-classification",
model="Haifald/vit-eurosat"
)
predictions = classifier("path_to_image.jpg")
print(predictions)
Full experiment and comparison with ResNet50: GitHub link will be added after the repository is published.