SAVRN
Search Contact SAVRN

Open-weight model · Image segmentation

mask2former-swin-base-ade-semantic

by AI at Meta facebook/mask2former-swin-base-ade-semantic

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

Parameters107M
Context
Weights863.7 MB
Licenseother
AccessOpen weights
Monthly Downloads20.8k

Runs On

What it takes to serve mask2former-swin-base-ade-semantic (107M 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.2 GB 0.3 GB 1x MI300X (192 GB)
Vultr
$1.85 1x H100 $1.99 · 1x MI325X $2.00
8-bit 0.1 GB 0.1 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 ADE20k semantic segmentation (base-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-base-ade-semantic
Publisher
AI at Meta
Task
Image segmentation
Modality
Image
Library
transformers
Parameters
107M parameters
Languages
Not stated by the source
Revision
23a817b665ef6eb6943f7e3bfa3355b6e9ee6995
First published
2023-01-05
Last updated
2023-09-11

Files and Weights

6 files, 863.8 MB in total. The weights are 2 files totalling 863.7 MB in bin, safetensors.

Weights2 files · 863.7 MB
Configuration2 files · 10.0 KB
Documentation1 file · 3.2 KB
Repository1 file · 1.5 KB
Every file
FileTypeSizeSHA-256
model.safetensorsWeights431.8 MB 09e2ba3efa9f
pytorch_model.binWeights432.0 MB 197bab4870fe
config.jsonConfiguration9.5 KB
preprocessor_config.jsonConfiguration538 B
README.mdDocumentation3.2 KB
.gitattributesRepository1.5 KB

License and Download

License
other
Access
Open weights, no gate
Download size
863.7 MB
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 published863.7 MB
16-bit0.2 GB
8-bit0.1 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-base-ade-semantic

How much GPU memory does mask2former-swin-base-ade-semantic need?

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

What is the cheapest GPU to run mask2former-swin-base-ade-semantic 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-base-ade-semantic released under?

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

Similar Models

Model · Image segmentation

mask2former-swin-base-coco-panoptic

AI at Meta

Mask2Former model trained on COCO panoptic segmentation (base-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 107M parameters transformers

Model · Image segmentation

BEN2

Prama LLC

BEN2 (Background Erase Network) introduces a novel approach to foreground segmentation through its innovative Confidence Guided Matting (CGM) pipeline. The architecture employs a refiner network that targets and processes pixels where the base model exhibits lower confidence levels, resulting in more precise and reliable matting results. This model is built on BEN: BEN2 was trained on the DIS5k and our 22K proprietary segmentation dataset. Our enhanced model delivers superior performance in hair matting, 4K processing, object segmentation, and edge refinement. Our Base model is open source. To try the full model through our free web demo or integrate BEN2 into your project with our API…

Open weights mit 95M parameters ben2

Model · Image segmentation

face-parsing

Jonathan Dinu

Semantic segmentation model fine-tuned from nvidia/mit-b5 with CelebAMask-HQ for face parsing. For additional options, see the Transformers Segformer docs. Exhaustive list of labels can be extracted from config.json. Since p5.js uses an animation loop abstraction, we need to take care loading the model and making predictions. While the capabilities of computer vision models are impressive, they can also reinforce or exacerbate social biases. The CelebAMask-HQ dataset used for fine-tuning is large but not necessarily perfectly diverse or representative. Also, they are images of.... just celebrities.

Open weights 85M parameters transformers

Model · Image segmentation

mask2former-swin-small-ade-semantic

AI at Meta

Mask2Former model trained on ADE20k semantic segmentation (small-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 69M parameters transformers

Model · Image segmentation

mask2former-swin-small-coco-instance

AI at Meta

Mask2Former model trained on COCO instance segmentation (small-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 69M parameters transformers

CLIPSeg model with reduce dimension 64. It was introduced in the paper Image Segmentation Using Text and Image Prompts by Lüddecke et al. and first released in this repository. This model is intended for zero-shot and one-shot image segmentation. Refer to the documentation.

Open weights apache-2.0 151M parameters 77 tokens transformers