Downloads · 30 days
5
3% of all-time downloads
tugrulkaya/GeoQwen-VL-2B-EuroSAT
GeoQwen-VL-2B-EuroSAT is a image-text-to-text model from tugrulkaya. Use it for the image-text-to-text task on the model card, and read the license before you ship it in a product. It is set up for peft. The card lists the license as apache-2.0.
Remote sensing scene classification model fine-tuned on EuroSAT.
Downloads · 30 days
5
3% of all-time downloads
All-time downloads
184
Public
Repo size
11.6 MB
Likes
1
Public
Click a slice to open those files.
.json14.2 MB · 88%
From the Hugging Face model README
Remote sensing scene classification model fine-tuned on EuroSAT.
from transformers import Qwen2VLForConditionalGeneration, AutoProcessor
from peft import PeftModel
base_model = Qwen2VLForConditionalGeneration.from_pretrained("Qwen/Qwen2-VL-2B-Instruct", device_map="auto")
model = PeftModel.from_pretrained(base_model, "tugrulkaya/GeoQwen-VL-2B-EuroSAT")
processor = AutoProcessor.from_pretrained("Qwen/Qwen2-VL-2B-Instruct")
AnnualCrop, Forest, HerbaceousVegetation, Highway, Industrial, Pasture, PermanentCrop, Residential, River, SeaLake
Remote sensing and satellite imagery play a critical role in understanding and monitoring changes on our planet. Extracting meaningful information from this vast and complex dataset can be challenging and time-consuming with traditional methods. This is where vision-language models (VLMs), which combine natural language processing and computer vision, come into play. This project describes the development process of GeoQwen-VL-2B-EuroSAT, a VLM designed to classify and interpret satellite images using natural language.
In the field of geospatial intelligence, the need for systems that can automatically extract information from satellite images is growing. Accurate and rapid analysis in areas such as land cover classification, environmental monitoring, urban planning, and disaster management is vital. The primary motivation of this project was to develop a powerful VLM capable of processing large-scale satellite data, understanding complex visual information, and generating human-like descriptions. By adapting a state-of-the-art model like Qwen2-VL to the field of satellite imagery, these goals were aimed to be achieved.
The project primarily involved fine-tuning the Qwen2-VL-2B-Instruct model using the Low-Rank Adaptation (LoRA) technique on the EuroSAT RGB dataset. This chosen technique allows for efficient training of large models even in resource-constrained environments (e.g., T4 GPU) like Colab. 4-bit quantization significantly reduced the model's memory footprint, enhancing its ability to work with larger models. The EuroSAT dataset consists of Sentinel-2 satellite images representing 10 different land cover classes in Europe. The model learned to recognize and describe land cover types in these images by using natural language instructions in a question-answering format.
bitsandbytes library, allowing the model to fit within the 16GB memory of a T4 GPU.gradient_accumulation_steps helped optimize the training process.VLMDataCollator class automated this conversion, simplifying the training process.huggingface_hub library, providing shareability and reproducibility of the model.truncation=True and max_length=512 parameters used in VLMDataCollator during training were missing in the processor call during inference. This led to an IndexError due to inconsistent input_ids and attention_mask dimensions. The solution involved re-adding these parameters to the inference processor call to ensure consistency.The greatest achievement of this project is the successful fine-tuning of a complex VLM like Qwen2-VL-2B-Instruct on the EuroSAT dataset with limited resources, thanks to LoRA and 4-bit quantization techniques. The developed GeoQwen-VL-2B-EuroSAT model:
This is an important step towards developing more accessible and powerful VLMs in the field of remote sensing.
The potential application areas of the GeoQwen-VL-2B-EuroSAT model are extensive:
Future work includes training the model on broader and more diverse remote sensing datasets (RESISC45, AID, BigEarthNet), experimenting with larger models like Qwen2.5-VL-7B, and adding more advanced capabilities such as change detection. Additionally, there are plans to create a Gradio demo space to increase the model's accessibility.
This project establishes an important bridge in creating value from remote sensing data and opens new horizons in the field of geospatial intelligence.
Below are example images from the EuroSAT dataset, showcasing different land cover classes that the model was trained on. These visuals represent the various scenarios the model needs to recognize.

This visual directly compares the GeoQwen-VL-2B-EuroSAT model's generated description for a satellite image against its ground truth label. It vividly illustrates the model's capability to interpret complex geospatial visuals and provide concise, accurate natural language explanations, showcasing its potential for automated scene understanding.
