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

← All models

facebook_mask2former-swin-tiny-coco-instance

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 COCO instance segmentation (tiny-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 instance 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 COCO instance segmentation
processor = AutoImageProcessor.from_pretrained("facebook/mask2former-swin-tiny-coco-instance")
model = Mask2FormerForUniversalSegmentation.from_pretrained("facebook/mask2former-swin-tiny-coco-instance")

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
result = processor.post_process_instance_segmentation(outputs, target_sizes=[image.size[::-1]])[0]
# we refer to the demo notebooks for visualization (see "Resources" section in the Mask2Former docs)
predicted_instance_map = result["segmentation"]

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:fb6bddd59de2d1d5f2171418e3c3dc9502d8e366&dn=facebook_mask2former-swin-tiny-coco-instance

Open magnet in torrent client · infohash fb6bddd59de2d1d5f2171418e3c3dc9502d8e366

Files & hashes

PathSizesha1sha256
README.md3.1 KB (3,190 B)abdf917683f0ff70f504b88a228e46e14c5a2ac75872a869d18256e9f6f725bfad1092b5bbe3d9993ddf2b20b29104964c65b816
config.json77.9 KB (79,763 B)3ba17e5cefd8b9be3bc774edf7bda7663b30bd2286e17340334de554d19f0ed176ca97ada069b72a40dfc880db6d07043e9a56ec
model.safetensors181.2 MB (189,998,168 B)c39c41df18f6aa2f9cbfd1f7aa2c7c14b6a83a8a3550e8b21381d082c4d12b06a4b7c5f0f4a530125eee4c5f264b1e5f43dfab80
preprocessor_config.json537 B (537 B)3cbaa0c8455d138fccc8a92673ffef9d3b7862dae2ee60db2b38023f11dbbf473cdcb5da600c9ed7ba8c2c2b7de99be59b52ae3b
pytorch_model.bin181.3 MB (190,117,413 B)d4ac952dc75adceb9c10cbaf333724305ecc561e59e7266687f957562d63523de9ad4a1a772a504ef43be4e3935ffb6acdb19161

Cite this release

Canonical URL
https://aiseedbank.org/models/facebook_mask2former-swin-tiny-coco-instance/
Slug
facebook_mask2former-swin-tiny-coco-instance
Infohash
fb6bddd59de2d1d5f2171418e3c3dc9502d8e366
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-tiny-coco-instance.SHA256SUMS (+ minisign signature).

Provenance

Upstream repositoryfacebook/mask2former-swin-tiny-coco-instance
Revision (pinned)22c4a2f15dc88149b8b8d9f4d42c54431fbd66f6
Fetched at2026-09-02T04:34:53Z
License at fetchother
Snapshot toolhuggingface · seedbank 0.1.0

Trackers

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

custom/other license362.6 MB (380,199,071 bytes)transformerspytorchsafetensorsmask2formervisionimage-segmentationendpoints_compatiblepaper: 2112.01527paper: 2107.06278