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

← All models

facebook_mask2former-swin-large-ade-semantic

facebook · View on Hugging Face ↗

Get this model

Download TorrentMagnet Link

Seeders: · Leechers:

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 ADE20k 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 ADE20k semantic segmentation
processor = AutoImageProcessor.from_pretrained("facebook/mask2former-swin-large-ade-semantic")
model = Mask2FormerForUniversalSegmentation.from_pretrained("facebook/mask2former-swin-large-ade-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:6e525dea4a0566ced8e525f79f19c4c96085bc65&dn=facebook_mask2former-swin-large-ade-semantic

Open magnet in torrent client · infohash 6e525dea4a0566ced8e525f79f19c4c96085bc65

Files & hashes

PathSizesha1sha256
README.md3.1 KB (3,163 B)e8149a252c425cbeab21072c5577f26c4a8e6087f9f97f6a088868c6c365b2b88a7df8a9f20a8df82f7494e61b19c3bbf367cc07
config.json80.6 KB (82,540 B)6cc89c35ce70d7227b8956eab0db1c6240ae18a7573b9330846ed787069557d7eaf78d20a695a4ac7155b957becff02748a8d293
model.safetensors825.9 MB (866,052,064 B)5f10f9e810eecb197afff916570e37f05397dd33b143c144341c15b4f20165cc6d2c9305fb1b66792f68a6e0e06d2b20dc063b14
preprocessor_config.json538 B (538 B)0723e20e276898ab516725965619f83deadbdc34d5304644f28d4e7316aa528bf19a044155193382dd4d94769d283dc96e947899
pytorch_model.bin826.1 MB (866,216,517 B)114af4f16554ebe3a386e406ce67fafc79185660dba4b80c7f85372fa985e5b192d1bf7d726e971fdbeebb67dc8c5a96d4f6f873

Cite this release

Canonical URL
https://aiseedbank.org/models/facebook_mask2former-swin-large-ade-semantic/
Slug
facebook_mask2former-swin-large-ade-semantic
Infohash
6e525dea4a0566ced8e525f79f19c4c96085bc65
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-ade-semantic.SHA256SUMS (+ minisign signature).

Provenance

Upstream repositoryfacebook/mask2former-swin-large-ade-semantic
Revision (pinned)aa25c92404a40599614215e76514c79b427c7527
Fetched at2026-09-03T22:42:10Z
License at fetchother
Snapshot toolhuggingface · seedbank 0.1.0

Trackers

✓ verified · rehash-vs-hf-metadata at 2026-09-03T22:42:29Z

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