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

← All models

hustvl_yolos-small

hustvl · View on Hugging Face ↗

Get this model

Download TorrentMagnet Link

Seeders: · Leechers:

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: apache-2.0 tags:


YOLOS (small-sized) model

YOLOS model fine-tuned on COCO 2017 object detection (118k annotated images). It was introduced in the paper You Only Look at One Sequence: Rethinking Transformer in Vision through Object Detection by Fang et al. and first released in this repository.

Disclaimer: The team releasing YOLOS did not write a model card for this model so this model card has been written by the Hugging Face team.

Model description

YOLOS is a Vision Transformer (ViT) trained using the DETR loss. Despite its simplicity, a base-sized YOLOS model is able to achieve 42 AP on COCO validation 2017 (similar to DETR and more complex frameworks such as Faster R-CNN).

The model is trained using a "bipartite matching loss": one compares the predicted classes + bounding boxes of each of the N = 100 object queries to the ground truth annotations, padded up to the same length N (so if an image only contains 4 objects, 96 annotations will just have a "no object" as class and "no bounding box" as bounding box). The Hungarian matching algorithm is used to create an optimal one-to-one mapping between each of the N queries and each of the N annotations. Next, standard cross-entropy (for the classes) and a linear combination of the L1 and generalized IoU loss (for the bounding boxes) are used to optimize the parameters of the model.

Intended uses & limitations

You can use the raw model for object detection. See the model hub to look for all available YOLOS models.

How to use

Here is how to use this model:

from transformers import YolosFeatureExtractor, YolosForObjectDetection
from PIL import Image
import requests

url = 'http://images.cocodataset.org/val2017/000000039769.jpg'
image = Image.open(requests.get(url, stream=True).raw)

feature_extractor = YolosFeatureExtractor.from_pretrained('hustvl/yolos-small')
model = YolosForObjectDetection.from_pretrained('hustvl/yolos-small')

inputs = feature_extractor(images=image, return_tensors="pt")
outputs = model(**inputs)

# model predicts bounding boxes and corresponding COCO classes
logits = outputs.logits
bboxes = outputs.pred_boxes

Currently, both the feature extractor and model support PyTorch.

Training data

The YOLOS model was pre-trained on ImageNet-1k and fine-tuned on COCO 2017 object detection, a dataset consisting of 118k/5k annotated images for training/validation respectively.

Training

The model was pre-trained for 200 epochs on ImageNet-1k and fine-tuned for 150 epochs on COCO.

Evaluation results

This model achieves an AP (average precision) of 36.1 on COCO 2017 validation. For more details regarding evaluation results, we refer to table 1 of the original paper.

BibTeX entry and citation info

@article{DBLP:journals/corr/abs-2106-00666,
  author    = {Yuxin Fang and
               Bencheng Liao and
               Xinggang Wang and
               Jiemin Fang and
               Jiyang Qi and
               Rui Wu and
               Jianwei Niu and
               Wenyu Liu},
  title     = {You Only Look at One Sequence: Rethinking Transformer in Vision through
               Object Detection},
  journal   = {CoRR},
  volume    = {abs/2106.00666},
  year      = {2021},
  url       = {https://arxiv.org/abs/2106.00666},
  eprinttype = {arXiv},
  eprint    = {2106.00666},
  timestamp = {Fri, 29 Apr 2022 19:49:16 +0200},
  biburl    = {https://dblp.org/rec/journals/corr/abs-2106-00666.bib},
  bibsource = {dblp computer science bibliography, https://dblp.org}
}

Magnet link

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

magnet:?xt=urn:btih:ee72315421be44ec17c131ccae4b2d0e01a36738&dn=hustvl_yolos-small

Open magnet in torrent client · infohash ee72315421be44ec17c131ccae4b2d0e01a36738

Files & hashes

PathSizesha1sha256
README.md4.1 KB (4,173 B)a834a5b58a543a9b16942b4c4534f0c4b1d26b280e95447d56c12b6833a42bc781fefcb318c65e6499d1b7b03912cbbfbc1c6352
config.json4.0 KB (4,132 B)8726d727839a657c66b1cd1647c88e36351504da340c26d18da821b80b7e3a558697f0d39328f99f9f4eabe246ea9851e7f50de5
model.safetensors117.1 MB (122,763,274 B)7ddbd4f86b57e98b3f75d3b213639b47e15b667927823dd210017c83fb2abb5528b7344d8b73572b5764d20f9cda2c153727232c
preprocessor_config.json292 B (292 B)6bee0f996e603419202878bf02d4a31ec4159ce127645e9dec37d884357ee5bf9eab8b5464c71cbb6660a56497e91caca681fdd4
pytorch_model.bin117.1 MB (122,806,169 B)386652dda66717c295970ebc2f8f0c81fafe140ea5fbcdd7e5612fa92f586648762ccc4ac29cd121fa23eadd7f6289918f8a8bb0

Cite this release

Canonical URL
https://aiseedbank.org/models/hustvl_yolos-small/
Slug
hustvl_yolos-small
Infohash
ee72315421be44ec17c131ccae4b2d0e01a36738
License
apache-2.0
Signing key fingerprint
85a3b32c3712427b

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

Provenance

Upstream repositoryhustvl/yolos-small
Revision (pinned)3d8f7130d3ce4907cb206fe1c8485dc8fe8703de
Fetched at2026-09-04T00:34:44Z
License at fetchapache-2.0
Snapshot toolhuggingface · seedbank 0.1.0

Trackers

✓ verified · rehash-vs-hf-metadata at 2026-09-04T00:34:50Z

apache-2.0234.2 MB (245,578,040 bytes)transformerspytorchsafetensorsyolosobject-detectionvisionendpoints_compatiblepaper: 2106.00666