alt.freeweights.vision / conditional-detr-resnet-50
From: microsoft <huggingface.co/microsoft>Newsgroups: alt.freeweights.visionSubject:

conditional-detr-resnet-50

Date: 2026-11-15Commit: 8f8795fSigned: 2DC28CC7B26A283B ✓

Object detection model with 44M parameters. Safetensors weights, 348 MB in all. Published by microsoft under Apache-2.0.

44M params348MBconditional-detr-resnet-50safetensorspermissive
FactsParams44MSize348 MBFormatssafetensorsTaskobject detectionLicenseApache-2.0From sourcepermissive
$ fw get microsoft/conditional-detr-resnet-50
# manifest sha256 d617b6ea57f6… · 348 MB · 6 files
$ fw verify ./conditional-detr-resnet-50 microsoft/conditional-detr-resnet-50
From sourceHosted (signed)microsoft/conditional-detr-resnet-50Last check: 2026-11-15 02:47 UTC

Get help: custom fine-tune or private deploy. We review your setup before we quote.

Works with

Runs with

Ranked by fit to this model (safetensors), then by GitHub stars.

Overview

Size
348 MB
Weights
174 MB (safetensors)
Parameters
44M
Formats
safetensors
Task
object detection
License
Apache-2.0 (permissive)
Files
6, each with a sha256
Publisher
microsoft
Added
2026-11-15
Section
alt.freeweights.vision
Lineage

Original release from the publisher.

Where these bytes come from
Publisher at the pinned commit→You

Sources are tried in order. A file counts only when its size and sha256 match the manifest. Sources are checked when you ask for them, not on a timer.

Sources
BadgeHostLast checkResult
From sourcehuggingface.co2026-11-15 02:47 UTCpassed

Model card

From the publisher at commit 8f8795f. Shown as plain text with links; images open at the publisher.

Conditional DETR model with ResNet-50 backbone#

Conditional DEtection TRansformer (DETR) model trained end-to-end on COCO 2017 object detection (118k annotated images). It was introduced in the paper Conditional DETR for Fast Training Convergence by Meng et al. and first released in this repository.

Model description#

The recently-developed DETR approach applies the transformer encoder and decoder architecture to object detection and achieves promising performance. In this paper, we handle the critical issue, slow training convergence, and present a conditional cross-attention mechanism for fast DETR training. Our approach is motivated by that the cross-attention in DETR relies highly on the content embeddings for localizing the four extremities and predicting the box, which increases the need for high-quality content embeddings and thus the training difficulty. Our approach, named conditional DETR, learns a conditional spatial query from the decoder embedding for decoder multi-head cross-attention. The benefit is that through the conditional spatial query, each cross-attention head is able to attend to a band containing a distinct region, e.g., one object extremity or a region inside the object box. This narrows down the spatial range for localizing the distinct regions for object classification and box regression, thus relaxing the dependence on the content embeddings and easing the training. Empirical results show that conditional DETR converges 6.7× faster for the backbones R50 and R101 and 10× faster for stronger backbones DC5-R50 and DC5-R101.

Image: model image

Intended uses & limitations#

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

How to use#

Here is how to use this model:

from transformers import AutoImageProcessor, ConditionalDetrForObjectDetection
import torch
from PIL import Image
import requests

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

processor = AutoImageProcessor.from_pretrained("microsoft/conditional-detr-resnet-50")
model = ConditionalDetrForObjectDetection.from_pretrained("microsoft/conditional-detr-resnet-50")

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

# convert outputs (bounding boxes and class logits) to COCO API
# let's only keep detections with score > 0.7
target_sizes = torch.tensor([image.size[::-1]])
results = processor.post_process_object_detection(outputs, target_sizes=target_sizes, threshold=0.7)[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}"
    )

This should output:

Detected remote with confidence 0.833 at location [38.31, 72.1, 177.63, 118.45]
Detected cat with confidence 0.831 at location [9.2, 51.38, 321.13, 469.0]
Detected cat with confidence 0.804 at location [340.3, 16.85, 642.93, 370.95]

Currently, both the feature extractor and model support PyTorch.

Training data#

The Conditional DETR model was trained on COCO 2017 object detection, a dataset consisting of 118k/5k annotated images for training/validation respectively.

BibTeX entry and citation info#
@inproceedings{MengCFZLYS021,
  author    = {Depu Meng and
               Xiaokang Chen and
               Zejia Fan and
               Gang Zeng and
               Houqiang Li and
               Yuhui Yuan and
               Lei Sun and
               Jingdong Wang},
  title     = {Conditional {DETR} for Fast Training Convergence},
  booktitle = {2021 {IEEE/CVF} International Conference on Computer Vision, {ICCV}
               2021, Montreal, QC, Canada, October 10-17, 2021},
}

Files

6 files · 348 MBWeights 174 MB (safetensors). Sizes and sha256 from the signed manifest.
Hide all 6 files with their sha256
FileSizesha256
.gitattributes1.44 KB20cb01c2bd9b0ae0863422f9da41b20f10f93e009e657f411a41402f51ccf391
README.md4.67 KB5d52a4482b43b9e0878e3f064b67cce755d7a711bb1f97a04c78bdcaca7cd1be
config.json4.43 KBfcfbd78ef41c09c7c03deec222f54f5cbb0f48df1b8ab63c7a8a7c6b07fc921d
model.safetensors174 MBe8553b4fa875b7d67d15609e140f969563742b4ee17b75d9095612a8f00d3ed8
preprocessor_config.json301 B02fc8fed4724f0c24e7a402805c741c68de93e6693df9a392fa31357330eb9a6
pytorch_model.bin174 MB2b589a660bb30e561c780dc8840da90a5e61edb8d9a3988fd7f367cc414dc67a
VersionsEach time the pinned upstream commit or file list changed in this repo. Newest first.
Upstream commitDateContents
8f8795fb7c pinned now2026-11-15 02:47 UTC6 files · 348 MB

Use it

$ fw get microsoft/conditional-detr-resnet-50
# manifest sha256 d617b6ea57f6… · 348 MB · 6 files
$ fw verify ./conditional-detr-resnet-50 microsoft/conditional-detr-resnet-50
fw.pyChecks the signature and every sha256, tries each source in order, resumes.
$ python3 fw.py get https://freeweights.allternit.com/manifests/microsoft/conditional-detr-resnet-50.json --dir ./conditional-detr-resnet-50 $ python3 fw.py verify ./conditional-detr-resnet-50 ./microsoft__conditional-detr-resnet-50.json
hfThe Hugging Face CLI with one setting. Same repo id.
$ HF_ENDPOINT=https://freeweights.allternit.com hf download microsoft/conditional-detr-resnet-50 --revision 8f8795fb7c319c7862d4f4cd699e76bb09cf2593 --local-dir ./conditional-detr-resnet-50

License

Name
Apache License 2.0
Id
Apache-2.0
Class
Permissive
Redistribution
yes
Listing
Hosted (signed)
Decided
License as declared by the publisher. No person read it. 2026-11-15
Text in
README.md
Text sha256
5d52a4482b43b9e0878e3f064b67cce755d7a711bb1f97a04c78bdcaca7cd1be
Terms gate
No extra terms beyond the license.

Read the license text

Licenses are checked against the license table. A custom license passes only after a person reads it.

Provenance

From: microsoft <huggingface.co/microsoft>Newsgroups: alt.freeweights.visionSubject: conditional-detr-resnet-50Date: 2026-11-15Commit: 8f8795fSigned: 2DC28CC7B26A283B ✓
Upstream
microsoft/conditional-detr-resnet-50
Pinned commit
8f8795fb7c319c7862d4f4cd699e76bb09cf2593
Manifest
conditional-detr-resnet-50.json · .minisig
Manifest sha256
d617b6ea57f65a7f717cd7d65f9e8743b87f885f5559c748d6e984f5917236a2
Signature
minisign, Ed25519, key 2DC28CC7B26A283B
Created
2026-11-15 02:47 UTC
Generator
freeweights-manifest/0.1.0
Takedowns
None.

How to verify

$ curl -O https://freeweights.allternit.com/manifests/microsoft/conditional-detr-resnet-50.json $ curl -O https://freeweights.allternit.com/manifests/microsoft/conditional-detr-resnet-50.json.minisig $ minisign -Vm conditional-detr-resnet-50.json -P RWQ7KGqyx4zCLXtUFOqvfv8L3g+8fpKJ1FsuxPyOYMF+4KufbUxKq1Oq $ shasum -a 256 <file> # compare with the Files tab

A manifest whose signature fails must be rejected. A file whose size or sha256 does not match must be discarded. Verify a download

Model tree

No related models in this catalog.Nothing here lists this model as its parent, and it names no parent.
Get it
Download
$ HF_ENDPOINT=https://freeweights.allternit.com hf download microsoft/conditional-detr-resnet-50
Open in Freeweights Studio

Pull, verify and run it in the Allternit app on Desktop, web or phone.

Signed manifest
minisign, key 2DC28CC7B26A283B. conditional-detr-resnet-50.json. Provenance. Takedown history: none.
From: dima806 <huggingface.co/dima806>Subject: ai_vs_real_image_detection
From: legekka <huggingface.co/legekka>Subject: AI-Anime-Image-Detector-ViT
From: onnx-community <huggingface.co/onnx-community>Subject: AI-Anime-Image-Detector-ViT-ONNX
From: AICodexLab <huggingface.co/AICodexLab>Subject: answerdotai-ModernBERT-base-ai-detector
From: onnx-community <huggingface.co/onnx-community>Subject: answerdotai-ModernBERT-base-ai-detector-ONNX
From: onnx-community <huggingface.co/onnx-community>Subject: bart-large-cnn-ONNX