--- license: apache-2.0 tags: - onnx - object detection - ezonnx --- ### RF-DETR-Seg ONNX models for inference with [EZONNX](https://github.com/ikeboo/ezonnx) - Model type: Instance segmentation - Official GitHub repository: [RF-DETR](https://github.com/roboflow/rf-detr) - Usage ```python from ezonnx import RFDETRSeg, visualize_images model = RFDETRSeg("preview") # automatically load from Hugging Face ret = model("image.jpg") # Visualize visualize_images("Detection result",ret.visualized_img) # Access results print(ret.boxes, ret.classes, ret.scores, ret.masks) ``` - ONNX export from torch ```python from rfdetr import RFDETRSegPreview model = RFDETRSegPreview() # train here model.export() ```