Ecoaetix/uFRED-predict-0.4
Viewer • Updated • 42.6k • 7
LSTM model for predicting drone trajectories based on bounding box sequences from video footage.
This model predicts future drone positions given past trajectory data. It processes sequences of bounding boxes and outputs predicted future positions, significantly outperforming baseline models on the FRED dataset.
Drone Stalker 1 is an extremely lightweight model with just 2,224 parameters. Despite this, its performance is on par with other models of up to 300k parameters.
Predicted future bounding boxes (normalized [0, 1])
Evaluation metrics on test set:
import torch
# Load the model
model = torch.hub.load_state_dict_from_url(
'https://huggingface.co/Ecoaetix/DroneStalker/resolve/main/dronestalker-1.1.pth'
)
# Or download and load manually
from huggingface_hub import hf_hub_download
model_path = hf_hub_download(
repo_id="Ecoaetix/DroneStalker",
filename="dronestalker-1.1.pth"
)
# You'll need the Model class (included as model.py in this repo)
from DroneStalker import Model
model = Model(Np=12, Nf=12, hidden_dim=16, num_layers=1, dropout=0)
model.load_state_dict(torch.load(model_path))
model.eval()
# Inference
with torch.no_grad():
# Input: [batch_size, 12, 4] - 12 past bounding boxes [x1, y1, x2, y2]
predictions = model(past_bboxes)
# Output: [batch_size, 12, 4] - 12 future bounding boxes (min-max normalized)
The model expects input bounding boxes in pixel coordinates:
[batch_size, 12, 4][x1, y1, x2, y2] where (x1,y1) is top-left, (x2,y2) is bottom-rightThe model outputs normalized predictions:
[batch_size, 12, 4][x1_norm, y1_norm, x2_norm, y2_norm] where values are in range [0, 1]@misc{DroneStalker-LSTM-0.3,
author = {Jacob Kenney},
title = {DroneStalker-LSTM-0.3},
year = {2025},
publisher = {HuggingFace},
howpublished = {\url{https://huggingface.co/Ecoaetix/DroneStalker}}
}
Apache 2.0