Transformers How to use Roboflow/rf-detr-seg-small with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("image-segmentation", model="Roboflow/rf-detr-seg-small") # Load model directly
from transformers import AutoImageProcessor, RfDetrForInstanceSegmentation
processor = AutoImageProcessor.from_pretrained("Roboflow/rf-detr-seg-small")
model = RfDetrForInstanceSegmentation.from_pretrained("Roboflow/rf-detr-seg-small")