Skip to content
Back to skills

Rf Detr

ASecurity

"Use and maintain RF-DETR for real-time object detection, instance

  • 247 stars
  • 0 votes
  • 1 copy
  • 11 views
  • Added September 9, 2026
devopspythonbashbackend

Works with

  • cli

Security analysis

A96/100
  • mediumInstalls packages at runtime which could introduce malicious dependencies

Pro scans all 20 files and shows the line behind each finding

Scanned September 9, 2026

npx -y skills add VectorSpaceLab/AREX-Skill --skill rf-detr --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Rf Detr?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Rf Detr
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-rf-detr/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-rf-detr)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: rf-detr
description: "Use and maintain RF-DETR for real-time object detection, instance
  segmentation, keypoint preview, training, export, deployment, and repository
  development."
disable-model-invocation: true
metadata:
  disco-role: operating
license: Apache 2.0
---

# RF-DETR Repo Skill

Use this skill when a task involves the `rfdetr` Python package or the RF-DETR repository: selecting model variants, running prediction, fine-tuning on COCO/YOLO/keypoint datasets, exporting artifacts, deploying to inference runtimes, or editing the RF-DETR source tree.

RF-DETR is a PyTorch/DINOv2-based real-time vision model family for object detection, instance segmentation, and keypoint preview. The public package name is `rfdetr` and the default concrete detection model for new examples is `RFDETRSmall` / `"rfdetr-small"`.

## Install and smoke-check first

For ordinary package use:

```bash
pip install rfdetr
python -c "from rfdetr import RFDETRSmall; print(RFDETRSmall.size)"
```

Add extras only for the workflow you need:

```bash
pip install "rfdetr[train,cli]"       # training and Lightning CLI
pip install "rfdetr[augment]"         # Albumentations / Kornia augmentation backends
pip install "rfdetr[onnx]"            # ONNX export and ONNX Runtime inspection
pip install "rfdetr[tensorrt]"        # TensorRT export on NVIDIA GPU hosts
pip install "rfdetr[tflite]"          # experimental TFLite export
pip install "rfdetr[executorch]"      # experimental ExecuTorch export
pip install "rfdetr[coreml]"          # native CoreML export on supported macOS hosts
pip install "rfdetr[plus]"            # Plus detection models; separate package/license
```

Run the bundled read-only environment check when import, optional dependency, CLI, or backend readiness is unclear:

```bash
python scripts/check_rfdetr_environment.py
python scripts/check_rfdetr_environment.py --extras train onnx augment --check-cuda
```

## Route by task

| User task | Open |
| --- | --- |
| Choose an RF-DETR model class/alias, run image/video/stream prediction, load checkpoints, interpret `supervision` detections/keypoints, fix labels/devices/shape/downloads | [sub-skills/inference-and-models/SKILL.md](sub-skills/inference-and-models/SKILL.md) |
| Fine-tune/evaluate detection, segmentation, or keypoint models; validate COCO/YOLO/keypoint datasets; use `rfdetr` Lightning CLI and YAML configs; debug resume, DDP, augmentation, loggers | [sub-skills/training-and-cli/SKILL.md](sub-skills/training-and-cli/SKILL.md) |
| Export to ONNX, TensorRT, TFLite, ExecuTorch, or CoreML; choose deployment artifacts; diagnose optional backend constraints and output naming | [sub-skills/export-and-deployment/SKILL.md](sub-skills/export-and-deployment/SKILL.md) |
| Modify RF-DETR source, tests, docs, configs, package metadata, CI, or examples while following repository contribution rules | [sub-skills/repository-development/SKILL.md](sub-skills/repository-development/SKILL.md) |

## Shared references

- Read [references/model-overview.md](references/model-overview.md) when you need the released model families, default class choices, alias rules, license boundaries, and task-to-model map.
- Read [references/optional-dependencies-and-backends.md](references/optional-dependencies-and-backends.md) before installing extras, choosing CPU/GPU/mobile export dependencies, or explaining an unavailable backend.
- Read [references/troubleshooting.md](references/troubleshooting.md) for cross-cutting install/import, optional dependency, data/config, checkpoint, CUDA, and workflow failures before drilling into a sub-skill-specific troubleshooting file.
- Read [references/repo-provenance.md](references/repo-provenance.md) when checking whether this generated skill is stale for a checkout or before refreshing it.

## Core decisions to preserve

1. Default new detection examples to `RFDETRSmall` / `"rfdetr-small"`; treat `RFDETRBase` / `"rfdetr-base"` as deprecated for new examples, docs, and tests.
2. Use released sized segmentation classes (`RFDETRSegNano`, `RFDETRSegSmall`, `RFDETRSegMedium`, `RFDETRSegLarge`, `RFDETRSegXLarge`, `RFDETRSeg2XLarge`); do not use `RFDETRSegPreview` for new work.
3. Use preview variants only when the capability has no released sized version. In current RF-DETR evidence, keypoints are preview-only: `RFDETRKeypointPreview` / `"rfdetr-keypoint-preview"`.
4. Keep optional backend claims honest. A CPU import check does not verify TensorRT, CoreML, ExecuTorch QNN, XLA, or CUDA-specific behavior.
5. Prefer bundled scripts in this skill for inspection and preflight checks. They are designed to be safe, read-only, and runnable without downloading pretrained weights or starting training.

## Common first-response patterns

- For an inference question, ask for the task family (detection, segmentation, keypoint), checkpoint source if any, input type, and whether the user needs CPU, CUDA, or deployment-runtime constraints.
- For a training question, validate dataset layout before recommending a long run, then choose model family, extras, batch/effective-batch plan, resume semantics, and evaluation split.
- For an export question, start with ONNX unless the target runtime requires another artifact. Reject invalid static combinations early, especially `dynamic_batch=True` for ExecuTorch/CoreML or QNN without `soc`.
- For repository changes, follow RF-DETR TDD and style rules, choose focused tests by changed paths, and run full pre-commit before handoff.

Files in this skill

  • SKILL.md5.4 KB
  • references/model-overview.md3.8 KB
  • references/optional-dependencies-and-backends.md5.2 KB
  • references/repo-provenance.md2.1 KB
  • references/repo-routing-metadata.json485 B
  • references/troubleshooting.md6 KB
  • scripts/check_rfdetr_environment.py8 KB
  • sub-skills/export-and-deployment/SKILL.md2.8 KB
  • sub-skills/export-and-deployment/references/deployment-workflows.md9.3 KB
  • sub-skills/export-and-deployment/references/export-reference.md11 KB
  • sub-skills/export-and-deployment/references/troubleshooting.md9.6 KB
  • sub-skills/export-and-deployment/scripts/inspect_export_options.py12.8 KB
  • sub-skills/inference-and-models/SKILL.md2.7 KB
  • sub-skills/inference-and-models/references/api-reference.md10.4 KB
  • sub-skills/inference-and-models/references/troubleshooting.md9 KB
  • sub-skills/inference-and-models/references/workflows.md7.8 KB
  • sub-skills/inference-and-models/scripts/inspect_rfdetr_models.py9.9 KB
  • sub-skills/repository-development/SKILL.md3.3 KB
  • sub-skills/repository-development/references/contributor-guidance.md10.1 KB
  • sub-skills/repository-development/references/test-selection.md9.1 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.