Instructions to use kilanisainikhil/AerialEye with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- ultralytics
How to use kilanisainikhil/AerialEye with ultralytics:
from huggingface_hub import hf_hub_download from ultralytics import YOLO # pick the weights file from this repo's "Files and versions" tab weights = hf_hub_download("kilanisainikhil/AerialEye", "<weights>.pt") model = YOLO(weights) source = 'http://images.cocodataset.org/val2017/000000039769.jpg' model.predict(source=source, save=True) - Notebooks
- Google Colab
- Kaggle
AerialEye: YOLOv11-nano aerial object detector (with SAHI tiled inference)
Quick Start: How to Use this Model
You can download the model weights directly or load them programmatically in Python.
π Direct Download Links
- PyTorch Model weights (
.pt): aerialEye.pt (6.0 MB) - ONNX Export (
.onnx): aerialEye.onnx (11.7 MB)
You can also download them via terminal using wget or curl:
# Download PyTorch weights
wget https://huggingface.co/kilanisainikhil/AerialEye/resolve/main/aerialEye.pt
# Download ONNX export
wget https://huggingface.co/kilanisainikhil/AerialEye/resolve/main/aerialEye.onnx
π Load programmatically in Python (huggingface_hub)
Install dependencies:
pip install huggingface_hub ultralytics
Load and run inference in your Python script:
from huggingface_hub import hf_hub_download
from ultralytics import YOLO
# 1. Download the weights automatically from Hugging Face Hub
model_path = hf_hub_download(repo_id="kilanisainikhil/AerialEye", filename="aerialEye.pt")
# 2. Load the model using Ultralytics YOLO
model = YOLO(model_path)
# 3. Run inference on an image
results = model("sample_image.jpg")
results[0].show()
Model Details
- Model Name: AerialEye (Fine-tuned SUTRA YOLOv11-Nano)
- Architecture: YOLOv11-N (Nano) + SAHI (Slicing Aided Hyper Inference)
- Task: Object Detection
- Domain: High-altitude aerial and drone imagery
- Exports: PyTorch, ONNX and INT8 TFLite (intended for edge devices such as Google Coral; edge performance has not been benchmarked).
- Previous Architecture: YOLOv8n (Upgraded to YOLOv11-Nano for better performance, faster processing, and higher accuracy)
- Slicing Strategy: SAHI (Slicing Aided Hyper Inference) integration to detect small objects (humans, vehicles) from drone altitudes.
Intended Use
The AerialEye model is designed to detect critical objects from an aerial perspective to assist in emergency response, infrastructure assessment, and disaster management.
It is capable of rapidly identifying 6 specific classes:
0. human (Search and Rescue)
sos(Distress Signals)vehicle(Traffic / Evacuation)flood(Water Level Assessment)road_damage(Infrastructure Integrity)crack(Structural Integrity)
Dataset & Training
- Base model: YOLOv11-nano (Ultralytics), fine-tuned for six aerial / disaster-response classes.
- Published sample data:
kilanisainikhil/sutra-aerial-datasetcontains 500 images (400 train, 100 val), all synthetic, in YOLO format. This is a sample, not the full training set. - Not published / not reproducible: the original training run drew on a larger mix of sources (VisDrone frames, FloodNet background images and synthetic disaster-class images). The training notebook, logs, exact hyperparameters and train/val split were lost, so this card does not state epochs, image size or an accuracy score.
- Augmentations used: small rotations (~15 degrees), horizontal/vertical flips and mosaic.
- Planned: a documented, reproducible retrain with logged metrics (mAP50, precision, recall, per-class results).
Performance & Optimization
This model serves as the Phase 1 Low-Res Pass in the perception pipeline. For inference on very small objects, the pipeline integrates SAHI (Slicing Aided Hyper Inference) to dynamically slice suspect regions into higher-resolution patches ($640 \times 640$).
Export Format
The exported weights are fully optimized for:
- PyTorch (
.pt): For standard inference. - ONNX (
.onnx): For cross-platform deployment. - INT8 Quantization (TFLite): To maximize frames-per-second (FPS) on the Google Coral Edge TPU.
Evaluation & Simulation
No accuracy metrics (mAP, precision, recall) are reported for this model. The comparison below is a qualitative speed and detection-count check on a few sample frames. It is not an accuracy evaluation: without ground-truth labels, a lower detection count does not show fewer false positives.
| Metric | Standard (downscaled 640x640) | SAHI (sliced windows) |
|---|---|---|
| Objects detected | 65 | 50 |
| Inference latency | 733.0 ms | 293.6 ms |
Left (blue): standard full-frame inference. Right (green): SAHI sliced inference. SAHI merges overlapping slice detections with NMS, which is the likely reason for the lower count, but this has not been verified against labels.
Getting Started & Usage
1. Installation
Clone this repository and install the dependencies in a virtual environment:
# Clone the repository
git clone https://huggingface.co/kilanisainikhil/AerialEye
cd AerialEye
# Create and activate a virtual environment
python3 -m venv venv
source venv/bin/activate
# Install required packages
pip install -r requirements.txt
2. Model Downloads
Since the model weights are stored via Git LFS on Hugging Face, cloning the repository without Git LFS will only download small pointer files. You can retrieve the full model weights using either of the following options:
Option A: Python Downloader (Recommended)
We provide a lightweight Python downloader script download_model.py which downloads the actual weights and samples directly from Hugging Face resolve servers:
# Download default model weights (aerialEye.pt, best.pt) and comparison graphics:
python download_model.py
# Download ALL assets (ONNX, TFLite models, and all sample images):
python download_model.py --all
# Download specific files:
python download_model.py --files aerialEye.onnx best.onnx
Option B: Shell Script Downloader
Alternatively, you can run the provided bash script to fetch the weights using wget:
chmod +x download_weights.sh
./download_weights.sh
3. Running ONNX Export
To export the PyTorch model to ONNX yourself:
python -c "from ultralytics import YOLO; model = YOLO('aerialEye.pt'); model.export(format='onnx')"
4. Running Simulation & Inference
Compare standard full-frame YOLO inference against Slicing Aided Hyper Inference (SAHI) using the simulation script:
# Run the simulation on the default sample image:
python simulate_sahi.py --image sample_aerial_street.jpg --model aerialEye.pt
# Run the simulation on other sample images:
python simulate_sahi.py --image sample_drone_roundabout.jpg
# Run the simulation with custom slicing parameters:
python simulate_sahi.py --image sample_aerial_street.jpg --slice-size 640 --overlap 0.25
This script generates side-by-side visualization maps:
result_standard.jpg(standard full-frame inference)result_sahi.jpg(SAHI slicing inference with overlapping window merging)
5. Running the Gradio Web Interface
To launch the interactive web interface:
python app.py
- Downloads last month
- 127
