SAVRN
Search Contact SAVRN

Open-weight model · Image segmentation

mask2former-swin-large-coco-instance

by AI at Meta facebook/mask2former-swin-large-coco-instance

Mask2Former model trained on COCO instance 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.

Parameters216M
Context
Weights1.7 GB
Licenseother
AccessOpen weights
Monthly Downloads33.7k

Runs On

What it takes to serve mask2former-swin-large-coco-instance (216M parameters): the memory its weights need at each precision, and the cheapest way to rent enough data-center GPUs to hold them.

PrecisionWeightsMemory neededCheapest setupPer hourAlso fits
16-bit 0.4 GB 0.5 GB 1x MI300X (192 GB)
Vultr
$1.85 1x H100 $1.99 · 1x MI325X $2.00
8-bit 0.2 GB 0.3 GB 1x MI300X (192 GB)
Vultr
$1.85 1x H100 $1.99 · 1x MI325X $2.00
4-bit 0.1 GB 0.1 GB 1x MI300X (192 GB)
Vultr
$1.85 1x H100 $1.99 · 1x MI325X $2.00

Memory is the weights at that precision plus 20% for the runtime and a short context; a long context needs more. Prices are the lowest on-demand hourly rates in the SAVRN Index, read Sep 18, 2026.

Model Card

Mask2Former model trained on COCO instance 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. 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)…

Excerpt from the card by AI at Meta, licensed other.

Configuration

Architecture
Mask2FormerForUniversalSegmentation
Layers
10
Attention heads
8
Stored precision
float32
Model type
mask2former

Identity and Version

Repository
facebook/mask2former-swin-large-coco-instance
Publisher
AI at Meta
Task
Image segmentation
Modality
Image
Library
transformers
Parameters
216M parameters
Languages
Not stated by the source
Revision
d8f2bced294e26108e73d48bb7a7094c9bc7c71d
First published
2023-01-02
Last updated
2023-09-11

Files and Weights

6 files, 1.7 GB in total. The weights are 2 files totalling 1.7 GB in bin, safetensors.

Weights2 files · 1.7 GB
Configuration2 files · 80.3 KB
Documentation1 file · 3.2 KB
Repository1 file · 1.5 KB
Every file
FileTypeSizeSHA-256
model.safetensorsWeights866.2 MB b49f0f6fae52
pytorch_model.binWeights866.3 MB d3c7dd5ff045
config.jsonConfiguration79.8 KB
preprocessor_config.jsonConfiguration537 B
README.mdDocumentation3.2 KB
.gitattributesRepository1.5 KB

License and Download

License
other
Access
Open weights, no gate
Download size
1.7 GB
Download from AI at Meta

Released by AI at Meta through its official repository on Hugging Face.

Built From

Memory Requirements

PrecisionWeights in memory
As published1.7 GB
16-bit0.4 GB
8-bit0.2 GB
4-bit0.1 GB

Weights only, from the published parameter count; the key-value cache and runtime add to this.

Questions About mask2former-swin-large-coco-instance

How much GPU memory does mask2former-swin-large-coco-instance need?

About 0.5 GB at 16-bit and 0.1 GB at 4-bit: the weights (216M parameters) plus a working margin. A long context needs more.

What is the cheapest GPU to run mask2former-swin-large-coco-instance on?

At 16-bit, 1x MI300X from $1.85 an hour; at 4-bit, 1x MI300X from $1.85 an hour, at the lowest on-demand prices the SAVRN Index lists.

What license is mask2former-swin-large-coco-instance released under?

other, as its publisher declares it. Read the license text before commercial use.

Similar Models

Model · Image segmentation

mask2former-swin-large-ade-semantic

AI at Meta

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. 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)…

Open weights other 216M parameters transformers

Mask2Former model trained on Mapillary Vistas 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. 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…

Open weights other 216M parameters transformers

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. 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…

Open weights other 216M parameters transformers

Model · Image segmentation

BiRefNet

Peng Zheng

This repo is the official implementation of "Bilateral Reference for High-Resolution Dichotomous Image Segmentation" (CAAI AIR 2024). Visit our GitHub repo: https://github.com/ZhengPeng7/BiRefNet for more details -- codes, docs, and model zoo! This repo contains the weights of BiRefNet proposed in our paper, which has achieved the SOTA performance on three tasks (DIS, HRSOD, and COD). Go to my GitHub page for BiRefNet codes and the latest updates: https://github.com/ZhengPeng7/BiRefNet:) + Online Image Inference on Colab: + Online Inference with GUI on Hugging Face with adjustable resolutions: + Inference and evaluation of your given weights: + Many thanks to @Freepik for their generous…

Open weights mit 221M parameters birefnet

Model · Image segmentation

RMBG-2.0

BRIA AI

href="https://huggingface.co/briaai/FIBO" target="blank" rel="noopener" aria-label="Explore FIBO on Hugging Face" style=" src="https://huggingface.co/front/assets/huggingfacelogo-noborder.svg" alt="Hugging Face" width="18" height="18" style="display:block" RMBG v2.0 is our new state-of-the-art background removal model significantly improves RMBG v1.4. The model is designed to effectively separate foreground from background in a range of categories and image types. This model has been trained on a carefully selected dataset, which includes: general stock images, e-commerce, gaming, and advertising content, making it suitable for commercial use cases powering enterprise content creation at…

Access requested at publisher other 221M parameters transformers

Model · Image segmentation

BiRefNet_HR

Peng Zheng

This repo is the official implementation of "Bilateral Reference for High-Resolution Dichotomous Image Segmentation" (CAAI AIR 2024). Visit our GitHub repo: https://github.com/ZhengPeng7/BiRefNet for more details -- codes, docs, and model zoo! This repo contains the weights of BiRefNet proposed in our paper, which has achieved the SOTA performance on three tasks (DIS, HRSOD, and COD). Go to my GitHub page for BiRefNet codes and the latest updates: https://github.com/ZhengPeng7/BiRefNet:) + Online Image Inference on Colab: + Online Inference with GUI on Hugging Face with adjustable resolutions: + Inference and evaluation of your given weights: + Many thanks to @freepik for their generous…

Open weights mit 221M parameters birefnet