AI SeedbankHelp preserve open and free AI for humanity's future

← All models

facebook_mask2former-swin-large-cityscapes-semantic

facebook · View on Hugging Face ↗

Get this model

Download TorrentMagnet Link

Seeders: 1 · Leechers: 0

Observed 2026-09-02T13:56:39Z via announce.aitorrent.org:7070.

Model card

The complete upstream card, rendered from this payload's README.md — the same hash-verified bytes the torrent distributes. Images and off-site links are removed; the original card on Hugging Face carries them.


license: other tags:

  • vision
  • image-segmentation datasets:
  • coco widget:
  • src: http://images.cocodataset.org/val2017/000000039769.jpg example_title: Cats
  • src: http://images.cocodataset.org/val2017/000000039770.jpg example_title: Castle

Mask2Former

Mask2Former model trained on Cityscapes semantic segmentation (large-sized version, Swin backbone). It was introduced in the paper Masked-attention Mask Transformer for Universal Image Segmentation and first released in this repository.

Disclaimer: The team releasing Mask2Former did not write a model card for this model so this model card has been written by the Hugging Face team.

Model description

Mask2Former addresses instance, semantic and panoptic segmentation with the same paradigm: by predicting a set of masks and corresponding labels. Hence, all 3 tasks are treated as if they were instance segmentation. Mask2Former outperforms the previous SOTA, MaskFormer both in terms of performance an efficiency by (i) replacing the pixel decoder with a more advanced multi-scale deformable attention Transformer, (ii) adopting a Transformer decoder with masked attention to boost performance without without introducing additional computation and (iii) improving training efficiency by calculating the loss on subsampled points instead of whole masks.

Intended uses & limitations

You can use this particular checkpoint for panoptic segmentation. See the model hub to look for other fine-tuned versions on a task that interests you.

How to use

Here is how to use this model:

import requests
import torch
from PIL import Image
from transformers import AutoImageProcessor, Mask2FormerForUniversalSegmentation


# load Mask2Former fine-tuned on Cityscapes semantic segmentation
processor = AutoImageProcessor.from_pretrained("facebook/mask2former-swin-large-cityscapes-semantic")
model = Mask2FormerForUniversalSegmentation.from_pretrained("facebook/mask2former-swin-large-cityscapes-semantic")

url = "http://images.cocodataset.org/val2017/000000039769.jpg"
image = Image.open(requests.get(url, stream=True).raw)
inputs = processor(images=image, return_tensors="pt")

with torch.no_grad():
    outputs = model(**inputs)

# model predicts class_queries_logits of shape `(batch_size, num_queries)`
# and masks_queries_logits of shape `(batch_size, num_queries, height, width)`
class_queries_logits = outputs.class_queries_logits
masks_queries_logits = outputs.masks_queries_logits

# you can pass them to processor for postprocessing
predicted_semantic_map = processor.post_process_semantic_segmentation(outputs, target_sizes=[image.size[::-1]])[0]
# we refer to the demo notebooks for visualization (see "Resources" section in the Mask2Former docs)

For more code examples, we refer to the documentation.

Magnet link

Opens the swarm directly in your torrent client — no file download needed. Copy-paste works too:

magnet:?xt=urn:btih:46eb8c5f40d787c788ad5cab301ee9ce7094ce16&dn=facebook_mask2former-swin-large-cityscapes-semantic

Open magnet in torrent client · infohash 46eb8c5f40d787c788ad5cab301ee9ce7094ce16

Files & hashes

PathSizesha1sha256
README.md3.1 KB (3,185 B)deaf0dad9adb9e6aaac40f5c014ad0542688e6354db04138c741bead7ecf8b9c7a5521b3221b7fb542bd60aa3fa5d6a6f03e1393
config.json75.5 KB (77,336 B)2cb8cbe118b23645dfdb7403b7ce581e277134fb990bc387c6f8ab1582749380cdb2be1503e300ab0a45c0325f3fb5adf7f810af
model.safetensors825.8 MB (865,916,864 B)f207ff2bd9c50296845f544a5a22a8140d55087d60cfeba7f6e0294d8af9b89418b47225694201a783d0aca7b9d41e69f59180fd
preprocessor_config.json537 B (537 B)acf0e8aa105fb5c3e494f0b123c39596dcd9df4f98ca5faae0c936507c0e6888d85a08ae8ed2e96a853787275e125c63a212e9b0
pytorch_model.bin826.0 MB (866,081,349 B)1a2faa7fed4c0aa8dc11f30cbe8512e9babe3e1f82fff220179a94aa485365a4cd946d0cc7b897f3ed452932856b91a48c6c809e

Cite this release

Canonical URL
https://aiseedbank.org/models/facebook_mask2former-swin-large-cityscapes-semantic/
Slug
facebook_mask2former-swin-large-cityscapes-semantic
Infohash
46eb8c5f40d787c788ad5cab301ee9ce7094ce16
License
custom/other license
Signing key fingerprint
85a3b32c3712427b

Every file carries a locally computed sha256 — verify a download against the signed sums: facebook_mask2former-swin-large-cityscapes-semantic.SHA256SUMS (+ minisign signature).

Provenance

Upstream repositoryfacebook/mask2former-swin-large-cityscapes-semantic
Revision (pinned)062c2c0cf95dd6080a50b56ffc1fe2ad2d63513e
Fetched at2026-09-02T04:34:34Z
License at fetchother
Snapshot toolhuggingface · seedbank 0.1.0

Trackers

✓ verified · rehash-vs-hf-metadata at 2026-09-02T04:34:53Z

custom/other license1.61 GB (1,732,079,271 bytes)transformerspytorchsafetensorsmask2formervisionimage-segmentationendpoints_compatiblepaper: 2112.01527paper: 2107.06278