Downloads · 30 days
108
3% of all-time downloads
RyanQchiqache/mask2former-large-dlr-skyscapes
mask2former-large-dlr-skyscapes is a image segmentation model from RyanQchiqache. Use it for the image segmentation task on the model card, and read the license before you ship it in a product. It is set up for transformers. The card lists the license as mit.
This repository provides a Mask2Former-Large (Swin-L backbone) model fine-tuned on the DLR SkyScapes aerial imagery dataset for 20-class semantic segmentation. The model focuses on high-resolution urban and peri-urban…
Downloads · 30 days
108
3% of all-time downloads
All-time downloads
3.4K
Public
Parameters
216M
866 MB on disk
Likes
2
Public
Click a slice to open those files.
.safetensors866 MB · 100%
How the weights are stored.
F32215M · 100%
From the Hugging Face model README
This repository provides a Mask2Former-Large (Swin-L backbone) model fine-tuned on the DLR SkyScapes aerial imagery dataset for 20-class semantic segmentation.
The model focuses on high-resolution urban and peri-urban environments and produces detailed semantic masks for roads, buildings, vegetation, vehicles, and more.
facebook/mask2former-swin-large-ade-semanticAutoImageProcessoruse_fast=False for full reproducibilitymodel.safetensorsThis model was trained as part of a bachelor thesis benchmarking state-of-the-art segmentation architectures on aerial datasets.
DLR SkyScapes
is a high-resolution aerial dataset created by the German Aerospace Center (DLR).
It provides high-quality pixel-level annotations for detailed scene understanding in urban environments.
These match the class IDs used during training.
Not suitable for safety-critical deployment without human supervision.
Load the processor and model:
from transformers import AutoImageProcessor, Mask2FormerForUniversalSegmentation
import torch
from PIL import Image
model_id = "RyanQchiqache/mask2former-large-dlr-skyscapes"
processor = AutoImageProcessor.from_pretrained(model_id, use_fast=False)
model = Mask2FormerForUniversalSegmentation.from_pretrained(model_id)
img = Image.open("example_dlr_image.png")
inputs = processor(images=img, return_tensors="pt")
with torch.no_grad():
outputs = model(**inputs)
segmentation = processor.post_process_semantic_segmentation(
outputs,
target_sizes=[img.size[::-1]]
)[0]