EuroSAT Land Cover Classifier
satellite image classifier
2 min readupdated
This model is a custom convolutional neural network (CNN) using a custom residual CNN architecture, built to classify land cover using satellite images from the EuroSAT RGB dataset. It categorizes images into 10 classes (including forests, bodies of water, agricultural land, and industrial or residential zones). The model size is about 68 MB, runs on the TensorFlow / Keras framework, and automatically scales pixels via an internal rescaling layer. It is useful for researchers, geographic information system developers, and anyone studying computer vision.
Key features
- Custom residual CNN architecture with high recognition accuracy.
- Trained on the EuroSAT RGB dataset and supports 10 land cover classes.
- Automatic input pixel scaling (no need to divide by 255 before inference).
- Test set accuracy is 96.20%.
What you can do
- Classify satellite and aerial images across 10 landscape categories.
- Integrate the model into your Python and TensorFlow projects for ecosystem or urban environment analysis.
- Run experiments in Earth remote sensing.
Example
import numpy as np
import tensorflow as tf
from PIL import Image
from huggingface_hub import hf_hub_download
REPO_ID = "DavoodParsi/eurosat-land-cover-classifier"
# Скачиваем и загружаем модель
model_path = hf_hub_download(repo_id=REPO_ID, filename="high_final_model.keras")
model = tf.keras.models.load_model(model_path, compile=False)
# Загружаем и подготавливаем изображение
image_array = np.asarray(Image.open("your_image.jpg").convert("RGB"), dtype=np.float32)
resized_image = tf.image.resize(image_array, [64, 64], method="bilinear")
image_batch = tf.expand_dims(resized_image, axis=0)
# Предсказание
predictions = model.predict(image_batch, verbose=0)
print("Predicted index:", int(np.argmax(predictions[0])))
Read more
DetailsAccuracy: 96.20%
Macro F1: 0.9620
Model size: ~68 MB
Input image size: 64 × 64 × 3 (RGB)
Limitations: the model is trained only on the EuroSAT RGB dataset, and generalization to other sensors or regions is not guaranteed.










Comments