facebook / mask2former-swin-large-coco-instance

huggingface.co
Total runs: 20.1K
24-hour runs: 0
7-day runs: 1.1K
30-day runs: 11.6K
Model's Last Updated: September 12 2023
image-segmentation

Introduction of mask2former-swin-large-coco-instance

Model Details of mask2former-swin-large-coco-instance

Mask2Former

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.

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.

model image

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-large-coco-instance")
model = Mask2FormerForUniversalSegmentation.from_pretrained("facebook/mask2former-swin-large-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 .

Runs of facebook mask2former-swin-large-coco-instance on huggingface.co

20.1K
Total runs
0
24-hour runs
697
3-day runs
1.1K
7-day runs
11.6K
30-day runs

More Information About mask2former-swin-large-coco-instance huggingface.co Model

More mask2former-swin-large-coco-instance license Visit here:

https://choosealicense.com/licenses/other

mask2former-swin-large-coco-instance huggingface.co

mask2former-swin-large-coco-instance huggingface.co is an AI model on huggingface.co that provides mask2former-swin-large-coco-instance's model effect (), which can be used instantly with this facebook mask2former-swin-large-coco-instance model. huggingface.co supports a free trial of the mask2former-swin-large-coco-instance model, and also provides paid use of the mask2former-swin-large-coco-instance. Support call mask2former-swin-large-coco-instance model through api, including Node.js, Python, http.

mask2former-swin-large-coco-instance huggingface.co Url

https://huggingface.co/facebook/mask2former-swin-large-coco-instance

facebook mask2former-swin-large-coco-instance online free

mask2former-swin-large-coco-instance huggingface.co is an online trial and call api platform, which integrates mask2former-swin-large-coco-instance's modeling effects, including api services, and provides a free online trial of mask2former-swin-large-coco-instance, you can try mask2former-swin-large-coco-instance online for free by clicking the link below.

facebook mask2former-swin-large-coco-instance online free url in huggingface.co:

https://huggingface.co/facebook/mask2former-swin-large-coco-instance

mask2former-swin-large-coco-instance install

mask2former-swin-large-coco-instance is an open source model from GitHub that offers a free installation service, and any user can find mask2former-swin-large-coco-instance on GitHub to install. At the same time, huggingface.co provides the effect of mask2former-swin-large-coco-instance install, users can directly use mask2former-swin-large-coco-instance installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

mask2former-swin-large-coco-instance install url in huggingface.co:

https://huggingface.co/facebook/mask2former-swin-large-coco-instance

Url of mask2former-swin-large-coco-instance

mask2former-swin-large-coco-instance huggingface.co Url

Provider of mask2former-swin-large-coco-instance huggingface.co

facebook
ORGANIZATIONS

Other API from facebook

huggingface.co

Total runs: 8.2M
Run Growth: 3.0M
Growth Rate: 36.16%
Updated: January 17 2024
huggingface.co

Total runs: 6.3M
Run Growth: -537.8K
Growth Rate: -8.57%
Updated: September 15 2023
huggingface.co

Total runs: 3.1M
Run Growth: -172.3K
Growth Rate: -5.53%
Updated: November 17 2022
huggingface.co

Total runs: 2.0M
Run Growth: 2.0M
Growth Rate: 99.95%
Updated: June 13 2023
huggingface.co

Total runs: 1.3M
Run Growth: 3.3K
Growth Rate: 0.25%
Updated: February 29 2024
huggingface.co

Total runs: 1.1M
Run Growth: -912.5K
Growth Rate: -86.27%
Updated: March 23 2023
huggingface.co

Total runs: 804.7K
Run Growth: 95.1K
Growth Rate: 11.79%
Updated: January 12 2024
huggingface.co

Total runs: 618.6K
Run Growth: -167.9K
Growth Rate: -27.14%
Updated: January 20 2022
huggingface.co

Total runs: 591.9K
Run Growth: 22.0K
Growth Rate: 3.72%
Updated: September 06 2023
huggingface.co

Total runs: 307.9K
Run Growth: 160.7K
Growth Rate: 52.21%
Updated: January 25 2024
huggingface.co

Total runs: 278.5K
Run Growth: 62.1K
Growth Rate: 22.30%
Updated: September 15 2023
huggingface.co

Total runs: 265.5K
Run Growth: 112.9K
Growth Rate: 42.54%
Updated: September 05 2023
huggingface.co

Total runs: 249.7K
Run Growth: -18.4M
Growth Rate: -7356.90%
Updated: September 15 2023
huggingface.co

Total runs: 240.3K
Run Growth: -150
Growth Rate: -0.06%
Updated: May 22 2023
huggingface.co

Total runs: 233.3K
Run Growth: -1.1M
Growth Rate: -492.87%
Updated: September 06 2023
huggingface.co

Total runs: 230.0K
Run Growth: -237.5K
Growth Rate: -103.63%
Updated: January 12 2024
huggingface.co

Total runs: 210.4K
Run Growth: -166.9K
Growth Rate: -74.05%
Updated: January 12 2024
huggingface.co

Total runs: 184.2K
Run Growth: 166.9K
Growth Rate: 90.62%
Updated: November 20 2023
huggingface.co

Total runs: 160.7K
Run Growth: 10.8K
Growth Rate: 6.74%
Updated: January 25 2023
huggingface.co

Total runs: 146.1K
Run Growth: 21.8K
Growth Rate: 14.90%
Updated: June 03 2022
huggingface.co

Total runs: 136.1K
Run Growth: -478.7K
Growth Rate: -351.71%
Updated: June 15 2023
huggingface.co

Total runs: 112.9K
Run Growth: 75.2K
Growth Rate: 66.43%
Updated: March 13 2024
huggingface.co

Total runs: 103.1K
Run Growth: 171
Growth Rate: 0.17%
Updated: November 16 2023
huggingface.co

Total runs: 84.6K
Run Growth: 15.8K
Growth Rate: 17.04%
Updated: May 22 2023
huggingface.co

Total runs: 79.3K
Run Growth: -43.0K
Growth Rate: -54.25%
Updated: September 06 2023
huggingface.co

Total runs: 62.7K
Run Growth: 59.8K
Growth Rate: 99.53%
Updated: September 01 2023
huggingface.co

Total runs: 43.6K
Run Growth: 27.3K
Growth Rate: 62.61%
Updated: January 25 2023
huggingface.co

Total runs: 40.6K
Run Growth: 11.1K
Growth Rate: 27.21%
Updated: September 15 2023
huggingface.co

Total runs: 30.7K
Run Growth: 12.0K
Growth Rate: 39.18%
Updated: November 20 2023
huggingface.co

Total runs: 30.7K
Run Growth: 9.6K
Growth Rate: 31.19%
Updated: January 25 2023
huggingface.co

Total runs: 28.3K
Run Growth: -226.3K
Growth Rate: -799.40%
Updated: June 05 2023
huggingface.co

Total runs: 26.9K
Run Growth: 7.9K
Growth Rate: 29.32%
Updated: February 12 2023
huggingface.co

Total runs: 26.7K
Run Growth: 8.9K
Growth Rate: 33.02%
Updated: March 17 2023
huggingface.co

Total runs: 26.4K
Run Growth: 56
Growth Rate: 0.21%
Updated: November 14 2023
huggingface.co

Total runs: 25.5K
Run Growth: -6.1K
Growth Rate: -24.16%
Updated: September 06 2023
huggingface.co

Total runs: 25.1K
Run Growth: -3.6K
Growth Rate: -15.38%
Updated: September 15 2023
huggingface.co

Total runs: 22.6K
Run Growth: -165.5K
Growth Rate: -568.75%
Updated: June 14 2023
huggingface.co

Total runs: 20.8K
Run Growth: 7.0K
Growth Rate: 33.23%
Updated: February 29 2024
huggingface.co

Total runs: 19.8K
Run Growth: 17.1K
Growth Rate: 86.36%
Updated: January 18 2023