How to use Roboflow/rf-detr-base-2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("object-detection", model="Roboflow/rf-detr-base-2")
# Load model directly from transformers import AutoImageProcessor, AutoModelForObjectDetection processor = AutoImageProcessor.from_pretrained("Roboflow/rf-detr-base-2") model = AutoModelForObjectDetection.from_pretrained("Roboflow/rf-detr-base-2")
The community tab is the place to discuss and collaborate with the HF community!