How to use cmarkea/detr-layout-detection with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("object-detection", model="cmarkea/detr-layout-detection")
# Load model directly from transformers import AutoImageProcessor, AutoModelForImageSegmentation processor = AutoImageProcessor.from_pretrained("cmarkea/detr-layout-detection") model = AutoModelForImageSegmentation.from_pretrained("cmarkea/detr-layout-detection")