Our new model ZOO works with DepthAI V3. Find out more in our documentation.
Model Details
Model Description
RF-DETR Nano Instance Segmentation is a real-time transformer-based instance segmentation model from Roboflow's RF-DETR family. It is the smallest segmentation variant in the lineup, designed for low-latency inference while retaining strong COCO accuracy. The model is built on a DINOv2-based vision transformer backbone and is exported here at 312x312 input resolution.
Developed by: Roboflow
Shared by:
Model type: Computer Vision
License:
Resources for more information:
To deploy RF-DETR to Luxonis RVC4 devices some modifications need to be made to the model architecture. This are mainly there to make the operations compatible with the device accelerator. Please refer to to learn more about this.
Training Details
Training Data
The base RF-DETR Nano Instance Segmentation checkpoint is trained on the dataset for instance segmentation. This export uses the COCO label space and predicts both bounding boxes and per-instance masks.
The exported parser metadata contains 91 COCO category slots (including background and unused category IDs), which matches the standard COCO indexing used by the packaged parser, while the underlying task covers the standard 80 foreground COCO classes.
Testing Details
Metrics
The following benchmark numbers are taken from the . COCO metrics are reported for the validation split.
* Benchmarked with , using 2 threads (and the DSP runtime in balanced mode for RVC4).
* Parameters and FLOPs are obtained from the exported ONNX files with the package after running ONNX shape inference on the exported graph.
Utilization
Models converted for RVC platforms can be used for inference on OAK devices.
DepthAI pipelines are used to define the information flow linking the device, inference model, and the output parser.
Below, we present the most crucial utilization steps for this model.
Please consult the docs for more information.
RFDETRParser that outputs message containing bounding boxes, labels, confidence scores for the detected objects and their instance segmentation mask.
Get model output(s):
while pipeline.isRunning(): output = parser_output_queue.get()
Example
You can quickly run the model using the script.
It automatically downloads the model, creates a DepthAI pipeline, runs the inference, and displays the results using the DepthAI visualizer tool.
To try it out, run: