Request it for the seed queue, or get it now with pf download executorch-community/D-FINE-Small-COCO-ExecuTorch-WebGPU (CLI guide).
This repository contains an ExecuTorch conversion of ustc-community/dfine-small-coco for the ExecuTorch WebGPU backend, so the model runs entirely in a web browser on the visitor's GPU. It powers the corresponding demo in the ExecuTorch WebGPU Playground (launching soon on executorch.ai).
.pte programs delegated to the WebGPU backendNote: The weights are the Hugging Face transformers port of the authors' checkpoint; every tensor was checked to be bit-identical to the official
dfine_s_coco.pthpublished by the first author (see Provenance andexport/verify_official.py).
The small COCO model of D-FINE, a real-time DETR-style object detector that refines boxes as probability distributions.
For training data, evaluation results and full details, see the original model card: ustc-community/dfine-small-coco.
Detecting everyday objects in photos, video and camera frames.
Only knows the 80 COCO classes. Small, unusual or heavily occluded objects are often missed, and confidence scores are not calibrated probabilities.
[1, 3, 640, 640] float32 RGB in [0, 1] (x / 255, no mean/std); letterboxed or plain-resized[1, 84, 300] float32: rows 0-3 are box center x, center y, width, height in input pixels; rows 4-83 are sigmoid scores for the 80 COCO classes| File | Size | SHA-256 |
|---|---|---|
dfine_s_coco_webgpu.pte |
40.3 MB | 96cc65f615dc2c79… |
Full checksums are in manifest.json. The playground verifies them after download.
These programs were exported with the ExecuTorch WebGPU backend (backends/webgpu) and validated with the WebAssembly runtime build used by the ExecuTorch WebGPU Playground (launching soon on executorch.ai). That runtime build is not published yet; until it is, the playground is the supported way to run them. It downloads these files once, caches them in the browser, and runs everything locally.
Requirements: a browser with WebGPU enabled.
ustc-community/dfine-small-coco @ f79e65b5fbb33ceb9d3ebba042955d7410c608f8, file model.safetensors, sha256 a144baff3a27bfd538fe37b11fa8d4fca5744b8c054b5301e7c699a1379cd18f (from a community mirror of the official release)Peterande/D-FINE @ 19214e91f5ce4c1e609022c38b1fc953c47404e7, file dfine_s_coco.pth (sha256 48a6c8cc43eb57186843f752e2e8461ddd3326e0d3c575e71e6e960844683e89): all 764 tensors bit-identical (verify_official.py)3b6068392324)python recipes/detector-dfine-small.py --out out/detector-dfine-small --image photo.jpg (recipe in export/)If you use this model, please cite the original work:
@misc{peng2024dfine,
title={D-FINE: Redefine Regression Task in DETRs as Fine-grained Distribution Refinement},
author={Yansong Peng and Hebei Li and Peixi Wu and Yueyi Zhang and Xiaoyan Sun and Feng Wu},
year={2024},
eprint={2410.13842},
archivePrefix={arXiv},
primaryClass={cs.CV}
}
This is a derivative of the upstream model and is distributed under the same terms
(apache-2.0); see LICENSE.
Modifications (conversion to the ExecuTorch format) by Meta Platforms, Inc.
Have the files? Publish a torrent.
Publish a torrentHave the complete files and permission to share them? Replace the example folder path. The script checks the files, makes a torrent and submits its magnet and checksums. Keep your torrent client seeding. Get your community key from your settings, and read the script before running it.
curl -fsSL https://pirateface.co/package.sh | bash -s -- --repo executorch-community/D-FINE-Small-COCO-ExecuTorch-WebGPU ./model-folderustc-community/dfine-small-coco