Views
No views yet
| Model | Accuracy |
|---|---|
| Base VRSBench Model | ~10% (random baseline) |
| VRSBench + EuroSAT (this model) | 97.52% |
1# Download Q4_K_M quantized version (recommended)
2wget https://huggingface.co/5ch4um1/lfm2.5-vrsbench-EUROSAT-terrain-lora-450m/resolve/main/lfm2.5-vrsbench-terrain-expert-450m-q4_k_m.gguf
3
4# Run inference
5./llama-cli -m lfm2.5-vrsbench-terrain-expert-450m-q4_k_m.gguf \
6 --image satellite_image.jpg \
7 -p "What type of terrain is shown in this satellite image? Choose from: AnnualCrop, Forest, HerbaceousVegetation, Highway, Industrial, Pasture, PermanentCrop, Residential, River, SeaLake."1from transformers import AutoModelForVision2Seq, AutoProcessor
2from PIL import Image
3
4model = AutoModelForVision2Seq.from_pretrained(
5 "5ch4um1/lfm2.5-vrsbench-EUROSAT-terrain-lora-450m",
6 torch_dtype="auto",
7 device_map="auto"
8)
9processor = AutoProcessor.from_pretrained("5ch4um1/lfm2.5-vrsbench-EUROSAT-terrain-lora-450m")
10
11image = Image.open("satellite_image.jpg")
12prompt = "What type of terrain is shown in this satellite image? Choose from: AnnualCrop, Forest, HerbaceousVegetation, Highway, Industrial, Pasture, PermanentCrop, Residential, River, SeaLake."
13
14inputs = processor(text=prompt, images=image, return_tensors="pt").to(model.device)
15outputs = model.generate(**inputs, max_new_tokens=20)
16print(processor.decode(outputs[0], skip_special_tokens=True))| Version | Size | Description |
|---|---|---|
| F16 | 679 MB | Full precision (16-bit) |
| Q8_0 | 362 MB | 8-bit quantization |
| Q4_K_M | 219 MB | 4-bit quantization (recommended for most use cases) |