CoolFace
Modelpublic

WayBob/Qwen3VL-8B-QLora-4bit-xView2-Disaster-Recognition

sourceHugging Facecc-by-4.0updated 9mo agoView on Hugging Face
1likes11downloads
Model Card

Qwen3VL-8B QLora 4-bit - xView2 Disaster Recognition

<div align="center">

๐ŸŒ Disaster Recognition Model | ๐Ÿšจ Emergency Response | ๐Ÿ—ฃ๏ธ Trilingual (EN/JA/ZH)

![License](https://creativecommons.org/licenses/by/4.0/) ![Base Model](https://huggingface.co/Qwen/Qwen3-VL-8B-Instruct) ![Training](https://github.com/hiyouga/LLaMA-Factory) ![Dataset](https://huggingface.co/datasets/WayBob/DisasterRecognitionRemoteSenseENCN_JA)

Built with Qwen3-VL | Fine-tuning: 4-bit QLoRA | Framework: LLaMA-Factory | Languages: English, Japanese, Chinese

</div>


A multilingual vision-language model fine-tuned from Qwen/Qwen3-VL-8B-Instruct for disaster type recognition using 4-bit QLoRA on the xView2 dataset.

Model Description

This model specializes in identifying disaster types from satellite/aerial imagery. Through LoRA fine-tuning on 55,008 trilingual (English/Japanese/Chinese) disaster images, it learns to accurately classify various disaster types including fires, floods, hurricanes, earthquakes, tsunamis, and volcanic eruptions.

Key Capabilities

  • โ€”๐Ÿ”ฅ Fire/Wildfire Recognition - Identifies fire disasters from aerial imagery
  • โ€”๐ŸŒŠ Flood Detection - Recognizes flooding disasters from satellite/aerial images
  • โ€”๐ŸŒ€ Hurricane/Wind Damage - Detects wind disasters and hurricane impacts
  • โ€”๐Ÿš๏ธ Earthquake Damage - Identifies earthquake-affected areas
  • โ€”๐ŸŒ‹ Volcanic Disasters - Recognizes volcanic disaster patterns
  • โ€”๐ŸŒŠ Tsunami Impact - Tsunami disaster identification
  • โ€”๐Ÿ—ฃ๏ธ Trilingual Support - Responds accurately in English, Japanese, and Chinese

Quick Start

What is This Model?

This is a LoRA adapter (not a full model). You need to:

  1. 1.Load the base model: Qwen/Qwen3-VL-8B-Instruct
  2. 2.Apply this LoRA adapter on top of it

Advantage: Only ~22MB adapter download instead of ~8.7GB full model!

Installation

bash
git clone https://github.com/hiyouga/LLaMA-Factory.git
cd LLaMA-Factory
pip install -e .

Usage

python
from llamafactory.chat import ChatModel

# Initialize model with LoRA adapter
chat_model = ChatModel(args={
    "model_name_or_path": "Qwen/Qwen3-VL-8B-Instruct",
    "adapter_name_or_path": "WayBob/Qwen3VL-8B-QLora-4bit-xView2-Disaster-Recognition",
    "template": "qwen3_vl_nothink",
    "quantization_bit": 4,
    "trust_remote_code": True,
    "flash_attn": "fa2",  # Optional: enable flash attention for faster inference
    "infer_backend": "huggingface",
})

# Ask about disaster type in image
messages = [{"role": "user", "content": "<image>\nWhat type of disaster occurred in this image?"}]
responses = chat_model.chat(messages=messages, images=["disaster_image.png"])
print(responses[0].response_text)  # Output: "Fire disaster"

# Works in Japanese too
messages_ja = [{"role": "user", "content": "<image>\nใ“ใฎ็”ปๅƒใงใฏใฉใฎใ‚ˆใ†ใช็จฎ้กžใฎ็ฝๅฎณใŒ็™บ็”Ÿใ—ใพใ—ใŸใ‹๏ผŸ"}]
responses_ja = chat_model.chat(messages=messages_ja, images=["disaster_image.png"])
print(responses_ja[0].response_text)  # Output: "็ซ็ฝ็ฝๅฎณ"

# And Chinese
messages_zh = [{"role": "user", "content": "<image>\n่ฟ™ๅผ ๅ›พ็‰‡ไธญๅ‘็”Ÿไบ†ไป€ไนˆ็ฑปๅž‹็š„็พๅฎณ๏ผŸ"}]
responses_zh = chat_model.chat(messages=messages_zh, images=["disaster_image.png"])
print(responses_zh[0].response_text)  # Output: "็ซ็พ"

Hardware Requirements

ConfigurationVRAM Required
4-bit Quantization (as used in training)~10-12GB
Inference only~8-10GB

Recommended GPU: RTX 3090 / 4090 / A100 or equivalent with 12GB+ VRAM

Training Details

Base Model

  • โ€”Source: Qwen/Qwen3-VL-8B-Instruct
  • โ€”Parameters: 8.7 billion
  • โ€”Architecture: Qwen3-VL (Vision-Language)
  • โ€”Context Length: 262,144 tokens
  • โ€”Vision Encoder: ViT-based with spatial merge

Training Data

Dataset: WayBob/Disaster_Recognition_RemoteSense_EN_CN_JA

This dataset is organized and prepared from the xView2 building damage assessment challenge, adapted for disaster type recognition tasks.

SplitSamplesLanguagesCoverage
Training55,008EN/JA/ZHAll disaster types
Test5,598EN/JA/ZHHeld-out evaluation
Total60,606TrilingualGlobal disasters

Disaster Types Covered:

  • โ€”๐Ÿ”ฅ Fire/Wildfire
  • โ€”๐ŸŒŠ Flood
  • โ€”๐ŸŒ€ Hurricane/Wind damage
  • โ€”๐Ÿš๏ธ Earthquake
  • โ€”๐ŸŒŠ Tsunami
  • โ€”๐ŸŒ‹ Volcano

Geographic Coverage: Global dataset including disasters from North America, Asia, Europe, and other regions

Data Format: Post-disaster satellite/aerial imagery with corresponding disaster type annotations in three languages (English, Japanese, Chinese)

Training Configuration

Hardware:

Hyperparameters:

yaml
method: qlora_4bit
quantization: 4-bit (BitsAndBytes)
lora_rank: 8
lora_alpha: 16
lora_target: all (all linear layers)
lora_dropout: 0.05
learning_rate: 1.0e-4
batch_size: 4 per device ร— 2 accumulation = 8 effective
epochs: 3.0
optimizer: AdamW
lr_scheduler: cosine
warmup_ratio: 0.1
precision: bfloat16
image_max_pixels: 262144

Training Duration: ~6.4 hours (23,190 seconds)

Memory Usage: ~10-12GB VRAM

Training Results

MetricValue
Final Training Loss0.0239
Training Throughput7.12 samples/second
Total Training Steps10,314
Training Duration~6.4 hours

Training Loss Curve:

[image]

Model Comparison Examples

Comparison between base model and fine-tuned model on disaster type recognition tasks. The following examples demonstrate significant improvements in accuracy and response quality.

Example 1: Fire Disaster (Southern California)

Image: socal-fire_00001128_post_disaster.png

[image]

Question (English): "What type of disaster occurred in this image?"

ModelResponse
Base Model"Based on the visual evidence in the image, this appears to be the aftermath of a landslide or rockfall... The debris at the bottom is the key indicator..."<br><br>โŒ INCORRECT - Misidentified as landslide (acceptable?)
Fine-tuned"Fire disaster"<br><br>โœ… CORRECT - Accurate and concise
Ground Truth"A fire disaster occurred in this image."

Example 2: Flood Disaster (Hurricane Harvey)

Image: hurricane-harvey_00000186_post_disaster.png

[image]

Question (English): "What type of disaster occurred in this image?"

ModelResponse
Base Model"The image shows a green algae bloom, which is not a traditional disaster like a hurricane or earthquake, but it can be considered an environmental disaster..."<br><br>โŒ INCORRECT - Completely misidentified
Fine-tuned"Flood disaster"<br><br>โœ… CORRECT
Ground Truth"A flooding disaster occurred in this image."

Example 3: Flood Disaster (Hurricane Florence)

Image: hurricane-florence_00000145_post_disaster.png

[image]

Question (English): "What type of disaster occurred in this image?"

ModelResponse
Base Model"Based on the image provided, there is no visible evidence of a disaster... The scene appears to be a normal, undisturbed landscape."<br><br>โŒ INCORRECT - Failed to detect disaster
Fine-tuned"Flooding"<br><br>โœ… CORRECT
Ground Truth"A flooding disaster occurred in this image."

Example 4: Wind Disaster (Hurricane Michael) - Japanese

Image: hurricane-michael_00000436_post_disaster.png

[image]

Question (Japanese): "ใ“ใฎ็”ปๅƒใงใฏใฉใฎใ‚ˆใ†ใช็จฎ้กžใฎ็ฝๅฎณใŒ็™บ็”Ÿใ—ใพใ—ใŸใ‹๏ผŸ"

ModelResponse
Base Model"ใ“ใฎ็”ปๅƒใงใฏๆดชๆฐดใŒ็™บ็”Ÿใ—ใŸใจๆŽจๆธฌใ•ใ‚Œใพใ™..."<br><br>โŒ INCORRECT - Misidentified as flood
Fine-tuned"ใ“ใฎ็”ปๅƒใงใฏ้ขจ็ฝ็ฝๅฎณใŒ็™บ็”Ÿใ—ใพใ—ใŸใ€‚"<br><br>โœ… CORRECT
Ground Truth"ใ“ใฎ็”ปๅƒใงใฏ้ขจ็ฝ็ฝๅฎณใŒ็™บ็”Ÿใ—ใพใ—ใŸใ€‚"

Example 5: Wind Disaster (Hurricane Michael) - Japanese

Image: hurricane-michael_00000197_post_disaster.png

[image]

Question (Japanese): "ใ“ใฎ็”ปๅƒใงใฏใฉใฎใ‚ˆใ†ใช็จฎ้กžใฎ็ฝๅฎณใŒ็™บ็”Ÿใ—ใพใ—ใŸใ‹๏ผŸ"

ModelResponse
Base Model"ใ“ใฎ็”ปๅƒใงใฏๅฐ้ขจใซใ‚ˆใ‚‹็ฝๅฎณใŒ็™บ็”Ÿใ—ใฆใ„ใพใ™ใ€‚็”ปๅƒใซ่ฆ‹ใ‚‰ใ‚Œใ‚‹ใฎใฏใ€ๅฐ้ขจใฎๅฝฑ้Ÿฟใง็”šๅคงใช่ขซๅฎณใ‚’ๅ—ใ‘ใŸ้ƒฝๅธ‚้ƒจใฎ่ก›ๆ˜Ÿๅ†™็œŸใงใ™..."<br><br>โš ๏ธ PARTIALLY CORRECT - Correct but overly verbose (acceptable)
Fine-tuned"ใ“ใฎ็”ปๅƒใงใฏ้ขจ็ฝ็ฝๅฎณใŒ็™บ็”Ÿใ—ใพใ—ใŸใ€‚"<br><br>โœ… CORRECT - Accurate and concise
Ground Truth"ใ“ใฎ็”ปๅƒใงใฏ้ขจ็ฝ็ฝๅฎณใŒ็™บ็”Ÿใ—ใพใ—ใŸใ€‚"

Key Improvements

The fine-tuned model demonstrates significant improvements over the base model:

  • โ€”โœ… Accurate Disaster Type Recognition - Correctly identifies specific disaster types
  • โ€”โœ… Concise Responses - Provides direct answers without unnecessary verbosity
  • โ€”โœ… Eliminated Hallucinations - No longer invents non-existent disaster details
  • โ€”โœ… Consistent Multilingual Performance - Reliable across English, Japanese, and Chinese
  • โ€”โœ… Reduced Misidentification - Accurately distinguishes between different disaster types

Use Cases

Emergency Response & Humanitarian Aid

  • โ€”Rapid Damage Assessment: Quickly identify disaster types from satellite imagery
  • โ€”Resource Allocation: Prioritize aid based on disaster type recognition
  • โ€”Disaster Mapping: Automatically tag disaster types in large image datasets
  • โ€”Multi-language Support: Works with international teams (EN/JA/ZH)

Research & Analysis

  • โ€”Disaster Dataset Annotation: Accelerate labeling of disaster imagery
  • โ€”Historical Analysis: Classify historical disaster images
  • โ€”Climate Impact Studies: Track disaster type distributions over time
  • โ€”Cross-lingual Research: Unified model for international collaborations

Monitoring & Early Warning

  • โ€”Satellite Monitoring: Automated disaster type identification from satellite feeds
  • โ€”Damage Verification: Confirm disaster types reported by ground teams
  • โ€”Multi-source Intelligence: Integrate with other disaster detection systems

Training Reproduction

Training Configuration File

yaml
# examples/train_qlora/qwen3vl_8b_xview2_4bit.yaml
model_name_or_path: Qwen/Qwen3-VL-8B-Instruct
quantization_bit: 4
quantization_method: bnb
image_max_pixels: 262144
video_max_pixels: 16384
trust_remote_code: true

stage: sft
do_train: true
finetuning_type: lora
lora_rank: 8
lora_alpha: 16
lora_target: all
lora_dropout: 0.05

dataset: xview2_disaster
eval_dataset: xview2_disaster_test
template: qwen3_vl_nothink
cutoff_len: 2048
max_samples: 55008
preprocessing_num_workers: 16

output_dir: saves/qwen3vl-8b/xview2/lora/sft
save_steps: 500
plot_loss: true
report_to: wandb

per_device_train_batch_size: 4
gradient_accumulation_steps: 2
learning_rate: 1.0e-4
num_train_epochs: 3.0
lr_scheduler_type: cosine
warmup_ratio: 0.1
bf16: true

Run Training

bash
llamafactory-cli train examples/train_qlora/qwen3vl_8b_xview2_4bit.yaml

Model Files

Model Weights & Config

  • โ€”adapter_config.json - LoRA adapter configuration
  • โ€”adapter_model.safetensors - LoRA adapter weights (~22MB)
  • โ€”training_args.bin - Training arguments

Training Results

  • โ€”training_loss.png - Training loss curve
  • โ€”trainer_log.jsonl - Detailed training logs
  • โ€”all_results.json - Final training metrics
  • โ€”train_results.json - Training statistics

Checkpoints

21 intermediate checkpoints saved every 500 steps:

  • โ€”checkpoint-500/ through checkpoint-10000/
  • โ€”checkpoint-10314/ (final checkpoint)

You can load any checkpoint by specifying its path in the adapter_name_or_path parameter.

Limitations

  • โ€”Language: Primarily trained on English/Japanese/Chinese; performance on other languages not guaranteed
  • โ€”Domain: Specialized for post-disaster satellite/aerial imagery; may not work on ground-level photos
  • โ€”Disaster Type Coverage: Some disaster types may have limited training samples, affecting recognition accuracy
  • โ€”Quantization: Designed for 4-bit quantization; full precision inference not tested
  • โ€”Geographic Bias: Training data may not cover all geographic regions equally
  • โ€”Model Evaluation: Comprehensive evaluation is ongoing; performance metrics will be updated

Intended Use Cases

โœ… Recommended:

  • โ€”Post-disaster satellite/aerial image analysis
  • โ€”Disaster type classification for emergency response
  • โ€”Automated disaster dataset annotation
  • โ€”Multilingual disaster recognition (EN/JA/ZH)
  • โ€”Research on disaster impact assessment

โŒ Not Recommended:

  • โ€”Real-time disaster prediction (this is classification, not prediction)
  • โ€”Ground-level disaster assessment (trained on aerial imagery)
  • โ€”Medical emergency classification
  • โ€”Legal/insurance claim decisions without human verification
  • โ€”Fine-grained damage severity assessment (binary disaster type only)

Ethical Considerations

Responsible Use

  • โ€”Human Oversight Required: This model should augment, not replace, human disaster assessment
  • โ€”Verification Needed: All classifications should be verified by disaster response professionals
  • โ€”Not for Sole Decision-Making: Do not use as the only basis for resource allocation or policy decisions
  • โ€”Privacy: Be mindful of privacy when processing imagery that may contain identifiable information
  • โ€”Bias Awareness: Model performance may vary across geographic regions and disaster contexts

Humanitarian Applications

This model is intended to support humanitarian efforts and disaster response. We encourage:

  • โ€”Open collaboration with disaster response organizations
  • โ€”Responsible sharing of insights with affected communities
  • โ€”Transparent communication of model limitations
  • โ€”Continuous improvement based on real-world feedback

Citation

bibtex
@misc{qwen3vl-8b-qlora-xview2-disaster,
  author = {WayBob},
  title = {Qwen3VL-8B QLora 4-bit xView2 Disaster Recognition},
  year = {2025},
  publisher = {HuggingFace},
  url = {https://huggingface.co/WayBob/Qwen3VL-8B-QLora-4bit-xView2-Disaster-Recognition}
}

@misc{disaster-recognition-dataset,
  title={Disaster Recognition RemoteSense Dataset (EN/CN/JA)},
  author={WayBob},
  year={2025},
  publisher={HuggingFace},
  url={https://huggingface.co/datasets/WayBob/Disaster_Recognition_RemoteSense_EN_CN_JA}
}

@inproceedings{xview2,
  title={xBD: A Dataset for Assessing Building Damage from Satellite Imagery},
  author={Gupta, Ritwik and Hosfelt, Richard and Sajeev, Sandra and Patel, Nirav and Goodman, Bryce and Doshi, Jigar and Heim, Eric and Choset, Howie and Gaston, Matthew},
  booktitle={Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition Workshops},
  year={2019}
}

Acknowledgements

Base Model:

Dataset:

  • โ€”WayBob/Disaster_Recognition_RemoteSense_EN_CN_JA - Trilingual disaster recognition dataset
  • โ€”Organized and prepared from xView2 building damage assessment challenge
  • โ€”Original xView2 dataset by DIUx (Defense Innovation Unit)
  • โ€”Licensed under Creative Commons

Training Framework:

Method:

Infrastructure:

  • โ€”NVIDIA RTX 4090 24GB GPU

License

This model is licensed under Creative Commons Attribution 4.0 International (CC-BY-4.0).

Key License Terms

  • โ€”Share: You can copy and redistribute the material in any medium or format for any purpose, even commercially
  • โ€”Adapt: You can remix, transform, and build upon the material for any purpose, even commercially
  • โ€”Attribution: You must give appropriate credit, provide a link to the license, and indicate if changes were made
  • โ€”No Additional Restrictions: You may not apply legal terms or technological measures that legally restrict others from doing anything the license permits

Full License: See CC-BY-4.0 License for complete terms.

Contact


Disclaimer: This model is provided for research and humanitarian purposes. Always verify model outputs with domain experts before making critical decisions based on disaster classifications.