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

← All models

hustvl_yolos-tiny

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


YOLOS (tiny-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 YolosImageProcessor, YolosForObjectDetection
from PIL import Image
import torch
import requests

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

model = YolosForObjectDetection.from_pretrained('hustvl/yolos-tiny')
image_processor = YolosImageProcessor.from_pretrained("hustvl/yolos-tiny")

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

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


# print results
target_sizes = torch.tensor([image.size[::-1]])
results = image_processor.post_process_object_detection(outputs, threshold=0.9, target_sizes=target_sizes)[0]
for score, label, box in zip(results["scores"], results["labels"], results["boxes"]):
    box = [round(i, 2) for i in box.tolist()]
    print(
        f"Detected {model.config.id2label[label.item()]} with confidence "
        f"{round(score.item(), 3)} at location {box}"
    )

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 300 epochs on ImageNet-1k and fine-tuned for 300 epochs on COCO.

Evaluation results

This model achieves an AP (average precision) of 28.7 on COCO 2017 validation. For more details regarding evaluation results, we refer to 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:bf8732e7923a29e33aa8f0dc63375c1ab78fad53&dn=hustvl_yolos-tiny

Open magnet in torrent client · infohash bf8732e7923a29e33aa8f0dc63375c1ab78fad53

Files & hashes

PathSizesha1sha256
README.md4.5 KB (4,618 B)e96ad2f972e86d4a7d46005fdc3410f15defdc143214b20fc6ec0fc9d6062714c338a56e59c117e0eb01f0c6d7ecbd077a19a189
config.json4.0 KB (4,133 B)9b1dc5fbaca6c50cb8a92488448be33bf7a60260a171607bf33c3c85c2cda36e63f681e8b7fd101396b3f0f7a4aa40214020b86e
model.safetensors24.8 MB (25,978,888 B)044b5ea746229e68ec8ef1942917372cb91a6e8e5a6a017a20cb522dd347271fa5bd670467e456176aaccd940090e50985ac6e74
preprocessor_config.json291 B (291 B)79bb34ebb0f2c7ba7a8f0a3d99148a2cfb61019c4309cf0226631c9cd34e6981af842c74f4c9214932741d7fc84b68715c36cf66
pytorch_model.bin24.8 MB (26,021,147 B)634a854dbcb39ef4da6d95e90a3f35c44e959a036a5cc7772832fba0f8dac7b1fc3425c6d834c361d01d5aef429bd5865e2c0726

Cite this release

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

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

Provenance

Upstream repositoryhustvl/yolos-tiny
Revision (pinned)95a90f3c189fbfca3bcfc6d7315b9e84d95dc2de
Fetched at2026-09-02T04:36:22Z
License at fetchapache-2.0
Snapshot toolhuggingface · seedbank 0.1.0

Trackers

✓ verified · rehash-vs-hf-metadata at 2026-09-02T04:36:24Z

apache-2.049.6 MB (52,009,077 bytes)transformerspytorchsafetensorsyolosobject-detectionvisionendpoints_compatiblepaper: 2106.00666