Transformers How to use pascalrai/Deformable-DETR-Document-Layout-Analysis with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("object-detection", model="pascalrai/Deformable-DETR-Document-Layout-Analysis") # Load model directly
from transformers import AutoImageProcessor, AutoModelForObjectDetection
processor = AutoImageProcessor.from_pretrained("pascalrai/Deformable-DETR-Document-Layout-Analysis")
model = AutoModelForObjectDetection.from_pretrained("pascalrai/Deformable-DETR-Document-Layout-Analysis")