Transformers How to use RationAI/LSP-DETR with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("image-segmentation", model="RationAI/LSP-DETR", trust_remote_code=True) # Load model directly
from transformers import AutoModelForObjectDetection
model = AutoModelForObjectDetection.from_pretrained("RationAI/LSP-DETR", trust_remote_code=True, dtype="auto")