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

← All models

shi-labs_oneformer_cityscapes_swin_large

shi-labs · 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: mit tags:


OneFormer

OneFormer model trained on the Cityscapes dataset (large-sized version, Swin backbone). It was introduced in the paper OneFormer: One Transformer to Rule Universal Image Segmentation by Jain et al. and first released in this repository.

Model description

OneFormer is the first multi-task universal image segmentation framework. It needs to be trained only once with a single universal architecture, a single model, and on a single dataset, to outperform existing specialized models across semantic, instance, and panoptic segmentation tasks. OneFormer uses a task token to condition the model on the task in focus, making the architecture task-guided for training, and task-dynamic for inference, all with a single model.

Intended uses & limitations

You can use this particular checkpoint for semantic, instance and panoptic segmentation. See the model hub to look for other fine-tuned versions on a different dataset.

How to use

Here is how to use this model:

from transformers import OneFormerProcessor, OneFormerForUniversalSegmentation
from PIL import Image
import requests
url = "https://huggingface.co/datasets/shi-labs/oneformer_demo/blob/main/cityscapes.png"
image = Image.open(requests.get(url, stream=True).raw)

# Loading a single model for all three tasks
processor = OneFormerProcessor.from_pretrained("shi-labs/oneformer_cityscapes_swin_large")
model = OneFormerForUniversalSegmentation.from_pretrained("shi-labs/oneformer_cityscapes_swin_large")

# Semantic Segmentation
semantic_inputs = processor(images=image, task_inputs=["semantic"], return_tensors="pt")
semantic_outputs = model(**semantic_inputs)
# pass through image_processor for postprocessing
predicted_semantic_map = processor.post_process_semantic_segmentation(outputs, target_sizes=[image.size[::-1]])[0]

# Instance Segmentation
instance_inputs = processor(images=image, task_inputs=["instance"], return_tensors="pt")
instance_outputs = model(**instance_inputs)
# pass through image_processor for postprocessing
predicted_instance_map = processor.post_process_instance_segmentation(outputs, target_sizes=[image.size[::-1]])[0]["segmentation"]

# Panoptic Segmentation
panoptic_inputs = processor(images=image, task_inputs=["panoptic"], return_tensors="pt")
panoptic_outputs = model(**panoptic_inputs)
# pass through image_processor for postprocessing
predicted_semantic_map = processor.post_process_panoptic_segmentation(outputs, target_sizes=[image.size[::-1]])[0]["segmentation"]

For more examples, please refer to the documentation.

Citation

@article{jain2022oneformer,
      title={{OneFormer: One Transformer to Rule Universal Image Segmentation}},
      author={Jitesh Jain and Jiachen Li and MangTik Chiu and Ali Hassani and Nikita Orlov and Humphrey Shi},
      journal={arXiv}, 
      year={2022}
    }

Magnet link

Opens the swarm directly in your torrent client — no file download needed. Copy-paste works too:

magnet:?xt=urn:btih:dc7ee44c68448bfeb5f9124cda99aecbf8011608&dn=shi-labs_oneformer_cityscapes_swin_large

Open magnet in torrent client · infohash dc7ee44c68448bfeb5f9124cda99aecbf8011608

Files & hashes

PathSizesha1sha256
README.md3.5 KB (3,555 B)43909b94af2ac13ebd8b7304d070be20217784d9c438e2a86cf7e87353cf9c893ac56198dec2b5b1f59e08c43e63270a60dc3c00
config.json75.9 KB (77,742 B)2924769653dddc34e96e99b077fd66fa93984f8dc6c9e5afa09a495e15b6fe5325f913b9efb68d0cd123c2f96dbd3b8da286bcb3
merges.txt512.3 KB (524,619 B)76e821f1b6f0a9709293c3b6b51ed90980b3166b9fd691f7c8039210e0fced15865466c65820d09b63988b0174bfe25de299051a
preprocessor_config.json1.5 KB (1,525 B)2782cf3bbc1ed687fd171f93b60c7cfe74068bb4bebd71fdf01fe2ec94e4fb7edd5722fa9f5bf0cac8c6f0a382e0594e76a79146
pytorch_model.bin838.6 MB (879,382,349 B)c551319c7ba99da6faa806155a341154af7b8388876855252aa674c7ad6e920c268d6722add811a927806372811faa724f19856c
special_tokens_map.json472 B (472 B)2c2130b544c0c5a72d5d00da071ba130a9800fb2c4864a9376a8401918425bed71fc14fc0e81f9b59ec45c1cf96cccb2df508eac
tokenizer_config.json812 B (812 B)f3bc548ef2d3008466df3e9c92928567ee212116cc030e8362b18814d23cbaa9aa0eda2716d6fdd8c1ed669f82a659408961da13
vocab.json1.0 MB (1,059,962 B)469be27c5c010538f845f518c4f5e8574c78f7c8e089ad92ba36837a0d31433e555c8f45fe601ab5c221d4f607ded32d9f7a4349

Cite this release

Canonical URL
https://aiseedbank.org/models/shi-labs_oneformer_cityscapes_swin_large/
Slug
shi-labs_oneformer_cityscapes_swin_large
Infohash
dc7ee44c68448bfeb5f9124cda99aecbf8011608
License
mit
Signing key fingerprint
85a3b32c3712427b

Every file carries a locally computed sha256 — verify a download against the signed sums: shi-labs_oneformer_cityscapes_swin_large.SHA256SUMS (+ minisign signature).

Provenance

Upstream repositoryshi-labs/oneformer_cityscapes_swin_large
Revision (pinned)8ed649db2cc1756b8bc36f0cad00b0812e333027
Fetched at2026-09-02T04:46:45Z
License at fetchmit
Snapshot toolhuggingface · seedbank 0.1.0

Trackers

✓ verified · rehash-vs-hf-metadata at 2026-09-02T04:46:55Z

mit840.2 MB (881,051,036 bytes)transformerspytorchoneformervisionimage-segmentationendpoints_compatiblepaper: 2211.06220