Ir para o conteúdo
ModelListadosExterno
Baixar

Skyfusion Flood Reg

Lightweight anchor-free object detector for aerial imagery. Detects aircraft, ships and vehicles using a CenterNet-inspired approach with heatmap + size + offset regression heads.

TipoOtherVersãoRevision f139a45

Fonte do modelo

Tipo
Other
Tamanho do arquivo
24,2 MB
Versão
vRevision f139a45
Atualizado
27 de set. de 2026
Downloads
0
Tarefas
Detecção de objetos
Fonte
Hugging Face

Descrição da fonte

PiattiDetector — Aerial Object Detection (SkyFusion)

Lightweight anchor-free object detector for aerial imagery. Detects aircraft, ships and vehicles using a CenterNet-inspired approach with heatmap + size + offset regression heads.

Developed as part of a Machine Learning course (Sapienza, January 2026).
Code: github.com/JavideuS/aerial-vision · regression/

Architecture

Custom ResNet backbone (3 residual blocks, 8× downsampling) + three detection heads:

HeadOutputPurpose
Heatmap[B, C, H/8, W/8]Object center confidence per class
Size[B, 2, H/8, W/8]Bounding box width and height
Offset[B, 2, H/8, W/8]Sub-pixel center refinement

~2.1M parameters. Input: 512×512 px.

Dataset

SkyFusion / Tiny Object Detection — 3000 aerial images, 640×640 px, COCO format.
Classes: Aircraft, Ship, Vehicle.

Usage

from huggingface_hub import hf_hub_download
import torch
from modelv2 import PiattiObjectDetector  # clone the repo first

ckpt_path = hf_hub_download(
    repo_id="JavideuS/skyfusion-flood-reg",
    filename="PiattiDetector-2111k.pth"
)

device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
model = PiattiObjectDetector(num_classes=3).to(device)
ckpt = torch.load(ckpt_path, map_location=device)
model.load_state_dict(ckpt['model_state_dict'])
model.eval()

For full inference with bounding box decoding and visualization see main.py.

Limitations

  • Trained on a small dataset (3000 images); may not generalise to aerial imagery with significantly different sensors or altitudes
  • No NMS post-processing in the provided inference script

Fontes

1 fonte
Hugging FacePrimárioVersão f139a45dbb08a341e54810b3efaa8417f8363f9c
huggingface.co/JavideuS/skyfusion-flood-reg/tree/f139a45dbb08a341e54810b3efaa8417f8363f9c

Verificado 27 de set.

Artefatos de modelo

1 artefato

PiattiDetector-2111k.pth

pth · 24,2 MB · SHA-256 2cb37025a9e6…37bf · Hugging Face

Baixar

Trechos de fonte

2 trechos

--- language: - en tags: - object-detection - aerial-imagery - computer-vision - pytorch datasets: - kailaspsudheer/tiny-object-detection --- # PiattiDetector — Aerial Object Detection (SkyFusion) Lightweight anchor-free object detector for aerial imagery. Detects **aircraft, ships and vehicles** using a CenterNet-inspired approach with heatmap + size + offset regression heads. Developed as part of a Machine Learning course (Sapienza, January 2026). Code: [github.com/JavideuS/aerial-vision](https://github.com/JavideuS/aerial-vision) · `regression/` ## Architecture Custom ResNet backbone (3 residual blocks, 8× downsampling) + three detection heads: | Head | Output | Purpose | |---|---|---| | Heatmap | `[B, C, H/8, W/8]` | Object center confidence per class | | Size | `[B, 2, H/8, W/8]` | Bounding box width and height | | Offset | `[B, 2, H/8, W/8]` | Sub-pixel center refinement | ~2.1M parameters. Input: 512×512 px. ## Dataset [SkyFusion / Tiny Object Detection](https://www.kaggle.com/datasets/kailaspsudheer/tiny-object-detection) — 3000 aerial images, 640×640 px, COCO format. Classes: **Aircraft**, **Ship**, **Vehicle**. ## Usage ```python from huggingface_hub import hf_hub_download import torch from modelv2 import PiattiObjectDetector # clone the repo first ckpt_path = hf_hub_download( repo_id="JavideuS/skyfusion-flood-reg", filename="PiattiDetector-2111k.pth" ) device = torch.device("cuda" if torch.cuda.is_available() else "cpu") model = PiattiObjectDetector(num_classes=3).to(device) ckpt = torch.load(ckpt_path, map_location=device) model.load_state_dict(ckpt['model_state_dict']) model.eval() ``` For full inference with bounding box decoding and visualization see `main.py`. ## Limitations - Trained on a small dataset (3000 images); may not generalise to aerial imagery with significantly different sensors or altitudes - No NMS post-processing in the provided inference script

Source context: 0 downloads · 0 likes · Pipeline object-detection · Repo JavideuS/skyfusion-flood-reg